diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/AccessModelMetadataAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/AccessModelMetadataAPI.md index 17bfbc6b4..030342909 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/AccessModelMetadataAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/AccessModelMetadataAPI.md @@ -72,7 +72,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -80,18 +80,18 @@ import ( func main() { key := `iscPrivacy` // string | Technical name of the Attribute. # string | Technical name of the Attribute. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessModelMetadataAPI.GetAccessModelMetadataAttribute(context.Background(), key).Execute() - //resp, r, err := apiClient.Beta.AccessModelMetadataAPI.GetAccessModelMetadataAttribute(context.Background(), key).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessModelMetadataAPI.GetAccessModelMetadataAttribute``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessModelMetadataAttribute`: AttributeDTO - fmt.Fprintf(os.Stdout, "Response from `AccessModelMetadataAPI.GetAccessModelMetadataAttribute`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccessModelMetadataAPI.GetAccessModelMetadataAttribute(context.Background(), key).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessModelMetadataAPI.GetAccessModelMetadataAttribute``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessModelMetadataAttribute`: AttributeDTO + fmt.Fprintf(os.Stdout, "Response from `AccessModelMetadataAPI.GetAccessModelMetadataAttribute`: %v\n", resp) } ``` @@ -140,7 +140,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -149,18 +149,18 @@ func main() { key := `iscPrivacy` // string | Technical name of the Attribute. # string | Technical name of the Attribute. value := `public` // string | Technical name of the Attribute value. # string | Technical name of the Attribute value. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessModelMetadataAPI.GetAccessModelMetadataAttributeValue(context.Background(), key, value).Execute() - //resp, r, err := apiClient.Beta.AccessModelMetadataAPI.GetAccessModelMetadataAttributeValue(context.Background(), key, value).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessModelMetadataAPI.GetAccessModelMetadataAttributeValue``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessModelMetadataAttributeValue`: AttributeValueDTO - fmt.Fprintf(os.Stdout, "Response from `AccessModelMetadataAPI.GetAccessModelMetadataAttributeValue`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccessModelMetadataAPI.GetAccessModelMetadataAttributeValue(context.Background(), key, value).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessModelMetadataAPI.GetAccessModelMetadataAttributeValue``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessModelMetadataAttributeValue`: AttributeValueDTO + fmt.Fprintf(os.Stdout, "Response from `AccessModelMetadataAPI.GetAccessModelMetadataAttributeValue`: %v\n", resp) } ``` @@ -203,7 +203,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -211,18 +211,18 @@ import ( func main() { filters := `name eq "Privacy"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *eq* **type**: *eq* **status**: *eq* **objectTypes**: *eq* Supported composite operators: *and* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *eq* **type**: *eq* **status**: *eq* **objectTypes**: *eq* Supported composite operators: *and* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessModelMetadataAPI.ListAccessModelMetadataAttribute(context.Background()).Execute() - //resp, r, err := apiClient.Beta.AccessModelMetadataAPI.ListAccessModelMetadataAttribute(context.Background()).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessModelMetadataAPI.ListAccessModelMetadataAttribute``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAccessModelMetadataAttribute`: []AttributeDTO - fmt.Fprintf(os.Stdout, "Response from `AccessModelMetadataAPI.ListAccessModelMetadataAttribute`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccessModelMetadataAPI.ListAccessModelMetadataAttribute(context.Background()).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessModelMetadataAPI.ListAccessModelMetadataAttribute``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAccessModelMetadataAttribute`: []AttributeDTO + fmt.Fprintf(os.Stdout, "Response from `AccessModelMetadataAPI.ListAccessModelMetadataAttribute`: %v\n", resp) } ``` @@ -269,7 +269,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -277,18 +277,18 @@ import ( func main() { key := `iscPrivacy` // string | Technical name of the Attribute. # string | Technical name of the Attribute. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessModelMetadataAPI.ListAccessModelMetadataAttributeValue(context.Background(), key).Execute() - //resp, r, err := apiClient.Beta.AccessModelMetadataAPI.ListAccessModelMetadataAttributeValue(context.Background(), key).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessModelMetadataAPI.ListAccessModelMetadataAttributeValue``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAccessModelMetadataAttributeValue`: []AttributeValueDTO - fmt.Fprintf(os.Stdout, "Response from `AccessModelMetadataAPI.ListAccessModelMetadataAttributeValue`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccessModelMetadataAPI.ListAccessModelMetadataAttributeValue(context.Background(), key).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessModelMetadataAPI.ListAccessModelMetadataAttributeValue``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAccessModelMetadataAttributeValue`: []AttributeValueDTO + fmt.Fprintf(os.Stdout, "Response from `AccessModelMetadataAPI.ListAccessModelMetadataAttributeValue`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/AccessProfilesAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/AccessProfilesAPI.md index 974423a04..b61b70cb6 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/AccessProfilesAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/AccessProfilesAPI.md @@ -99,7 +99,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -192,24 +192,23 @@ func main() { "requestable" : true }`) // AccessProfile | - - var accessProfile beta.AccessProfile - if err := json.Unmarshal(accessprofile, &accessProfile); err != nil { - fmt.Println("Error:", err) - return - } - + var accessProfile beta.AccessProfile + if err := json.Unmarshal(accessprofile, &accessProfile); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessProfilesAPI.CreateAccessProfile(context.Background()).AccessProfile(accessProfile).Execute() - //resp, r, err := apiClient.Beta.AccessProfilesAPI.CreateAccessProfile(context.Background()).AccessProfile(accessProfile).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.CreateAccessProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateAccessProfile`: AccessProfile - fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.CreateAccessProfile`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccessProfilesAPI.CreateAccessProfile(context.Background()).AccessProfile(accessProfile).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.CreateAccessProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAccessProfile`: AccessProfile + fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.CreateAccessProfile`: %v\n", resp) } ``` @@ -260,7 +259,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -268,16 +267,17 @@ import ( func main() { id := `2c91808a7813090a017814121919ecca` // string | ID of the Access Profile to delete # string | ID of the Access Profile to delete - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.AccessProfilesAPI.DeleteAccessProfile(context.Background(), id).Execute() - //r, err := apiClient.Beta.AccessProfilesAPI.DeleteAccessProfile(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.DeleteAccessProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.AccessProfilesAPI.DeleteAccessProfile(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.DeleteAccessProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -323,7 +323,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -334,24 +334,23 @@ func main() { "bestEffortOnly" : true }`) // AccessProfileBulkDeleteRequest | - - var accessProfileBulkDeleteRequest beta.AccessProfileBulkDeleteRequest - if err := json.Unmarshal(accessprofilebulkdeleterequest, &accessProfileBulkDeleteRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var accessProfileBulkDeleteRequest beta.AccessProfileBulkDeleteRequest + if err := json.Unmarshal(accessprofilebulkdeleterequest, &accessProfileBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessProfilesAPI.DeleteAccessProfilesInBulk(context.Background()).AccessProfileBulkDeleteRequest(accessProfileBulkDeleteRequest).Execute() - //resp, r, err := apiClient.Beta.AccessProfilesAPI.DeleteAccessProfilesInBulk(context.Background()).AccessProfileBulkDeleteRequest(accessProfileBulkDeleteRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.DeleteAccessProfilesInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteAccessProfilesInBulk`: AccessProfileBulkDeleteResponse - fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.DeleteAccessProfilesInBulk`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccessProfilesAPI.DeleteAccessProfilesInBulk(context.Background()).AccessProfileBulkDeleteRequest(accessProfileBulkDeleteRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.DeleteAccessProfilesInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteAccessProfilesInBulk`: AccessProfileBulkDeleteResponse + fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.DeleteAccessProfilesInBulk`: %v\n", resp) } ``` @@ -398,7 +397,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -406,18 +405,18 @@ import ( func main() { id := `2c9180837ca6693d017ca8d097500149` // string | ID of the Access Profile # string | ID of the Access Profile - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessProfilesAPI.GetAccessProfile(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.AccessProfilesAPI.GetAccessProfile(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.GetAccessProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessProfile`: AccessProfile - fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.GetAccessProfile`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccessProfilesAPI.GetAccessProfile(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.GetAccessProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessProfile`: AccessProfile + fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.GetAccessProfile`: %v\n", resp) } ``` @@ -470,7 +469,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -483,18 +482,18 @@ func main() { filters := `attribute eq "memberOf"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* Filtering is not supported for access profiles and entitlements that have the '+' symbol in their names. (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* Filtering is not supported for access profiles and entitlements that have the '+' symbol in their names. (optional) sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, attribute, value, created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, attribute, value, created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessProfilesAPI.GetAccessProfileEntitlements(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.AccessProfilesAPI.GetAccessProfileEntitlements(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.GetAccessProfileEntitlements``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessProfileEntitlements`: []Entitlement - fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.GetAccessProfileEntitlements`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccessProfilesAPI.GetAccessProfileEntitlements(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.GetAccessProfileEntitlements``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessProfileEntitlements`: []Entitlement + fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.GetAccessProfileEntitlements`: %v\n", resp) } ``` @@ -545,7 +544,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -560,18 +559,18 @@ func main() { forSegmentIds := `0b5c9f25-83c6-4762-9073-e38f7bb2ae26,2e8d8180-24bc-4d21-91c6-7affdb473b0d` // string | Filters access profiles to only those assigned to the segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) # string | Filters access profiles to only those assigned to the segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) includeUnsegmented := false // bool | Indicates whether the response list should contain unsegmented access profiles. If `for-segment-ids` is absent or empty, specifying *include-unsegmented* as `false` results in an error. (optional) (default to true) # bool | Indicates whether the response list should contain unsegmented access profiles. If `for-segment-ids` is absent or empty, specifying *include-unsegmented* as `false` results in an error. (optional) (default to true) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessProfilesAPI.ListAccessProfiles(context.Background()).Execute() - //resp, r, err := apiClient.Beta.AccessProfilesAPI.ListAccessProfiles(context.Background()).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.ListAccessProfiles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAccessProfiles`: []AccessProfile - fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.ListAccessProfiles`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccessProfilesAPI.ListAccessProfiles(context.Background()).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.ListAccessProfiles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAccessProfiles`: []AccessProfile + fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.ListAccessProfiles`: %v\n", resp) } ``` @@ -624,7 +623,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -633,24 +632,23 @@ func main() { id := `2c91808a7813090a017814121919ecca` // string | ID of the Access Profile to patch # string | ID of the Access Profile to patch jsonpatchoperation := []byte(`[{op=add, path=/entitlements, value=[{id=2c9180857725c14301772a93bb77242d, type=ENTITLEMENT, name=AD User Group}]}]`) // []JsonPatchOperation | - - var jsonPatchOperation beta.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []beta.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessProfilesAPI.PatchAccessProfile(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.Beta.AccessProfilesAPI.PatchAccessProfile(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.PatchAccessProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchAccessProfile`: AccessProfile - fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.PatchAccessProfile`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccessProfilesAPI.PatchAccessProfile(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.PatchAccessProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchAccessProfile`: AccessProfile + fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.PatchAccessProfile`: %v\n", resp) } ``` @@ -699,7 +697,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -707,24 +705,23 @@ import ( func main() { accessprofilebulkupdaterequestinner := []byte(`[{id=464ae7bf-791e-49fd-b746-06a2e4a89635, requestable=false}]`) // []AccessProfileBulkUpdateRequestInner | - - var accessProfileBulkUpdateRequestInner beta.[]AccessProfileBulkUpdateRequestInner - if err := json.Unmarshal(accessprofilebulkupdaterequestinner, &accessProfileBulkUpdateRequestInner); err != nil { - fmt.Println("Error:", err) - return - } - + var accessProfileBulkUpdateRequestInner []beta.AccessProfileBulkUpdateRequestInner + if err := json.Unmarshal(accessprofilebulkupdaterequestinner, &accessProfileBulkUpdateRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessProfilesAPI.UpdateAccessProfilesInBulk(context.Background()).AccessProfileBulkUpdateRequestInner(accessProfileBulkUpdateRequestInner).Execute() - //resp, r, err := apiClient.Beta.AccessProfilesAPI.UpdateAccessProfilesInBulk(context.Background()).AccessProfileBulkUpdateRequestInner(accessProfileBulkUpdateRequestInner).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.UpdateAccessProfilesInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateAccessProfilesInBulk`: []AccessProfileUpdateItem - fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.UpdateAccessProfilesInBulk`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccessProfilesAPI.UpdateAccessProfilesInBulk(context.Background()).AccessProfileBulkUpdateRequestInner(accessProfileBulkUpdateRequestInner).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.UpdateAccessProfilesInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateAccessProfilesInBulk`: []AccessProfileUpdateItem + fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.UpdateAccessProfilesInBulk`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/AccessRequestApprovalsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/AccessRequestApprovalsAPI.md index d6e50a537..7f45f0be0 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/AccessRequestApprovalsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/AccessRequestApprovalsAPI.md @@ -82,7 +82,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -99,24 +99,23 @@ func main() { "comment" : "This is a comment." }`) // CommentDto | Reviewer's comment. - - var commentDto beta.CommentDto - if err := json.Unmarshal(commentdto, &commentDto); err != nil { - fmt.Println("Error:", err) - return - } - + var commentDto beta.CommentDto + if err := json.Unmarshal(commentdto, &commentDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.ApproveAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() - //resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.ApproveAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.ApproveAccessRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ApproveAccessRequest`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.ApproveAccessRequest`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.ApproveAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.ApproveAccessRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApproveAccessRequest`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.ApproveAccessRequest`: %v\n", resp) } ``` @@ -164,7 +163,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -176,24 +175,23 @@ func main() { "comment" : "comment" }`) // ForwardApprovalDto | Information about the forwarded approval. - - var forwardApprovalDto beta.ForwardApprovalDto - if err := json.Unmarshal(forwardapprovaldto, &forwardApprovalDto); err != nil { - fmt.Println("Error:", err) - return - } - + var forwardApprovalDto beta.ForwardApprovalDto + if err := json.Unmarshal(forwardapprovaldto, &forwardApprovalDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.ForwardAccessRequest(context.Background(), approvalId).ForwardApprovalDto(forwardApprovalDto).Execute() - //resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.ForwardAccessRequest(context.Background(), approvalId).ForwardApprovalDto(forwardApprovalDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.ForwardAccessRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ForwardAccessRequest`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.ForwardAccessRequest`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.ForwardAccessRequest(context.Background(), approvalId).ForwardApprovalDto(forwardApprovalDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.ForwardAccessRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ForwardAccessRequest`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.ForwardAccessRequest`: %v\n", resp) } ``` @@ -237,7 +235,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -246,18 +244,18 @@ func main() { ownerId := `2c91808568c529c60168cca6f90c1313` // string | The ID of the owner or approver identity of the approvals. If present, the value returns approval summary for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN user can also fetch all the approvals in the org, when owner-id is not used. * Non ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) # string | The ID of the owner or approver identity of the approvals. If present, the value returns approval summary for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN user can also fetch all the approvals in the org, when owner-id is not used. * Non ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) fromDate := `from-date=2020-03-19T19:59:11Z` // string | This is the date and time the results will be shown from. It must be in a valid ISO-8601 format. (optional) # string | This is the date and time the results will be shown from. It must be in a valid ISO-8601 format. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary(context.Background()).Execute() - //resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary(context.Background()).OwnerId(ownerId).FromDate(fromDate).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessRequestApprovalSummary`: ApprovalSummary - fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary(context.Background()).OwnerId(ownerId).FromDate(fromDate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessRequestApprovalSummary`: ApprovalSummary + fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary`: %v\n", resp) } ``` @@ -305,7 +303,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -318,18 +316,18 @@ func main() { filters := `filters_example` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **requestedFor.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **requestedFor.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, sw* (optional) sorters := `sorters_example` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.ListCompletedApprovals(context.Background()).Execute() - //resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.ListCompletedApprovals(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.ListCompletedApprovals``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListCompletedApprovals`: []CompletedApproval - fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.ListCompletedApprovals`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.ListCompletedApprovals(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.ListCompletedApprovals``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCompletedApprovals`: []CompletedApproval + fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.ListCompletedApprovals`: %v\n", resp) } ``` @@ -377,7 +375,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -390,18 +388,18 @@ func main() { filters := `filters_example` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **requestedFor.id**: *eq, in* **modified**: *gt, lt, ge, le, eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **requestedFor.id**: *eq, in* **modified**: *gt, lt, ge, le, eq, in* (optional) sorters := `sorters_example` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.ListPendingApprovals(context.Background()).Execute() - //resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.ListPendingApprovals(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.ListPendingApprovals``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListPendingApprovals`: []PendingApproval - fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.ListPendingApprovals`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.ListPendingApprovals(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.ListPendingApprovals``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListPendingApprovals`: []PendingApproval + fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.ListPendingApprovals`: %v\n", resp) } ``` @@ -449,7 +447,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -466,24 +464,23 @@ func main() { "comment" : "This is a comment." }`) // CommentDto | Reviewer's comment. - - var commentDto beta.CommentDto - if err := json.Unmarshal(commentdto, &commentDto); err != nil { - fmt.Println("Error:", err) - return - } - + var commentDto beta.CommentDto + if err := json.Unmarshal(commentdto, &commentDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.RejectAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() - //resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.RejectAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.RejectAccessRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `RejectAccessRequest`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.RejectAccessRequest`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.RejectAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.RejectAccessRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RejectAccessRequest`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.RejectAccessRequest`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/AccessRequestIdentityMetricsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/AccessRequestIdentityMetricsAPI.md index c69a5943f..df4e98307 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/AccessRequestIdentityMetricsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/AccessRequestIdentityMetricsAPI.md @@ -67,7 +67,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -77,18 +77,18 @@ func main() { requestedObjectId := `2db501be-f0fb-4cc5-a695-334133c52891` // string | Requested access item's ID. # string | Requested access item's ID. type_ := `ENTITLEMENT` // string | Requested access item's type. # string | Requested access item's type. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessRequestIdentityMetricsAPI.GetAccessRequestIdentityMetrics(context.Background(), identityId, requestedObjectId, type_).Execute() - //resp, r, err := apiClient.Beta.AccessRequestIdentityMetricsAPI.GetAccessRequestIdentityMetrics(context.Background(), identityId, requestedObjectId, type_).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestIdentityMetricsAPI.GetAccessRequestIdentityMetrics``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessRequestIdentityMetrics`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `AccessRequestIdentityMetricsAPI.GetAccessRequestIdentityMetrics`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccessRequestIdentityMetricsAPI.GetAccessRequestIdentityMetrics(context.Background(), identityId, requestedObjectId, type_).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestIdentityMetricsAPI.GetAccessRequestIdentityMetrics``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessRequestIdentityMetrics`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AccessRequestIdentityMetricsAPI.GetAccessRequestIdentityMetrics`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/AccessRequestsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/AccessRequestsAPI.md index 032aff9a8..6891027bc 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/AccessRequestsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/AccessRequestsAPI.md @@ -76,7 +76,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -87,24 +87,23 @@ func main() { "comment" : "I requested this role by mistake." }`) // CancelAccessRequest | - - var cancelAccessRequest beta.CancelAccessRequest - if err := json.Unmarshal(cancelaccessrequest, &cancelAccessRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var cancelAccessRequest beta.CancelAccessRequest + if err := json.Unmarshal(cancelaccessrequest, &cancelAccessRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessRequestsAPI.CancelAccessRequest(context.Background()).CancelAccessRequest(cancelAccessRequest).Execute() - //resp, r, err := apiClient.Beta.AccessRequestsAPI.CancelAccessRequest(context.Background()).CancelAccessRequest(cancelAccessRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.CancelAccessRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CancelAccessRequest`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.CancelAccessRequest`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccessRequestsAPI.CancelAccessRequest(context.Background()).CancelAccessRequest(cancelAccessRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.CancelAccessRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CancelAccessRequest`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.CancelAccessRequest`: %v\n", resp) } ``` @@ -158,7 +157,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -171,24 +170,23 @@ func main() { "message" : "The IdentityNow Administrator manually closed this request." }`) // CloseAccessRequest | - - var closeAccessRequest beta.CloseAccessRequest - if err := json.Unmarshal(closeaccessrequest, &closeAccessRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var closeAccessRequest beta.CloseAccessRequest + if err := json.Unmarshal(closeaccessrequest, &closeAccessRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessRequestsAPI.CloseAccessRequest(context.Background()).CloseAccessRequest(closeAccessRequest).Execute() - //resp, r, err := apiClient.Beta.AccessRequestsAPI.CloseAccessRequest(context.Background()).CloseAccessRequest(closeAccessRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.CloseAccessRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CloseAccessRequest`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.CloseAccessRequest`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccessRequestsAPI.CloseAccessRequest(context.Background()).CloseAccessRequest(closeAccessRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.CloseAccessRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CloseAccessRequest`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.CloseAccessRequest`: %v\n", resp) } ``` @@ -227,7 +225,8 @@ __REVOKE_ACCESS__ * Revoke requests for entitlements are limited to 1 entitlement per access request currently. * You can specify a `removeDate` if the access doesn't already have a sunset date. The `removeDate` must be a future date, in the UTC timezone. * Allows a manager to request to revoke access for direct employees. A user with ORG_ADMIN authority can also request to revoke access from anyone. -* Now supports REVOKE_ACCESS requests for identities with multiple accounts on a single source, with the help of 'assignmentId' and 'nativeIdentity' fields. +* Now supports REVOKE_ACCESS requests for identities with multiple accounts on a single source, with the help of 'assignmentId' and 'nativeIdentity' fields. These fields should be used within the 'requestedItems' section for the revoke requests. +* Usage of 'requestedForWithRequestedItems' field is not supported for revoke requests. [API Spec](https://developer.sailpoint.com/docs/api/beta/create-access-request) @@ -263,7 +262,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -361,9 +360,7 @@ func main() { } ], "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE", - "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", - "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + "type" : "ACCESS_PROFILE" }, { "clientMetadata" : { "requestedAppName" : "test-app", @@ -391,9 +388,7 @@ func main() { } ], "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE", - "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", - "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + "type" : "ACCESS_PROFILE" } ] }, { "identityId" : "cb89bc2f1ee6445fbea12224c526ba3a", @@ -424,9 +419,7 @@ func main() { } ], "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE", - "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", - "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + "type" : "ACCESS_PROFILE" }, { "clientMetadata" : { "requestedAppName" : "test-app", @@ -454,31 +447,28 @@ func main() { } ], "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE", - "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", - "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + "type" : "ACCESS_PROFILE" } ] } ] }`) // AccessRequest | - - var accessRequest beta.AccessRequest - if err := json.Unmarshal(accessrequest, &accessRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var accessRequest beta.AccessRequest + if err := json.Unmarshal(accessrequest, &accessRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessRequestsAPI.CreateAccessRequest(context.Background()).AccessRequest(accessRequest).Execute() - //resp, r, err := apiClient.Beta.AccessRequestsAPI.CreateAccessRequest(context.Background()).AccessRequest(accessRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.CreateAccessRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateAccessRequest`: AccessRequestResponse - fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.CreateAccessRequest`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccessRequestsAPI.CreateAccessRequest(context.Background()).AccessRequest(accessRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.CreateAccessRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAccessRequest`: AccessRequestResponse + fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.CreateAccessRequest`: %v\n", resp) } ``` @@ -517,25 +507,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessRequestsAPI.GetAccessRequestConfig(context.Background()).Execute() - //resp, r, err := apiClient.Beta.AccessRequestsAPI.GetAccessRequestConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.GetAccessRequestConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessRequestConfig`: AccessRequestConfig - fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.GetAccessRequestConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccessRequestsAPI.GetAccessRequestConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.GetAccessRequestConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessRequestConfig`: AccessRequestConfig + fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.GetAccessRequestConfig`: %v\n", resp) } ``` @@ -589,7 +579,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -606,18 +596,18 @@ func main() { sorters := `created` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified, accountActivityItemId, name** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified, accountActivityItemId, name** (optional) requestState := `request-state=EXECUTING` // string | Filter the results by the state of the request. The only valid value is *EXECUTING*. (optional) # string | Filter the results by the state of the request. The only valid value is *EXECUTING*. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessRequestsAPI.ListAccessRequestStatus(context.Background()).Execute() - //resp, r, err := apiClient.Beta.AccessRequestsAPI.ListAccessRequestStatus(context.Background()).RequestedFor(requestedFor).RequestedBy(requestedBy).RegardingIdentity(regardingIdentity).AssignedTo(assignedTo).Count(count).Limit(limit).Offset(offset).Filters(filters).Sorters(sorters).RequestState(requestState).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.ListAccessRequestStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAccessRequestStatus`: []RequestedItemStatus - fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.ListAccessRequestStatus`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccessRequestsAPI.ListAccessRequestStatus(context.Background()).RequestedFor(requestedFor).RequestedBy(requestedBy).RegardingIdentity(regardingIdentity).AssignedTo(assignedTo).Count(count).Limit(limit).Offset(offset).Filters(filters).Sorters(sorters).RequestState(requestState).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.ListAccessRequestStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAccessRequestStatus`: []RequestedItemStatus + fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.ListAccessRequestStatus`: %v\n", resp) } ``` @@ -660,7 +650,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -693,24 +683,23 @@ func main() { "approvalsMustBeExternal" : true }`) // AccessRequestConfig | - - var accessRequestConfig beta.AccessRequestConfig - if err := json.Unmarshal(accessrequestconfig, &accessRequestConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var accessRequestConfig beta.AccessRequestConfig + if err := json.Unmarshal(accessrequestconfig, &accessRequestConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessRequestsAPI.SetAccessRequestConfig(context.Background()).AccessRequestConfig(accessRequestConfig).Execute() - //resp, r, err := apiClient.Beta.AccessRequestsAPI.SetAccessRequestConfig(context.Background()).AccessRequestConfig(accessRequestConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.SetAccessRequestConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetAccessRequestConfig`: AccessRequestConfig - fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.SetAccessRequestConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccessRequestsAPI.SetAccessRequestConfig(context.Background()).AccessRequestConfig(accessRequestConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.SetAccessRequestConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetAccessRequestConfig`: AccessRequestConfig + fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.SetAccessRequestConfig`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/AccountActivitiesAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/AccountActivitiesAPI.md index 94be1bd13..2d244de9d 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/AccountActivitiesAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/AccountActivitiesAPI.md @@ -93,7 +93,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -101,18 +101,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The account activity id # string | The account activity id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountActivitiesAPI.GetAccountActivity(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.AccountActivitiesAPI.GetAccountActivity(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountActivitiesAPI.GetAccountActivity``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccountActivity`: CancelableAccountActivity - fmt.Fprintf(os.Stdout, "Response from `AccountActivitiesAPI.GetAccountActivity`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccountActivitiesAPI.GetAccountActivity(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountActivitiesAPI.GetAccountActivity``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccountActivity`: CancelableAccountActivity + fmt.Fprintf(os.Stdout, "Response from `AccountActivitiesAPI.GetAccountActivity`: %v\n", resp) } ``` @@ -163,7 +163,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -179,18 +179,18 @@ func main() { filters := `filters_example` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **type**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **created**: *gt, lt, ge, le, eq, in, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, isnull, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **type**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **created**: *gt, lt, ge, le, eq, in, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, isnull, sw* (optional) sorters := `sorters_example` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **type, created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **type, created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountActivitiesAPI.ListAccountActivities(context.Background()).Execute() - //resp, r, err := apiClient.Beta.AccountActivitiesAPI.ListAccountActivities(context.Background()).RequestedFor(requestedFor).RequestedBy(requestedBy).RegardingIdentity(regardingIdentity).Type_(type_).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountActivitiesAPI.ListAccountActivities``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAccountActivities`: []CancelableAccountActivity - fmt.Fprintf(os.Stdout, "Response from `AccountActivitiesAPI.ListAccountActivities`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccountActivitiesAPI.ListAccountActivities(context.Background()).RequestedFor(requestedFor).RequestedBy(requestedBy).RegardingIdentity(regardingIdentity).Type_(type_).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountActivitiesAPI.ListAccountActivities``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAccountActivities`: []CancelableAccountActivity + fmt.Fprintf(os.Stdout, "Response from `AccountActivitiesAPI.ListAccountActivities`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/AccountAggregationsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/AccountAggregationsAPI.md index 3b5c5b0db..758120a7c 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/AccountAggregationsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/AccountAggregationsAPI.md @@ -77,7 +77,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -85,18 +85,18 @@ import ( func main() { id := `2c91808477a6b0c60177a81146b8110b` // string | The account aggregation id # string | The account aggregation id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountAggregationsAPI.GetAccountAggregationStatus(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.AccountAggregationsAPI.GetAccountAggregationStatus(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountAggregationsAPI.GetAccountAggregationStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccountAggregationStatus`: AccountAggregationStatus - fmt.Fprintf(os.Stdout, "Response from `AccountAggregationsAPI.GetAccountAggregationStatus`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccountAggregationsAPI.GetAccountAggregationStatus(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountAggregationsAPI.GetAccountAggregationStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccountAggregationStatus`: AccountAggregationStatus + fmt.Fprintf(os.Stdout, "Response from `AccountAggregationsAPI.GetAccountAggregationStatus`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/AccountUsagesAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/AccountUsagesAPI.md index cac19952d..e4fb68413 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/AccountUsagesAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/AccountUsagesAPI.md @@ -66,7 +66,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -78,18 +78,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) sorters := `-date` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **date** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **date** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountUsagesAPI.GetUsagesByAccountId(context.Background(), accountId).Execute() - //resp, r, err := apiClient.Beta.AccountUsagesAPI.GetUsagesByAccountId(context.Background(), accountId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountUsagesAPI.GetUsagesByAccountId``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetUsagesByAccountId`: []AccountUsage - fmt.Fprintf(os.Stdout, "Response from `AccountUsagesAPI.GetUsagesByAccountId`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccountUsagesAPI.GetUsagesByAccountId(context.Background(), accountId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountUsagesAPI.GetUsagesByAccountId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetUsagesByAccountId`: []AccountUsage + fmt.Fprintf(os.Stdout, "Response from `AccountUsagesAPI.GetUsagesByAccountId`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/AccountsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/AccountsAPI.md index a19d19c2b..2438d4c14 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/AccountsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/AccountsAPI.md @@ -111,7 +111,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -128,24 +128,23 @@ func main() { } }`) // AccountAttributesCreate | - - var accountAttributesCreate beta.AccountAttributesCreate - if err := json.Unmarshal(accountattributescreate, &accountAttributesCreate); err != nil { - fmt.Println("Error:", err) - return - } - + var accountAttributesCreate beta.AccountAttributesCreate + if err := json.Unmarshal(accountattributescreate, &accountAttributesCreate); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.CreateAccount(context.Background()).AccountAttributesCreate(accountAttributesCreate).Execute() - //resp, r, err := apiClient.Beta.AccountsAPI.CreateAccount(context.Background()).AccountAttributesCreate(accountAttributesCreate).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.CreateAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateAccount`: AccountsAsyncResult - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.CreateAccount`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccountsAPI.CreateAccount(context.Background()).AccountAttributesCreate(accountAttributesCreate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.CreateAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAccount`: AccountsAsyncResult + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.CreateAccount`: %v\n", resp) } ``` @@ -199,7 +198,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -207,18 +206,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.DeleteAccount(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.AccountsAPI.DeleteAccount(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.DeleteAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteAccount`: AccountsAsyncResult - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.DeleteAccount`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccountsAPI.DeleteAccount(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.DeleteAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteAccount`: AccountsAsyncResult + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.DeleteAccount`: %v\n", resp) } ``` @@ -271,7 +270,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -279,18 +278,18 @@ import ( func main() { id := `c350d6aa4f104c61b062cb632421ad10` // string | The account id # string | The account id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.DeleteAccountAsync(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.AccountsAPI.DeleteAccountAsync(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.DeleteAccountAsync``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteAccountAsync`: TaskResultDto - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.DeleteAccountAsync`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccountsAPI.DeleteAccountAsync(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.DeleteAccountAsync``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteAccountAsync`: TaskResultDto + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.DeleteAccountAsync`: %v\n", resp) } ``` @@ -342,7 +341,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -354,24 +353,23 @@ func main() { "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581" }`) // AccountToggleRequest | - - var accountToggleRequest beta.AccountToggleRequest - if err := json.Unmarshal(accounttogglerequest, &accountToggleRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var accountToggleRequest beta.AccountToggleRequest + if err := json.Unmarshal(accounttogglerequest, &accountToggleRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.DisableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() - //resp, r, err := apiClient.Beta.AccountsAPI.DisableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.DisableAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DisableAccount`: AccountsAsyncResult - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.DisableAccount`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccountsAPI.DisableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.DisableAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DisableAccount`: AccountsAsyncResult + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.DisableAccount`: %v\n", resp) } ``` @@ -421,7 +419,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -429,18 +427,18 @@ import ( func main() { id := `2c91808384203c2d018437e631158309` // string | The identity id. # string | The identity id. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.DisableAccountForIdentity(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.AccountsAPI.DisableAccountForIdentity(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.DisableAccountForIdentity``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DisableAccountForIdentity`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.DisableAccountForIdentity`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccountsAPI.DisableAccountForIdentity(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.DisableAccountForIdentity``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DisableAccountForIdentity`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.DisableAccountForIdentity`: %v\n", resp) } ``` @@ -486,7 +484,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -496,24 +494,23 @@ func main() { "identityIds" : [ "2c91808384203c2d018437e631158308", "2c9180858082150f0180893dbaf553fe" ] }`) // IdentitiesAccountsBulkRequest | - - var identitiesAccountsBulkRequest beta.IdentitiesAccountsBulkRequest - if err := json.Unmarshal(identitiesaccountsbulkrequest, &identitiesAccountsBulkRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var identitiesAccountsBulkRequest beta.IdentitiesAccountsBulkRequest + if err := json.Unmarshal(identitiesaccountsbulkrequest, &identitiesAccountsBulkRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.DisableAccountsForIdentities(context.Background()).IdentitiesAccountsBulkRequest(identitiesAccountsBulkRequest).Execute() - //resp, r, err := apiClient.Beta.AccountsAPI.DisableAccountsForIdentities(context.Background()).IdentitiesAccountsBulkRequest(identitiesAccountsBulkRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.DisableAccountsForIdentities``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DisableAccountsForIdentities`: []BulkIdentitiesAccountsResponse - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.DisableAccountsForIdentities`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccountsAPI.DisableAccountsForIdentities(context.Background()).IdentitiesAccountsBulkRequest(identitiesAccountsBulkRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.DisableAccountsForIdentities``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DisableAccountsForIdentities`: []BulkIdentitiesAccountsResponse + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.DisableAccountsForIdentities`: %v\n", resp) } ``` @@ -565,7 +562,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -577,24 +574,23 @@ func main() { "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581" }`) // AccountToggleRequest | - - var accountToggleRequest beta.AccountToggleRequest - if err := json.Unmarshal(accounttogglerequest, &accountToggleRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var accountToggleRequest beta.AccountToggleRequest + if err := json.Unmarshal(accounttogglerequest, &accountToggleRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.EnableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() - //resp, r, err := apiClient.Beta.AccountsAPI.EnableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.EnableAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `EnableAccount`: AccountsAsyncResult - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.EnableAccount`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccountsAPI.EnableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.EnableAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `EnableAccount`: AccountsAsyncResult + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.EnableAccount`: %v\n", resp) } ``` @@ -644,7 +640,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -652,18 +648,18 @@ import ( func main() { id := `2c91808384203c2d018437e631158309` // string | The identity id. # string | The identity id. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.EnableAccountForIdentity(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.AccountsAPI.EnableAccountForIdentity(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.EnableAccountForIdentity``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `EnableAccountForIdentity`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.EnableAccountForIdentity`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccountsAPI.EnableAccountForIdentity(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.EnableAccountForIdentity``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `EnableAccountForIdentity`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.EnableAccountForIdentity`: %v\n", resp) } ``` @@ -709,7 +705,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -719,24 +715,23 @@ func main() { "identityIds" : [ "2c91808384203c2d018437e631158308", "2c9180858082150f0180893dbaf553fe" ] }`) // IdentitiesAccountsBulkRequest | - - var identitiesAccountsBulkRequest beta.IdentitiesAccountsBulkRequest - if err := json.Unmarshal(identitiesaccountsbulkrequest, &identitiesAccountsBulkRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var identitiesAccountsBulkRequest beta.IdentitiesAccountsBulkRequest + if err := json.Unmarshal(identitiesaccountsbulkrequest, &identitiesAccountsBulkRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.EnableAccountsForIdentities(context.Background()).IdentitiesAccountsBulkRequest(identitiesAccountsBulkRequest).Execute() - //resp, r, err := apiClient.Beta.AccountsAPI.EnableAccountsForIdentities(context.Background()).IdentitiesAccountsBulkRequest(identitiesAccountsBulkRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.EnableAccountsForIdentities``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `EnableAccountsForIdentities`: []BulkIdentitiesAccountsResponse - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.EnableAccountsForIdentities`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccountsAPI.EnableAccountsForIdentities(context.Background()).IdentitiesAccountsBulkRequest(identitiesAccountsBulkRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.EnableAccountsForIdentities``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `EnableAccountsForIdentities`: []BulkIdentitiesAccountsResponse + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.EnableAccountsForIdentities`: %v\n", resp) } ``` @@ -787,7 +782,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -795,18 +790,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.GetAccount(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.AccountsAPI.GetAccount(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.GetAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccount`: Account - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.GetAccount`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccountsAPI.GetAccount(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.GetAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccount`: Account + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.GetAccount`: %v\n", resp) } ``` @@ -860,7 +855,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -871,18 +866,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.GetAccountEntitlements(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.AccountsAPI.GetAccountEntitlements(context.Background(), id).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.GetAccountEntitlements``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccountEntitlements`: []Entitlement - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.GetAccountEntitlements`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccountsAPI.GetAccountEntitlements(context.Background(), id).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.GetAccountEntitlements``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccountEntitlements`: []Entitlement + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.GetAccountEntitlements`: %v\n", resp) } ``` @@ -933,7 +928,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -946,18 +941,18 @@ func main() { filters := `identityId eq "2c9180858082150f0180893dbaf44201"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in, sw* **identityId**: *eq, in, sw* **name**: *eq, in, sw* **nativeIdentity**: *eq, in, sw* **sourceId**: *eq, in, sw* **uncorrelated**: *eq* **entitlements**: *eq* **origin**: *eq, in* **manuallyCorrelated**: *eq* **hasEntitlements**: *eq* **identity.name**: *eq, in, sw* **identity.correlated**: *eq* **identity.identityState**: *eq, in* **source.displayableName**: *eq, in* **source.authoritative**: *eq* **source.connectionType**: *eq, in* **recommendation.method**: *eq, in, isnull* **created**: *eq, ge, gt, le* **modified**: *eq, ge, gt, le, lt* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in, sw* **identityId**: *eq, in, sw* **name**: *eq, in, sw* **nativeIdentity**: *eq, in, sw* **sourceId**: *eq, in, sw* **uncorrelated**: *eq* **entitlements**: *eq* **origin**: *eq, in* **manuallyCorrelated**: *eq* **hasEntitlements**: *eq* **identity.name**: *eq, in, sw* **identity.correlated**: *eq* **identity.identityState**: *eq, in* **source.displayableName**: *eq, in* **source.authoritative**: *eq* **source.connectionType**: *eq, in* **recommendation.method**: *eq, in, isnull* **created**: *eq, ge, gt, le* **modified**: *eq, ge, gt, le, lt* (optional) sorters := `id,name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, sourceId, identityId, nativeIdentity, uuid, manuallyCorrelated, hasEntitlements, entitlements, origin, identity.name, identity.identityState, identity.correlated, source.displayableName, source.authoritative, source.connectionType, sourceOwner.name** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, sourceId, identityId, nativeIdentity, uuid, manuallyCorrelated, hasEntitlements, entitlements, origin, identity.name, identity.identityState, identity.correlated, source.displayableName, source.authoritative, source.connectionType, sourceOwner.name** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.ListAccounts(context.Background()).Execute() - //resp, r, err := apiClient.Beta.AccountsAPI.ListAccounts(context.Background()).DetailLevel(detailLevel).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.ListAccounts``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAccounts`: []Account - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.ListAccounts`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccountsAPI.ListAccounts(context.Background()).DetailLevel(detailLevel).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.ListAccounts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAccounts`: []Account + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.ListAccounts`: %v\n", resp) } ``` @@ -1015,7 +1010,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1032,24 +1027,23 @@ func main() { } }`) // AccountAttributes | - - var accountAttributes beta.AccountAttributes - if err := json.Unmarshal(accountattributes, &accountAttributes); err != nil { - fmt.Println("Error:", err) - return - } - + var accountAttributes beta.AccountAttributes + if err := json.Unmarshal(accountattributes, &accountAttributes); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.PutAccount(context.Background(), id).AccountAttributes(accountAttributes).Execute() - //resp, r, err := apiClient.Beta.AccountsAPI.PutAccount(context.Background(), id).AccountAttributes(accountAttributes).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.PutAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutAccount`: AccountsAsyncResult - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.PutAccount`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccountsAPI.PutAccount(context.Background(), id).AccountAttributes(accountAttributes).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.PutAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutAccount`: AccountsAsyncResult + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.PutAccount`: %v\n", resp) } ``` @@ -1100,7 +1094,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1108,18 +1102,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The account id # string | The account id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.SubmitReloadAccount(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.AccountsAPI.SubmitReloadAccount(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.SubmitReloadAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SubmitReloadAccount`: AccountsAsyncResult - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.SubmitReloadAccount`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccountsAPI.SubmitReloadAccount(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.SubmitReloadAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SubmitReloadAccount`: AccountsAsyncResult + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.SubmitReloadAccount`: %v\n", resp) } ``` @@ -1172,7 +1166,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1185,24 +1179,23 @@ func main() { "unlockIDNAccount" : false }`) // AccountUnlockRequest | - - var accountUnlockRequest beta.AccountUnlockRequest - if err := json.Unmarshal(accountunlockrequest, &accountUnlockRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var accountUnlockRequest beta.AccountUnlockRequest + if err := json.Unmarshal(accountunlockrequest, &accountUnlockRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.UnlockAccount(context.Background(), id).AccountUnlockRequest(accountUnlockRequest).Execute() - //resp, r, err := apiClient.Beta.AccountsAPI.UnlockAccount(context.Background(), id).AccountUnlockRequest(accountUnlockRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.UnlockAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UnlockAccount`: AccountsAsyncResult - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.UnlockAccount`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccountsAPI.UnlockAccount(context.Background(), id).AccountUnlockRequest(accountUnlockRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.UnlockAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UnlockAccount`: AccountsAsyncResult + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.UnlockAccount`: %v\n", resp) } ``` @@ -1264,7 +1257,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1273,24 +1266,23 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. requestbody := []byte(`{Uncorrelate account={description=Remove account from Identity, value=[{op=remove, path=/identityId}]}, Reassign account={description=Move account from one Identity to another Identity, value=[{op=replace, path=/identityId, value=2c9180857725c14301772a93bb77242d}]}, Add account attribute={description=Add flat file account's attribute, value=[{op=add, path=/attributes/familyName, value=Smith}]}, Replace account attribute={description=Replace flat file account's attribute, value=[{op=replace, path=/attributes/familyName, value=Smith}]}, Remove account attribute={description=Remove flat file account's attribute, value=[{op=remove, path=/attributes/familyName}]}}`) // []map[string]interface{} | A list of account update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - - var requestBody beta.[]RequestBody - if err := json.Unmarshal(requestbody, &requestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var requestBody []beta.RequestBody + if err := json.Unmarshal(requestbody, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.UpdateAccount(context.Background(), id).RequestBody(requestBody).Execute() - //resp, r, err := apiClient.Beta.AccountsAPI.UpdateAccount(context.Background(), id).RequestBody(requestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.UpdateAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateAccount`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.UpdateAccount`: %v\n", resp) + //resp, r, err := apiClient.Beta.AccountsAPI.UpdateAccount(context.Background(), id).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.UpdateAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateAccount`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.UpdateAccount`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/ApplicationDiscoveryAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/ApplicationDiscoveryAPI.md index 25bae8f2f..0974e1554 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/ApplicationDiscoveryAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/ApplicationDiscoveryAPI.md @@ -66,7 +66,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -74,16 +74,17 @@ import ( func main() { id := `123e4567-e89b-12d3-a456-426655440000` // string | Discovered application's ID. # string | Discovered application's ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.ApplicationDiscoveryAPI.GetDiscoveredApplicationByID(context.Background(), id).Execute() - //r, err := apiClient.Beta.ApplicationDiscoveryAPI.GetDiscoveredApplicationByID(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ApplicationDiscoveryAPI.GetDiscoveredApplicationByID``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.ApplicationDiscoveryAPI.GetDiscoveredApplicationByID(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApplicationDiscoveryAPI.GetDiscoveredApplicationByID``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -131,7 +132,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -143,18 +144,18 @@ func main() { filter := `name eq "Okta" and description co "Okta" and discoverySource in ("csv", "Okta Saas")` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *eq, sw, co* **description**: *eq, sw, co* **createdAtStart**: *eq, le, ge* **createdAtEnd**: *eq, le, ge* **discoveredAtStart**: *eq, le, ge* **discoveredAtEnd**: *eq, le, ge* **discoverySource**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *eq, sw, co* **description**: *eq, sw, co* **createdAtStart**: *eq, le, ge* **createdAtEnd**: *eq, le, ge* **discoveredAtStart**: *eq, le, ge* **discoveredAtEnd**: *eq, le, ge* **discoverySource**: *eq, in* (optional) sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, description, discoveredAt, discoverySource** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, description, discoveredAt, discoverySource** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ApplicationDiscoveryAPI.GetDiscoveredApplications(context.Background()).Execute() - //resp, r, err := apiClient.Beta.ApplicationDiscoveryAPI.GetDiscoveredApplications(context.Background()).Limit(limit).Offset(offset).Detail(detail).Filter(filter).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ApplicationDiscoveryAPI.GetDiscoveredApplications``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetDiscoveredApplications`: []GetDiscoveredApplications200ResponseInner - fmt.Fprintf(os.Stdout, "Response from `ApplicationDiscoveryAPI.GetDiscoveredApplications`: %v\n", resp) + //resp, r, err := apiClient.Beta.ApplicationDiscoveryAPI.GetDiscoveredApplications(context.Background()).Limit(limit).Offset(offset).Detail(detail).Filter(filter).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApplicationDiscoveryAPI.GetDiscoveredApplications``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDiscoveredApplications`: []GetDiscoveredApplications200ResponseInner + fmt.Fprintf(os.Stdout, "Response from `ApplicationDiscoveryAPI.GetDiscoveredApplications`: %v\n", resp) } ``` @@ -196,25 +197,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() - //resp, r, err := apiClient.Beta.ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetManualDiscoverApplicationsCsvTemplate`: ManualDiscoverApplicationsTemplate - fmt.Fprintf(os.Stdout, "Response from `ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate`: %v\n", resp) + //resp, r, err := apiClient.Beta.ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetManualDiscoverApplicationsCsvTemplate`: ManualDiscoverApplicationsTemplate + fmt.Fprintf(os.Stdout, "Response from `ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate`: %v\n", resp) } ``` @@ -263,7 +264,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -272,16 +273,17 @@ func main() { id := `123e4567-e89b-12d3-a456-426655440000` // string | Discovered application's ID. # string | Discovered application's ID. jsonpatchoperations := []byte(`[{op=replace, path=/dismissed, value=true}]`) // []JsonPatchOperations | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.ApplicationDiscoveryAPI.PatchDiscoveredApplicationByID(context.Background(), id).Execute() - //r, err := apiClient.Beta.ApplicationDiscoveryAPI.PatchDiscoveredApplicationByID(context.Background(), id).JsonPatchOperations(jsonPatchOperations).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ApplicationDiscoveryAPI.PatchDiscoveredApplicationByID``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.ApplicationDiscoveryAPI.PatchDiscoveredApplicationByID(context.Background(), id).JsonPatchOperations(jsonPatchOperations).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApplicationDiscoveryAPI.PatchDiscoveredApplicationByID``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -325,7 +327,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -333,16 +335,17 @@ import ( func main() { file := BINARY_DATA_HERE // *os.File | The CSV file to upload containing `application_name` and `description` columns. Each row represents an application to be discovered. # *os.File | The CSV file to upload containing `application_name` and `description` columns. Each row represents an application to be discovered. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate(context.Background()).File(file).Execute() - //r, err := apiClient.Beta.ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate(context.Background()).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate(context.Background()).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/ApprovalsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/ApprovalsAPI.md index f88691beb..267a2cd58 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/ApprovalsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/ApprovalsAPI.md @@ -63,7 +63,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -71,18 +71,18 @@ import ( func main() { id := `38453251-6be2-5f8f-df93-5ce19e295837` // string | ID of the approval that to be returned. # string | ID of the approval that to be returned. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ApprovalsAPI.GetApproval(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.ApprovalsAPI.GetApproval(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ApprovalsAPI.GetApproval``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetApproval`: Approval - fmt.Fprintf(os.Stdout, "Response from `ApprovalsAPI.GetApproval`: %v\n", resp) + //resp, r, err := apiClient.Beta.ApprovalsAPI.GetApproval(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApprovalsAPI.GetApproval``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetApproval`: Approval + fmt.Fprintf(os.Stdout, "Response from `ApprovalsAPI.GetApproval`: %v\n", resp) } ``` @@ -128,7 +128,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -138,18 +138,18 @@ func main() { requesterId := `17e633e7d57e481569df76323169deb6a` // string | Returns the list of approvals for a given requester ID. (optional) # string | Returns the list of approvals for a given requester ID. (optional) filters := `filters=status eq PENDING` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **status**: *eq* **referenceType**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **status**: *eq* **referenceType**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ApprovalsAPI.GetApprovals(context.Background()).Execute() - //resp, r, err := apiClient.Beta.ApprovalsAPI.GetApprovals(context.Background()).Mine(mine).RequesterId(requesterId).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ApprovalsAPI.GetApprovals``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetApprovals`: []Approval - fmt.Fprintf(os.Stdout, "Response from `ApprovalsAPI.GetApprovals`: %v\n", resp) + //resp, r, err := apiClient.Beta.ApprovalsAPI.GetApprovals(context.Background()).Mine(mine).RequesterId(requesterId).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApprovalsAPI.GetApprovals``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetApprovals`: []Approval + fmt.Fprintf(os.Stdout, "Response from `ApprovalsAPI.GetApprovals`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/AppsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/AppsAPI.md index 18021abde..6aa57225c 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/AppsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/AppsAPI.md @@ -70,7 +70,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -87,24 +87,23 @@ func main() { "matchAllAccounts" : true }`) // SourceAppCreateDto | - - var sourceAppCreateDto beta.SourceAppCreateDto - if err := json.Unmarshal(sourceappcreatedto, &sourceAppCreateDto); err != nil { - fmt.Println("Error:", err) - return - } - + var sourceAppCreateDto beta.SourceAppCreateDto + if err := json.Unmarshal(sourceappcreatedto, &sourceAppCreateDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AppsAPI.CreateSourceApp(context.Background()).SourceAppCreateDto(sourceAppCreateDto).Execute() - //resp, r, err := apiClient.Beta.AppsAPI.CreateSourceApp(context.Background()).SourceAppCreateDto(sourceAppCreateDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.CreateSourceApp``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSourceApp`: SourceApp - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.CreateSourceApp`: %v\n", resp) + //resp, r, err := apiClient.Beta.AppsAPI.CreateSourceApp(context.Background()).SourceAppCreateDto(sourceAppCreateDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.CreateSourceApp``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSourceApp`: SourceApp + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.CreateSourceApp`: %v\n", resp) } ``` @@ -153,7 +152,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -163,24 +162,23 @@ func main() { requestbody := []byte(``) // []string | limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - - var requestBody beta.[]RequestBody - if err := json.Unmarshal(requestbody, &requestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var requestBody []beta.RequestBody + if err := json.Unmarshal(requestbody, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AppsAPI.DeleteAccessProfilesFromSourceAppByBulk(context.Background(), id).RequestBody(requestBody).Execute() - //resp, r, err := apiClient.Beta.AppsAPI.DeleteAccessProfilesFromSourceAppByBulk(context.Background(), id).RequestBody(requestBody).Limit(limit).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.DeleteAccessProfilesFromSourceAppByBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteAccessProfilesFromSourceAppByBulk`: []AccessProfileDetails - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.DeleteAccessProfilesFromSourceAppByBulk`: %v\n", resp) + //resp, r, err := apiClient.Beta.AppsAPI.DeleteAccessProfilesFromSourceAppByBulk(context.Background(), id).RequestBody(requestBody).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.DeleteAccessProfilesFromSourceAppByBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteAccessProfilesFromSourceAppByBulk`: []AccessProfileDetails + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.DeleteAccessProfilesFromSourceAppByBulk`: %v\n", resp) } ``` @@ -227,7 +225,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -235,18 +233,18 @@ import ( func main() { id := `2c9180835d191a86015d28455b4a2329` // string | source app ID. # string | source app ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AppsAPI.DeleteSourceApp(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.AppsAPI.DeleteSourceApp(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.DeleteSourceApp``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteSourceApp`: SourceApp - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.DeleteSourceApp`: %v\n", resp) + //resp, r, err := apiClient.Beta.AppsAPI.DeleteSourceApp(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.DeleteSourceApp``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteSourceApp`: SourceApp + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.DeleteSourceApp`: %v\n", resp) } ``` @@ -293,7 +291,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -301,18 +299,18 @@ import ( func main() { id := `2c91808a7813090a017814121e121518` // string | ID of the source app # string | ID of the source app - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AppsAPI.GetSourceApp(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.AppsAPI.GetSourceApp(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.GetSourceApp``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSourceApp`: SourceApp - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.GetSourceApp`: %v\n", resp) + //resp, r, err := apiClient.Beta.AppsAPI.GetSourceApp(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.GetSourceApp``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSourceApp`: SourceApp + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.GetSourceApp`: %v\n", resp) } ``` @@ -362,7 +360,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -373,18 +371,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) filters := `name eq "developer access profile"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AppsAPI.ListAccessProfilesForSourceApp(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.AppsAPI.ListAccessProfilesForSourceApp(context.Background(), id).Limit(limit).Offset(offset).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListAccessProfilesForSourceApp``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAccessProfilesForSourceApp`: []AccessProfileDetails - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListAccessProfilesForSourceApp`: %v\n", resp) + //resp, r, err := apiClient.Beta.AppsAPI.ListAccessProfilesForSourceApp(context.Background(), id).Limit(limit).Offset(offset).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListAccessProfilesForSourceApp``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAccessProfilesForSourceApp`: []AccessProfileDetails + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListAccessProfilesForSourceApp`: %v\n", resp) } ``` @@ -433,7 +431,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -445,18 +443,18 @@ func main() { sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, owner.id, accountSource.id** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, owner.id, accountSource.id** (optional) filters := `enabled eq true` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **accountSource.id**: *eq, in* **enabled**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **accountSource.id**: *eq, in* **enabled**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AppsAPI.ListAllSourceApp(context.Background()).Execute() - //resp, r, err := apiClient.Beta.AppsAPI.ListAllSourceApp(context.Background()).Limit(limit).Count(count).Offset(offset).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListAllSourceApp``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAllSourceApp`: []SourceApp - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListAllSourceApp`: %v\n", resp) + //resp, r, err := apiClient.Beta.AppsAPI.ListAllSourceApp(context.Background()).Limit(limit).Count(count).Offset(offset).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListAllSourceApp``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAllSourceApp`: []SourceApp + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListAllSourceApp`: %v\n", resp) } ``` @@ -503,7 +501,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -514,18 +512,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AppsAPI.ListAllUserApps(context.Background()).Filters(filters).Execute() - //resp, r, err := apiClient.Beta.AppsAPI.ListAllUserApps(context.Background()).Filters(filters).Limit(limit).Count(count).Offset(offset).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListAllUserApps``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAllUserApps`: []UserApp - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListAllUserApps`: %v\n", resp) + //resp, r, err := apiClient.Beta.AppsAPI.ListAllUserApps(context.Background()).Filters(filters).Limit(limit).Count(count).Offset(offset).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListAllUserApps``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAllUserApps`: []UserApp + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListAllUserApps`: %v\n", resp) } ``` @@ -572,7 +570,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -584,18 +582,18 @@ func main() { sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, accountSource.id** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, accountSource.id** (optional) filters := `name eq "source app name"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **accountSource.id**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **accountSource.id**: *eq, in* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AppsAPI.ListAssignedSourceApp(context.Background()).Execute() - //resp, r, err := apiClient.Beta.AppsAPI.ListAssignedSourceApp(context.Background()).Limit(limit).Count(count).Offset(offset).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListAssignedSourceApp``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAssignedSourceApp`: []SourceApp - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListAssignedSourceApp`: %v\n", resp) + //resp, r, err := apiClient.Beta.AppsAPI.ListAssignedSourceApp(context.Background()).Limit(limit).Count(count).Offset(offset).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListAssignedSourceApp``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAssignedSourceApp`: []SourceApp + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListAssignedSourceApp`: %v\n", resp) } ``` @@ -645,7 +643,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -656,18 +654,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AppsAPI.ListAvailableAccountsForUserApp(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.AppsAPI.ListAvailableAccountsForUserApp(context.Background(), id).Limit(limit).Count(count).Offset(offset).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListAvailableAccountsForUserApp``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAvailableAccountsForUserApp`: []AppAccountDetails - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListAvailableAccountsForUserApp`: %v\n", resp) + //resp, r, err := apiClient.Beta.AppsAPI.ListAvailableAccountsForUserApp(context.Background(), id).Limit(limit).Count(count).Offset(offset).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListAvailableAccountsForUserApp``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAvailableAccountsForUserApp`: []AppAccountDetails + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListAvailableAccountsForUserApp`: %v\n", resp) } ``` @@ -714,7 +712,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -726,18 +724,18 @@ func main() { sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, owner.id, accountSource.id** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, owner.id, accountSource.id** (optional) filters := `name eq "source app name"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **accountSource.id**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **accountSource.id**: *eq, in* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AppsAPI.ListAvailableSourceApps(context.Background()).Execute() - //resp, r, err := apiClient.Beta.AppsAPI.ListAvailableSourceApps(context.Background()).Limit(limit).Count(count).Offset(offset).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListAvailableSourceApps``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAvailableSourceApps`: []SourceApp - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListAvailableSourceApps`: %v\n", resp) + //resp, r, err := apiClient.Beta.AppsAPI.ListAvailableSourceApps(context.Background()).Limit(limit).Count(count).Offset(offset).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListAvailableSourceApps``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAvailableSourceApps`: []SourceApp + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListAvailableSourceApps`: %v\n", resp) } ``` @@ -783,7 +781,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -794,18 +792,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) filters := `name eq "user app name"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AppsAPI.ListOwnedUserApps(context.Background()).Execute() - //resp, r, err := apiClient.Beta.AppsAPI.ListOwnedUserApps(context.Background()).Limit(limit).Count(count).Offset(offset).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListOwnedUserApps``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListOwnedUserApps`: []UserApp - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListOwnedUserApps`: %v\n", resp) + //resp, r, err := apiClient.Beta.AppsAPI.ListOwnedUserApps(context.Background()).Limit(limit).Count(count).Offset(offset).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListOwnedUserApps``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListOwnedUserApps`: []UserApp + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListOwnedUserApps`: %v\n", resp) } ``` @@ -855,7 +853,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -864,18 +862,18 @@ func main() { id := `2c91808a7813090a017814121e121518` // string | ID of the source app to patch # string | ID of the source app to patch jsonpatchoperation := []byte(`[{op=replace, path=/enabled, value=true}, {op=replace, path=/matchAllAccounts, value=true}]`) // []JsonPatchOperation | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AppsAPI.PatchSourceApp(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.AppsAPI.PatchSourceApp(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.PatchSourceApp``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchSourceApp`: SourceAppPatchDto - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.PatchSourceApp`: %v\n", resp) + //resp, r, err := apiClient.Beta.AppsAPI.PatchSourceApp(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.PatchSourceApp``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchSourceApp`: SourceAppPatchDto + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.PatchSourceApp`: %v\n", resp) } ``` @@ -924,7 +922,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -933,18 +931,18 @@ func main() { id := `2c91808a7813090a017814121e121518` // string | ID of the user app to patch # string | ID of the user app to patch jsonpatchoperation := []byte(``) // []JsonPatchOperation | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AppsAPI.PatchUserApp(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.AppsAPI.PatchUserApp(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.PatchUserApp``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchUserApp`: UserApp - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.PatchUserApp`: %v\n", resp) + //resp, r, err := apiClient.Beta.AppsAPI.PatchUserApp(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.PatchUserApp``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchUserApp`: UserApp + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.PatchUserApp`: %v\n", resp) } ``` @@ -989,7 +987,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1008,16 +1006,17 @@ func main() { } ] }`) // SourceAppBulkUpdateRequest | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.AppsAPI.UpdateSourceAppsInBulk(context.Background()).Execute() - //r, err := apiClient.Beta.AppsAPI.UpdateSourceAppsInBulk(context.Background()).SourceAppBulkUpdateRequest(sourceAppBulkUpdateRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.UpdateSourceAppsInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.AppsAPI.UpdateSourceAppsInBulk(context.Background()).SourceAppBulkUpdateRequest(sourceAppBulkUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.UpdateSourceAppsInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/AuthProfileAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/AuthProfileAPI.md index 3fdd97559..a38c93ab5 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/AuthProfileAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/AuthProfileAPI.md @@ -67,7 +67,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -75,18 +75,18 @@ import ( func main() { id := `2c91808a7813090a017814121919ecca` // string | ID of the Auth Profile to get. # string | ID of the Auth Profile to get. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AuthProfileAPI.GetProfileConfig(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.AuthProfileAPI.GetProfileConfig(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AuthProfileAPI.GetProfileConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetProfileConfig`: AuthProfile - fmt.Fprintf(os.Stdout, "Response from `AuthProfileAPI.GetProfileConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.AuthProfileAPI.GetProfileConfig(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthProfileAPI.GetProfileConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetProfileConfig`: AuthProfile + fmt.Fprintf(os.Stdout, "Response from `AuthProfileAPI.GetProfileConfig`: %v\n", resp) } ``` @@ -125,25 +125,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AuthProfileAPI.GetProfileConfigList(context.Background()).Execute() - //resp, r, err := apiClient.Beta.AuthProfileAPI.GetProfileConfigList(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AuthProfileAPI.GetProfileConfigList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetProfileConfigList`: []AuthProfileSummary - fmt.Fprintf(os.Stdout, "Response from `AuthProfileAPI.GetProfileConfigList`: %v\n", resp) + //resp, r, err := apiClient.Beta.AuthProfileAPI.GetProfileConfigList(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthProfileAPI.GetProfileConfigList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetProfileConfigList`: []AuthProfileSummary + fmt.Fprintf(os.Stdout, "Response from `AuthProfileAPI.GetProfileConfigList`: %v\n", resp) } ``` @@ -192,7 +192,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -201,24 +201,23 @@ func main() { id := `2c91808a7813090a017814121919ecca` // string | ID of the Auth Profile to patch. # string | ID of the Auth Profile to patch. jsonpatchoperation := []byte(``) // []JsonPatchOperation | - - var jsonPatchOperation beta.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []beta.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AuthProfileAPI.PatchProfileConfig(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.Beta.AuthProfileAPI.PatchProfileConfig(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AuthProfileAPI.PatchProfileConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchProfileConfig`: AuthProfile - fmt.Fprintf(os.Stdout, "Response from `AuthProfileAPI.PatchProfileConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.AuthProfileAPI.PatchProfileConfig(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthProfileAPI.PatchProfileConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchProfileConfig`: AuthProfile + fmt.Fprintf(os.Stdout, "Response from `AuthProfileAPI.PatchProfileConfig`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/CertificationCampaignsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/CertificationCampaignsAPI.md index c854afc7d..fdd553c24 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/CertificationCampaignsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/CertificationCampaignsAPI.md @@ -161,7 +161,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -172,18 +172,18 @@ func main() { "autoCompleteAction" : "REVOKE" }`) // CompleteCampaignOptions | Optional. Default behavior is for the campaign to auto-approve upon completion, unless autoCompleteAction=REVOKE (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.CompleteCampaign(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.CompleteCampaign(context.Background(), id).CompleteCampaignOptions(completeCampaignOptions).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.CompleteCampaign``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CompleteCampaign`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.CompleteCampaign`: %v\n", resp) + //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.CompleteCampaign(context.Background(), id).CompleteCampaignOptions(completeCampaignOptions).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.CompleteCampaign``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CompleteCampaign`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.CompleteCampaign`: %v\n", resp) } ``` @@ -232,7 +232,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -348,24 +348,23 @@ func main() { "correlatedStatus" : "CORRELATED" }`) // Campaign | - - var campaign beta.Campaign - if err := json.Unmarshal(campaign, &campaign); err != nil { - fmt.Println("Error:", err) - return - } - + var campaign beta.Campaign + if err := json.Unmarshal(campaign, &campaign); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.CreateCampaign(context.Background()).Campaign(campaign).Execute() - //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.CreateCampaign(context.Background()).Campaign(campaign).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.CreateCampaign``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateCampaign`: Campaign - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.CreateCampaign`: %v\n", resp) + //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.CreateCampaign(context.Background()).Campaign(campaign).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.CreateCampaign``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCampaign`: Campaign + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.CreateCampaign`: %v\n", resp) } ``` @@ -414,7 +413,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -546,24 +545,23 @@ func main() { "id" : "2c9079b270a266a60170a277bb960008" }`) // CampaignTemplate | - - var campaignTemplate beta.CampaignTemplate - if err := json.Unmarshal(campaigntemplate, &campaignTemplate); err != nil { - fmt.Println("Error:", err) - return - } - + var campaignTemplate beta.CampaignTemplate + if err := json.Unmarshal(campaigntemplate, &campaignTemplate); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.CreateCampaignTemplate(context.Background()).CampaignTemplate(campaignTemplate).Execute() - //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.CreateCampaignTemplate(context.Background()).CampaignTemplate(campaignTemplate).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.CreateCampaignTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateCampaignTemplate`: CampaignTemplate - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.CreateCampaignTemplate`: %v\n", resp) + //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.CreateCampaignTemplate(context.Background()).CampaignTemplate(campaignTemplate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.CreateCampaignTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCampaignTemplate`: CampaignTemplate + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.CreateCampaignTemplate`: %v\n", resp) } ``` @@ -616,7 +614,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -624,16 +622,17 @@ import ( func main() { id := `2c9180835d191a86015d28455b4a2329` // string | ID of the campaign template being deleted. # string | ID of the campaign template being deleted. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.CertificationCampaignsAPI.DeleteCampaignTemplate(context.Background(), id).Execute() - //r, err := apiClient.Beta.CertificationCampaignsAPI.DeleteCampaignTemplate(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.DeleteCampaignTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.CertificationCampaignsAPI.DeleteCampaignTemplate(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.DeleteCampaignTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -686,7 +685,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -694,16 +693,17 @@ import ( func main() { id := `04bedce387bd47b2ae1f86eb0bb36dee` // string | ID of the campaign template whose schedule is being deleted. # string | ID of the campaign template whose schedule is being deleted. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.CertificationCampaignsAPI.DeleteCampaignTemplateSchedule(context.Background(), id).Execute() - //r, err := apiClient.Beta.CertificationCampaignsAPI.DeleteCampaignTemplateSchedule(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.DeleteCampaignTemplateSchedule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.CertificationCampaignsAPI.DeleteCampaignTemplateSchedule(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.DeleteCampaignTemplateSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -752,7 +752,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -762,24 +762,23 @@ func main() { "ids" : [ "2c9180887335cee10173490db1776c26", "2c9180836a712436016a7125a90c0021" ] }`) // DeleteCampaignsRequest | IDs of the campaigns to delete. - - var deleteCampaignsRequest beta.DeleteCampaignsRequest - if err := json.Unmarshal(deletecampaignsrequest, &deleteCampaignsRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var deleteCampaignsRequest beta.DeleteCampaignsRequest + if err := json.Unmarshal(deletecampaignsrequest, &deleteCampaignsRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.DeleteCampaigns(context.Background()).DeleteCampaignsRequest(deleteCampaignsRequest).Execute() - //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.DeleteCampaigns(context.Background()).DeleteCampaignsRequest(deleteCampaignsRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.DeleteCampaigns``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteCampaigns`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.DeleteCampaigns`: %v\n", resp) + //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.DeleteCampaigns(context.Background()).DeleteCampaignsRequest(deleteCampaignsRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.DeleteCampaigns``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCampaigns`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.DeleteCampaigns`: %v\n", resp) } ``` @@ -833,7 +832,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -846,18 +845,18 @@ func main() { filters := `name eq "Manager Campaign"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **status**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **status**: *eq, in* (optional) sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetActiveCampaigns(context.Background()).Execute() - //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetActiveCampaigns(context.Background()).Detail(detail).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetActiveCampaigns``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetActiveCampaigns`: []GetActiveCampaigns200ResponseInner - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetActiveCampaigns`: %v\n", resp) + //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetActiveCampaigns(context.Background()).Detail(detail).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetActiveCampaigns``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetActiveCampaigns`: []GetActiveCampaigns200ResponseInner + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetActiveCampaigns`: %v\n", resp) } ``` @@ -910,7 +909,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -918,18 +917,18 @@ import ( func main() { id := `2c91808571bcfcf80171c23e4b4221fc` // string | ID of the campaign to be retrieved. # string | ID of the campaign to be retrieved. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaign(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaign(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaign``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCampaign`: Slimcampaign - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaign`: %v\n", resp) + //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaign(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaign``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCampaign`: Slimcampaign + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaign`: %v\n", resp) } ``` @@ -982,7 +981,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -990,18 +989,18 @@ import ( func main() { id := `2c91808571bcfcf80171c23e4b4221fc` // string | ID of the campaign whose reports are being fetched. # string | ID of the campaign whose reports are being fetched. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaignReports(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaignReports(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignReports``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCampaignReports`: []CampaignReport - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignReports`: %v\n", resp) + //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaignReports(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignReports``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCampaignReports`: []CampaignReport + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignReports`: %v\n", resp) } ``` @@ -1046,25 +1045,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaignReportsConfig(context.Background()).Execute() - //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaignReportsConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignReportsConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCampaignReportsConfig`: CampaignReportsConfig - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignReportsConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaignReportsConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignReportsConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCampaignReportsConfig`: CampaignReportsConfig + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignReportsConfig`: %v\n", resp) } ``` @@ -1117,7 +1116,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1125,18 +1124,18 @@ import ( func main() { id := `2c9180835d191a86015d28455b4a2329` // string | Requested campaign template's ID. # string | Requested campaign template's ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaignTemplate(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaignTemplate(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCampaignTemplate`: CampaignTemplate - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignTemplate`: %v\n", resp) + //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaignTemplate(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCampaignTemplate`: CampaignTemplate + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignTemplate`: %v\n", resp) } ``` @@ -1189,7 +1188,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1197,18 +1196,18 @@ import ( func main() { id := `04bedce387bd47b2ae1f86eb0bb36dee` // string | ID of the campaign template whose schedule is being fetched. # string | ID of the campaign template whose schedule is being fetched. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaignTemplateSchedule(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaignTemplateSchedule(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignTemplateSchedule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCampaignTemplateSchedule`: Schedule - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignTemplateSchedule`: %v\n", resp) + //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaignTemplateSchedule(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignTemplateSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCampaignTemplateSchedule`: Schedule + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignTemplateSchedule`: %v\n", resp) } ``` @@ -1263,7 +1262,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1275,18 +1274,18 @@ func main() { sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, modified** (optional) filters := `name eq "manager template"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *eq, ge, gt, in, le, lt, ne, sw* **id**: *eq, ge, gt, in, le, lt, ne, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *eq, ge, gt, in, le, lt, ne, sw* **id**: *eq, ge, gt, in, le, lt, ne, sw* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaignTemplates(context.Background()).Execute() - //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaignTemplates(context.Background()).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignTemplates``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCampaignTemplates`: []CampaignTemplate - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignTemplates`: %v\n", resp) + //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaignTemplates(context.Background()).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignTemplates``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCampaignTemplates`: []CampaignTemplate + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignTemplates`: %v\n", resp) } ``` @@ -1340,7 +1339,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1356,24 +1355,23 @@ func main() { } }`) // AdminReviewReassign | - - var adminReviewReassign beta.AdminReviewReassign - if err := json.Unmarshal(adminreviewreassign, &adminReviewReassign); err != nil { - fmt.Println("Error:", err) - return - } - + var adminReviewReassign beta.AdminReviewReassign + if err := json.Unmarshal(adminreviewreassign, &adminReviewReassign); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.Move(context.Background(), id).AdminReviewReassign(adminReviewReassign).Execute() - //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.Move(context.Background(), id).AdminReviewReassign(adminReviewReassign).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.Move``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `Move`: CertificationTask - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.Move`: %v\n", resp) + //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.Move(context.Background(), id).AdminReviewReassign(adminReviewReassign).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.Move``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `Move`: CertificationTask + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.Move`: %v\n", resp) } ``` @@ -1427,7 +1425,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1436,24 +1434,23 @@ func main() { id := `2c9180835d191a86015d28455b4a2329` // string | ID of the campaign template being modified. # string | ID of the campaign template being modified. jsonpatchoperation := []byte(`[{op=replace, path=/description, value=Updated description!}, {op=replace, path=/campaign/filter/id, value=ff80818155fe8c080155fe8d925b0316}]`) // []JsonPatchOperation | A list of campaign update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * deadlineDuration * campaign (all fields that are allowed during create) - - var jsonPatchOperation beta.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []beta.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.PatchCampaignTemplate(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.PatchCampaignTemplate(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.PatchCampaignTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchCampaignTemplate`: CampaignTemplate - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.PatchCampaignTemplate`: %v\n", resp) + //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.PatchCampaignTemplate(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.PatchCampaignTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCampaignTemplate`: CampaignTemplate + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.PatchCampaignTemplate`: %v\n", resp) } ``` @@ -1502,7 +1499,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1512,24 +1509,23 @@ func main() { "identityAttributeColumns" : [ "firstname", "lastname" ] }`) // CampaignReportsConfig | Campaign report configuration. - - var campaignReportsConfig beta.CampaignReportsConfig - if err := json.Unmarshal(campaignreportsconfig, &campaignReportsConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var campaignReportsConfig beta.CampaignReportsConfig + if err := json.Unmarshal(campaignreportsconfig, &campaignReportsConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.SetCampaignReportsConfig(context.Background()).CampaignReportsConfig(campaignReportsConfig).Execute() - //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.SetCampaignReportsConfig(context.Background()).CampaignReportsConfig(campaignReportsConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.SetCampaignReportsConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetCampaignReportsConfig`: CampaignReportsConfig - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.SetCampaignReportsConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.SetCampaignReportsConfig(context.Background()).CampaignReportsConfig(campaignReportsConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.SetCampaignReportsConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetCampaignReportsConfig`: CampaignReportsConfig + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.SetCampaignReportsConfig`: %v\n", resp) } ``` @@ -1584,7 +1580,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1612,16 +1608,17 @@ func main() { "type" : "WEEKLY" }`) // Schedule | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.CertificationCampaignsAPI.SetCampaignTemplateSchedule(context.Background(), id).Execute() - //r, err := apiClient.Beta.CertificationCampaignsAPI.SetCampaignTemplateSchedule(context.Background(), id).Schedule(schedule).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.SetCampaignTemplateSchedule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.CertificationCampaignsAPI.SetCampaignTemplateSchedule(context.Background(), id).Schedule(schedule).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.SetCampaignTemplateSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -1675,7 +1672,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1686,18 +1683,18 @@ func main() { "timeZone" : "-05:00" }`) // ActivateCampaignOptions | Optional. If no timezone is specified, the standard UTC timezone is used (i.e. UTC+00:00). Although this can take any timezone, the intended value is the caller's timezone. The activation time calculated from the given timezone may cause the campaign deadline time to be modified, but it will remain within the original date. The timezone must be in a valid ISO 8601 format. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.StartCampaign(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.StartCampaign(context.Background(), id).ActivateCampaignOptions(activateCampaignOptions).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.StartCampaign``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartCampaign`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.StartCampaign`: %v\n", resp) + //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.StartCampaign(context.Background(), id).ActivateCampaignOptions(activateCampaignOptions).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.StartCampaign``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartCampaign`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.StartCampaign`: %v\n", resp) } ``` @@ -1750,7 +1747,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1758,18 +1755,18 @@ import ( func main() { id := `2c91808571bcfcf80171c23e4b4221fc` // string | ID of the campaign the remediation scan is being run for. # string | ID of the campaign the remediation scan is being run for. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.StartCampaignRemediationScan(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.StartCampaignRemediationScan(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.StartCampaignRemediationScan``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartCampaignRemediationScan`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.StartCampaignRemediationScan`: %v\n", resp) + //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.StartCampaignRemediationScan(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.StartCampaignRemediationScan``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartCampaignRemediationScan`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.StartCampaignRemediationScan`: %v\n", resp) } ``` @@ -1824,7 +1821,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1833,18 +1830,18 @@ func main() { id := `2c91808571bcfcf80171c23e4b4221fc` // string | ID of the campaign the report is being run for. # string | ID of the campaign the report is being run for. type_ := // ReportType | Type of report to run. # ReportType | Type of report to run. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.StartCampaignReport(context.Background(), id, type_).Execute() - //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.StartCampaignReport(context.Background(), id, type_).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.StartCampaignReport``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartCampaignReport`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.StartCampaignReport`: %v\n", resp) + //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.StartCampaignReport(context.Background(), id, type_).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.StartCampaignReport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartCampaignReport`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.StartCampaignReport`: %v\n", resp) } ``` @@ -1909,7 +1906,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1917,18 +1914,18 @@ import ( func main() { id := `2c9180835d191a86015d28455b4a2329` // string | ID of the campaign template to use for generation. # string | ID of the campaign template to use for generation. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.StartGenerateCampaignTemplate(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.StartGenerateCampaignTemplate(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.StartGenerateCampaignTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartGenerateCampaignTemplate`: CampaignReference - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.StartGenerateCampaignTemplate`: %v\n", resp) + //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.StartGenerateCampaignTemplate(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.StartGenerateCampaignTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartGenerateCampaignTemplate`: CampaignReference + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.StartGenerateCampaignTemplate`: %v\n", resp) } ``` @@ -1982,7 +1979,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1991,24 +1988,23 @@ func main() { id := `2c91808571bcfcf80171c23e4b4221fc` // string | ID of the campaign being modified. # string | ID of the campaign being modified. requestbody := []byte(`[{op=replace, path=/name, value=This field has been updated!}, {op=copy, from=/name, path=/description}]`) // []map[string]interface{} | A list of campaign update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The fields that can be patched differ based on the status of the campaign. When the campaign is in the *STAGED* status, you can patch these fields: * name * description * recommendationsEnabled * deadline * emailNotificationEnabled * autoRevokeAllowed When the campaign is in the *ACTIVE* status, you can patch these fields: * deadline - - var requestBody beta.[]RequestBody - if err := json.Unmarshal(requestbody, &requestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var requestBody []beta.RequestBody + if err := json.Unmarshal(requestbody, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.UpdateCampaign(context.Background(), id).RequestBody(requestBody).Execute() - //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.UpdateCampaign(context.Background(), id).RequestBody(requestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.UpdateCampaign``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateCampaign`: Slimcampaign - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.UpdateCampaign`: %v\n", resp) + //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.UpdateCampaign(context.Background(), id).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.UpdateCampaign``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateCampaign`: Slimcampaign + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.UpdateCampaign`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/CertificationsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/CertificationsAPI.md index 6fb5c2e02..e1ad56b9e 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/CertificationsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/CertificationsAPI.md @@ -88,7 +88,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -101,18 +101,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationsAPI.GetIdentityCertificationItemPermissions(context.Background(), certificationId, itemId).Execute() - //resp, r, err := apiClient.Beta.CertificationsAPI.GetIdentityCertificationItemPermissions(context.Background(), certificationId, itemId).Filters(filters).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.GetIdentityCertificationItemPermissions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentityCertificationItemPermissions`: []PermissionDto - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.GetIdentityCertificationItemPermissions`: %v\n", resp) + //resp, r, err := apiClient.Beta.CertificationsAPI.GetIdentityCertificationItemPermissions(context.Background(), certificationId, itemId).Filters(filters).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.GetIdentityCertificationItemPermissions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityCertificationItemPermissions`: []PermissionDto + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.GetIdentityCertificationItemPermissions`: %v\n", resp) } ``` @@ -159,7 +159,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -167,18 +167,18 @@ import ( func main() { id := `id_example` // string | The identity campaign certification ID # string | The identity campaign certification ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationsAPI.GetIdentityCertificationPendingTasks(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.CertificationsAPI.GetIdentityCertificationPendingTasks(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.GetIdentityCertificationPendingTasks``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentityCertificationPendingTasks`: []IdentityCertificationTask - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.GetIdentityCertificationPendingTasks`: %v\n", resp) + //resp, r, err := apiClient.Beta.CertificationsAPI.GetIdentityCertificationPendingTasks(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.GetIdentityCertificationPendingTasks``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityCertificationPendingTasks`: []IdentityCertificationTask + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.GetIdentityCertificationPendingTasks`: %v\n", resp) } ``` @@ -227,7 +227,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -236,18 +236,18 @@ func main() { id := `id_example` // string | The identity campaign certification ID # string | The identity campaign certification ID taskId := `taskId_example` // string | The certification task ID # string | The certification task ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationsAPI.GetIdentityCertificationTaskStatus(context.Background(), id, taskId).Execute() - //resp, r, err := apiClient.Beta.CertificationsAPI.GetIdentityCertificationTaskStatus(context.Background(), id, taskId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.GetIdentityCertificationTaskStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentityCertificationTaskStatus`: IdentityCertificationTask - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.GetIdentityCertificationTaskStatus`: %v\n", resp) + //resp, r, err := apiClient.Beta.CertificationsAPI.GetIdentityCertificationTaskStatus(context.Background(), id, taskId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.GetIdentityCertificationTaskStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityCertificationTaskStatus`: IdentityCertificationTask + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.GetIdentityCertificationTaskStatus`: %v\n", resp) } ``` @@ -302,7 +302,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -315,18 +315,18 @@ func main() { filters := `name eq "Bob"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **email**: *eq, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **email**: *eq, sw* (optional) sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, email** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, email** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationsAPI.ListCertificationReviewers(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.CertificationsAPI.ListCertificationReviewers(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.ListCertificationReviewers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListCertificationReviewers`: []IdentityReferenceWithNameAndEmail - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.ListCertificationReviewers`: %v\n", resp) + //resp, r, err := apiClient.Beta.CertificationsAPI.ListCertificationReviewers(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.ListCertificationReviewers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCertificationReviewers`: []IdentityReferenceWithNameAndEmail + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.ListCertificationReviewers`: %v\n", resp) } ``` @@ -374,7 +374,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -387,18 +387,18 @@ func main() { filters := `filters_example` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **phase**: *eq* **completed**: *eq, ne* **campaignRef.campaignType**: *eq, in* **campaignRef.id**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **phase**: *eq* **completed**: *eq, ne* **campaignRef.campaignType**: *eq, in* **campaignRef.id**: *eq, in* (optional) sorters := `sorters_example` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, due, signed** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, due, signed** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationsAPI.ListCertifications(context.Background()).Execute() - //resp, r, err := apiClient.Beta.CertificationsAPI.ListCertifications(context.Background()).ReviewerIdentitiy(reviewerIdentitiy).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.ListCertifications``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListCertifications`: []CertificationDto - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.ListCertifications`: %v\n", resp) + //resp, r, err := apiClient.Beta.CertificationsAPI.ListCertifications(context.Background()).ReviewerIdentitiy(reviewerIdentitiy).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.ListCertifications``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCertifications`: []CertificationDto + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.ListCertifications`: %v\n", resp) } ``` @@ -449,7 +449,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -468,24 +468,23 @@ func main() { } ] }`) // ReviewReassign | - - var reviewReassign beta.ReviewReassign - if err := json.Unmarshal(reviewreassign, &reviewReassign); err != nil { - fmt.Println("Error:", err) - return - } - + var reviewReassign beta.ReviewReassign + if err := json.Unmarshal(reviewreassign, &reviewReassign); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationsAPI.SubmitReassignCertsAsync(context.Background(), id).ReviewReassign(reviewReassign).Execute() - //resp, r, err := apiClient.Beta.CertificationsAPI.SubmitReassignCertsAsync(context.Background(), id).ReviewReassign(reviewReassign).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.SubmitReassignCertsAsync``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SubmitReassignCertsAsync`: IdentityCertificationTask - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.SubmitReassignCertsAsync`: %v\n", resp) + //resp, r, err := apiClient.Beta.CertificationsAPI.SubmitReassignCertsAsync(context.Background(), id).ReviewReassign(reviewReassign).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.SubmitReassignCertsAsync``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SubmitReassignCertsAsync`: IdentityCertificationTask + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.SubmitReassignCertsAsync`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/ConnectorRuleManagementAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/ConnectorRuleManagementAPI.md index 849a770de..6c53ab2b5 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/ConnectorRuleManagementAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/ConnectorRuleManagementAPI.md @@ -67,7 +67,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -100,24 +100,23 @@ func main() { "type" : "BuildMap" }`) // ConnectorRuleCreateRequest | The connector rule to create - - var connectorRuleCreateRequest beta.ConnectorRuleCreateRequest - if err := json.Unmarshal(connectorrulecreaterequest, &connectorRuleCreateRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var connectorRuleCreateRequest beta.ConnectorRuleCreateRequest + if err := json.Unmarshal(connectorrulecreaterequest, &connectorRuleCreateRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ConnectorRuleManagementAPI.CreateConnectorRule(context.Background()).ConnectorRuleCreateRequest(connectorRuleCreateRequest).Execute() - //resp, r, err := apiClient.Beta.ConnectorRuleManagementAPI.CreateConnectorRule(context.Background()).ConnectorRuleCreateRequest(connectorRuleCreateRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorRuleManagementAPI.CreateConnectorRule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateConnectorRule`: ConnectorRuleResponse - fmt.Fprintf(os.Stdout, "Response from `ConnectorRuleManagementAPI.CreateConnectorRule`: %v\n", resp) + //resp, r, err := apiClient.Beta.ConnectorRuleManagementAPI.CreateConnectorRule(context.Background()).ConnectorRuleCreateRequest(connectorRuleCreateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorRuleManagementAPI.CreateConnectorRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateConnectorRule`: ConnectorRuleResponse + fmt.Fprintf(os.Stdout, "Response from `ConnectorRuleManagementAPI.CreateConnectorRule`: %v\n", resp) } ``` @@ -165,7 +164,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -173,16 +172,17 @@ import ( func main() { id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | ID of the connector rule to delete # string | ID of the connector rule to delete - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.ConnectorRuleManagementAPI.DeleteConnectorRule(context.Background(), id).Execute() - //r, err := apiClient.Beta.ConnectorRuleManagementAPI.DeleteConnectorRule(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorRuleManagementAPI.DeleteConnectorRule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.ConnectorRuleManagementAPI.DeleteConnectorRule(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorRuleManagementAPI.DeleteConnectorRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -230,7 +230,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -238,18 +238,18 @@ import ( func main() { id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | ID of the connector rule to retrieve # string | ID of the connector rule to retrieve - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ConnectorRuleManagementAPI.GetConnectorRule(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.ConnectorRuleManagementAPI.GetConnectorRule(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorRuleManagementAPI.GetConnectorRule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetConnectorRule`: ConnectorRuleResponse - fmt.Fprintf(os.Stdout, "Response from `ConnectorRuleManagementAPI.GetConnectorRule`: %v\n", resp) + //resp, r, err := apiClient.Beta.ConnectorRuleManagementAPI.GetConnectorRule(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorRuleManagementAPI.GetConnectorRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnectorRule`: ConnectorRuleResponse + fmt.Fprintf(os.Stdout, "Response from `ConnectorRuleManagementAPI.GetConnectorRule`: %v\n", resp) } ``` @@ -289,25 +289,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ConnectorRuleManagementAPI.GetConnectorRuleList(context.Background()).Execute() - //resp, r, err := apiClient.Beta.ConnectorRuleManagementAPI.GetConnectorRuleList(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorRuleManagementAPI.GetConnectorRuleList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetConnectorRuleList`: []ConnectorRuleResponse - fmt.Fprintf(os.Stdout, "Response from `ConnectorRuleManagementAPI.GetConnectorRuleList`: %v\n", resp) + //resp, r, err := apiClient.Beta.ConnectorRuleManagementAPI.GetConnectorRuleList(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorRuleManagementAPI.GetConnectorRuleList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnectorRuleList`: []ConnectorRuleResponse + fmt.Fprintf(os.Stdout, "Response from `ConnectorRuleManagementAPI.GetConnectorRuleList`: %v\n", resp) } ``` @@ -356,7 +356,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -391,18 +391,18 @@ func main() { "type" : "BuildMap" }`) // ConnectorRuleUpdateRequest | The connector rule with updated data (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ConnectorRuleManagementAPI.UpdateConnectorRule(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.ConnectorRuleManagementAPI.UpdateConnectorRule(context.Background(), id).ConnectorRuleUpdateRequest(connectorRuleUpdateRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorRuleManagementAPI.UpdateConnectorRule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateConnectorRule`: ConnectorRuleResponse - fmt.Fprintf(os.Stdout, "Response from `ConnectorRuleManagementAPI.UpdateConnectorRule`: %v\n", resp) + //resp, r, err := apiClient.Beta.ConnectorRuleManagementAPI.UpdateConnectorRule(context.Background(), id).ConnectorRuleUpdateRequest(connectorRuleUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorRuleManagementAPI.UpdateConnectorRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateConnectorRule`: ConnectorRuleResponse + fmt.Fprintf(os.Stdout, "Response from `ConnectorRuleManagementAPI.UpdateConnectorRule`: %v\n", resp) } ``` @@ -446,7 +446,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -457,24 +457,23 @@ func main() { "script" : "return \"Mr. \" + firstName;" }`) // SourceCode | The code to validate - - var sourceCode beta.SourceCode - if err := json.Unmarshal(sourcecode, &sourceCode); err != nil { - fmt.Println("Error:", err) - return - } - + var sourceCode beta.SourceCode + if err := json.Unmarshal(sourcecode, &sourceCode); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ConnectorRuleManagementAPI.ValidateConnectorRule(context.Background()).SourceCode(sourceCode).Execute() - //resp, r, err := apiClient.Beta.ConnectorRuleManagementAPI.ValidateConnectorRule(context.Background()).SourceCode(sourceCode).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorRuleManagementAPI.ValidateConnectorRule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ValidateConnectorRule`: ConnectorRuleValidationResponse - fmt.Fprintf(os.Stdout, "Response from `ConnectorRuleManagementAPI.ValidateConnectorRule`: %v\n", resp) + //resp, r, err := apiClient.Beta.ConnectorRuleManagementAPI.ValidateConnectorRule(context.Background()).SourceCode(sourceCode).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorRuleManagementAPI.ValidateConnectorRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ValidateConnectorRule`: ConnectorRuleValidationResponse + fmt.Fprintf(os.Stdout, "Response from `ConnectorRuleManagementAPI.ValidateConnectorRule`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/ConnectorsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/ConnectorsAPI.md index c11d604af..7179ed298 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/ConnectorsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/ConnectorsAPI.md @@ -73,7 +73,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -85,18 +85,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) locale := `de` // string | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) # string | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ConnectorsAPI.GetConnectorList(context.Background()).Execute() - //resp, r, err := apiClient.Beta.ConnectorsAPI.GetConnectorList(context.Background()).Filters(filters).Limit(limit).Offset(offset).Count(count).Locale(locale).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.GetConnectorList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetConnectorList`: []V3ConnectorDto - fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.GetConnectorList`: %v\n", resp) + //resp, r, err := apiClient.Beta.ConnectorsAPI.GetConnectorList(context.Background()).Filters(filters).Limit(limit).Offset(offset).Count(count).Locale(locale).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.GetConnectorList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnectorList`: []V3ConnectorDto + fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.GetConnectorList`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/CustomFormsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/CustomFormsAPI.md index c5b7ef858..871d6bab3 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/CustomFormsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/CustomFormsAPI.md @@ -81,7 +81,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -199,18 +199,18 @@ func main() { } ] }`) // CreateFormDefinitionRequest | Body is the request payload to create form definition request (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.CreateFormDefinition(context.Background()).Execute() - //resp, r, err := apiClient.Beta.CustomFormsAPI.CreateFormDefinition(context.Background()).CreateFormDefinitionRequest(createFormDefinitionRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.CreateFormDefinition``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateFormDefinition`: FormDefinitionResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.CreateFormDefinition`: %v\n", resp) + //resp, r, err := apiClient.Beta.CustomFormsAPI.CreateFormDefinition(context.Background()).CreateFormDefinitionRequest(createFormDefinitionRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.CreateFormDefinition``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateFormDefinition`: FormDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.CreateFormDefinition`: %v\n", resp) } ``` @@ -253,7 +253,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -371,18 +371,18 @@ func main() { } ] }`) // CreateFormDefinitionRequest | Body is the request payload to create form definition request (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.CreateFormDefinitionByTemplate(context.Background()).Execute() - //resp, r, err := apiClient.Beta.CustomFormsAPI.CreateFormDefinitionByTemplate(context.Background()).CreateFormDefinitionRequest(createFormDefinitionRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.CreateFormDefinitionByTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateFormDefinitionByTemplate`: FormDefinitionResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.CreateFormDefinitionByTemplate`: %v\n", resp) + //resp, r, err := apiClient.Beta.CustomFormsAPI.CreateFormDefinitionByTemplate(context.Background()).CreateFormDefinitionRequest(createFormDefinitionRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.CreateFormDefinitionByTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateFormDefinitionByTemplate`: FormDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.CreateFormDefinitionByTemplate`: %v\n", resp) } ``` @@ -425,7 +425,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -441,18 +441,18 @@ func main() { "versionNumber" : 1 }`) // FormDefinitionDynamicSchemaRequest | Body is the request payload to create a form definition dynamic schema (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.CreateFormDefinitionDynamicSchema(context.Background()).Execute() - //resp, r, err := apiClient.Beta.CustomFormsAPI.CreateFormDefinitionDynamicSchema(context.Background()).Body(body).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.CreateFormDefinitionDynamicSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateFormDefinitionDynamicSchema`: FormDefinitionDynamicSchemaResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.CreateFormDefinitionDynamicSchema`: %v\n", resp) + //resp, r, err := apiClient.Beta.CustomFormsAPI.CreateFormDefinitionDynamicSchema(context.Background()).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.CreateFormDefinitionDynamicSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateFormDefinitionDynamicSchema`: FormDefinitionDynamicSchemaResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.CreateFormDefinitionDynamicSchema`: %v\n", resp) } ``` @@ -500,7 +500,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -509,18 +509,18 @@ func main() { formDefinitionID := `00000000-0000-0000-0000-000000000000` // string | FormDefinitionID String specifying FormDefinitionID # string | FormDefinitionID String specifying FormDefinitionID file := BINARY_DATA_HERE // *os.File | File specifying the multipart # *os.File | File specifying the multipart - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.CreateFormDefinitionFileRequest(context.Background(), formDefinitionID).File(file).Execute() - //resp, r, err := apiClient.Beta.CustomFormsAPI.CreateFormDefinitionFileRequest(context.Background(), formDefinitionID).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.CreateFormDefinitionFileRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateFormDefinitionFileRequest`: FormDefinitionFileUploadResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.CreateFormDefinitionFileRequest`: %v\n", resp) + //resp, r, err := apiClient.Beta.CustomFormsAPI.CreateFormDefinitionFileRequest(context.Background(), formDefinitionID).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.CreateFormDefinitionFileRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateFormDefinitionFileRequest`: FormDefinitionFileUploadResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.CreateFormDefinitionFileRequest`: %v\n", resp) } ``` @@ -563,7 +563,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -591,18 +591,18 @@ func main() { "ttl" : 1571827560 }`) // CreateFormInstanceRequest | Body is the request payload to create a form instance (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.CreateFormInstance(context.Background()).Execute() - //resp, r, err := apiClient.Beta.CustomFormsAPI.CreateFormInstance(context.Background()).Body(body).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.CreateFormInstance``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateFormInstance`: FormInstanceResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.CreateFormInstance`: %v\n", resp) + //resp, r, err := apiClient.Beta.CustomFormsAPI.CreateFormInstance(context.Background()).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.CreateFormInstance``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateFormInstance`: FormInstanceResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.CreateFormInstance`: %v\n", resp) } ``` @@ -649,7 +649,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -657,18 +657,18 @@ import ( func main() { formDefinitionID := `00000000-0000-0000-0000-000000000000` // string | Form definition ID # string | Form definition ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.DeleteFormDefinition(context.Background(), formDefinitionID).Execute() - //resp, r, err := apiClient.Beta.CustomFormsAPI.DeleteFormDefinition(context.Background(), formDefinitionID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.DeleteFormDefinition``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteFormDefinition`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.DeleteFormDefinition`: %v\n", resp) + //resp, r, err := apiClient.Beta.CustomFormsAPI.DeleteFormDefinition(context.Background(), formDefinitionID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.DeleteFormDefinition``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteFormDefinition`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.DeleteFormDefinition`: %v\n", resp) } ``` @@ -714,7 +714,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -725,18 +725,18 @@ func main() { filters := `name sw "my form"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *eq, gt, sw, in* **description**: *eq, gt, sw, in* **created**: *eq, gt, sw, in* **modified**: *eq, gt, sw, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *eq, gt, sw, in* **description**: *eq, gt, sw, in* **created**: *eq, gt, sw, in* **modified**: *eq, gt, sw, in* (optional) sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, description, created, modified** (optional) (default to "name") # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, description, created, modified** (optional) (default to "name") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.ExportFormDefinitionsByTenant(context.Background()).Execute() - //resp, r, err := apiClient.Beta.CustomFormsAPI.ExportFormDefinitionsByTenant(context.Background()).Offset(offset).Limit(limit).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.ExportFormDefinitionsByTenant``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExportFormDefinitionsByTenant`: []ExportFormDefinitionsByTenant200ResponseInner - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.ExportFormDefinitionsByTenant`: %v\n", resp) + //resp, r, err := apiClient.Beta.CustomFormsAPI.ExportFormDefinitionsByTenant(context.Background()).Offset(offset).Limit(limit).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.ExportFormDefinitionsByTenant``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExportFormDefinitionsByTenant`: []ExportFormDefinitionsByTenant200ResponseInner + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.ExportFormDefinitionsByTenant`: %v\n", resp) } ``` @@ -785,7 +785,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -794,18 +794,18 @@ func main() { formDefinitionID := `00000000-0000-0000-0000-000000000000` // string | FormDefinitionID Form definition ID # string | FormDefinitionID Form definition ID fileID := `00000031N0J7R2B57M8YG73J7M.png` // string | FileID String specifying the hashed name of the uploaded file we are retrieving. # string | FileID String specifying the hashed name of the uploaded file we are retrieving. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.GetFileFromS3(context.Background(), formDefinitionID, fileID).Execute() - //resp, r, err := apiClient.Beta.CustomFormsAPI.GetFileFromS3(context.Background(), formDefinitionID, fileID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.GetFileFromS3``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetFileFromS3`: *os.File - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.GetFileFromS3`: %v\n", resp) + //resp, r, err := apiClient.Beta.CustomFormsAPI.GetFileFromS3(context.Background(), formDefinitionID, fileID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.GetFileFromS3``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetFileFromS3`: *os.File + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.GetFileFromS3`: %v\n", resp) } ``` @@ -852,7 +852,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -860,18 +860,18 @@ import ( func main() { formDefinitionID := `00000000-0000-0000-0000-000000000000` // string | Form definition ID # string | Form definition ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.GetFormDefinitionByKey(context.Background(), formDefinitionID).Execute() - //resp, r, err := apiClient.Beta.CustomFormsAPI.GetFormDefinitionByKey(context.Background(), formDefinitionID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.GetFormDefinitionByKey``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetFormDefinitionByKey`: FormDefinitionResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.GetFormDefinitionByKey`: %v\n", resp) + //resp, r, err := apiClient.Beta.CustomFormsAPI.GetFormDefinitionByKey(context.Background(), formDefinitionID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.GetFormDefinitionByKey``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetFormDefinitionByKey`: FormDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.GetFormDefinitionByKey`: %v\n", resp) } ``` @@ -918,7 +918,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -926,18 +926,18 @@ import ( func main() { formInstanceID := `00000000-0000-0000-0000-000000000000` // string | Form instance ID # string | Form instance ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.GetFormInstanceByKey(context.Background(), formInstanceID).Execute() - //resp, r, err := apiClient.Beta.CustomFormsAPI.GetFormInstanceByKey(context.Background(), formInstanceID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.GetFormInstanceByKey``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetFormInstanceByKey`: FormInstanceResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.GetFormInstanceByKey`: %v\n", resp) + //resp, r, err := apiClient.Beta.CustomFormsAPI.GetFormInstanceByKey(context.Background(), formInstanceID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.GetFormInstanceByKey``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetFormInstanceByKey`: FormInstanceResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.GetFormInstanceByKey`: %v\n", resp) } ``` @@ -986,7 +986,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -995,18 +995,18 @@ func main() { formInstanceID := `00000000-0000-0000-0000-000000000000` // string | FormInstanceID Form instance ID # string | FormInstanceID Form instance ID fileID := `00000031N0J7R2B57M8YG73J7M.png` // string | FileID String specifying the hashed name of the uploaded file we are retrieving. # string | FileID String specifying the hashed name of the uploaded file we are retrieving. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.GetFormInstanceFile(context.Background(), formInstanceID, fileID).Execute() - //resp, r, err := apiClient.Beta.CustomFormsAPI.GetFormInstanceFile(context.Background(), formInstanceID, fileID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.GetFormInstanceFile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetFormInstanceFile`: *os.File - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.GetFormInstanceFile`: %v\n", resp) + //resp, r, err := apiClient.Beta.CustomFormsAPI.GetFormInstanceFile(context.Background(), formInstanceID, fileID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.GetFormInstanceFile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetFormInstanceFile`: *os.File + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.GetFormInstanceFile`: %v\n", resp) } ``` @@ -1049,7 +1049,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1057,18 +1057,18 @@ import ( func main() { body := []byte(`[{version=1, self={name=All fields not required, id=05ed4edb-d0a9-41d9-ad0c-2f6e486ec4aa, type=FORM_DEFINITION}, object={id=05ed4edb-d0a9-41d9-ad0c-2f6e486ec4aa, name=All fields not required, description=description, owner={type=IDENTITY, id=3447d8ec2602455ab6f1e8408a0f0150}, usedBy=[{type=WORKFLOW, id=5008594c-dacc-4295-8fee-41df60477304}, {type=WORKFLOW, id=97e75a75-c179-4fbc-a2da-b5fa4aaa8743}], formInput=[{type=STRING, label=input1, description=A single dynamic scalar value (i.e. number, string, date, etc) that can be passed into the form for use in conditional logic}], formElements=[{id=3069272797630701, elementType=SECTION, config={label=First Section, formElements=[{id=3069272797630700, elementType=TEXT, key=firstName, config={label=First Name}}, {id=3498415402897539, elementType=TEXT, key=lastName, config={label=Last Name}}]}}], formConditions=[{ruleOperator=AND, rules=[{sourceType=INPUT, source=Department, operator=EQ, valueType=STRING, value=Sales}], effects=[{effectType=HIDE, config={element=2614088730489570}}]}], created=2022-10-04T19:27:04.456Z, modified=2022-11-16T20:45:02.172Z}}]`) // []ImportFormDefinitionsRequestInner | Body is the request payload to import form definitions (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.ImportFormDefinitions(context.Background()).Execute() - //resp, r, err := apiClient.Beta.CustomFormsAPI.ImportFormDefinitions(context.Background()).Body(body).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.ImportFormDefinitions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportFormDefinitions`: ImportFormDefinitions202Response - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.ImportFormDefinitions`: %v\n", resp) + //resp, r, err := apiClient.Beta.CustomFormsAPI.ImportFormDefinitions(context.Background()).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.ImportFormDefinitions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportFormDefinitions`: ImportFormDefinitions202Response + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.ImportFormDefinitions`: %v\n", resp) } ``` @@ -1116,7 +1116,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1125,18 +1125,18 @@ func main() { formDefinitionID := `00000000-0000-0000-0000-000000000000` // string | Form definition ID # string | Form definition ID body := []byte(`[{op=replace, path=/description, value=test-description}]`) // []map[string]map[string]interface{} | Body is the request payload to patch a form definition, check: https://jsonpatch.com (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.PatchFormDefinition(context.Background(), formDefinitionID).Execute() - //resp, r, err := apiClient.Beta.CustomFormsAPI.PatchFormDefinition(context.Background(), formDefinitionID).Body(body).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.PatchFormDefinition``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchFormDefinition`: FormDefinitionResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.PatchFormDefinition`: %v\n", resp) + //resp, r, err := apiClient.Beta.CustomFormsAPI.PatchFormDefinition(context.Background(), formDefinitionID).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.PatchFormDefinition``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchFormDefinition`: FormDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.PatchFormDefinition`: %v\n", resp) } ``` @@ -1184,7 +1184,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1193,18 +1193,18 @@ func main() { formInstanceID := `00000000-0000-0000-0000-000000000000` // string | Form instance ID # string | Form instance ID body := []byte(`[{op=replace, path=/state, value=SUBMITTED}, {op=replace, path=/formData, value={a-key-1=a-value-1, a-key-2=true, a-key-3=1}}]`) // []map[string]map[string]interface{} | Body is the request payload to patch a form instance, check: https://jsonpatch.com (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.PatchFormInstance(context.Background(), formInstanceID).Execute() - //resp, r, err := apiClient.Beta.CustomFormsAPI.PatchFormInstance(context.Background(), formInstanceID).Body(body).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.PatchFormInstance``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchFormInstance`: FormInstanceResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.PatchFormInstance`: %v\n", resp) + //resp, r, err := apiClient.Beta.CustomFormsAPI.PatchFormInstance(context.Background(), formInstanceID).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.PatchFormInstance``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchFormInstance`: FormInstanceResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.PatchFormInstance`: %v\n", resp) } ``` @@ -1250,7 +1250,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1261,18 +1261,18 @@ func main() { filters := `name sw "my form"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *eq, gt, sw, in* **description**: *eq, gt, sw, in* **created**: *eq, gt, sw, in* **modified**: *eq, gt, sw, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *eq, gt, sw, in* **description**: *eq, gt, sw, in* **created**: *eq, gt, sw, in* **modified**: *eq, gt, sw, in* (optional) sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, description, created, modified** (optional) (default to "name") # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, description, created, modified** (optional) (default to "name") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.SearchFormDefinitionsByTenant(context.Background()).Execute() - //resp, r, err := apiClient.Beta.CustomFormsAPI.SearchFormDefinitionsByTenant(context.Background()).Offset(offset).Limit(limit).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.SearchFormDefinitionsByTenant``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SearchFormDefinitionsByTenant`: ListFormDefinitionsByTenantResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.SearchFormDefinitionsByTenant`: %v\n", resp) + //resp, r, err := apiClient.Beta.CustomFormsAPI.SearchFormDefinitionsByTenant(context.Background()).Offset(offset).Limit(limit).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.SearchFormDefinitionsByTenant``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchFormDefinitionsByTenant`: ListFormDefinitionsByTenantResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.SearchFormDefinitionsByTenant`: %v\n", resp) } ``` @@ -1325,7 +1325,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1337,18 +1337,18 @@ func main() { filters := `value eq "ID01"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **value**: *eq, ne, in* Supported composite operators: *not* Only a single *not* may be used, and it can only be used with the `in` operator. The `not` composite operator must be used in front of the field. For example, the following is valid: `not value in (\"ID01\")` (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **value**: *eq, ne, in* Supported composite operators: *not* Only a single *not* may be used, and it can only be used with the `in` operator. The `not` composite operator must be used in front of the field. For example, the following is valid: `not value in (\"ID01\")` (optional) query := `support` // string | String that is passed to the underlying API to filter other (non-ID) fields. For example, for access profile data sources, this string will be passed to the access profile api and used with a \"starts with\" filter against several fields. (optional) # string | String that is passed to the underlying API to filter other (non-ID) fields. For example, for access profile data sources, this string will be passed to the access profile api and used with a \"starts with\" filter against several fields. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.SearchFormElementDataByElementID(context.Background(), formInstanceID, formElementID).Execute() - //resp, r, err := apiClient.Beta.CustomFormsAPI.SearchFormElementDataByElementID(context.Background(), formInstanceID, formElementID).Limit(limit).Filters(filters).Query(query).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.SearchFormElementDataByElementID``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SearchFormElementDataByElementID`: ListFormElementDataByElementIDResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.SearchFormElementDataByElementID`: %v\n", resp) + //resp, r, err := apiClient.Beta.CustomFormsAPI.SearchFormElementDataByElementID(context.Background(), formInstanceID, formElementID).Limit(limit).Filters(filters).Query(query).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.SearchFormElementDataByElementID``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchFormElementDataByElementID`: ListFormElementDataByElementIDResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.SearchFormElementDataByElementID`: %v\n", resp) } ``` @@ -1387,25 +1387,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.SearchFormInstancesByTenant(context.Background()).Execute() - //resp, r, err := apiClient.Beta.CustomFormsAPI.SearchFormInstancesByTenant(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.SearchFormInstancesByTenant``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SearchFormInstancesByTenant`: []FormInstanceResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.SearchFormInstancesByTenant`: %v\n", resp) + //resp, r, err := apiClient.Beta.CustomFormsAPI.SearchFormInstancesByTenant(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.SearchFormInstancesByTenant``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchFormInstancesByTenant`: []FormInstanceResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.SearchFormInstancesByTenant`: %v\n", resp) } ``` @@ -1444,25 +1444,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.SearchPreDefinedSelectOptions(context.Background()).Execute() - //resp, r, err := apiClient.Beta.CustomFormsAPI.SearchPreDefinedSelectOptions(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.SearchPreDefinedSelectOptions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SearchPreDefinedSelectOptions`: ListPredefinedSelectOptionsResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.SearchPreDefinedSelectOptions`: %v\n", resp) + //resp, r, err := apiClient.Beta.CustomFormsAPI.SearchPreDefinedSelectOptions(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.SearchPreDefinedSelectOptions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchPreDefinedSelectOptions`: ListPredefinedSelectOptionsResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.SearchPreDefinedSelectOptions`: %v\n", resp) } ``` @@ -1513,7 +1513,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1535,18 +1535,18 @@ func main() { } }`) // FormElementPreviewRequest | Body is the request payload to create a form definition dynamic schema (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.ShowPreviewDataSource(context.Background(), formDefinitionID).Execute() - //resp, r, err := apiClient.Beta.CustomFormsAPI.ShowPreviewDataSource(context.Background(), formDefinitionID).Limit(limit).Filters(filters).Query(query).FormElementPreviewRequest(formElementPreviewRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.ShowPreviewDataSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ShowPreviewDataSource`: PreviewDataSourceResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.ShowPreviewDataSource`: %v\n", resp) + //resp, r, err := apiClient.Beta.CustomFormsAPI.ShowPreviewDataSource(context.Background(), formDefinitionID).Limit(limit).Filters(filters).Query(query).FormElementPreviewRequest(formElementPreviewRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.ShowPreviewDataSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ShowPreviewDataSource`: PreviewDataSourceResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.ShowPreviewDataSource`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/CustomPasswordInstructionsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/CustomPasswordInstructionsAPI.md index 0d78cf6d4..5a9d45a2f 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/CustomPasswordInstructionsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/CustomPasswordInstructionsAPI.md @@ -68,7 +68,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -80,24 +80,23 @@ func main() { "locale" : "en" }`) // CustomPasswordInstruction | - - var customPasswordInstruction beta.CustomPasswordInstruction - if err := json.Unmarshal(custompasswordinstruction, &customPasswordInstruction); err != nil { - fmt.Println("Error:", err) - return - } - + var customPasswordInstruction beta.CustomPasswordInstruction + if err := json.Unmarshal(custompasswordinstruction, &customPasswordInstruction); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomPasswordInstructionsAPI.CreateCustomPasswordInstructions(context.Background()).CustomPasswordInstruction(customPasswordInstruction).Execute() - //resp, r, err := apiClient.Beta.CustomPasswordInstructionsAPI.CreateCustomPasswordInstructions(context.Background()).CustomPasswordInstruction(customPasswordInstruction).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomPasswordInstructionsAPI.CreateCustomPasswordInstructions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateCustomPasswordInstructions`: CustomPasswordInstruction - fmt.Fprintf(os.Stdout, "Response from `CustomPasswordInstructionsAPI.CreateCustomPasswordInstructions`: %v\n", resp) + //resp, r, err := apiClient.Beta.CustomPasswordInstructionsAPI.CreateCustomPasswordInstructions(context.Background()).CustomPasswordInstruction(customPasswordInstruction).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomPasswordInstructionsAPI.CreateCustomPasswordInstructions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCustomPasswordInstructions`: CustomPasswordInstruction + fmt.Fprintf(os.Stdout, "Response from `CustomPasswordInstructionsAPI.CreateCustomPasswordInstructions`: %v\n", resp) } ``` @@ -145,7 +144,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -154,16 +153,17 @@ func main() { pageId := `mfa:select` // string | The page ID of custom password instructions to delete. # string | The page ID of custom password instructions to delete. locale := `locale_example` // string | The locale for the custom instructions, a BCP47 language tag. The default value is \\\"default\\\". (optional) # string | The locale for the custom instructions, a BCP47 language tag. The default value is \\\"default\\\". (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.CustomPasswordInstructionsAPI.DeleteCustomPasswordInstructions(context.Background(), pageId).Execute() - //r, err := apiClient.Beta.CustomPasswordInstructionsAPI.DeleteCustomPasswordInstructions(context.Background(), pageId).Locale(locale).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomPasswordInstructionsAPI.DeleteCustomPasswordInstructions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.CustomPasswordInstructionsAPI.DeleteCustomPasswordInstructions(context.Background(), pageId).Locale(locale).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomPasswordInstructionsAPI.DeleteCustomPasswordInstructions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -211,7 +211,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -220,18 +220,18 @@ func main() { pageId := `mfa:select` // string | The page ID of custom password instructions to query. # string | The page ID of custom password instructions to query. locale := `locale_example` // string | The locale for the custom instructions, a BCP47 language tag. The default value is \\\"default\\\". (optional) # string | The locale for the custom instructions, a BCP47 language tag. The default value is \\\"default\\\". (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomPasswordInstructionsAPI.GetCustomPasswordInstructions(context.Background(), pageId).Execute() - //resp, r, err := apiClient.Beta.CustomPasswordInstructionsAPI.GetCustomPasswordInstructions(context.Background(), pageId).Locale(locale).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomPasswordInstructionsAPI.GetCustomPasswordInstructions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCustomPasswordInstructions`: CustomPasswordInstruction - fmt.Fprintf(os.Stdout, "Response from `CustomPasswordInstructionsAPI.GetCustomPasswordInstructions`: %v\n", resp) + //resp, r, err := apiClient.Beta.CustomPasswordInstructionsAPI.GetCustomPasswordInstructions(context.Background(), pageId).Locale(locale).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomPasswordInstructionsAPI.GetCustomPasswordInstructions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCustomPasswordInstructions`: CustomPasswordInstruction + fmt.Fprintf(os.Stdout, "Response from `CustomPasswordInstructionsAPI.GetCustomPasswordInstructions`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/EntitlementsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/EntitlementsAPI.md index b3489dd77..ee144b8a9 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/EntitlementsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/EntitlementsAPI.md @@ -123,7 +123,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -133,18 +133,18 @@ func main() { attributeKey := `iscPrivacy` // string | Technical name of the Attribute. # string | Technical name of the Attribute. attributeValue := `public` // string | Technical name of the Attribute Value. # string | Technical name of the Attribute Value. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.EntitlementsAPI.CreateAccessModelMetadataForEntitlement(context.Background(), id, attributeKey, attributeValue).Execute() - //resp, r, err := apiClient.Beta.EntitlementsAPI.CreateAccessModelMetadataForEntitlement(context.Background(), id, attributeKey, attributeValue).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.CreateAccessModelMetadataForEntitlement``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateAccessModelMetadataForEntitlement`: Entitlement - fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.CreateAccessModelMetadataForEntitlement`: %v\n", resp) + //resp, r, err := apiClient.Beta.EntitlementsAPI.CreateAccessModelMetadataForEntitlement(context.Background(), id, attributeKey, attributeValue).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.CreateAccessModelMetadataForEntitlement``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAccessModelMetadataForEntitlement`: Entitlement + fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.CreateAccessModelMetadataForEntitlement`: %v\n", resp) } ``` @@ -195,7 +195,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -205,16 +205,17 @@ func main() { attributeKey := `iscPrivacy` // string | Technical name of the Attribute. # string | Technical name of the Attribute. attributeValue := `public` // string | Technical name of the Attribute Value. # string | Technical name of the Attribute Value. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.EntitlementsAPI.DeleteAccessModelMetadataFromEntitlement(context.Background(), id, attributeKey, attributeValue).Execute() - //r, err := apiClient.Beta.EntitlementsAPI.DeleteAccessModelMetadataFromEntitlement(context.Background(), id, attributeKey, attributeValue).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.DeleteAccessModelMetadataFromEntitlement``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.EntitlementsAPI.DeleteAccessModelMetadataFromEntitlement(context.Background(), id, attributeKey, attributeValue).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.DeleteAccessModelMetadataFromEntitlement``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -261,7 +262,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -269,18 +270,18 @@ import ( func main() { id := `2c91808874ff91550175097daaec161c` // string | The entitlement ID # string | The entitlement ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.EntitlementsAPI.GetEntitlement(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.EntitlementsAPI.GetEntitlement(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.GetEntitlement``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetEntitlement`: Entitlement - fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.GetEntitlement`: %v\n", resp) + //resp, r, err := apiClient.Beta.EntitlementsAPI.GetEntitlement(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.GetEntitlement``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetEntitlement`: Entitlement + fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.GetEntitlement`: %v\n", resp) } ``` @@ -327,7 +328,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -335,18 +336,18 @@ import ( func main() { id := `2c91808874ff91550175097daaec161c` // string | Entitlement Id # string | Entitlement Id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.EntitlementsAPI.GetEntitlementRequestConfig(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.EntitlementsAPI.GetEntitlementRequestConfig(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.GetEntitlementRequestConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetEntitlementRequestConfig`: EntitlementRequestConfig - fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.GetEntitlementRequestConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.EntitlementsAPI.GetEntitlementRequestConfig(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.GetEntitlementRequestConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetEntitlementRequestConfig`: EntitlementRequestConfig + fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.GetEntitlementRequestConfig`: %v\n", resp) } ``` @@ -401,7 +402,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -410,18 +411,18 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Source Id # string | Source Id csvFile := BINARY_DATA_HERE // *os.File | The CSV file containing the source entitlements to aggregate. (optional) # *os.File | The CSV file containing the source entitlements to aggregate. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.EntitlementsAPI.ImportEntitlementsBySource(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.EntitlementsAPI.ImportEntitlementsBySource(context.Background(), id).CsvFile(csvFile).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.ImportEntitlementsBySource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportEntitlementsBySource`: LoadEntitlementTask - fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.ImportEntitlementsBySource`: %v\n", resp) + //resp, r, err := apiClient.Beta.EntitlementsAPI.ImportEntitlementsBySource(context.Background(), id).CsvFile(csvFile).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.ImportEntitlementsBySource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportEntitlementsBySource`: LoadEntitlementTask + fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.ImportEntitlementsBySource`: %v\n", resp) } ``` @@ -473,7 +474,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -486,18 +487,18 @@ func main() { sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, type, attribute, value, source.id** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, type, attribute, value, source.id** (optional) filters := `attribute eq "memberOf"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, sw* **type**: *eq, in* **attribute**: *eq, in* **value**: *eq, in, sw* **source.id**: *eq, in* **requestable**: *eq* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, sw* **type**: *eq, in* **attribute**: *eq, in* **value**: *eq, in, sw* **source.id**: *eq, in* **requestable**: *eq* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.EntitlementsAPI.ListEntitlementChildren(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.EntitlementsAPI.ListEntitlementChildren(context.Background(), id).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.ListEntitlementChildren``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListEntitlementChildren`: []Entitlement - fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.ListEntitlementChildren`: %v\n", resp) + //resp, r, err := apiClient.Beta.EntitlementsAPI.ListEntitlementChildren(context.Background(), id).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.ListEntitlementChildren``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListEntitlementChildren`: []Entitlement + fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.ListEntitlementChildren`: %v\n", resp) } ``` @@ -549,7 +550,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -562,18 +563,18 @@ func main() { sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, type, attribute, value, source.id** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, type, attribute, value, source.id** (optional) filters := `attribute eq "memberOf"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, sw* **type**: *eq, in* **attribute**: *eq, in* **value**: *eq, in, sw* **source.id**: *eq, in* **requestable**: *eq* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, sw* **type**: *eq, in* **attribute**: *eq, in* **value**: *eq, in, sw* **source.id**: *eq, in* **requestable**: *eq* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.EntitlementsAPI.ListEntitlementParents(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.EntitlementsAPI.ListEntitlementParents(context.Background(), id).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.ListEntitlementParents``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListEntitlementParents`: []Entitlement - fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.ListEntitlementParents`: %v\n", resp) + //resp, r, err := apiClient.Beta.EntitlementsAPI.ListEntitlementParents(context.Background(), id).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.ListEntitlementParents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListEntitlementParents`: []Entitlement + fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.ListEntitlementParents`: %v\n", resp) } ``` @@ -628,7 +629,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -644,18 +645,18 @@ func main() { sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, type, attribute, value, source.id, requestable** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, type, attribute, value, source.id, requestable** (optional) filters := `attribute eq "memberOf"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, sw* **type**: *eq, in* **attribute**: *eq, in* **value**: *eq, in, sw* **source.id**: *eq, in* **requestable**: *eq* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, sw* **type**: *eq, in* **attribute**: *eq, in* **value**: *eq, in, sw* **source.id**: *eq, in* **requestable**: *eq* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.EntitlementsAPI.ListEntitlements(context.Background()).Execute() - //resp, r, err := apiClient.Beta.EntitlementsAPI.ListEntitlements(context.Background()).AccountId(accountId).SegmentedForIdentity(segmentedForIdentity).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.ListEntitlements``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListEntitlements`: []Entitlement - fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.ListEntitlements`: %v\n", resp) + //resp, r, err := apiClient.Beta.EntitlementsAPI.ListEntitlements(context.Background()).AccountId(accountId).SegmentedForIdentity(segmentedForIdentity).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.ListEntitlements``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListEntitlements`: []Entitlement + fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.ListEntitlements`: %v\n", resp) } ``` @@ -709,7 +710,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -718,18 +719,18 @@ func main() { id := `2c91808a7813090a017814121e121518` // string | ID of the entitlement to patch # string | ID of the entitlement to patch jsonpatchoperation := []byte(`[{op=replace, path=/requestable, value=true}, {op=replace, path=/privileged, value=true}]`) // []JsonPatchOperation | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.EntitlementsAPI.PatchEntitlement(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.EntitlementsAPI.PatchEntitlement(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.PatchEntitlement``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchEntitlement`: Entitlement - fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.PatchEntitlement`: %v\n", resp) + //resp, r, err := apiClient.Beta.EntitlementsAPI.PatchEntitlement(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.PatchEntitlement``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchEntitlement`: Entitlement + fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.PatchEntitlement`: %v\n", resp) } ``` @@ -777,7 +778,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -794,28 +795,37 @@ func main() { "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", "approverType" : "GOVERNANCE_GROUP" } ], + "reauthorizationRequired" : false, "requestCommentRequired" : true + }, + "revocationRequestConfig" : { + "approvalSchemes" : [ { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + }, { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + } ] } }`) // EntitlementRequestConfig | - - var entitlementRequestConfig beta.EntitlementRequestConfig - if err := json.Unmarshal(entitlementrequestconfig, &entitlementRequestConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var entitlementRequestConfig beta.EntitlementRequestConfig + if err := json.Unmarshal(entitlementrequestconfig, &entitlementRequestConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.EntitlementsAPI.PutEntitlementRequestConfig(context.Background(), id).EntitlementRequestConfig(entitlementRequestConfig).Execute() - //resp, r, err := apiClient.Beta.EntitlementsAPI.PutEntitlementRequestConfig(context.Background(), id).EntitlementRequestConfig(entitlementRequestConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.PutEntitlementRequestConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutEntitlementRequestConfig`: EntitlementRequestConfig - fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.PutEntitlementRequestConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.EntitlementsAPI.PutEntitlementRequestConfig(context.Background(), id).EntitlementRequestConfig(entitlementRequestConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.PutEntitlementRequestConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutEntitlementRequestConfig`: EntitlementRequestConfig + fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.PutEntitlementRequestConfig`: %v\n", resp) } ``` @@ -863,7 +873,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -871,18 +881,18 @@ import ( func main() { sourceId := `2c91808a7813090a017814121919ecca` // string | ID of source for the entitlement reset # string | ID of source for the entitlement reset - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.EntitlementsAPI.ResetSourceEntitlements(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.Beta.EntitlementsAPI.ResetSourceEntitlements(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.ResetSourceEntitlements``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ResetSourceEntitlements`: EntitlementSourceResetBaseReferenceDto - fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.ResetSourceEntitlements`: %v\n", resp) + //resp, r, err := apiClient.Beta.EntitlementsAPI.ResetSourceEntitlements(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.ResetSourceEntitlements``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ResetSourceEntitlements`: EntitlementSourceResetBaseReferenceDto + fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.ResetSourceEntitlements`: %v\n", resp) } ``` @@ -938,7 +948,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -957,22 +967,22 @@ func main() { } ] }`) // EntitlementBulkUpdateRequest | - - var entitlementBulkUpdateRequest beta.EntitlementBulkUpdateRequest - if err := json.Unmarshal(entitlementbulkupdaterequest, &entitlementBulkUpdateRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var entitlementBulkUpdateRequest beta.EntitlementBulkUpdateRequest + if err := json.Unmarshal(entitlementbulkupdaterequest, &entitlementBulkUpdateRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.EntitlementsAPI.UpdateEntitlementsInBulk(context.Background()).EntitlementBulkUpdateRequest(entitlementBulkUpdateRequest).Execute() - //r, err := apiClient.Beta.EntitlementsAPI.UpdateEntitlementsInBulk(context.Background()).EntitlementBulkUpdateRequest(entitlementBulkUpdateRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.UpdateEntitlementsInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.EntitlementsAPI.UpdateEntitlementsInBulk(context.Background()).EntitlementBulkUpdateRequest(entitlementBulkUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.UpdateEntitlementsInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/GovernanceGroupsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/GovernanceGroupsAPI.md index d5a903924..10b7130d7 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/GovernanceGroupsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/GovernanceGroupsAPI.md @@ -69,7 +69,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -92,24 +92,23 @@ func main() { "id" : "2c91808568c529c60168cca6f90c1313" }`) // WorkgroupDto | - - var workgroupDto beta.WorkgroupDto - if err := json.Unmarshal(workgroupdto, &workgroupDto); err != nil { - fmt.Println("Error:", err) - return - } - + var workgroupDto beta.WorkgroupDto + if err := json.Unmarshal(workgroupdto, &workgroupDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.GovernanceGroupsAPI.CreateWorkgroup(context.Background()).WorkgroupDto(workgroupDto).Execute() - //resp, r, err := apiClient.Beta.GovernanceGroupsAPI.CreateWorkgroup(context.Background()).WorkgroupDto(workgroupDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.CreateWorkgroup``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateWorkgroup`: WorkgroupDto - fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.CreateWorkgroup`: %v\n", resp) + //resp, r, err := apiClient.Beta.GovernanceGroupsAPI.CreateWorkgroup(context.Background()).WorkgroupDto(workgroupDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.CreateWorkgroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateWorkgroup`: WorkgroupDto + fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.CreateWorkgroup`: %v\n", resp) } ``` @@ -156,7 +155,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -164,16 +163,17 @@ import ( func main() { id := `2c9180837ca6693d017ca8d097500149` // string | ID of the Governance Group # string | ID of the Governance Group - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.GovernanceGroupsAPI.DeleteWorkgroup(context.Background(), id).Execute() - //r, err := apiClient.Beta.GovernanceGroupsAPI.DeleteWorkgroup(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.DeleteWorkgroup``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.GovernanceGroupsAPI.DeleteWorkgroup(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.DeleteWorkgroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -225,7 +225,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -234,24 +234,23 @@ func main() { workgroupId := `2c91808a7813090a017814121919ecca` // string | ID of the Governance Group. # string | ID of the Governance Group. bulkworkgroupmembersrequestinner := []byte(``) // []BulkWorkgroupMembersRequestInner | List of identities to be removed from a Governance Group members list. - - var bulkWorkgroupMembersRequestInner beta.[]BulkWorkgroupMembersRequestInner - if err := json.Unmarshal(bulkworkgroupmembersrequestinner, &bulkWorkgroupMembersRequestInner); err != nil { - fmt.Println("Error:", err) - return - } - + var bulkWorkgroupMembersRequestInner []beta.BulkWorkgroupMembersRequestInner + if err := json.Unmarshal(bulkworkgroupmembersrequestinner, &bulkWorkgroupMembersRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.GovernanceGroupsAPI.DeleteWorkgroupMembers(context.Background(), workgroupId).BulkWorkgroupMembersRequestInner(bulkWorkgroupMembersRequestInner).Execute() - //resp, r, err := apiClient.Beta.GovernanceGroupsAPI.DeleteWorkgroupMembers(context.Background(), workgroupId).BulkWorkgroupMembersRequestInner(bulkWorkgroupMembersRequestInner).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.DeleteWorkgroupMembers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteWorkgroupMembers`: []WorkgroupMemberDeleteItem - fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.DeleteWorkgroupMembers`: %v\n", resp) + //resp, r, err := apiClient.Beta.GovernanceGroupsAPI.DeleteWorkgroupMembers(context.Background(), workgroupId).BulkWorkgroupMembersRequestInner(bulkWorkgroupMembersRequestInner).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.DeleteWorkgroupMembers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteWorkgroupMembers`: []WorkgroupMemberDeleteItem + fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.DeleteWorkgroupMembers`: %v\n", resp) } ``` @@ -305,7 +304,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -315,24 +314,23 @@ func main() { "ids" : [ "567a697e-885b-495a-afc5-d55e1c23a302", "c7b0f7b2-1e78-4063-b294-a555333dacd2" ] }`) // WorkgroupBulkDeleteRequest | - - var workgroupBulkDeleteRequest beta.WorkgroupBulkDeleteRequest - if err := json.Unmarshal(workgroupbulkdeleterequest, &workgroupBulkDeleteRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var workgroupBulkDeleteRequest beta.WorkgroupBulkDeleteRequest + if err := json.Unmarshal(workgroupbulkdeleterequest, &workgroupBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.GovernanceGroupsAPI.DeleteWorkgroupsInBulk(context.Background()).WorkgroupBulkDeleteRequest(workgroupBulkDeleteRequest).Execute() - //resp, r, err := apiClient.Beta.GovernanceGroupsAPI.DeleteWorkgroupsInBulk(context.Background()).WorkgroupBulkDeleteRequest(workgroupBulkDeleteRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.DeleteWorkgroupsInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteWorkgroupsInBulk`: []WorkgroupDeleteItem - fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.DeleteWorkgroupsInBulk`: %v\n", resp) + //resp, r, err := apiClient.Beta.GovernanceGroupsAPI.DeleteWorkgroupsInBulk(context.Background()).WorkgroupBulkDeleteRequest(workgroupBulkDeleteRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.DeleteWorkgroupsInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteWorkgroupsInBulk`: []WorkgroupDeleteItem + fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.DeleteWorkgroupsInBulk`: %v\n", resp) } ``` @@ -379,7 +377,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -387,18 +385,18 @@ import ( func main() { id := `2c9180837ca6693d017ca8d097500149` // string | ID of the Governance Group # string | ID of the Governance Group - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.GovernanceGroupsAPI.GetWorkgroup(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.GovernanceGroupsAPI.GetWorkgroup(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.GetWorkgroup``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetWorkgroup`: WorkgroupDto - fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.GetWorkgroup`: %v\n", resp) + //resp, r, err := apiClient.Beta.GovernanceGroupsAPI.GetWorkgroup(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.GetWorkgroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkgroup`: WorkgroupDto + fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.GetWorkgroup`: %v\n", resp) } ``` @@ -449,7 +447,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -461,18 +459,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.GovernanceGroupsAPI.ListConnections(context.Background(), workgroupId).Execute() - //resp, r, err := apiClient.Beta.GovernanceGroupsAPI.ListConnections(context.Background(), workgroupId).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.ListConnections``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListConnections`: []WorkgroupConnectionDto - fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.ListConnections`: %v\n", resp) + //resp, r, err := apiClient.Beta.GovernanceGroupsAPI.ListConnections(context.Background(), workgroupId).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.ListConnections``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListConnections`: []WorkgroupConnectionDto + fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.ListConnections`: %v\n", resp) } ``` @@ -523,7 +521,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -535,18 +533,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.GovernanceGroupsAPI.ListWorkgroupMembers(context.Background(), workgroupId).Execute() - //resp, r, err := apiClient.Beta.GovernanceGroupsAPI.ListWorkgroupMembers(context.Background(), workgroupId).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.ListWorkgroupMembers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListWorkgroupMembers`: []ListWorkgroupMembers200ResponseInner - fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.ListWorkgroupMembers`: %v\n", resp) + //resp, r, err := apiClient.Beta.GovernanceGroupsAPI.ListWorkgroupMembers(context.Background(), workgroupId).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.ListWorkgroupMembers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListWorkgroupMembers`: []ListWorkgroupMembers200ResponseInner + fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.ListWorkgroupMembers`: %v\n", resp) } ``` @@ -593,7 +591,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -605,18 +603,18 @@ func main() { filters := `name sw "Test"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in, sw* **name**: *eq, sw, in* **memberships.identityId**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in, sw* **name**: *eq, sw, in* **memberships.identityId**: *eq, in* (optional) sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, modified, id, description** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, modified, id, description** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.GovernanceGroupsAPI.ListWorkgroups(context.Background()).Execute() - //resp, r, err := apiClient.Beta.GovernanceGroupsAPI.ListWorkgroups(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.ListWorkgroups``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListWorkgroups`: []WorkgroupDto - fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.ListWorkgroups`: %v\n", resp) + //resp, r, err := apiClient.Beta.GovernanceGroupsAPI.ListWorkgroups(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.ListWorkgroups``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListWorkgroups`: []WorkgroupDto + fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.ListWorkgroups`: %v\n", resp) } ``` @@ -670,7 +668,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -679,18 +677,18 @@ func main() { id := `2c9180837ca6693d017ca8d097500149` // string | ID of the Governance Group # string | ID of the Governance Group jsonpatchoperation := []byte(`[{op=replace, path=/description, value=Governance Group new description.}]`) // []JsonPatchOperation | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.GovernanceGroupsAPI.PatchWorkgroup(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.GovernanceGroupsAPI.PatchWorkgroup(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.PatchWorkgroup``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchWorkgroup`: WorkgroupDto - fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.PatchWorkgroup`: %v\n", resp) + //resp, r, err := apiClient.Beta.GovernanceGroupsAPI.PatchWorkgroup(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.PatchWorkgroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchWorkgroup`: WorkgroupDto + fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.PatchWorkgroup`: %v\n", resp) } ``` @@ -742,7 +740,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -751,24 +749,23 @@ func main() { workgroupId := `2c91808a7813090a017814121919ecca` // string | ID of the Governance Group. # string | ID of the Governance Group. bulkworkgroupmembersrequestinner := []byte(``) // []BulkWorkgroupMembersRequestInner | List of identities to be added to a Governance Group members list. - - var bulkWorkgroupMembersRequestInner beta.[]BulkWorkgroupMembersRequestInner - if err := json.Unmarshal(bulkworkgroupmembersrequestinner, &bulkWorkgroupMembersRequestInner); err != nil { - fmt.Println("Error:", err) - return - } - + var bulkWorkgroupMembersRequestInner []beta.BulkWorkgroupMembersRequestInner + if err := json.Unmarshal(bulkworkgroupmembersrequestinner, &bulkWorkgroupMembersRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.GovernanceGroupsAPI.UpdateWorkgroupMembers(context.Background(), workgroupId).BulkWorkgroupMembersRequestInner(bulkWorkgroupMembersRequestInner).Execute() - //resp, r, err := apiClient.Beta.GovernanceGroupsAPI.UpdateWorkgroupMembers(context.Background(), workgroupId).BulkWorkgroupMembersRequestInner(bulkWorkgroupMembersRequestInner).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.UpdateWorkgroupMembers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateWorkgroupMembers`: []WorkgroupMemberAddItem - fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.UpdateWorkgroupMembers`: %v\n", resp) + //resp, r, err := apiClient.Beta.GovernanceGroupsAPI.UpdateWorkgroupMembers(context.Background(), workgroupId).BulkWorkgroupMembersRequestInner(bulkWorkgroupMembersRequestInner).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.UpdateWorkgroupMembers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateWorkgroupMembers`: []WorkgroupMemberAddItem + fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.UpdateWorkgroupMembers`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/IAIAccessRequestRecommendationsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/IAIAccessRequestRecommendationsAPI.md index 96aba0734..09922f24c 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/IAIAccessRequestRecommendationsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/IAIAccessRequestRecommendationsAPI.md @@ -62,7 +62,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -76,24 +76,23 @@ func main() { "identityId" : "2c91808570313110017040b06f344ec9" }`) // AccessRequestRecommendationActionItemDto | The recommended access item to ignore for an identity. - - var accessRequestRecommendationActionItemDto beta.AccessRequestRecommendationActionItemDto - if err := json.Unmarshal(accessrequestrecommendationactionitemdto, &accessRequestRecommendationActionItemDto); err != nil { - fmt.Println("Error:", err) - return - } - + var accessRequestRecommendationActionItemDto beta.AccessRequestRecommendationActionItemDto + if err := json.Unmarshal(accessrequestrecommendationactionitemdto, &accessRequestRecommendationActionItemDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsIgnoredItem(context.Background()).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() - //resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsIgnoredItem(context.Background()).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsIgnoredItem``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `AddAccessRequestRecommendationsIgnoredItem`: AccessRequestRecommendationActionItemResponseDto - fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsIgnoredItem`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsIgnoredItem(context.Background()).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsIgnoredItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AddAccessRequestRecommendationsIgnoredItem`: AccessRequestRecommendationActionItemResponseDto + fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsIgnoredItem`: %v\n", resp) } ``` @@ -136,7 +135,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -150,24 +149,23 @@ func main() { "identityId" : "2c91808570313110017040b06f344ec9" }`) // AccessRequestRecommendationActionItemDto | The recommended access item that was requested for an identity. - - var accessRequestRecommendationActionItemDto beta.AccessRequestRecommendationActionItemDto - if err := json.Unmarshal(accessrequestrecommendationactionitemdto, &accessRequestRecommendationActionItemDto); err != nil { - fmt.Println("Error:", err) - return - } - + var accessRequestRecommendationActionItemDto beta.AccessRequestRecommendationActionItemDto + if err := json.Unmarshal(accessrequestrecommendationactionitemdto, &accessRequestRecommendationActionItemDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsRequestedItem(context.Background()).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() - //resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsRequestedItem(context.Background()).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsRequestedItem``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `AddAccessRequestRecommendationsRequestedItem`: AccessRequestRecommendationActionItemResponseDto - fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsRequestedItem`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsRequestedItem(context.Background()).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsRequestedItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AddAccessRequestRecommendationsRequestedItem`: AccessRequestRecommendationActionItemResponseDto + fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsRequestedItem`: %v\n", resp) } ``` @@ -210,7 +208,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -224,24 +222,23 @@ func main() { "identityId" : "2c91808570313110017040b06f344ec9" }`) // AccessRequestRecommendationActionItemDto | The recommended access that was viewed for an identity. - - var accessRequestRecommendationActionItemDto beta.AccessRequestRecommendationActionItemDto - if err := json.Unmarshal(accessrequestrecommendationactionitemdto, &accessRequestRecommendationActionItemDto); err != nil { - fmt.Println("Error:", err) - return - } - + var accessRequestRecommendationActionItemDto beta.AccessRequestRecommendationActionItemDto + if err := json.Unmarshal(accessrequestrecommendationactionitemdto, &accessRequestRecommendationActionItemDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItem(context.Background()).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() - //resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItem(context.Background()).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItem``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `AddAccessRequestRecommendationsViewedItem`: AccessRequestRecommendationActionItemResponseDto - fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItem`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItem(context.Background()).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AddAccessRequestRecommendationsViewedItem`: AccessRequestRecommendationActionItemResponseDto + fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItem`: %v\n", resp) } ``` @@ -284,7 +281,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -292,24 +289,23 @@ import ( func main() { accessrequestrecommendationactionitemdto := []byte(``) // []AccessRequestRecommendationActionItemDto | The recommended access items that were viewed for an identity. - - var accessRequestRecommendationActionItemDto beta.[]AccessRequestRecommendationActionItemDto - if err := json.Unmarshal(accessrequestrecommendationactionitemdto, &accessRequestRecommendationActionItemDto); err != nil { - fmt.Println("Error:", err) - return - } - + var accessRequestRecommendationActionItemDto []beta.AccessRequestRecommendationActionItemDto + if err := json.Unmarshal(accessrequestrecommendationactionitemdto, &accessRequestRecommendationActionItemDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItems(context.Background()).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() - //resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItems(context.Background()).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `AddAccessRequestRecommendationsViewedItems`: []AccessRequestRecommendationActionItemResponseDto - fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItems`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItems(context.Background()).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AddAccessRequestRecommendationsViewedItems`: []AccessRequestRecommendationActionItemResponseDto + fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItems`: %v\n", resp) } ``` @@ -358,7 +354,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -372,18 +368,18 @@ func main() { filters := `access.name co "admin"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **access.name**: *co* **access.type**: *eq, in* **access.description**: *co, eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **access.name**: *co* **access.type**: *eq, in* **access.description**: *co, eq, in* (optional) sorters := `access.name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.name, access.type** By default the recommendations are sorted by highest confidence first. (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.name, access.type** By default the recommendations are sorted by highest confidence first. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendations(context.Background()).Execute() - //resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendations(context.Background()).IdentityId(identityId).Limit(limit).Offset(offset).Count(count).IncludeTranslationMessages(includeTranslationMessages).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendations``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessRequestRecommendations`: []AccessRequestRecommendationItemDetail - fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendations`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendations(context.Background()).IdentityId(identityId).Limit(limit).Offset(offset).Count(count).IncludeTranslationMessages(includeTranslationMessages).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessRequestRecommendations`: []AccessRequestRecommendationItemDetail + fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendations`: %v\n", resp) } ``` @@ -430,7 +426,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -442,18 +438,18 @@ func main() { filters := `identityId eq "2c9180846b0a0583016b299f210c1314"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (optional) sorters := `access.id` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.id, access.type, identityId, timestamp** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.id, access.type, identityId, timestamp** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsIgnoredItems(context.Background()).Execute() - //resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsIgnoredItems(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsIgnoredItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessRequestRecommendationsIgnoredItems`: []AccessRequestRecommendationActionItemResponseDto - fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsIgnoredItems`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsIgnoredItems(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsIgnoredItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessRequestRecommendationsIgnoredItems`: []AccessRequestRecommendationActionItemResponseDto + fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsIgnoredItems`: %v\n", resp) } ``` @@ -500,7 +496,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -512,18 +508,18 @@ func main() { filters := `access.id eq "2c9180846b0a0583016b299f210c1314"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (optional) sorters := `access.id` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.id, access.type, identityId, timestamp** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.id, access.type, identityId, timestamp** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsRequestedItems(context.Background()).Execute() - //resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsRequestedItems(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsRequestedItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessRequestRecommendationsRequestedItems`: []AccessRequestRecommendationActionItemResponseDto - fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsRequestedItems`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsRequestedItems(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsRequestedItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessRequestRecommendationsRequestedItems`: []AccessRequestRecommendationActionItemResponseDto + fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsRequestedItems`: %v\n", resp) } ``` @@ -570,7 +566,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -582,18 +578,18 @@ func main() { filters := `access.id eq "2c9180846b0a0583016b299f210c1314"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (optional) sorters := `access.id` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.id, access.type, identityId, timestamp** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.id, access.type, identityId, timestamp** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsViewedItems(context.Background()).Execute() - //resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsViewedItems(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsViewedItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessRequestRecommendationsViewedItems`: []AccessRequestRecommendationActionItemResponseDto - fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsViewedItems`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsViewedItems(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsViewedItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessRequestRecommendationsViewedItems`: []AccessRequestRecommendationActionItemResponseDto + fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsViewedItems`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/IAICommonAccessAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/IAICommonAccessAPI.md index be6602397..fd1e84c64 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/IAICommonAccessAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/IAICommonAccessAPI.md @@ -57,7 +57,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -75,24 +75,23 @@ func main() { "status" : "CONFIRMED" }`) // CommonAccessItemRequest | - - var commonAccessItemRequest beta.CommonAccessItemRequest - if err := json.Unmarshal(commonaccessitemrequest, &commonAccessItemRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var commonAccessItemRequest beta.CommonAccessItemRequest + if err := json.Unmarshal(commonaccessitemrequest, &commonAccessItemRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAICommonAccessAPI.CreateCommonAccess(context.Background()).CommonAccessItemRequest(commonAccessItemRequest).Execute() - //resp, r, err := apiClient.Beta.IAICommonAccessAPI.CreateCommonAccess(context.Background()).CommonAccessItemRequest(commonAccessItemRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAICommonAccessAPI.CreateCommonAccess``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateCommonAccess`: CommonAccessItemResponse - fmt.Fprintf(os.Stdout, "Response from `IAICommonAccessAPI.CreateCommonAccess`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAICommonAccessAPI.CreateCommonAccess(context.Background()).CommonAccessItemRequest(commonAccessItemRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAICommonAccessAPI.CreateCommonAccess``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCommonAccess`: CommonAccessItemResponse + fmt.Fprintf(os.Stdout, "Response from `IAICommonAccessAPI.CreateCommonAccess`: %v\n", resp) } ``` @@ -139,7 +138,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -151,18 +150,18 @@ func main() { filters := `access.type eq "ROLE"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **status**: *eq, sw* **reviewedByUser** *eq* **access.id**: *eq, sw* **access.type**: *eq* **access.name**: *sw, eq* **access.description**: *sw, eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **status**: *eq, sw* **reviewedByUser** *eq* **access.id**: *eq, sw* **access.type**: *eq* **access.name**: *sw, eq* **access.description**: *sw, eq* (optional) sorters := `access.name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.name, status** By default the common access items are sorted by name, ascending. (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.name, status** By default the common access items are sorted by name, ascending. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAICommonAccessAPI.GetCommonAccess(context.Background()).Execute() - //resp, r, err := apiClient.Beta.IAICommonAccessAPI.GetCommonAccess(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAICommonAccessAPI.GetCommonAccess``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCommonAccess`: []CommonAccessResponse - fmt.Fprintf(os.Stdout, "Response from `IAICommonAccessAPI.GetCommonAccess`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAICommonAccessAPI.GetCommonAccess(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAICommonAccessAPI.GetCommonAccess``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCommonAccess`: []CommonAccessResponse + fmt.Fprintf(os.Stdout, "Response from `IAICommonAccessAPI.GetCommonAccess`: %v\n", resp) } ``` @@ -205,7 +204,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -213,24 +212,23 @@ import ( func main() { commonaccessidstatus := []byte(``) // []CommonAccessIDStatus | Confirm or deny in bulk the common access ids that are (or aren't) common access - - var commonAccessIDStatus beta.[]CommonAccessIDStatus - if err := json.Unmarshal(commonaccessidstatus, &commonAccessIDStatus); err != nil { - fmt.Println("Error:", err) - return - } - + var commonAccessIDStatus []beta.CommonAccessIDStatus + if err := json.Unmarshal(commonaccessidstatus, &commonAccessIDStatus); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAICommonAccessAPI.UpdateCommonAccessStatusInBulk(context.Background()).CommonAccessIDStatus(commonAccessIDStatus).Execute() - //resp, r, err := apiClient.Beta.IAICommonAccessAPI.UpdateCommonAccessStatusInBulk(context.Background()).CommonAccessIDStatus(commonAccessIDStatus).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAICommonAccessAPI.UpdateCommonAccessStatusInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateCommonAccessStatusInBulk`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `IAICommonAccessAPI.UpdateCommonAccessStatusInBulk`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAICommonAccessAPI.UpdateCommonAccessStatusInBulk(context.Background()).CommonAccessIDStatus(commonAccessIDStatus).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAICommonAccessAPI.UpdateCommonAccessStatusInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateCommonAccessStatusInBulk`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `IAICommonAccessAPI.UpdateCommonAccessStatusInBulk`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/IAIMessageCatalogsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/IAIMessageCatalogsAPI.md index 0d6330e0c..e2a57661f 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/IAIMessageCatalogsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/IAIMessageCatalogsAPI.md @@ -59,7 +59,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -67,18 +67,18 @@ import ( func main() { catalogId := `recommender` // string | The ID of the message catalog. # string | The ID of the message catalog. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIMessageCatalogsAPI.GetMessageCatalogs(context.Background(), catalogId).Execute() - //resp, r, err := apiClient.Beta.IAIMessageCatalogsAPI.GetMessageCatalogs(context.Background(), catalogId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIMessageCatalogsAPI.GetMessageCatalogs``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMessageCatalogs`: []MessageCatalogDto - fmt.Fprintf(os.Stdout, "Response from `IAIMessageCatalogsAPI.GetMessageCatalogs`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIMessageCatalogsAPI.GetMessageCatalogs(context.Background(), catalogId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIMessageCatalogsAPI.GetMessageCatalogs``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMessageCatalogs`: []MessageCatalogDto + fmt.Fprintf(os.Stdout, "Response from `IAIMessageCatalogsAPI.GetMessageCatalogs`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/IAIOutliersAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/IAIOutliersAPI.md index 92d1bf5c7..696fd7279 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/IAIOutliersAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/IAIOutliersAPI.md @@ -66,7 +66,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -74,18 +74,18 @@ import ( func main() { type_ := `LOW_SIMILARITY` // string | Type of the identity outliers snapshot to filter on (optional) # string | Type of the identity outliers snapshot to filter on (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIOutliersAPI.ExportOutliersZip(context.Background()).Execute() - //resp, r, err := apiClient.Beta.IAIOutliersAPI.ExportOutliersZip(context.Background()).Type_(type_).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.ExportOutliersZip``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExportOutliersZip`: *os.File - fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.ExportOutliersZip`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIOutliersAPI.ExportOutliersZip(context.Background()).Type_(type_).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.ExportOutliersZip``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExportOutliersZip`: *os.File + fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.ExportOutliersZip`: %v\n", resp) } ``` @@ -132,7 +132,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -144,18 +144,18 @@ func main() { filters := `snapshotDate ge "2022-02-07T20:13:29.356648026Z"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **snapshotDate**: *ge, le* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **snapshotDate**: *ge, le* (optional) sorters := `snapshotDate` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **snapshotDate** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **snapshotDate** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIOutliersAPI.GetIdentityOutlierSnapshots(context.Background()).Execute() - //resp, r, err := apiClient.Beta.IAIOutliersAPI.GetIdentityOutlierSnapshots(context.Background()).Limit(limit).Offset(offset).Type_(type_).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.GetIdentityOutlierSnapshots``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentityOutlierSnapshots`: []OutlierSummary - fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.GetIdentityOutlierSnapshots`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIOutliersAPI.GetIdentityOutlierSnapshots(context.Background()).Limit(limit).Offset(offset).Type_(type_).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.GetIdentityOutlierSnapshots``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityOutlierSnapshots`: []OutlierSummary + fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.GetIdentityOutlierSnapshots`: %v\n", resp) } ``` @@ -203,7 +203,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -216,18 +216,18 @@ func main() { filters := `attributes.displayName sw "John" and certStatus eq "false"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **attributes**: *eq, sw, co, in* **firstDetectionDate**: *ge, le* **certStatus**: *eq* **ignored**: *eq* **score**: *ge, le* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **attributes**: *eq, sw, co, in* **firstDetectionDate**: *ge, le* **certStatus**: *eq* **ignored**: *eq* **score**: *ge, le* (optional) sorters := `attributes.displayName,firstDetectionDate,-score` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **firstDetectionDate, attributes, score** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **firstDetectionDate, attributes, score** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIOutliersAPI.GetIdentityOutliers(context.Background()).Execute() - //resp, r, err := apiClient.Beta.IAIOutliersAPI.GetIdentityOutliers(context.Background()).Limit(limit).Offset(offset).Count(count).Type_(type_).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.GetIdentityOutliers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentityOutliers`: []Outlier - fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.GetIdentityOutliers`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIOutliersAPI.GetIdentityOutliers(context.Background()).Limit(limit).Offset(offset).Count(count).Type_(type_).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.GetIdentityOutliers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityOutliers`: []Outlier + fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.GetIdentityOutliers`: %v\n", resp) } ``` @@ -270,7 +270,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -278,18 +278,18 @@ import ( func main() { type_ := `LOW_SIMILARITY` // string | Type of the identity outliers snapshot to filter on (optional) # string | Type of the identity outliers snapshot to filter on (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIOutliersAPI.GetLatestIdentityOutlierSnapshots(context.Background()).Execute() - //resp, r, err := apiClient.Beta.IAIOutliersAPI.GetLatestIdentityOutlierSnapshots(context.Background()).Type_(type_).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.GetLatestIdentityOutlierSnapshots``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetLatestIdentityOutlierSnapshots`: []LatestOutlierSummary - fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.GetLatestIdentityOutlierSnapshots`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIOutliersAPI.GetLatestIdentityOutlierSnapshots(context.Background()).Type_(type_).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.GetLatestIdentityOutlierSnapshots``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetLatestIdentityOutlierSnapshots`: []LatestOutlierSummary + fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.GetLatestIdentityOutlierSnapshots`: %v\n", resp) } ``` @@ -339,7 +339,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -347,18 +347,18 @@ import ( func main() { outlierFeatureId := `04654b66-7561-4090-94f9-abee0722a1af` // string | Contributing feature id # string | Contributing feature id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIOutliersAPI.GetOutlierContributingFeatureSummary(context.Background(), outlierFeatureId).Execute() - //resp, r, err := apiClient.Beta.IAIOutliersAPI.GetOutlierContributingFeatureSummary(context.Background(), outlierFeatureId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.GetOutlierContributingFeatureSummary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetOutlierContributingFeatureSummary`: OutlierFeatureSummary - fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.GetOutlierContributingFeatureSummary`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIOutliersAPI.GetOutlierContributingFeatureSummary(context.Background(), outlierFeatureId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.GetOutlierContributingFeatureSummary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetOutlierContributingFeatureSummary`: OutlierFeatureSummary + fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.GetOutlierContributingFeatureSummary`: %v\n", resp) } ``` @@ -413,7 +413,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -426,18 +426,18 @@ func main() { includeTranslationMessages := `include-translation-messages=` // string | Whether or not to include translation messages object in returned response (optional) # string | Whether or not to include translation messages object in returned response (optional) sorters := `importance` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **importance** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **importance** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIOutliersAPI.GetPeerGroupOutliersContributingFeatures(context.Background(), outlierId).Execute() - //resp, r, err := apiClient.Beta.IAIOutliersAPI.GetPeerGroupOutliersContributingFeatures(context.Background(), outlierId).Limit(limit).Offset(offset).Count(count).IncludeTranslationMessages(includeTranslationMessages).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.GetPeerGroupOutliersContributingFeatures``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPeerGroupOutliersContributingFeatures`: []OutlierContributingFeature - fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.GetPeerGroupOutliersContributingFeatures`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIOutliersAPI.GetPeerGroupOutliersContributingFeatures(context.Background(), outlierId).Limit(limit).Offset(offset).Count(count).IncludeTranslationMessages(includeTranslationMessages).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.GetPeerGroupOutliersContributingFeatures``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPeerGroupOutliersContributingFeatures`: []OutlierContributingFeature + fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.GetPeerGroupOutliersContributingFeatures`: %v\n", resp) } ``` @@ -480,7 +480,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -488,22 +488,22 @@ import ( func main() { requestbody := []byte(``) // []string | - - var requestBody beta.[]RequestBody - if err := json.Unmarshal(requestbody, &requestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var requestBody []beta.RequestBody + if err := json.Unmarshal(requestbody, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.IAIOutliersAPI.IgnoreIdentityOutliers(context.Background()).RequestBody(requestBody).Execute() - //r, err := apiClient.Beta.IAIOutliersAPI.IgnoreIdentityOutliers(context.Background()).RequestBody(requestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.IgnoreIdentityOutliers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.IAIOutliersAPI.IgnoreIdentityOutliers(context.Background()).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.IgnoreIdentityOutliers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -560,7 +560,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -574,18 +574,18 @@ func main() { accessType := `ENTITLEMENT` // string | The type of access item for the identity outlier contributing feature. If not provided, it returns all. (optional) # string | The type of access item for the identity outlier contributing feature. If not provided, it returns all. (optional) sorters := `displayName` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **displayName** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **displayName** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIOutliersAPI.ListOutliersContributingFeatureAccessItems(context.Background(), outlierId, contributingFeatureName).Execute() - //resp, r, err := apiClient.Beta.IAIOutliersAPI.ListOutliersContributingFeatureAccessItems(context.Background(), outlierId, contributingFeatureName).Limit(limit).Offset(offset).Count(count).AccessType(accessType).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.ListOutliersContributingFeatureAccessItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListOutliersContributingFeatureAccessItems`: []OutliersContributingFeatureAccessItems - fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.ListOutliersContributingFeatureAccessItems`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIOutliersAPI.ListOutliersContributingFeatureAccessItems(context.Background(), outlierId, contributingFeatureName).Limit(limit).Offset(offset).Count(count).AccessType(accessType).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.ListOutliersContributingFeatureAccessItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListOutliersContributingFeatureAccessItems`: []OutliersContributingFeatureAccessItems + fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.ListOutliersContributingFeatureAccessItems`: %v\n", resp) } ``` @@ -628,7 +628,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -636,22 +636,22 @@ import ( func main() { requestbody := []byte(``) // []string | - - var requestBody beta.[]RequestBody - if err := json.Unmarshal(requestbody, &requestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var requestBody []beta.RequestBody + if err := json.Unmarshal(requestbody, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.IAIOutliersAPI.UnIgnoreIdentityOutliers(context.Background()).RequestBody(requestBody).Execute() - //r, err := apiClient.Beta.IAIOutliersAPI.UnIgnoreIdentityOutliers(context.Background()).RequestBody(requestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.UnIgnoreIdentityOutliers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.IAIOutliersAPI.UnIgnoreIdentityOutliers(context.Background()).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.UnIgnoreIdentityOutliers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/IAIPeerGroupStrategiesAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/IAIPeerGroupStrategiesAPI.md index 26ad4e35b..a8f90e6cf 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/IAIPeerGroupStrategiesAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/IAIPeerGroupStrategiesAPI.md @@ -65,7 +65,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -76,18 +76,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIPeerGroupStrategiesAPI.GetPeerGroupOutliers(context.Background(), strategy).Execute() - //resp, r, err := apiClient.Beta.IAIPeerGroupStrategiesAPI.GetPeerGroupOutliers(context.Background(), strategy).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIPeerGroupStrategiesAPI.GetPeerGroupOutliers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPeerGroupOutliers`: []PeerGroupMember - fmt.Fprintf(os.Stdout, "Response from `IAIPeerGroupStrategiesAPI.GetPeerGroupOutliers`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIPeerGroupStrategiesAPI.GetPeerGroupOutliers(context.Background(), strategy).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIPeerGroupStrategiesAPI.GetPeerGroupOutliers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPeerGroupOutliers`: []PeerGroupMember + fmt.Fprintf(os.Stdout, "Response from `IAIPeerGroupStrategiesAPI.GetPeerGroupOutliers`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/IAIRecommendationsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/IAIRecommendationsAPI.md index 749db3f71..f6612f41a 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/IAIRecommendationsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/IAIRecommendationsAPI.md @@ -57,7 +57,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -83,24 +83,23 @@ func main() { "includeDebugInformation" : true }`) // RecommendationRequestDto | - - var recommendationRequestDto beta.RecommendationRequestDto - if err := json.Unmarshal(recommendationrequestdto, &recommendationRequestDto); err != nil { - fmt.Println("Error:", err) - return - } - + var recommendationRequestDto beta.RecommendationRequestDto + if err := json.Unmarshal(recommendationrequestdto, &recommendationRequestDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRecommendationsAPI.GetRecommendations(context.Background()).RecommendationRequestDto(recommendationRequestDto).Execute() - //resp, r, err := apiClient.Beta.IAIRecommendationsAPI.GetRecommendations(context.Background()).RecommendationRequestDto(recommendationRequestDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRecommendationsAPI.GetRecommendations``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRecommendations`: RecommendationResponseDto - fmt.Fprintf(os.Stdout, "Response from `IAIRecommendationsAPI.GetRecommendations`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIRecommendationsAPI.GetRecommendations(context.Background()).RecommendationRequestDto(recommendationRequestDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRecommendationsAPI.GetRecommendations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRecommendations`: RecommendationResponseDto + fmt.Fprintf(os.Stdout, "Response from `IAIRecommendationsAPI.GetRecommendations`: %v\n", resp) } ``` @@ -139,25 +138,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRecommendationsAPI.GetRecommendationsConfig(context.Background()).Execute() - //resp, r, err := apiClient.Beta.IAIRecommendationsAPI.GetRecommendationsConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRecommendationsAPI.GetRecommendationsConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRecommendationsConfig`: RecommendationConfigDto - fmt.Fprintf(os.Stdout, "Response from `IAIRecommendationsAPI.GetRecommendationsConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIRecommendationsAPI.GetRecommendationsConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRecommendationsAPI.GetRecommendationsConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRecommendationsConfig`: RecommendationConfigDto + fmt.Fprintf(os.Stdout, "Response from `IAIRecommendationsAPI.GetRecommendationsConfig`: %v\n", resp) } ``` @@ -200,7 +199,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -213,24 +212,23 @@ func main() { "onlyTuneThreshold" : false }`) // RecommendationConfigDto | - - var recommendationConfigDto beta.RecommendationConfigDto - if err := json.Unmarshal(recommendationconfigdto, &recommendationConfigDto); err != nil { - fmt.Println("Error:", err) - return - } - + var recommendationConfigDto beta.RecommendationConfigDto + if err := json.Unmarshal(recommendationconfigdto, &recommendationConfigDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRecommendationsAPI.UpdateRecommendationsConfig(context.Background()).RecommendationConfigDto(recommendationConfigDto).Execute() - //resp, r, err := apiClient.Beta.IAIRecommendationsAPI.UpdateRecommendationsConfig(context.Background()).RecommendationConfigDto(recommendationConfigDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRecommendationsAPI.UpdateRecommendationsConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateRecommendationsConfig`: RecommendationConfigDto - fmt.Fprintf(os.Stdout, "Response from `IAIRecommendationsAPI.UpdateRecommendationsConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIRecommendationsAPI.UpdateRecommendationsConfig(context.Background()).RecommendationConfigDto(recommendationConfigDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRecommendationsAPI.UpdateRecommendationsConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateRecommendationsConfig`: RecommendationConfigDto + fmt.Fprintf(os.Stdout, "Response from `IAIRecommendationsAPI.UpdateRecommendationsConfig`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/IAIRoleMiningAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/IAIRoleMiningAPI.md index 57705a2b4..0f428dbc3 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/IAIRoleMiningAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/IAIRoleMiningAPI.md @@ -88,7 +88,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -106,18 +106,18 @@ func main() { "directlyAssignedEntitlements" : false }`) // RoleMiningPotentialRoleProvisionRequest | Required information to create a new role (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.CreatePotentialRoleProvisionRequest(context.Background(), sessionId, potentialRoleId).Execute() - //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.CreatePotentialRoleProvisionRequest(context.Background(), sessionId, potentialRoleId).MinEntitlementPopularity(minEntitlementPopularity).IncludeCommonAccess(includeCommonAccess).RoleMiningPotentialRoleProvisionRequest(roleMiningPotentialRoleProvisionRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.CreatePotentialRoleProvisionRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreatePotentialRoleProvisionRequest`: RoleMiningPotentialRoleSummary - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.CreatePotentialRoleProvisionRequest`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.CreatePotentialRoleProvisionRequest(context.Background(), sessionId, potentialRoleId).MinEntitlementPopularity(minEntitlementPopularity).IncludeCommonAccess(includeCommonAccess).RoleMiningPotentialRoleProvisionRequest(roleMiningPotentialRoleProvisionRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.CreatePotentialRoleProvisionRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreatePotentialRoleProvisionRequest`: RoleMiningPotentialRoleSummary + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.CreatePotentialRoleProvisionRequest`: %v\n", resp) } ``` @@ -160,7 +160,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -199,24 +199,23 @@ func main() { "type" : "SPECIALIZED" }`) // RoleMiningSessionDto | Role mining session parameters - - var roleMiningSessionDto beta.RoleMiningSessionDto - if err := json.Unmarshal(roleminingsessiondto, &roleMiningSessionDto); err != nil { - fmt.Println("Error:", err) - return - } - + var roleMiningSessionDto beta.RoleMiningSessionDto + if err := json.Unmarshal(roleminingsessiondto, &roleMiningSessionDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.CreateRoleMiningSessions(context.Background()).RoleMiningSessionDto(roleMiningSessionDto).Execute() - //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.CreateRoleMiningSessions(context.Background()).RoleMiningSessionDto(roleMiningSessionDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.CreateRoleMiningSessions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateRoleMiningSessions`: RoleMiningSessionResponse - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.CreateRoleMiningSessions`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.CreateRoleMiningSessions(context.Background()).RoleMiningSessionDto(roleMiningSessionDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.CreateRoleMiningSessions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateRoleMiningSessions`: RoleMiningSessionResponse + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.CreateRoleMiningSessions`: %v\n", resp) } ``` @@ -267,7 +266,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -277,18 +276,18 @@ func main() { potentialRoleId := `278359a6-04b7-4669-9468-924cf580964a` // string | A potential role id in a role mining session # string | A potential role id in a role mining session exportId := `4940ffd4-836f-48a3-b2b0-6d498c3fdf40` // string | The id of a previously run export job for this potential role # string | The id of a previously run export job for this potential role - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.DownloadRoleMiningPotentialRoleZip(context.Background(), sessionId, potentialRoleId, exportId).Execute() - //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.DownloadRoleMiningPotentialRoleZip(context.Background(), sessionId, potentialRoleId, exportId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.DownloadRoleMiningPotentialRoleZip``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DownloadRoleMiningPotentialRoleZip`: *os.File - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.DownloadRoleMiningPotentialRoleZip`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.DownloadRoleMiningPotentialRoleZip(context.Background(), sessionId, potentialRoleId, exportId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.DownloadRoleMiningPotentialRoleZip``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DownloadRoleMiningPotentialRoleZip`: *os.File + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.DownloadRoleMiningPotentialRoleZip`: %v\n", resp) } ``` @@ -337,7 +336,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -346,18 +345,18 @@ func main() { sessionId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role mining session id # string | The role mining session id potentialRoleId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | A potential role id in a role mining session # string | A potential role id in a role mining session - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.ExportRoleMiningPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() - //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.ExportRoleMiningPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.ExportRoleMiningPotentialRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExportRoleMiningPotentialRole`: *os.File - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.ExportRoleMiningPotentialRole`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.ExportRoleMiningPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.ExportRoleMiningPotentialRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExportRoleMiningPotentialRole`: *os.File + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.ExportRoleMiningPotentialRole`: %v\n", resp) } ``` @@ -407,7 +406,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -420,18 +419,18 @@ func main() { "includeCommonAccess" : true }`) // RoleMiningPotentialRoleExportRequest | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleAsync(context.Background(), sessionId, potentialRoleId).Execute() - //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleAsync(context.Background(), sessionId, potentialRoleId).RoleMiningPotentialRoleExportRequest(roleMiningPotentialRoleExportRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.ExportRoleMiningPotentialRoleAsync``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExportRoleMiningPotentialRoleAsync`: RoleMiningPotentialRoleExportResponse - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.ExportRoleMiningPotentialRoleAsync`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleAsync(context.Background(), sessionId, potentialRoleId).RoleMiningPotentialRoleExportRequest(roleMiningPotentialRoleExportRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.ExportRoleMiningPotentialRoleAsync``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExportRoleMiningPotentialRoleAsync`: RoleMiningPotentialRoleExportResponse + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.ExportRoleMiningPotentialRoleAsync`: %v\n", resp) } ``` @@ -482,7 +481,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -492,18 +491,18 @@ func main() { potentialRoleId := `278359a6-04b7-4669-9468-924cf580964a` // string | A potential role id in a role mining session # string | A potential role id in a role mining session exportId := `4940ffd4-836f-48a3-b2b0-6d498c3fdf40` // string | The id of a previously run export job for this potential role # string | The id of a previously run export job for this potential role - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleStatus(context.Background(), sessionId, potentialRoleId, exportId).Execute() - //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleStatus(context.Background(), sessionId, potentialRoleId, exportId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.ExportRoleMiningPotentialRoleStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExportRoleMiningPotentialRoleStatus`: RoleMiningPotentialRoleExportResponse - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.ExportRoleMiningPotentialRoleStatus`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleStatus(context.Background(), sessionId, potentialRoleId, exportId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.ExportRoleMiningPotentialRoleStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExportRoleMiningPotentialRoleStatus`: RoleMiningPotentialRoleExportResponse + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.ExportRoleMiningPotentialRoleStatus`: %v\n", resp) } ``` @@ -550,7 +549,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -562,18 +561,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetAllPotentialRoleSummaries(context.Background()).Execute() - //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetAllPotentialRoleSummaries(context.Background()).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetAllPotentialRoleSummaries``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAllPotentialRoleSummaries`: []RoleMiningPotentialRoleSummary - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetAllPotentialRoleSummaries`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetAllPotentialRoleSummaries(context.Background()).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetAllPotentialRoleSummaries``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAllPotentialRoleSummaries`: []RoleMiningPotentialRoleSummary + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetAllPotentialRoleSummaries`: %v\n", resp) } ``` @@ -623,7 +622,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -633,18 +632,18 @@ func main() { potentialRoleId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | A potential role id in a role mining session # string | A potential role id in a role mining session includeCommonAccess := true // bool | Boolean determining whether common access entitlements will be included or not (optional) # bool | Boolean determining whether common access entitlements will be included or not (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetEntitlementDistributionPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() - //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetEntitlementDistributionPotentialRole(context.Background(), sessionId, potentialRoleId).IncludeCommonAccess(includeCommonAccess).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetEntitlementDistributionPotentialRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetEntitlementDistributionPotentialRole`: map[string]int32 - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetEntitlementDistributionPotentialRole`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetEntitlementDistributionPotentialRole(context.Background(), sessionId, potentialRoleId).IncludeCommonAccess(includeCommonAccess).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetEntitlementDistributionPotentialRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetEntitlementDistributionPotentialRole`: map[string]int32 + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetEntitlementDistributionPotentialRole`: %v\n", resp) } ``` @@ -699,7 +698,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -714,18 +713,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() - //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).IncludeCommonAccess(includeCommonAccess).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetEntitlementsPotentialRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetEntitlementsPotentialRole`: []RoleMiningEntitlement - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetEntitlementsPotentialRole`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).IncludeCommonAccess(includeCommonAccess).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetEntitlementsPotentialRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetEntitlementsPotentialRole`: []RoleMiningEntitlement + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetEntitlementsPotentialRole`: %v\n", resp) } ``` @@ -779,7 +778,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -793,18 +792,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetExcludedEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() - //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetExcludedEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetExcludedEntitlementsPotentialRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetExcludedEntitlementsPotentialRole`: []RoleMiningEntitlement - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetExcludedEntitlementsPotentialRole`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetExcludedEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetExcludedEntitlementsPotentialRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetExcludedEntitlementsPotentialRole`: []RoleMiningEntitlement + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetExcludedEntitlementsPotentialRole`: %v\n", resp) } ``` @@ -858,7 +857,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -872,18 +871,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetIdentitiesPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() - //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetIdentitiesPotentialRole(context.Background(), sessionId, potentialRoleId).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetIdentitiesPotentialRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentitiesPotentialRole`: []RoleMiningIdentity - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetIdentitiesPotentialRole`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetIdentitiesPotentialRole(context.Background(), sessionId, potentialRoleId).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetIdentitiesPotentialRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentitiesPotentialRole`: []RoleMiningIdentity + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetIdentitiesPotentialRole`: %v\n", resp) } ``` @@ -932,7 +931,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -941,18 +940,18 @@ func main() { sessionId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role mining session id # string | The role mining session id potentialRoleId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | A potential role id in a role mining session # string | A potential role id in a role mining session - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() - //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetPotentialRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPotentialRole`: RoleMiningPotentialRole - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetPotentialRole`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetPotentialRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPotentialRole`: RoleMiningPotentialRole + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetPotentialRole`: %v\n", resp) } ``` @@ -1005,7 +1004,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1018,18 +1017,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetPotentialRoleApplications(context.Background(), sessionId, potentialRoleId).Execute() - //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetPotentialRoleApplications(context.Background(), sessionId, potentialRoleId).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetPotentialRoleApplications``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPotentialRoleApplications`: []RoleMiningPotentialRoleApplication - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetPotentialRoleApplications`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetPotentialRoleApplications(context.Background(), sessionId, potentialRoleId).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetPotentialRoleApplications``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPotentialRoleApplications`: []RoleMiningPotentialRoleApplication + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetPotentialRoleApplications`: %v\n", resp) } ``` @@ -1082,7 +1081,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1095,18 +1094,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetPotentialRoleEntitlements(context.Background(), sessionId, potentialRoleId).Execute() - //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetPotentialRoleEntitlements(context.Background(), sessionId, potentialRoleId).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetPotentialRoleEntitlements``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPotentialRoleEntitlements`: []RoleMiningPotentialRoleEntitlements - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetPotentialRoleEntitlements`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetPotentialRoleEntitlements(context.Background(), sessionId, potentialRoleId).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetPotentialRoleEntitlements``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPotentialRoleEntitlements`: []RoleMiningPotentialRoleEntitlements + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetPotentialRoleEntitlements`: %v\n", resp) } ``` @@ -1159,7 +1158,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1172,18 +1171,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetPotentialRoleSourceIdentityUsage(context.Background(), potentialRoleId, sourceId).Execute() - //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetPotentialRoleSourceIdentityUsage(context.Background(), potentialRoleId, sourceId).Sorters(sorters).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetPotentialRoleSourceIdentityUsage``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPotentialRoleSourceIdentityUsage`: []RoleMiningPotentialRoleSourceUsage - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetPotentialRoleSourceIdentityUsage`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetPotentialRoleSourceIdentityUsage(context.Background(), potentialRoleId, sourceId).Sorters(sorters).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetPotentialRoleSourceIdentityUsage``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPotentialRoleSourceIdentityUsage`: []RoleMiningPotentialRoleSourceUsage + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetPotentialRoleSourceIdentityUsage`: %v\n", resp) } ``` @@ -1235,7 +1234,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1248,18 +1247,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetPotentialRoleSummaries(context.Background(), sessionId).Execute() - //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetPotentialRoleSummaries(context.Background(), sessionId).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetPotentialRoleSummaries``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPotentialRoleSummaries`: []RoleMiningPotentialRoleSummary - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetPotentialRoleSummaries`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetPotentialRoleSummaries(context.Background(), sessionId).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetPotentialRoleSummaries``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPotentialRoleSummaries`: []RoleMiningPotentialRoleSummary + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetPotentialRoleSummaries`: %v\n", resp) } ``` @@ -1306,7 +1305,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1314,18 +1313,18 @@ import ( func main() { potentialRoleId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | A potential role id # string | A potential role id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetRoleMiningPotentialRole(context.Background(), potentialRoleId).Execute() - //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetRoleMiningPotentialRole(context.Background(), potentialRoleId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetRoleMiningPotentialRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleMiningPotentialRole`: RoleMiningPotentialRole - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetRoleMiningPotentialRole`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetRoleMiningPotentialRole(context.Background(), potentialRoleId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetRoleMiningPotentialRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleMiningPotentialRole`: RoleMiningPotentialRole + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetRoleMiningPotentialRole`: %v\n", resp) } ``` @@ -1372,7 +1371,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1380,18 +1379,18 @@ import ( func main() { sessionId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role mining session id to be retrieved. # string | The role mining session id to be retrieved. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetRoleMiningSession(context.Background(), sessionId).Execute() - //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetRoleMiningSession(context.Background(), sessionId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetRoleMiningSession``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleMiningSession`: RoleMiningSessionResponse - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetRoleMiningSession`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetRoleMiningSession(context.Background(), sessionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetRoleMiningSession``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleMiningSession`: RoleMiningSessionResponse + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetRoleMiningSession`: %v\n", resp) } ``` @@ -1438,7 +1437,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1446,18 +1445,18 @@ import ( func main() { sessionId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role mining session id # string | The role mining session id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetRoleMiningSessionStatus(context.Background(), sessionId).Execute() - //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetRoleMiningSessionStatus(context.Background(), sessionId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetRoleMiningSessionStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleMiningSessionStatus`: RoleMiningSessionStatus - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetRoleMiningSessionStatus`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetRoleMiningSessionStatus(context.Background(), sessionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetRoleMiningSessionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleMiningSessionStatus`: RoleMiningSessionStatus + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetRoleMiningSessionStatus`: %v\n", resp) } ``` @@ -1504,7 +1503,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1516,18 +1515,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetRoleMiningSessions(context.Background()).Execute() - //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetRoleMiningSessions(context.Background()).Filters(filters).Sorters(sorters).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetRoleMiningSessions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleMiningSessions`: []RoleMiningSessionResponse - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetRoleMiningSessions`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetRoleMiningSessions(context.Background()).Filters(filters).Sorters(sorters).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetRoleMiningSessions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleMiningSessions`: []RoleMiningSessionResponse + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetRoleMiningSessions`: %v\n", resp) } ``` @@ -1573,7 +1572,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1584,18 +1583,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetSavedPotentialRoles(context.Background()).Execute() - //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetSavedPotentialRoles(context.Background()).Sorters(sorters).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetSavedPotentialRoles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSavedPotentialRoles`: []RoleMiningSessionDraftRoleDto - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetSavedPotentialRoles`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetSavedPotentialRoles(context.Background()).Sorters(sorters).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetSavedPotentialRoles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSavedPotentialRoles`: []RoleMiningSessionDraftRoleDto + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetSavedPotentialRoles`: %v\n", resp) } ``` @@ -1657,7 +1656,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1667,24 +1666,23 @@ func main() { potentialRoleId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The potential role summary id # string | The potential role summary id patchpotentialrolerequestinner := []byte(`[{op=remove, path=/description}, {op=replace, path=/description, value=Acct I - Potential Role}, {op=remove, path=/saved}, {op=replace, path=/saved, value=false}, {op=remove, path=/name}, {op=replace, path=/name, value=Potential Role Accounting}]`) // []PatchPotentialRoleRequestInner | - - var patchPotentialRoleRequestInner beta.[]PatchPotentialRoleRequestInner - if err := json.Unmarshal(patchpotentialrolerequestinner, &patchPotentialRoleRequestInner); err != nil { - fmt.Println("Error:", err) - return - } - + var patchPotentialRoleRequestInner []beta.PatchPotentialRoleRequestInner + if err := json.Unmarshal(patchpotentialrolerequestinner, &patchPotentialRoleRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.PatchPotentialRole(context.Background(), sessionId, potentialRoleId).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() - //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.PatchPotentialRole(context.Background(), sessionId, potentialRoleId).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.PatchPotentialRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchPotentialRole`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.PatchPotentialRole`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.PatchPotentialRole(context.Background(), sessionId, potentialRoleId).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.PatchPotentialRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchPotentialRole`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.PatchPotentialRole`: %v\n", resp) } ``` @@ -1744,7 +1742,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1753,24 +1751,23 @@ func main() { potentialRoleId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The potential role summary id # string | The potential role summary id patchpotentialrolerequestinner := []byte(`[{op=remove, path=/description}, {op=replace, path=/description, value=Acct I - Potential Role}, {op=remove, path=/saved}, {op=replace, path=/saved, value=false}, {op=remove, path=/name}, {op=replace, path=/name, value=Potential Role Accounting}]`) // []PatchPotentialRoleRequestInner | - - var patchPotentialRoleRequestInner beta.[]PatchPotentialRoleRequestInner - if err := json.Unmarshal(patchpotentialrolerequestinner, &patchPotentialRoleRequestInner); err != nil { - fmt.Println("Error:", err) - return - } - + var patchPotentialRoleRequestInner []beta.PatchPotentialRoleRequestInner + if err := json.Unmarshal(patchpotentialrolerequestinner, &patchPotentialRoleRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.PatchRoleMiningPotentialRole(context.Background(), potentialRoleId).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() - //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.PatchRoleMiningPotentialRole(context.Background(), potentialRoleId).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.PatchRoleMiningPotentialRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchRoleMiningPotentialRole`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.PatchRoleMiningPotentialRole`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.PatchRoleMiningPotentialRole(context.Background(), potentialRoleId).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.PatchRoleMiningPotentialRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchRoleMiningPotentialRole`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.PatchRoleMiningPotentialRole`: %v\n", resp) } ``` @@ -1818,7 +1815,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1827,24 +1824,23 @@ func main() { sessionId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role mining session id to be patched # string | The role mining session id to be patched jsonpatchoperation := []byte(`[{op=replace, path=/pruneThreshold, value=83}, {op=replace, path=/minNumIdentitiesInPotentialRole, value=10}, {op=replace, path=/saved, value=false}, {op=replace, path=/name, value=RM Session - 07/10/22}, {op=add, path=/name, value=RM Session - 07/10/22}]`) // []JsonPatchOperation | Replace pruneThreshold and/or minNumIdentitiesInPotentialRole in role mining session. Update saved status or saved name for a role mining session. - - var jsonPatchOperation beta.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []beta.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.PatchRoleMiningSession(context.Background(), sessionId).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.PatchRoleMiningSession(context.Background(), sessionId).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.PatchRoleMiningSession``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchRoleMiningSession`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.PatchRoleMiningSession`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.PatchRoleMiningSession(context.Background(), sessionId).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.PatchRoleMiningSession``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchRoleMiningSession`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.PatchRoleMiningSession`: %v\n", resp) } ``` @@ -1894,7 +1890,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1907,24 +1903,23 @@ func main() { "exclude" : true }`) // RoleMiningPotentialRoleEditEntitlements | Role mining session parameters - - var roleMiningPotentialRoleEditEntitlements beta.RoleMiningPotentialRoleEditEntitlements - if err := json.Unmarshal(roleminingpotentialroleeditentitlements, &roleMiningPotentialRoleEditEntitlements); err != nil { - fmt.Println("Error:", err) - return - } - + var roleMiningPotentialRoleEditEntitlements beta.RoleMiningPotentialRoleEditEntitlements + if err := json.Unmarshal(roleminingpotentialroleeditentitlements, &roleMiningPotentialRoleEditEntitlements); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.UpdateEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).RoleMiningPotentialRoleEditEntitlements(roleMiningPotentialRoleEditEntitlements).Execute() - //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.UpdateEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).RoleMiningPotentialRoleEditEntitlements(roleMiningPotentialRoleEditEntitlements).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.UpdateEntitlementsPotentialRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateEntitlementsPotentialRole`: RoleMiningPotentialRole - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.UpdateEntitlementsPotentialRole`: %v\n", resp) + //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.UpdateEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).RoleMiningPotentialRoleEditEntitlements(roleMiningPotentialRoleEditEntitlements).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.UpdateEntitlementsPotentialRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateEntitlementsPotentialRole`: RoleMiningPotentialRole + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.UpdateEntitlementsPotentialRole`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/IconsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/IconsAPI.md index 3f712264a..af029ccd5 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/IconsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/IconsAPI.md @@ -64,7 +64,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -73,16 +73,17 @@ func main() { objectType := `application` // string | Object type # string | Object type objectId := `a291e870-48c3-4953-b656-fb5ce2a93169` // string | Object id. # string | Object id. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.IconsAPI.DeleteIcon(context.Background(), objectType, objectId).Execute() - //r, err := apiClient.Beta.IconsAPI.DeleteIcon(context.Background(), objectType, objectId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IconsAPI.DeleteIcon``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.IconsAPI.DeleteIcon(context.Background(), objectType, objectId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IconsAPI.DeleteIcon``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -132,7 +133,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -142,18 +143,18 @@ func main() { objectId := `a291e870-48c3-4953-b656-fb5ce2a93169` // string | Object id. # string | Object id. image := BINARY_DATA_HERE // *os.File | file with icon. Allowed mime-types ['image/png', 'image/jpeg'] # *os.File | file with icon. Allowed mime-types ['image/png', 'image/jpeg'] - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IconsAPI.SetIcon(context.Background(), objectType, objectId).Image(image).Execute() - //resp, r, err := apiClient.Beta.IconsAPI.SetIcon(context.Background(), objectType, objectId).Image(image).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IconsAPI.SetIcon``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetIcon`: SetIcon200Response - fmt.Fprintf(os.Stdout, "Response from `IconsAPI.SetIcon`: %v\n", resp) + //resp, r, err := apiClient.Beta.IconsAPI.SetIcon(context.Background(), objectType, objectId).Image(image).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IconsAPI.SetIcon``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetIcon`: SetIcon200Response + fmt.Fprintf(os.Stdout, "Response from `IconsAPI.SetIcon`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/IdentitiesAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/IdentitiesAPI.md index 84dd152cd..17e78fe49 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/IdentitiesAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/IdentitiesAPI.md @@ -84,7 +84,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -92,16 +92,17 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Identity Id # string | Identity Id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.IdentitiesAPI.DeleteIdentity(context.Background(), id).Execute() - //r, err := apiClient.Beta.IdentitiesAPI.DeleteIdentity(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.DeleteIdentity``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.IdentitiesAPI.DeleteIdentity(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.DeleteIdentity``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -148,7 +149,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -156,18 +157,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Identity Id # string | Identity Id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentitiesAPI.GetIdentity(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.IdentitiesAPI.GetIdentity(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.GetIdentity``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentity`: Identity - fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.GetIdentity`: %v\n", resp) + //resp, r, err := apiClient.Beta.IdentitiesAPI.GetIdentity(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.GetIdentity``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentity`: Identity + fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.GetIdentity`: %v\n", resp) } ``` @@ -216,7 +217,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -224,18 +225,18 @@ import ( func main() { identityId := `ff8081814d2a8036014d701f3fbf53fa` // string | Identity ID. # string | Identity ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentitiesAPI.GetIdentityOwnershipDetails(context.Background(), identityId).Execute() - //resp, r, err := apiClient.Beta.IdentitiesAPI.GetIdentityOwnershipDetails(context.Background(), identityId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.GetIdentityOwnershipDetails``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentityOwnershipDetails`: IdentityOwnershipAssociationDetails - fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.GetIdentityOwnershipDetails`: %v\n", resp) + //resp, r, err := apiClient.Beta.IdentitiesAPI.GetIdentityOwnershipDetails(context.Background(), identityId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.GetIdentityOwnershipDetails``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityOwnershipDetails`: IdentityOwnershipAssociationDetails + fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.GetIdentityOwnershipDetails`: %v\n", resp) } ``` @@ -284,7 +285,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -293,18 +294,18 @@ func main() { identityId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity Id # string | Identity Id assignmentId := `1cbb0705b38c4226b1334eadd8874086` // string | Assignment Id # string | Assignment Id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentitiesAPI.GetRoleAssignment(context.Background(), identityId, assignmentId).Execute() - //resp, r, err := apiClient.Beta.IdentitiesAPI.GetRoleAssignment(context.Background(), identityId, assignmentId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.GetRoleAssignment``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleAssignment`: RoleAssignmentDto - fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.GetRoleAssignment`: %v\n", resp) + //resp, r, err := apiClient.Beta.IdentitiesAPI.GetRoleAssignment(context.Background(), identityId, assignmentId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.GetRoleAssignment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleAssignment`: RoleAssignmentDto + fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.GetRoleAssignment`: %v\n", resp) } ``` @@ -353,7 +354,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -363,18 +364,18 @@ func main() { roleId := `e7697a1e96d04db1ac7b0f4544915d2c` // string | Role Id to filter the role assignments with (optional) # string | Role Id to filter the role assignments with (optional) roleName := `Engineer` // string | Role name to filter the role assignments with (optional) # string | Role name to filter the role assignments with (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentitiesAPI.GetRoleAssignments(context.Background(), identityId).Execute() - //resp, r, err := apiClient.Beta.IdentitiesAPI.GetRoleAssignments(context.Background(), identityId).RoleId(roleId).RoleName(roleName).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.GetRoleAssignments``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleAssignments`: []GetRoleAssignments200ResponseInner - fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.GetRoleAssignments`: %v\n", resp) + //resp, r, err := apiClient.Beta.IdentitiesAPI.GetRoleAssignments(context.Background(), identityId).RoleId(roleId).RoleName(roleName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.GetRoleAssignments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleAssignments`: []GetRoleAssignments200ResponseInner + fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.GetRoleAssignments`: %v\n", resp) } ``` @@ -422,7 +423,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -435,18 +436,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentitiesAPI.ListIdentities(context.Background()).Execute() - //resp, r, err := apiClient.Beta.IdentitiesAPI.ListIdentities(context.Background()).Filters(filters).Sorters(sorters).DefaultFilter(defaultFilter).Count(count).Limit(limit).Offset(offset).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.ListIdentities``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListIdentities`: []Identity - fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.ListIdentities`: %v\n", resp) + //resp, r, err := apiClient.Beta.IdentitiesAPI.ListIdentities(context.Background()).Filters(filters).Sorters(sorters).DefaultFilter(defaultFilter).Count(count).Limit(limit).Offset(offset).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.ListIdentities``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListIdentities`: []Identity + fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.ListIdentities`: %v\n", resp) } ``` @@ -493,7 +494,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -501,16 +502,17 @@ import ( func main() { identityId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity Id # string | Identity Id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.IdentitiesAPI.ResetIdentity(context.Background(), identityId).Execute() - //r, err := apiClient.Beta.IdentitiesAPI.ResetIdentity(context.Background(), identityId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.ResetIdentity``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.IdentitiesAPI.ResetIdentity(context.Background(), identityId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.ResetIdentity``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -559,7 +561,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -571,22 +573,22 @@ func main() { "via" : "EMAIL_WORK" }`) // SendAccountVerificationRequest | - - var sendAccountVerificationRequest beta.SendAccountVerificationRequest - if err := json.Unmarshal(sendaccountverificationrequest, &sendAccountVerificationRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var sendAccountVerificationRequest beta.SendAccountVerificationRequest + if err := json.Unmarshal(sendaccountverificationrequest, &sendAccountVerificationRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.IdentitiesAPI.SendIdentityVerificationAccountToken(context.Background(), id).SendAccountVerificationRequest(sendAccountVerificationRequest).Execute() - //r, err := apiClient.Beta.IdentitiesAPI.SendIdentityVerificationAccountToken(context.Background(), id).SendAccountVerificationRequest(sendAccountVerificationRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.SendIdentityVerificationAccountToken``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.IdentitiesAPI.SendIdentityVerificationAccountToken(context.Background(), id).SendAccountVerificationRequest(sendAccountVerificationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.SendIdentityVerificationAccountToken``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -634,7 +636,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -645,24 +647,23 @@ func main() { "uninvited" : false }`) // InviteIdentitiesRequest | - - var inviteIdentitiesRequest beta.InviteIdentitiesRequest - if err := json.Unmarshal(inviteidentitiesrequest, &inviteIdentitiesRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var inviteIdentitiesRequest beta.InviteIdentitiesRequest + if err := json.Unmarshal(inviteidentitiesrequest, &inviteIdentitiesRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentitiesAPI.StartIdentitiesInvite(context.Background()).InviteIdentitiesRequest(inviteIdentitiesRequest).Execute() - //resp, r, err := apiClient.Beta.IdentitiesAPI.StartIdentitiesInvite(context.Background()).InviteIdentitiesRequest(inviteIdentitiesRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.StartIdentitiesInvite``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartIdentitiesInvite`: TaskStatus - fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.StartIdentitiesInvite`: %v\n", resp) + //resp, r, err := apiClient.Beta.IdentitiesAPI.StartIdentitiesInvite(context.Background()).InviteIdentitiesRequest(inviteIdentitiesRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.StartIdentitiesInvite``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartIdentitiesInvite`: TaskStatus + fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.StartIdentitiesInvite`: %v\n", resp) } ``` @@ -715,7 +716,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -725,24 +726,23 @@ func main() { "identityIds" : [ "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8" ] }`) // ProcessIdentitiesRequest | - - var processIdentitiesRequest beta.ProcessIdentitiesRequest - if err := json.Unmarshal(processidentitiesrequest, &processIdentitiesRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var processIdentitiesRequest beta.ProcessIdentitiesRequest + if err := json.Unmarshal(processidentitiesrequest, &processIdentitiesRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentitiesAPI.StartIdentityProcessing(context.Background()).ProcessIdentitiesRequest(processIdentitiesRequest).Execute() - //resp, r, err := apiClient.Beta.IdentitiesAPI.StartIdentityProcessing(context.Background()).ProcessIdentitiesRequest(processIdentitiesRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.StartIdentityProcessing``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartIdentityProcessing`: TaskResultResponse - fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.StartIdentityProcessing`: %v\n", resp) + //resp, r, err := apiClient.Beta.IdentitiesAPI.StartIdentityProcessing(context.Background()).ProcessIdentitiesRequest(processIdentitiesRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.StartIdentityProcessing``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartIdentityProcessing`: TaskResultResponse + fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.StartIdentityProcessing`: %v\n", resp) } ``` @@ -789,7 +789,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -797,18 +797,18 @@ import ( func main() { identityId := `identityId_example` // string | The Identity id # string | The Identity id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentitiesAPI.SynchronizeAttributesForIdentity(context.Background(), identityId).Execute() - //resp, r, err := apiClient.Beta.IdentitiesAPI.SynchronizeAttributesForIdentity(context.Background(), identityId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.SynchronizeAttributesForIdentity``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SynchronizeAttributesForIdentity`: IdentitySyncJob - fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.SynchronizeAttributesForIdentity`: %v\n", resp) + //resp, r, err := apiClient.Beta.IdentitiesAPI.SynchronizeAttributesForIdentity(context.Background(), identityId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.SynchronizeAttributesForIdentity``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SynchronizeAttributesForIdentity`: IdentitySyncJob + fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.SynchronizeAttributesForIdentity`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/IdentityAttributesAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/IdentityAttributesAPI.md index e00e1958a..a3d612f48 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/IdentityAttributesAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/IdentityAttributesAPI.md @@ -60,7 +60,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -89,24 +89,23 @@ func main() { "multi" : false }`) // IdentityAttribute | - - var identityAttribute beta.IdentityAttribute - if err := json.Unmarshal(identityattribute, &identityAttribute); err != nil { - fmt.Println("Error:", err) - return - } - + var identityAttribute beta.IdentityAttribute + if err := json.Unmarshal(identityattribute, &identityAttribute); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityAttributesAPI.CreateIdentityAttribute(context.Background()).IdentityAttribute(identityAttribute).Execute() - //resp, r, err := apiClient.Beta.IdentityAttributesAPI.CreateIdentityAttribute(context.Background()).IdentityAttribute(identityAttribute).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityAttributesAPI.CreateIdentityAttribute``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateIdentityAttribute`: IdentityAttribute - fmt.Fprintf(os.Stdout, "Response from `IdentityAttributesAPI.CreateIdentityAttribute`: %v\n", resp) + //resp, r, err := apiClient.Beta.IdentityAttributesAPI.CreateIdentityAttribute(context.Background()).IdentityAttribute(identityAttribute).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityAttributesAPI.CreateIdentityAttribute``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateIdentityAttribute`: IdentityAttribute + fmt.Fprintf(os.Stdout, "Response from `IdentityAttributesAPI.CreateIdentityAttribute`: %v\n", resp) } ``` @@ -153,7 +152,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -161,16 +160,17 @@ import ( func main() { name := `displayName` // string | The attribute's technical name. # string | The attribute's technical name. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.IdentityAttributesAPI.DeleteIdentityAttribute(context.Background(), name).Execute() - //r, err := apiClient.Beta.IdentityAttributesAPI.DeleteIdentityAttribute(context.Background(), name).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityAttributesAPI.DeleteIdentityAttribute``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.IdentityAttributesAPI.DeleteIdentityAttribute(context.Background(), name).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityAttributesAPI.DeleteIdentityAttribute``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -213,7 +213,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -223,22 +223,22 @@ func main() { "ids" : [ "name", "displayName" ] }`) // IdentityAttributeNames | - - var identityAttributeNames beta.IdentityAttributeNames - if err := json.Unmarshal(identityattributenames, &identityAttributeNames); err != nil { - fmt.Println("Error:", err) - return - } - + var identityAttributeNames beta.IdentityAttributeNames + if err := json.Unmarshal(identityattributenames, &identityAttributeNames); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.IdentityAttributesAPI.DeleteIdentityAttributesInBulk(context.Background()).IdentityAttributeNames(identityAttributeNames).Execute() - //r, err := apiClient.Beta.IdentityAttributesAPI.DeleteIdentityAttributesInBulk(context.Background()).IdentityAttributeNames(identityAttributeNames).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityAttributesAPI.DeleteIdentityAttributesInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.IdentityAttributesAPI.DeleteIdentityAttributesInBulk(context.Background()).IdentityAttributeNames(identityAttributeNames).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityAttributesAPI.DeleteIdentityAttributesInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -285,7 +285,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -293,18 +293,18 @@ import ( func main() { name := `displayName` // string | The attribute's technical name. # string | The attribute's technical name. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityAttributesAPI.GetIdentityAttribute(context.Background(), name).Execute() - //resp, r, err := apiClient.Beta.IdentityAttributesAPI.GetIdentityAttribute(context.Background(), name).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityAttributesAPI.GetIdentityAttribute``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentityAttribute`: IdentityAttribute - fmt.Fprintf(os.Stdout, "Response from `IdentityAttributesAPI.GetIdentityAttribute`: %v\n", resp) + //resp, r, err := apiClient.Beta.IdentityAttributesAPI.GetIdentityAttribute(context.Background(), name).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityAttributesAPI.GetIdentityAttribute``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityAttribute`: IdentityAttribute + fmt.Fprintf(os.Stdout, "Response from `IdentityAttributesAPI.GetIdentityAttribute`: %v\n", resp) } ``` @@ -350,7 +350,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -361,18 +361,18 @@ func main() { searchableOnly := false // bool | Include only 'searchable' attributes in the response. (optional) (default to false) # bool | Include only 'searchable' attributes in the response. (optional) (default to false) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityAttributesAPI.ListIdentityAttributes(context.Background()).Execute() - //resp, r, err := apiClient.Beta.IdentityAttributesAPI.ListIdentityAttributes(context.Background()).IncludeSystem(includeSystem).IncludeSilent(includeSilent).SearchableOnly(searchableOnly).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityAttributesAPI.ListIdentityAttributes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListIdentityAttributes`: []IdentityAttribute - fmt.Fprintf(os.Stdout, "Response from `IdentityAttributesAPI.ListIdentityAttributes`: %v\n", resp) + //resp, r, err := apiClient.Beta.IdentityAttributesAPI.ListIdentityAttributes(context.Background()).IncludeSystem(includeSystem).IncludeSilent(includeSilent).SearchableOnly(searchableOnly).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityAttributesAPI.ListIdentityAttributes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListIdentityAttributes`: []IdentityAttribute + fmt.Fprintf(os.Stdout, "Response from `IdentityAttributesAPI.ListIdentityAttributes`: %v\n", resp) } ``` @@ -420,7 +420,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -450,24 +450,23 @@ func main() { "multi" : false }`) // IdentityAttribute | - - var identityAttribute beta.IdentityAttribute - if err := json.Unmarshal(identityattribute, &identityAttribute); err != nil { - fmt.Println("Error:", err) - return - } - + var identityAttribute beta.IdentityAttribute + if err := json.Unmarshal(identityattribute, &identityAttribute); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityAttributesAPI.PutIdentityAttribute(context.Background(), name).IdentityAttribute(identityAttribute).Execute() - //resp, r, err := apiClient.Beta.IdentityAttributesAPI.PutIdentityAttribute(context.Background(), name).IdentityAttribute(identityAttribute).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityAttributesAPI.PutIdentityAttribute``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutIdentityAttribute`: IdentityAttribute - fmt.Fprintf(os.Stdout, "Response from `IdentityAttributesAPI.PutIdentityAttribute`: %v\n", resp) + //resp, r, err := apiClient.Beta.IdentityAttributesAPI.PutIdentityAttribute(context.Background(), name).IdentityAttribute(identityAttribute).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityAttributesAPI.PutIdentityAttribute``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutIdentityAttribute`: IdentityAttribute + fmt.Fprintf(os.Stdout, "Response from `IdentityAttributesAPI.PutIdentityAttribute`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/IdentityHistoryAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/IdentityHistoryAPI.md index c809dc485..a62d03a91 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/IdentityHistoryAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/IdentityHistoryAPI.md @@ -75,7 +75,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -89,18 +89,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityHistoryAPI.CompareIdentitySnapshots(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.IdentityHistoryAPI.CompareIdentitySnapshots(context.Background(), id).Snapshot1(snapshot1).Snapshot2(snapshot2).AccessItemTypes(accessItemTypes).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.CompareIdentitySnapshots``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CompareIdentitySnapshots`: []IdentityCompareResponse - fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.CompareIdentitySnapshots`: %v\n", resp) + //resp, r, err := apiClient.Beta.IdentityHistoryAPI.CompareIdentitySnapshots(context.Background(), id).Snapshot1(snapshot1).Snapshot2(snapshot2).AccessItemTypes(accessItemTypes).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.CompareIdentitySnapshots``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CompareIdentitySnapshots`: []IdentityCompareResponse + fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.CompareIdentitySnapshots`: %v\n", resp) } ``` @@ -155,7 +155,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -170,18 +170,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityHistoryAPI.CompareIdentitySnapshotsAccessType(context.Background(), id, accessType).Execute() - //resp, r, err := apiClient.Beta.IdentityHistoryAPI.CompareIdentitySnapshotsAccessType(context.Background(), id, accessType).AccessAssociated(accessAssociated).Snapshot1(snapshot1).Snapshot2(snapshot2).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.CompareIdentitySnapshotsAccessType``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CompareIdentitySnapshotsAccessType`: []AccessItemDiff - fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.CompareIdentitySnapshotsAccessType`: %v\n", resp) + //resp, r, err := apiClient.Beta.IdentityHistoryAPI.CompareIdentitySnapshotsAccessType(context.Background(), id, accessType).AccessAssociated(accessAssociated).Snapshot1(snapshot1).Snapshot2(snapshot2).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.CompareIdentitySnapshotsAccessType``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CompareIdentitySnapshotsAccessType`: []AccessItemDiff + fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.CompareIdentitySnapshotsAccessType`: %v\n", resp) } ``` @@ -228,7 +228,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -236,18 +236,18 @@ import ( func main() { id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The identity id # string | The identity id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityHistoryAPI.GetHistoricalIdentity(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.IdentityHistoryAPI.GetHistoricalIdentity(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.GetHistoricalIdentity``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetHistoricalIdentity`: IdentityHistoryResponse - fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.GetHistoricalIdentity`: %v\n", resp) + //resp, r, err := apiClient.Beta.IdentityHistoryAPI.GetHistoricalIdentity(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.GetHistoricalIdentity``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetHistoricalIdentity`: IdentityHistoryResponse + fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.GetHistoricalIdentity`: %v\n", resp) } ``` @@ -300,7 +300,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -314,18 +314,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityHistoryAPI.GetHistoricalIdentityEvents(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.IdentityHistoryAPI.GetHistoricalIdentityEvents(context.Background(), id).From(from).EventTypes(eventTypes).AccessItemTypes(accessItemTypes).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.GetHistoricalIdentityEvents``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetHistoricalIdentityEvents`: []GetHistoricalIdentityEvents200ResponseInner - fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.GetHistoricalIdentityEvents`: %v\n", resp) + //resp, r, err := apiClient.Beta.IdentityHistoryAPI.GetHistoricalIdentityEvents(context.Background(), id).From(from).EventTypes(eventTypes).AccessItemTypes(accessItemTypes).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.GetHistoricalIdentityEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetHistoricalIdentityEvents`: []GetHistoricalIdentityEvents200ResponseInner + fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.GetHistoricalIdentityEvents`: %v\n", resp) } ``` @@ -374,7 +374,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -383,18 +383,18 @@ func main() { id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The identity id # string | The identity id date := `2007-03-01T13:00:00Z` // string | The specified date # string | The specified date - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityHistoryAPI.GetIdentitySnapshot(context.Background(), id, date).Execute() - //resp, r, err := apiClient.Beta.IdentityHistoryAPI.GetIdentitySnapshot(context.Background(), id, date).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.GetIdentitySnapshot``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentitySnapshot`: IdentityHistoryResponse - fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.GetIdentitySnapshot`: %v\n", resp) + //resp, r, err := apiClient.Beta.IdentityHistoryAPI.GetIdentitySnapshot(context.Background(), id, date).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.GetIdentitySnapshot``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentitySnapshot`: IdentityHistoryResponse + fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.GetIdentitySnapshot`: %v\n", resp) } ``` @@ -447,7 +447,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -461,18 +461,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityHistoryAPI.GetIdentitySnapshotSummary(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.IdentityHistoryAPI.GetIdentitySnapshotSummary(context.Background(), id).Before(before).Interval(interval).TimeZone(timeZone).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.GetIdentitySnapshotSummary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentitySnapshotSummary`: []MetricResponse - fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.GetIdentitySnapshotSummary`: %v\n", resp) + //resp, r, err := apiClient.Beta.IdentityHistoryAPI.GetIdentitySnapshotSummary(context.Background(), id).Before(before).Interval(interval).TimeZone(timeZone).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.GetIdentitySnapshotSummary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentitySnapshotSummary`: []MetricResponse + fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.GetIdentitySnapshotSummary`: %v\n", resp) } ``` @@ -519,7 +519,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -527,18 +527,18 @@ import ( func main() { id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The identity id # string | The identity id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityHistoryAPI.GetIdentityStartDate(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.IdentityHistoryAPI.GetIdentityStartDate(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.GetIdentityStartDate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentityStartDate`: string - fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.GetIdentityStartDate`: %v\n", resp) + //resp, r, err := apiClient.Beta.IdentityHistoryAPI.GetIdentityStartDate(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.GetIdentityStartDate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityStartDate`: string + fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.GetIdentityStartDate`: %v\n", resp) } ``` @@ -585,7 +585,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -597,18 +597,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityHistoryAPI.ListHistoricalIdentities(context.Background()).Execute() - //resp, r, err := apiClient.Beta.IdentityHistoryAPI.ListHistoricalIdentities(context.Background()).StartsWithQuery(startsWithQuery).IsDeleted(isDeleted).IsActive(isActive).Limit(limit).Offset(offset).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.ListHistoricalIdentities``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListHistoricalIdentities`: []IdentityListItem - fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.ListHistoricalIdentities`: %v\n", resp) + //resp, r, err := apiClient.Beta.IdentityHistoryAPI.ListHistoricalIdentities(context.Background()).StartsWithQuery(startsWithQuery).IsDeleted(isDeleted).IsActive(isActive).Limit(limit).Offset(offset).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.ListHistoricalIdentities``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListHistoricalIdentities`: []IdentityListItem + fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.ListHistoricalIdentities`: %v\n", resp) } ``` @@ -662,7 +662,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -677,18 +677,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityHistoryAPI.ListIdentityAccessItems(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.IdentityHistoryAPI.ListIdentityAccessItems(context.Background(), id).Type_(type_).Filters(filters).Sorters(sorters).Query(query).Limit(limit).Count(count).Offset(offset).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.ListIdentityAccessItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListIdentityAccessItems`: []ListIdentityAccessItems200ResponseInner - fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.ListIdentityAccessItems`: %v\n", resp) + //resp, r, err := apiClient.Beta.IdentityHistoryAPI.ListIdentityAccessItems(context.Background(), id).Type_(type_).Filters(filters).Sorters(sorters).Query(query).Limit(limit).Count(count).Offset(offset).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.ListIdentityAccessItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListIdentityAccessItems`: []ListIdentityAccessItems200ResponseInner + fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.ListIdentityAccessItems`: %v\n", resp) } ``` @@ -738,7 +738,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -748,18 +748,18 @@ func main() { date := `2007-03-01T13:00:00Z` // string | Specified date. # string | Specified date. type_ := `account` // string | Access item type. (optional) # string | Access item type. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityHistoryAPI.ListIdentitySnapshotAccessItems(context.Background(), id, date).Execute() - //resp, r, err := apiClient.Beta.IdentityHistoryAPI.ListIdentitySnapshotAccessItems(context.Background(), id, date).Type_(type_).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.ListIdentitySnapshotAccessItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListIdentitySnapshotAccessItems`: []ListIdentityAccessItems200ResponseInner - fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.ListIdentitySnapshotAccessItems`: %v\n", resp) + //resp, r, err := apiClient.Beta.IdentityHistoryAPI.ListIdentitySnapshotAccessItems(context.Background(), id, date).Type_(type_).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.ListIdentitySnapshotAccessItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListIdentitySnapshotAccessItems`: []ListIdentityAccessItems200ResponseInner + fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.ListIdentitySnapshotAccessItems`: %v\n", resp) } ``` @@ -811,7 +811,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -824,18 +824,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityHistoryAPI.ListIdentitySnapshots(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.IdentityHistoryAPI.ListIdentitySnapshots(context.Background(), id).Start(start).Interval(interval).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.ListIdentitySnapshots``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListIdentitySnapshots`: []IdentitySnapshotSummaryResponse - fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.ListIdentitySnapshots`: %v\n", resp) + //resp, r, err := apiClient.Beta.IdentityHistoryAPI.ListIdentitySnapshots(context.Background(), id).Start(start).Interval(interval).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.ListIdentitySnapshots``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListIdentitySnapshots`: []IdentitySnapshotSummaryResponse + fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.ListIdentitySnapshots`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/IdentityProfilesAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/IdentityProfilesAPI.md index 9c93daac7..b1f993b45 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/IdentityProfilesAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/IdentityProfilesAPI.md @@ -77,7 +77,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -133,24 +133,23 @@ func main() { "id" : "id12345" }`) // IdentityProfile | - - var identityProfile beta.IdentityProfile - if err := json.Unmarshal(identityprofile, &identityProfile); err != nil { - fmt.Println("Error:", err) - return - } - + var identityProfile beta.IdentityProfile + if err := json.Unmarshal(identityprofile, &identityProfile); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityProfilesAPI.CreateIdentityProfile(context.Background()).IdentityProfile(identityProfile).Execute() - //resp, r, err := apiClient.Beta.IdentityProfilesAPI.CreateIdentityProfile(context.Background()).IdentityProfile(identityProfile).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.CreateIdentityProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateIdentityProfile`: IdentityProfile - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.CreateIdentityProfile`: %v\n", resp) + //resp, r, err := apiClient.Beta.IdentityProfilesAPI.CreateIdentityProfile(context.Background()).IdentityProfile(identityProfile).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.CreateIdentityProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateIdentityProfile`: IdentityProfile + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.CreateIdentityProfile`: %v\n", resp) } ``` @@ -199,7 +198,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -207,18 +206,18 @@ import ( func main() { identityProfileId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity profile ID. # string | Identity profile ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityProfilesAPI.DeleteIdentityProfile(context.Background(), identityProfileId).Execute() - //resp, r, err := apiClient.Beta.IdentityProfilesAPI.DeleteIdentityProfile(context.Background(), identityProfileId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.DeleteIdentityProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteIdentityProfile`: TaskResultSimplified - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.DeleteIdentityProfile`: %v\n", resp) + //resp, r, err := apiClient.Beta.IdentityProfilesAPI.DeleteIdentityProfile(context.Background(), identityProfileId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.DeleteIdentityProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteIdentityProfile`: TaskResultSimplified + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.DeleteIdentityProfile`: %v\n", resp) } ``` @@ -267,7 +266,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -275,24 +274,23 @@ import ( func main() { requestbody := []byte(``) // []string | Identity Profile bulk delete request body. - - var requestBody beta.[]RequestBody - if err := json.Unmarshal(requestbody, &requestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var requestBody []beta.RequestBody + if err := json.Unmarshal(requestbody, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityProfilesAPI.DeleteIdentityProfiles(context.Background()).RequestBody(requestBody).Execute() - //resp, r, err := apiClient.Beta.IdentityProfilesAPI.DeleteIdentityProfiles(context.Background()).RequestBody(requestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.DeleteIdentityProfiles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteIdentityProfiles`: TaskResultSimplified - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.DeleteIdentityProfiles`: %v\n", resp) + //resp, r, err := apiClient.Beta.IdentityProfilesAPI.DeleteIdentityProfiles(context.Background()).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.DeleteIdentityProfiles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteIdentityProfiles`: TaskResultSimplified + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.DeleteIdentityProfiles`: %v\n", resp) } ``` @@ -339,7 +337,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -351,18 +349,18 @@ func main() { filters := `id eq 8c190e6787aa4ed9a90bd9d5344523fb` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, ne* **name**: *eq, ne* **priority**: *eq, ne* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, ne* **name**: *eq, ne* **priority**: *eq, ne* (optional) sorters := `name,-priority` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, priority** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, priority** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityProfilesAPI.ExportIdentityProfiles(context.Background()).Execute() - //resp, r, err := apiClient.Beta.IdentityProfilesAPI.ExportIdentityProfiles(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.ExportIdentityProfiles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExportIdentityProfiles`: []IdentityProfileExportedObject - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.ExportIdentityProfiles`: %v\n", resp) + //resp, r, err := apiClient.Beta.IdentityProfilesAPI.ExportIdentityProfiles(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.ExportIdentityProfiles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExportIdentityProfiles`: []IdentityProfileExportedObject + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.ExportIdentityProfiles`: %v\n", resp) } ``` @@ -410,7 +408,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -418,18 +416,18 @@ import ( func main() { identityProfileId := `ef38f94347e94562b5bb8424a56397d8` // string | The Identity Profile ID # string | The Identity Profile ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityProfilesAPI.GetDefaultIdentityAttributeConfig(context.Background(), identityProfileId).Execute() - //resp, r, err := apiClient.Beta.IdentityProfilesAPI.GetDefaultIdentityAttributeConfig(context.Background(), identityProfileId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.GetDefaultIdentityAttributeConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetDefaultIdentityAttributeConfig`: IdentityAttributeConfig - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.GetDefaultIdentityAttributeConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.IdentityProfilesAPI.GetDefaultIdentityAttributeConfig(context.Background(), identityProfileId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.GetDefaultIdentityAttributeConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDefaultIdentityAttributeConfig`: IdentityAttributeConfig + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.GetDefaultIdentityAttributeConfig`: %v\n", resp) } ``` @@ -477,7 +475,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -485,18 +483,18 @@ import ( func main() { identityProfileId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity profile ID. # string | Identity profile ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityProfilesAPI.GetIdentityProfile(context.Background(), identityProfileId).Execute() - //resp, r, err := apiClient.Beta.IdentityProfilesAPI.GetIdentityProfile(context.Background(), identityProfileId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.GetIdentityProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentityProfile`: IdentityProfile - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.GetIdentityProfile`: %v\n", resp) + //resp, r, err := apiClient.Beta.IdentityProfilesAPI.GetIdentityProfile(context.Background(), identityProfileId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.GetIdentityProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityProfile`: IdentityProfile + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.GetIdentityProfile`: %v\n", resp) } ``` @@ -539,7 +537,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -547,24 +545,23 @@ import ( func main() { identityprofileexportedobject := []byte(``) // []IdentityProfileExportedObject | Previously exported Identity Profiles. - - var identityProfileExportedObject beta.[]IdentityProfileExportedObject - if err := json.Unmarshal(identityprofileexportedobject, &identityProfileExportedObject); err != nil { - fmt.Println("Error:", err) - return - } - + var identityProfileExportedObject []beta.IdentityProfileExportedObject + if err := json.Unmarshal(identityprofileexportedobject, &identityProfileExportedObject); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityProfilesAPI.ImportIdentityProfiles(context.Background()).IdentityProfileExportedObject(identityProfileExportedObject).Execute() - //resp, r, err := apiClient.Beta.IdentityProfilesAPI.ImportIdentityProfiles(context.Background()).IdentityProfileExportedObject(identityProfileExportedObject).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.ImportIdentityProfiles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportIdentityProfiles`: ObjectImportResult - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.ImportIdentityProfiles`: %v\n", resp) + //resp, r, err := apiClient.Beta.IdentityProfilesAPI.ImportIdentityProfiles(context.Background()).IdentityProfileExportedObject(identityProfileExportedObject).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.ImportIdentityProfiles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportIdentityProfiles`: ObjectImportResult + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.ImportIdentityProfiles`: %v\n", resp) } ``` @@ -612,7 +609,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -624,18 +621,18 @@ func main() { filters := `id eq 8c190e6787aa4ed9a90bd9d5344523fb` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, ne, ge, gt, in, le, sw* **name**: *eq, ne, ge, gt, in, le, sw* **priority**: *eq, ne* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, ne, ge, gt, in, le, sw* **name**: *eq, ne, ge, gt, in, le, sw* **priority**: *eq, ne* (optional) sorters := `name,-priority` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, priority, created, modified, owner.id, owner.name** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, priority, created, modified, owner.id, owner.name** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityProfilesAPI.ListIdentityProfiles(context.Background()).Execute() - //resp, r, err := apiClient.Beta.IdentityProfilesAPI.ListIdentityProfiles(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.ListIdentityProfiles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListIdentityProfiles`: []IdentityProfile - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.ListIdentityProfiles`: %v\n", resp) + //resp, r, err := apiClient.Beta.IdentityProfilesAPI.ListIdentityProfiles(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.ListIdentityProfiles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListIdentityProfiles`: []IdentityProfile + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.ListIdentityProfiles`: %v\n", resp) } ``` @@ -680,7 +677,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -714,24 +711,23 @@ func main() { } }`) // IdentityPreviewRequest | Identity Preview request body. - - var identityPreviewRequest beta.IdentityPreviewRequest - if err := json.Unmarshal(identitypreviewrequest, &identityPreviewRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var identityPreviewRequest beta.IdentityPreviewRequest + if err := json.Unmarshal(identitypreviewrequest, &identityPreviewRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityProfilesAPI.ShowGenerateIdentityPreview(context.Background()).IdentityPreviewRequest(identityPreviewRequest).Execute() - //resp, r, err := apiClient.Beta.IdentityProfilesAPI.ShowGenerateIdentityPreview(context.Background()).IdentityPreviewRequest(identityPreviewRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.ShowGenerateIdentityPreview``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ShowGenerateIdentityPreview`: IdentityPreviewResponse - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.ShowGenerateIdentityPreview`: %v\n", resp) + //resp, r, err := apiClient.Beta.IdentityProfilesAPI.ShowGenerateIdentityPreview(context.Background()).IdentityPreviewRequest(identityPreviewRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.ShowGenerateIdentityPreview``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ShowGenerateIdentityPreview`: IdentityPreviewResponse + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.ShowGenerateIdentityPreview`: %v\n", resp) } ``` @@ -783,7 +779,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -791,18 +787,18 @@ import ( func main() { identityProfileId := `ef38f94347e94562b5bb8424a56397d8` // string | The Identity Profile ID to be processed # string | The Identity Profile ID to be processed - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityProfilesAPI.SyncIdentityProfile(context.Background(), identityProfileId).Execute() - //resp, r, err := apiClient.Beta.IdentityProfilesAPI.SyncIdentityProfile(context.Background(), identityProfileId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.SyncIdentityProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SyncIdentityProfile`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.SyncIdentityProfile`: %v\n", resp) + //resp, r, err := apiClient.Beta.IdentityProfilesAPI.SyncIdentityProfile(context.Background(), identityProfileId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.SyncIdentityProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SyncIdentityProfile`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.SyncIdentityProfile`: %v\n", resp) } ``` @@ -858,7 +854,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -867,24 +863,23 @@ func main() { identityProfileId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity profile ID. # string | Identity profile ID. jsonpatchoperation := []byte(`[{op=add, path=/identityAttributeConfig/attributeTransforms/0, value={identityAttributeName=location, transformDefinition={type=accountAttribute, attributes={sourceName=Employees, attributeName=location, sourceId=2c91808878b7d63b0178c66ffcdc4ce4}}}}]`) // []JsonPatchOperation | List of identity profile update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - - var jsonPatchOperation beta.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []beta.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityProfilesAPI.UpdateIdentityProfile(context.Background(), identityProfileId).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.Beta.IdentityProfilesAPI.UpdateIdentityProfile(context.Background(), identityProfileId).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.UpdateIdentityProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateIdentityProfile`: IdentityProfile - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.UpdateIdentityProfile`: %v\n", resp) + //resp, r, err := apiClient.Beta.IdentityProfilesAPI.UpdateIdentityProfile(context.Background(), identityProfileId).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.UpdateIdentityProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateIdentityProfile`: IdentityProfile + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.UpdateIdentityProfile`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/LaunchersAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/LaunchersAPI.md index 8d06ddcd2..3d6588a28 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/LaunchersAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/LaunchersAPI.md @@ -63,7 +63,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -81,24 +81,23 @@ func main() { "config" : "{\"workflowId\" : \"6b42d9be-61b6-46af-827e-ea29ba8aa3d9\"}" }`) // LauncherRequest | Payload to create a Launcher - - var launcherRequest beta.LauncherRequest - if err := json.Unmarshal(launcherrequest, &launcherRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var launcherRequest beta.LauncherRequest + if err := json.Unmarshal(launcherrequest, &launcherRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.LaunchersAPI.CreateLauncher(context.Background()).LauncherRequest(launcherRequest).Execute() - //resp, r, err := apiClient.Beta.LaunchersAPI.CreateLauncher(context.Background()).LauncherRequest(launcherRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LaunchersAPI.CreateLauncher``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateLauncher`: Launcher - fmt.Fprintf(os.Stdout, "Response from `LaunchersAPI.CreateLauncher`: %v\n", resp) + //resp, r, err := apiClient.Beta.LaunchersAPI.CreateLauncher(context.Background()).LauncherRequest(launcherRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LaunchersAPI.CreateLauncher``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateLauncher`: Launcher + fmt.Fprintf(os.Stdout, "Response from `LaunchersAPI.CreateLauncher`: %v\n", resp) } ``` @@ -145,7 +144,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -153,16 +152,17 @@ import ( func main() { launcherID := `e3012408-8b61-4564-ad41-c5ec131c325b` // string | ID of the Launcher to be deleted # string | ID of the Launcher to be deleted - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.LaunchersAPI.DeleteLauncher(context.Background(), launcherID).Execute() - //r, err := apiClient.Beta.LaunchersAPI.DeleteLauncher(context.Background(), launcherID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LaunchersAPI.DeleteLauncher``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.LaunchersAPI.DeleteLauncher(context.Background(), launcherID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LaunchersAPI.DeleteLauncher``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -209,7 +209,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -217,18 +217,18 @@ import ( func main() { launcherID := `e3012408-8b61-4564-ad41-c5ec131c325b` // string | ID of the Launcher to be retrieved # string | ID of the Launcher to be retrieved - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.LaunchersAPI.GetLauncher(context.Background(), launcherID).Execute() - //resp, r, err := apiClient.Beta.LaunchersAPI.GetLauncher(context.Background(), launcherID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LaunchersAPI.GetLauncher``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetLauncher`: Launcher - fmt.Fprintf(os.Stdout, "Response from `LaunchersAPI.GetLauncher`: %v\n", resp) + //resp, r, err := apiClient.Beta.LaunchersAPI.GetLauncher(context.Background(), launcherID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LaunchersAPI.GetLauncher``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetLauncher`: Launcher + fmt.Fprintf(os.Stdout, "Response from `LaunchersAPI.GetLauncher`: %v\n", resp) } ``` @@ -273,7 +273,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -283,18 +283,18 @@ func main() { next := `eyJuZXh0IjoxMjN9Cg==` // string | Pagination marker (optional) # string | Pagination marker (optional) limit := 42 // int32 | Number of Launchers to return (optional) (default to 10) # int32 | Number of Launchers to return (optional) (default to 10) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.LaunchersAPI.GetLaunchers(context.Background()).Execute() - //resp, r, err := apiClient.Beta.LaunchersAPI.GetLaunchers(context.Background()).Filters(filters).Next(next).Limit(limit).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LaunchersAPI.GetLaunchers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetLaunchers`: GetLaunchers200Response - fmt.Fprintf(os.Stdout, "Response from `LaunchersAPI.GetLaunchers`: %v\n", resp) + //resp, r, err := apiClient.Beta.LaunchersAPI.GetLaunchers(context.Background()).Filters(filters).Next(next).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LaunchersAPI.GetLaunchers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetLaunchers`: GetLaunchers200Response + fmt.Fprintf(os.Stdout, "Response from `LaunchersAPI.GetLaunchers`: %v\n", resp) } ``` @@ -342,7 +342,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -361,24 +361,23 @@ func main() { "config" : "{\"workflowId\" : \"6b42d9be-61b6-46af-827e-ea29ba8aa3d9\"}" }`) // LauncherRequest | Payload to replace Launcher - - var launcherRequest beta.LauncherRequest - if err := json.Unmarshal(launcherrequest, &launcherRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var launcherRequest beta.LauncherRequest + if err := json.Unmarshal(launcherrequest, &launcherRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.LaunchersAPI.PutLauncher(context.Background(), launcherID).LauncherRequest(launcherRequest).Execute() - //resp, r, err := apiClient.Beta.LaunchersAPI.PutLauncher(context.Background(), launcherID).LauncherRequest(launcherRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LaunchersAPI.PutLauncher``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutLauncher`: Launcher - fmt.Fprintf(os.Stdout, "Response from `LaunchersAPI.PutLauncher`: %v\n", resp) + //resp, r, err := apiClient.Beta.LaunchersAPI.PutLauncher(context.Background(), launcherID).LauncherRequest(launcherRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LaunchersAPI.PutLauncher``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutLauncher`: Launcher + fmt.Fprintf(os.Stdout, "Response from `LaunchersAPI.PutLauncher`: %v\n", resp) } ``` @@ -425,7 +424,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -433,18 +432,18 @@ import ( func main() { launcherID := `e3012408-8b61-4564-ad41-c5ec131c325b` // string | ID of the Launcher to be launched # string | ID of the Launcher to be launched - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.LaunchersAPI.StartLauncher(context.Background(), launcherID).Execute() - //resp, r, err := apiClient.Beta.LaunchersAPI.StartLauncher(context.Background(), launcherID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LaunchersAPI.StartLauncher``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartLauncher`: StartLauncher200Response - fmt.Fprintf(os.Stdout, "Response from `LaunchersAPI.StartLauncher`: %v\n", resp) + //resp, r, err := apiClient.Beta.LaunchersAPI.StartLauncher(context.Background(), launcherID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LaunchersAPI.StartLauncher``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartLauncher`: StartLauncher200Response + fmt.Fprintf(os.Stdout, "Response from `LaunchersAPI.StartLauncher`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/LifecycleStatesAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/LifecycleStatesAPI.md index 864a69fc6..cf01c6d10 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/LifecycleStatesAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/LifecycleStatesAPI.md @@ -101,7 +101,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -110,18 +110,18 @@ func main() { identityProfileId := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | Identity Profile ID. # string | Identity Profile ID. lifecycleStateId := `ef38f94347e94562b5bb8424a56397d8` // string | Lifecycle State ID. # string | Lifecycle State ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.LifecycleStatesAPI.GetLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).Execute() - //resp, r, err := apiClient.Beta.LifecycleStatesAPI.GetLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.GetLifecycleStates``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetLifecycleStates`: LifecycleState - fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.GetLifecycleStates`: %v\n", resp) + //resp, r, err := apiClient.Beta.LifecycleStatesAPI.GetLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.GetLifecycleStates``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetLifecycleStates`: LifecycleState + fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.GetLifecycleStates`: %v\n", resp) } ``` @@ -174,7 +174,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -184,24 +184,23 @@ func main() { lifecycleStateId := `ef38f94347e94562b5bb8424a56397d8` // string | Lifecycle State ID. # string | Lifecycle State ID. jsonpatchoperation := []byte(`[{op=replace, path=/description, value=Updated description!}, {op=replace, path=/accessProfileIds, value=[2c918087742bab150174407a80f3125e, 2c918087742bab150174407a80f3124f]}, {op=replace, path=/accountActions, value=[{action=ENABLE, sourceIds=[2c9180846a2f82fb016a481c1b1560c5, 2c9180846a2f82fb016a481c1b1560cc]}, {action=DISABLE, sourceIds=[2c91808869a0c9980169a207258513fb]}]}, {op=replace, path=/emailNotificationOption, value={notifyManagers=true, notifyAllAdmins=false, notifySpecificUsers=false, emailAddressList=[]}}]`) // []JsonPatchOperation | A list of lifecycle state update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields can be updated: * enabled * description * accountActions * accessProfileIds * emailNotificationOption - - var jsonPatchOperation beta.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []beta.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.LifecycleStatesAPI.UpdateLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.Beta.LifecycleStatesAPI.UpdateLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.UpdateLifecycleStates``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateLifecycleStates`: LifecycleState - fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.UpdateLifecycleStates`: %v\n", resp) + //resp, r, err := apiClient.Beta.LifecycleStatesAPI.UpdateLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.UpdateLifecycleStates``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateLifecycleStates`: LifecycleState + fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.UpdateLifecycleStates`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/MFAConfigurationAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/MFAConfigurationAPI.md index ee8ac4964..ab983f302 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/MFAConfigurationAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/MFAConfigurationAPI.md @@ -66,7 +66,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -74,18 +74,18 @@ import ( func main() { method := `okta-verify` // string | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. # string | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MFAConfigurationAPI.DeleteMFAConfig(context.Background(), method).Execute() - //resp, r, err := apiClient.Beta.MFAConfigurationAPI.DeleteMFAConfig(context.Background(), method).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.DeleteMFAConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteMFAConfig`: MfaOktaConfig - fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.DeleteMFAConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.MFAConfigurationAPI.DeleteMFAConfig(context.Background(), method).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.DeleteMFAConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteMFAConfig`: MfaOktaConfig + fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.DeleteMFAConfig`: %v\n", resp) } ``` @@ -124,25 +124,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MFAConfigurationAPI.GetMFADuoConfig(context.Background()).Execute() - //resp, r, err := apiClient.Beta.MFAConfigurationAPI.GetMFADuoConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.GetMFADuoConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMFADuoConfig`: MfaDuoConfig - fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.GetMFADuoConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.MFAConfigurationAPI.GetMFADuoConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.GetMFADuoConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMFADuoConfig`: MfaDuoConfig + fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.GetMFADuoConfig`: %v\n", resp) } ``` @@ -185,7 +185,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -193,18 +193,18 @@ import ( func main() { allLanguages := allLanguages=true // bool | Indicator whether the question text should be returned in all configured languages * If true, the question text is returned in all languages that it is configured in. * If false, the question text is returned in the user locale if available, else for the default locale. * If not passed, it behaves the same way as passing this parameter as false (optional) # bool | Indicator whether the question text should be returned in all configured languages * If true, the question text is returned in all languages that it is configured in. * If false, the question text is returned in the user locale if available, else for the default locale. * If not passed, it behaves the same way as passing this parameter as false (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MFAConfigurationAPI.GetMFAKbaConfig(context.Background()).Execute() - //resp, r, err := apiClient.Beta.MFAConfigurationAPI.GetMFAKbaConfig(context.Background()).AllLanguages(allLanguages).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.GetMFAKbaConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMFAKbaConfig`: []KbaQuestion - fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.GetMFAKbaConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.MFAConfigurationAPI.GetMFAKbaConfig(context.Background()).AllLanguages(allLanguages).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.GetMFAKbaConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMFAKbaConfig`: []KbaQuestion + fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.GetMFAKbaConfig`: %v\n", resp) } ``` @@ -243,25 +243,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MFAConfigurationAPI.GetMFAOktaConfig(context.Background()).Execute() - //resp, r, err := apiClient.Beta.MFAConfigurationAPI.GetMFAOktaConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.GetMFAOktaConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMFAOktaConfig`: MfaOktaConfig - fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.GetMFAOktaConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.MFAConfigurationAPI.GetMFAOktaConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.GetMFAOktaConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMFAOktaConfig`: MfaOktaConfig + fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.GetMFAOktaConfig`: %v\n", resp) } ``` @@ -304,7 +304,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -322,24 +322,23 @@ func main() { "identityAttribute" : "email" }`) // MfaDuoConfig | - - var mfaDuoConfig beta.MfaDuoConfig - if err := json.Unmarshal(mfaduoconfig, &mfaDuoConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var mfaDuoConfig beta.MfaDuoConfig + if err := json.Unmarshal(mfaduoconfig, &mfaDuoConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MFAConfigurationAPI.SetMFADuoConfig(context.Background()).MfaDuoConfig(mfaDuoConfig).Execute() - //resp, r, err := apiClient.Beta.MFAConfigurationAPI.SetMFADuoConfig(context.Background()).MfaDuoConfig(mfaDuoConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.SetMFADuoConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetMFADuoConfig`: MfaDuoConfig - fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.SetMFADuoConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.MFAConfigurationAPI.SetMFADuoConfig(context.Background()).MfaDuoConfig(mfaDuoConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.SetMFADuoConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetMFADuoConfig`: MfaDuoConfig + fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.SetMFADuoConfig`: %v\n", resp) } ``` @@ -382,7 +381,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -390,24 +389,23 @@ import ( func main() { kbaanswerrequestitem := []byte(`[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]`) // []KbaAnswerRequestItem | - - var kbaAnswerRequestItem beta.[]KbaAnswerRequestItem - if err := json.Unmarshal(kbaanswerrequestitem, &kbaAnswerRequestItem); err != nil { - fmt.Println("Error:", err) - return - } - + var kbaAnswerRequestItem []beta.KbaAnswerRequestItem + if err := json.Unmarshal(kbaanswerrequestitem, &kbaAnswerRequestItem); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MFAConfigurationAPI.SetMFAKBAConfig(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() - //resp, r, err := apiClient.Beta.MFAConfigurationAPI.SetMFAKBAConfig(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.SetMFAKBAConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetMFAKBAConfig`: []KbaAnswerResponseItem - fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.SetMFAKBAConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.MFAConfigurationAPI.SetMFAKBAConfig(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.SetMFAKBAConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetMFAKBAConfig`: []KbaAnswerResponseItem + fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.SetMFAKBAConfig`: %v\n", resp) } ``` @@ -450,7 +448,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -464,24 +462,23 @@ func main() { "identityAttribute" : "email" }`) // MfaOktaConfig | - - var mfaOktaConfig beta.MfaOktaConfig - if err := json.Unmarshal(mfaoktaconfig, &mfaOktaConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var mfaOktaConfig beta.MfaOktaConfig + if err := json.Unmarshal(mfaoktaconfig, &mfaOktaConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MFAConfigurationAPI.SetMFAOktaConfig(context.Background()).MfaOktaConfig(mfaOktaConfig).Execute() - //resp, r, err := apiClient.Beta.MFAConfigurationAPI.SetMFAOktaConfig(context.Background()).MfaOktaConfig(mfaOktaConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.SetMFAOktaConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetMFAOktaConfig`: MfaOktaConfig - fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.SetMFAOktaConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.MFAConfigurationAPI.SetMFAOktaConfig(context.Background()).MfaOktaConfig(mfaOktaConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.SetMFAOktaConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetMFAOktaConfig`: MfaOktaConfig + fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.SetMFAOktaConfig`: %v\n", resp) } ``` @@ -528,7 +525,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -536,18 +533,18 @@ import ( func main() { method := `okta-verify` // string | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. # string | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MFAConfigurationAPI.TestMFAConfig(context.Background(), method).Execute() - //resp, r, err := apiClient.Beta.MFAConfigurationAPI.TestMFAConfig(context.Background(), method).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.TestMFAConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `TestMFAConfig`: MfaConfigTestResponse - fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.TestMFAConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.MFAConfigurationAPI.TestMFAConfig(context.Background(), method).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.TestMFAConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TestMFAConfig`: MfaConfigTestResponse + fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.TestMFAConfig`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/MFAControllerAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/MFAControllerAPI.md index 27b48f28b..30a03f05a 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/MFAControllerAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/MFAControllerAPI.md @@ -60,7 +60,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -71,24 +71,23 @@ func main() { "deliveryType" : "EMAIL_WORK" }`) // SendTokenRequest | - - var sendTokenRequest beta.SendTokenRequest - if err := json.Unmarshal(sendtokenrequest, &sendTokenRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var sendTokenRequest beta.SendTokenRequest + if err := json.Unmarshal(sendtokenrequest, &sendTokenRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MFAControllerAPI.CreateSendToken(context.Background()).SendTokenRequest(sendTokenRequest).Execute() - //resp, r, err := apiClient.Beta.MFAControllerAPI.CreateSendToken(context.Background()).SendTokenRequest(sendTokenRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAControllerAPI.CreateSendToken``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSendToken`: SendTokenResponse - fmt.Fprintf(os.Stdout, "Response from `MFAControllerAPI.CreateSendToken`: %v\n", resp) + //resp, r, err := apiClient.Beta.MFAControllerAPI.CreateSendToken(context.Background()).SendTokenRequest(sendTokenRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAControllerAPI.CreateSendToken``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSendToken`: SendTokenResponse + fmt.Fprintf(os.Stdout, "Response from `MFAControllerAPI.CreateSendToken`: %v\n", resp) } ``` @@ -136,7 +135,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -147,24 +146,23 @@ func main() { "requestId" : "089899f13a8f4da7824996191587bab9" }`) // VerificationPollRequest | - - var verificationPollRequest beta.VerificationPollRequest - if err := json.Unmarshal(verificationpollrequest, &verificationPollRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var verificationPollRequest beta.VerificationPollRequest + if err := json.Unmarshal(verificationpollrequest, &verificationPollRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MFAControllerAPI.PingVerificationStatus(context.Background(), method).VerificationPollRequest(verificationPollRequest).Execute() - //resp, r, err := apiClient.Beta.MFAControllerAPI.PingVerificationStatus(context.Background(), method).VerificationPollRequest(verificationPollRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAControllerAPI.PingVerificationStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PingVerificationStatus`: VerificationResponse - fmt.Fprintf(os.Stdout, "Response from `MFAControllerAPI.PingVerificationStatus`: %v\n", resp) + //resp, r, err := apiClient.Beta.MFAControllerAPI.PingVerificationStatus(context.Background(), method).VerificationPollRequest(verificationPollRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAControllerAPI.PingVerificationStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PingVerificationStatus`: VerificationResponse + fmt.Fprintf(os.Stdout, "Response from `MFAControllerAPI.PingVerificationStatus`: %v\n", resp) } ``` @@ -207,7 +205,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -218,24 +216,23 @@ func main() { "userId" : "2c9180947f0ef465017f215cbcfd004b" }`) // DuoVerificationRequest | - - var duoVerificationRequest beta.DuoVerificationRequest - if err := json.Unmarshal(duoverificationrequest, &duoVerificationRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var duoVerificationRequest beta.DuoVerificationRequest + if err := json.Unmarshal(duoverificationrequest, &duoVerificationRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MFAControllerAPI.SendDuoVerifyRequest(context.Background()).DuoVerificationRequest(duoVerificationRequest).Execute() - //resp, r, err := apiClient.Beta.MFAControllerAPI.SendDuoVerifyRequest(context.Background()).DuoVerificationRequest(duoVerificationRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAControllerAPI.SendDuoVerifyRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SendDuoVerifyRequest`: VerificationResponse - fmt.Fprintf(os.Stdout, "Response from `MFAControllerAPI.SendDuoVerifyRequest`: %v\n", resp) + //resp, r, err := apiClient.Beta.MFAControllerAPI.SendDuoVerifyRequest(context.Background()).DuoVerificationRequest(duoVerificationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAControllerAPI.SendDuoVerifyRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SendDuoVerifyRequest`: VerificationResponse + fmt.Fprintf(os.Stdout, "Response from `MFAControllerAPI.SendDuoVerifyRequest`: %v\n", resp) } ``` @@ -278,7 +275,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -286,24 +283,23 @@ import ( func main() { kbaanswerrequestitem := []byte(`[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]`) // []KbaAnswerRequestItem | - - var kbaAnswerRequestItem beta.[]KbaAnswerRequestItem - if err := json.Unmarshal(kbaanswerrequestitem, &kbaAnswerRequestItem); err != nil { - fmt.Println("Error:", err) - return - } - + var kbaAnswerRequestItem []beta.KbaAnswerRequestItem + if err := json.Unmarshal(kbaanswerrequestitem, &kbaAnswerRequestItem); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MFAControllerAPI.SendKbaAnswers(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() - //resp, r, err := apiClient.Beta.MFAControllerAPI.SendKbaAnswers(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAControllerAPI.SendKbaAnswers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SendKbaAnswers`: KbaAuthResponse - fmt.Fprintf(os.Stdout, "Response from `MFAControllerAPI.SendKbaAnswers`: %v\n", resp) + //resp, r, err := apiClient.Beta.MFAControllerAPI.SendKbaAnswers(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAControllerAPI.SendKbaAnswers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SendKbaAnswers`: KbaAuthResponse + fmt.Fprintf(os.Stdout, "Response from `MFAControllerAPI.SendKbaAnswers`: %v\n", resp) } ``` @@ -346,7 +342,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -356,24 +352,23 @@ func main() { "userId" : "example@mail.com" }`) // OktaVerificationRequest | - - var oktaVerificationRequest beta.OktaVerificationRequest - if err := json.Unmarshal(oktaverificationrequest, &oktaVerificationRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var oktaVerificationRequest beta.OktaVerificationRequest + if err := json.Unmarshal(oktaverificationrequest, &oktaVerificationRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MFAControllerAPI.SendOktaVerifyRequest(context.Background()).OktaVerificationRequest(oktaVerificationRequest).Execute() - //resp, r, err := apiClient.Beta.MFAControllerAPI.SendOktaVerifyRequest(context.Background()).OktaVerificationRequest(oktaVerificationRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAControllerAPI.SendOktaVerifyRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SendOktaVerifyRequest`: VerificationResponse - fmt.Fprintf(os.Stdout, "Response from `MFAControllerAPI.SendOktaVerifyRequest`: %v\n", resp) + //resp, r, err := apiClient.Beta.MFAControllerAPI.SendOktaVerifyRequest(context.Background()).OktaVerificationRequest(oktaVerificationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAControllerAPI.SendOktaVerifyRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SendOktaVerifyRequest`: VerificationResponse + fmt.Fprintf(os.Stdout, "Response from `MFAControllerAPI.SendOktaVerifyRequest`: %v\n", resp) } ``` @@ -416,7 +411,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -428,24 +423,23 @@ func main() { "token" : "12345" }`) // TokenAuthRequest | - - var tokenAuthRequest beta.TokenAuthRequest - if err := json.Unmarshal(tokenauthrequest, &tokenAuthRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var tokenAuthRequest beta.TokenAuthRequest + if err := json.Unmarshal(tokenauthrequest, &tokenAuthRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MFAControllerAPI.SendTokenAuthRequest(context.Background()).TokenAuthRequest(tokenAuthRequest).Execute() - //resp, r, err := apiClient.Beta.MFAControllerAPI.SendTokenAuthRequest(context.Background()).TokenAuthRequest(tokenAuthRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAControllerAPI.SendTokenAuthRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SendTokenAuthRequest`: TokenAuthResponse - fmt.Fprintf(os.Stdout, "Response from `MFAControllerAPI.SendTokenAuthRequest`: %v\n", resp) + //resp, r, err := apiClient.Beta.MFAControllerAPI.SendTokenAuthRequest(context.Background()).TokenAuthRequest(tokenAuthRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAControllerAPI.SendTokenAuthRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SendTokenAuthRequest`: TokenAuthResponse + fmt.Fprintf(os.Stdout, "Response from `MFAControllerAPI.SendTokenAuthRequest`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/ManagedClientsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/ManagedClientsAPI.md index 8a49702cd..e1dba9457 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/ManagedClientsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/ManagedClientsAPI.md @@ -66,7 +66,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -75,18 +75,18 @@ func main() { id := `aClientId` // string | ID of the Managed Client Status to get # string | ID of the Managed Client Status to get type_ := // ManagedClientType | Type of the Managed Client Status to get # ManagedClientType | Type of the Managed Client Status to get - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ManagedClientsAPI.GetManagedClientStatus(context.Background(), id).Type_(type_).Execute() - //resp, r, err := apiClient.Beta.ManagedClientsAPI.GetManagedClientStatus(context.Background(), id).Type_(type_).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.GetManagedClientStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetManagedClientStatus`: ManagedClientStatus - fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.GetManagedClientStatus`: %v\n", resp) + //resp, r, err := apiClient.Beta.ManagedClientsAPI.GetManagedClientStatus(context.Background(), id).Type_(type_).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.GetManagedClientStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetManagedClientStatus`: ManagedClientStatus + fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.GetManagedClientStatus`: %v\n", resp) } ``` @@ -137,7 +137,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -172,24 +172,23 @@ func main() { "timestamp" : "2020-01-01T00:00:00Z" }`) // ManagedClientStatus | - - var managedClientStatus beta.ManagedClientStatus - if err := json.Unmarshal(managedclientstatus, &managedClientStatus); err != nil { - fmt.Println("Error:", err) - return - } - + var managedClientStatus beta.ManagedClientStatus + if err := json.Unmarshal(managedclientstatus, &managedClientStatus); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ManagedClientsAPI.UpdateManagedClientStatus(context.Background(), id).ManagedClientStatus(managedClientStatus).Execute() - //resp, r, err := apiClient.Beta.ManagedClientsAPI.UpdateManagedClientStatus(context.Background(), id).ManagedClientStatus(managedClientStatus).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.UpdateManagedClientStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateManagedClientStatus`: ManagedClientStatusAggResponse - fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.UpdateManagedClientStatus`: %v\n", resp) + //resp, r, err := apiClient.Beta.ManagedClientsAPI.UpdateManagedClientStatus(context.Background(), id).ManagedClientStatus(managedClientStatus).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.UpdateManagedClientStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateManagedClientStatus`: ManagedClientStatusAggResponse + fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.UpdateManagedClientStatus`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/ManagedClustersAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/ManagedClustersAPI.md index c91442198..66944b4c7 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/ManagedClustersAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/ManagedClustersAPI.md @@ -67,7 +67,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -75,18 +75,18 @@ import ( func main() { id := `aClusterId` // string | ID of ManagedCluster to get log configuration for # string | ID of ManagedCluster to get log configuration for - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ManagedClustersAPI.GetClientLogConfiguration(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.ManagedClustersAPI.GetClientLogConfiguration(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.GetClientLogConfiguration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetClientLogConfiguration`: ClientLogConfiguration - fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.GetClientLogConfiguration`: %v\n", resp) + //resp, r, err := apiClient.Beta.ManagedClustersAPI.GetClientLogConfiguration(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.GetClientLogConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetClientLogConfiguration`: ClientLogConfiguration + fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.GetClientLogConfiguration`: %v\n", resp) } ``` @@ -136,7 +136,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -144,18 +144,18 @@ import ( func main() { id := `aClusterId` // string | ID of the ManagedCluster to get # string | ID of the ManagedCluster to get - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ManagedClustersAPI.GetManagedCluster(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.ManagedClustersAPI.GetManagedCluster(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.GetManagedCluster``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetManagedCluster`: ManagedCluster - fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.GetManagedCluster`: %v\n", resp) + //resp, r, err := apiClient.Beta.ManagedClustersAPI.GetManagedCluster(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.GetManagedCluster``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetManagedCluster`: ManagedCluster + fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.GetManagedCluster`: %v\n", resp) } ``` @@ -204,7 +204,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -215,18 +215,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) filters := `operational eq operation` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **operational**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **operational**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ManagedClustersAPI.GetManagedClusters(context.Background()).Execute() - //resp, r, err := apiClient.Beta.ManagedClustersAPI.GetManagedClusters(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.GetManagedClusters``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetManagedClusters`: []ManagedCluster - fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.GetManagedClusters`: %v\n", resp) + //resp, r, err := apiClient.Beta.ManagedClustersAPI.GetManagedClusters(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.GetManagedClusters``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetManagedClusters`: []ManagedCluster + fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.GetManagedClusters`: %v\n", resp) } ``` @@ -277,7 +277,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -292,18 +292,18 @@ func main() { "logLevels" : "INFO" }`) // ClientLogConfiguration | ClientLogConfiguration for given ManagedCluster - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ManagedClustersAPI.PutClientLogConfiguration(context.Background(), id).ClientLogConfiguration(clientLogConfiguration).Execute() - //resp, r, err := apiClient.Beta.ManagedClustersAPI.PutClientLogConfiguration(context.Background(), id).ClientLogConfiguration(clientLogConfiguration).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.PutClientLogConfiguration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutClientLogConfiguration`: ClientLogConfiguration - fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.PutClientLogConfiguration`: %v\n", resp) + //resp, r, err := apiClient.Beta.ManagedClustersAPI.PutClientLogConfiguration(context.Background(), id).ClientLogConfiguration(clientLogConfiguration).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.PutClientLogConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutClientLogConfiguration`: ClientLogConfiguration + fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.PutClientLogConfiguration`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/MultiHostIntegrationAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/MultiHostIntegrationAPI.md index e47e43593..c6bc3cbb6 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/MultiHostIntegrationAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/MultiHostIntegrationAPI.md @@ -72,7 +72,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -105,24 +105,23 @@ func main() { "modified" : "2024-01-23T18:08:50.897Z" }`) // MultiHostIntegrationsCreate | The specifics of the Multi-Host Integration to create - - var multiHostIntegrationsCreate beta.MultiHostIntegrationsCreate - if err := json.Unmarshal(multihostintegrationscreate, &multiHostIntegrationsCreate); err != nil { - fmt.Println("Error:", err) - return - } - + var multiHostIntegrationsCreate beta.MultiHostIntegrationsCreate + if err := json.Unmarshal(multihostintegrationscreate, &multiHostIntegrationsCreate); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.CreateMultiHostIntegration(context.Background()).MultiHostIntegrationsCreate(multiHostIntegrationsCreate).Execute() - //resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.CreateMultiHostIntegration(context.Background()).MultiHostIntegrationsCreate(multiHostIntegrationsCreate).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.CreateMultiHostIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateMultiHostIntegration`: MultiHostIntegrations - fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.CreateMultiHostIntegration`: %v\n", resp) + //resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.CreateMultiHostIntegration(context.Background()).MultiHostIntegrationsCreate(multiHostIntegrationsCreate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.CreateMultiHostIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateMultiHostIntegration`: MultiHostIntegrations + fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.CreateMultiHostIntegration`: %v\n", resp) } ``` @@ -172,7 +171,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -181,22 +180,22 @@ func main() { multihostId := `2c91808568c529c60168cca6f90c1326` // string | ID of the Multi-Host Integration. # string | ID of the Multi-Host Integration. multihostintegrationscreatesources := []byte(``) // []MultiHostIntegrationsCreateSources | The specifics of the sources to create within Multi-Host Integration. - - var multiHostIntegrationsCreateSources beta.[]MultiHostIntegrationsCreateSources - if err := json.Unmarshal(multihostintegrationscreatesources, &multiHostIntegrationsCreateSources); err != nil { - fmt.Println("Error:", err) - return - } - + var multiHostIntegrationsCreateSources []beta.MultiHostIntegrationsCreateSources + if err := json.Unmarshal(multihostintegrationscreatesources, &multiHostIntegrationsCreateSources); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.MultiHostIntegrationAPI.CreateSourcesWithinMultiHost(context.Background(), multihostId).MultiHostIntegrationsCreateSources(multiHostIntegrationsCreateSources).Execute() - //r, err := apiClient.Beta.MultiHostIntegrationAPI.CreateSourcesWithinMultiHost(context.Background(), multihostId).MultiHostIntegrationsCreateSources(multiHostIntegrationsCreateSources).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.CreateSourcesWithinMultiHost``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.MultiHostIntegrationAPI.CreateSourcesWithinMultiHost(context.Background(), multihostId).MultiHostIntegrationsCreateSources(multiHostIntegrationsCreateSources).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.CreateSourcesWithinMultiHost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -245,7 +244,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -253,16 +252,17 @@ import ( func main() { multihostId := `2c91808568c529c60168cca6f90c1326` // string | ID of Multi-Host Integration to delete. # string | ID of Multi-Host Integration to delete. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.MultiHostIntegrationAPI.DeleteMultiHost(context.Background(), multihostId).Execute() - //r, err := apiClient.Beta.MultiHostIntegrationAPI.DeleteMultiHost(context.Background(), multihostId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.DeleteMultiHost``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.MultiHostIntegrationAPI.DeleteMultiHost(context.Background(), multihostId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.DeleteMultiHost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -311,7 +311,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -319,18 +319,18 @@ import ( func main() { multihostId := `aMultiHostId` // string | ID of the Multi-Host Integration to update # string | ID of the Multi-Host Integration to update - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetAcctAggregationGroups(context.Background(), multihostId).Execute() - //resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetAcctAggregationGroups(context.Background(), multihostId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetAcctAggregationGroups``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAcctAggregationGroups`: MultiHostIntegrationsAggScheduleUpdate - fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetAcctAggregationGroups`: %v\n", resp) + //resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetAcctAggregationGroups(context.Background(), multihostId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetAcctAggregationGroups``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAcctAggregationGroups`: MultiHostIntegrationsAggScheduleUpdate + fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetAcctAggregationGroups`: %v\n", resp) } ``` @@ -379,7 +379,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -387,18 +387,18 @@ import ( func main() { multiHostId := `aMultiHostId` // string | ID of the Multi-Host Integration to update # string | ID of the Multi-Host Integration to update - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetEntitlementAggregationGroups(context.Background(), multiHostId).Execute() - //resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetEntitlementAggregationGroups(context.Background(), multiHostId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetEntitlementAggregationGroups``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetEntitlementAggregationGroups`: MultiHostIntegrationsAggScheduleUpdate - fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetEntitlementAggregationGroups`: %v\n", resp) + //resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetEntitlementAggregationGroups(context.Background(), multiHostId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetEntitlementAggregationGroups``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetEntitlementAggregationGroups`: MultiHostIntegrationsAggScheduleUpdate + fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetEntitlementAggregationGroups`: %v\n", resp) } ``` @@ -447,7 +447,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -455,18 +455,18 @@ import ( func main() { multihostId := `2c91808568c529c60168cca6f90c1326` // string | ID of the Multi-Host Integration. # string | ID of the Multi-Host Integration. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetMultiHostIntegrations(context.Background(), multihostId).Execute() - //resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetMultiHostIntegrations(context.Background(), multihostId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetMultiHostIntegrations``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMultiHostIntegrations`: MultiHostIntegrations - fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetMultiHostIntegrations`: %v\n", resp) + //resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetMultiHostIntegrations(context.Background(), multihostId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetMultiHostIntegrations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMultiHostIntegrations`: MultiHostIntegrations + fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetMultiHostIntegrations`: %v\n", resp) } ``` @@ -516,7 +516,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -529,18 +529,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) forSubadmin := `5168015d32f890ca15812c9180835d2e` // string | If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity or SOURCE_SUBADMIN identity. The value of the parameter is either an Identity ID, or the special value **me**, which is shorthand for the calling Identity's ID. A 400 Bad Request error is returned if the **for-subadmin** parameter is specified for an Identity that is not a subadmin. (optional) # string | If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity or SOURCE_SUBADMIN identity. The value of the parameter is either an Identity ID, or the special value **me**, which is shorthand for the calling Identity's ID. A 400 Bad Request error is returned if the **for-subadmin** parameter is specified for an Identity that is not a subadmin. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetMultiHostIntegrationsList(context.Background()).Execute() - //resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetMultiHostIntegrationsList(context.Background()).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).ForSubadmin(forSubadmin).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetMultiHostIntegrationsList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMultiHostIntegrationsList`: []MultiHostIntegrations - fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetMultiHostIntegrationsList`: %v\n", resp) + //resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetMultiHostIntegrationsList(context.Background()).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).ForSubadmin(forSubadmin).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetMultiHostIntegrationsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMultiHostIntegrationsList`: []MultiHostIntegrations + fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetMultiHostIntegrationsList`: %v\n", resp) } ``` @@ -589,7 +589,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -597,18 +597,18 @@ import ( func main() { multiHostId := `004091cb79b04636b88662afa50a4440` // string | ID of the Multi-Host Integration # string | ID of the Multi-Host Integration - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetMultiHostSourceCreationErrors(context.Background(), multiHostId).Execute() - //resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetMultiHostSourceCreationErrors(context.Background(), multiHostId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetMultiHostSourceCreationErrors``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMultiHostSourceCreationErrors`: []SourceCreationErrors - fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetMultiHostSourceCreationErrors`: %v\n", resp) + //resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetMultiHostSourceCreationErrors(context.Background(), multiHostId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetMultiHostSourceCreationErrors``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMultiHostSourceCreationErrors`: []SourceCreationErrors + fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetMultiHostSourceCreationErrors`: %v\n", resp) } ``` @@ -649,25 +649,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetMultihostIntegrationTypes(context.Background()).Execute() - //resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetMultihostIntegrationTypes(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetMultihostIntegrationTypes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMultihostIntegrationTypes`: []MultiHostIntegrationTemplateType - fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetMultihostIntegrationTypes`: %v\n", resp) + //resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetMultihostIntegrationTypes(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetMultihostIntegrationTypes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMultihostIntegrationTypes`: []MultiHostIntegrationTemplateType + fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetMultihostIntegrationTypes`: %v\n", resp) } ``` @@ -721,7 +721,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -734,18 +734,18 @@ func main() { filters := `id eq 2c91808b6ef1d43e016efba0ce470904` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *in* (optional) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetSourcesWithinMultiHost(context.Background(), multihostId).Execute() - //resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetSourcesWithinMultiHost(context.Background(), multihostId).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetSourcesWithinMultiHost``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSourcesWithinMultiHost`: []MultiHostSources - fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetSourcesWithinMultiHost`: %v\n", resp) + //resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetSourcesWithinMultiHost(context.Background(), multihostId).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetSourcesWithinMultiHost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSourcesWithinMultiHost`: []MultiHostSources + fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetSourcesWithinMultiHost`: %v\n", resp) } ``` @@ -794,7 +794,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -802,16 +802,17 @@ import ( func main() { multihostId := `2c91808568c529c60168cca6f90c1324` // string | ID of the Multi-Host Integration # string | ID of the Multi-Host Integration - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.MultiHostIntegrationAPI.TestConnectionMultiHostSources(context.Background(), multihostId).Execute() - //r, err := apiClient.Beta.MultiHostIntegrationAPI.TestConnectionMultiHostSources(context.Background(), multihostId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.TestConnectionMultiHostSources``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.MultiHostIntegrationAPI.TestConnectionMultiHostSources(context.Background(), multihostId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.TestConnectionMultiHostSources``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -862,7 +863,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -871,18 +872,18 @@ func main() { multihostId := `2c91808568c529c60168cca6f90c1326` // string | ID of the Multi-Host Integration # string | ID of the Multi-Host Integration sourceId := `2c91808568c529f60168cca6f90c1324` // string | ID of the source within the Multi-Host Integration # string | ID of the source within the Multi-Host Integration - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.TestSourceConnectionMultihost(context.Background(), multihostId, sourceId).Execute() - //resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.TestSourceConnectionMultihost(context.Background(), multihostId, sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.TestSourceConnectionMultihost``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `TestSourceConnectionMultihost`: TestSourceConnectionMultihost200Response - fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.TestSourceConnectionMultihost`: %v\n", resp) + //resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.TestSourceConnectionMultihost(context.Background(), multihostId, sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.TestSourceConnectionMultihost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TestSourceConnectionMultihost`: TestSourceConnectionMultihost200Response + fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.TestSourceConnectionMultihost`: %v\n", resp) } ``` @@ -932,7 +933,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -941,22 +942,22 @@ func main() { multihostId := `anId` // string | ID of the Multi-Host Integration to update. # string | ID of the Multi-Host Integration to update. updatemultihostsourcesrequestinner := []byte(`[{op=add, path=/description, value=MDK Multi-Host Integration 222 description}]`) // []UpdateMultiHostSourcesRequestInner | This endpoint allows you to update a Multi-Host Integration. - - var updateMultiHostSourcesRequestInner beta.[]UpdateMultiHostSourcesRequestInner - if err := json.Unmarshal(updatemultihostsourcesrequestinner, &updateMultiHostSourcesRequestInner); err != nil { - fmt.Println("Error:", err) - return - } - + var updateMultiHostSourcesRequestInner []beta.UpdateMultiHostSourcesRequestInner + if err := json.Unmarshal(updatemultihostsourcesrequestinner, &updateMultiHostSourcesRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.MultiHostIntegrationAPI.UpdateMultiHostSources(context.Background(), multihostId).UpdateMultiHostSourcesRequestInner(updateMultiHostSourcesRequestInner).Execute() - //r, err := apiClient.Beta.MultiHostIntegrationAPI.UpdateMultiHostSources(context.Background(), multihostId).UpdateMultiHostSourcesRequestInner(updateMultiHostSourcesRequestInner).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.UpdateMultiHostSources``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.MultiHostIntegrationAPI.UpdateMultiHostSources(context.Background(), multihostId).UpdateMultiHostSourcesRequestInner(updateMultiHostSourcesRequestInner).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.UpdateMultiHostSources``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/NonEmployeeLifecycleManagementAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/NonEmployeeLifecycleManagementAPI.md index e023da367..c393afe40 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/NonEmployeeLifecycleManagementAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/NonEmployeeLifecycleManagementAPI.md @@ -122,7 +122,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -133,24 +133,23 @@ func main() { "comment" : "comment" }`) // NonEmployeeApprovalDecision | - - var nonEmployeeApprovalDecision beta.NonEmployeeApprovalDecision - if err := json.Unmarshal(nonemployeeapprovaldecision, &nonEmployeeApprovalDecision); err != nil { - fmt.Println("Error:", err) - return - } - + var nonEmployeeApprovalDecision beta.NonEmployeeApprovalDecision + if err := json.Unmarshal(nonemployeeapprovaldecision, &nonEmployeeApprovalDecision); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest(context.Background(), id).NonEmployeeApprovalDecision(nonEmployeeApprovalDecision).Execute() - //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest(context.Background(), id).NonEmployeeApprovalDecision(nonEmployeeApprovalDecision).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ApproveNonEmployeeRequest`: NonEmployeeApprovalItem - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest`: %v\n", resp) + //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest(context.Background(), id).NonEmployeeApprovalDecision(nonEmployeeApprovalDecision).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApproveNonEmployeeRequest`: NonEmployeeApprovalItem + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest`: %v\n", resp) } ``` @@ -195,7 +194,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -217,24 +216,23 @@ func main() { "startDate" : "2020-03-24T00:00:00-05:00" }`) // NonEmployeeRequestBody | Non-Employee record creation request body. - - var nonEmployeeRequestBody beta.NonEmployeeRequestBody - if err := json.Unmarshal(nonemployeerequestbody, &nonEmployeeRequestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var nonEmployeeRequestBody beta.NonEmployeeRequestBody + if err := json.Unmarshal(nonemployeerequestbody, &nonEmployeeRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() - //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateNonEmployeeRecord`: NonEmployeeRecord - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord`: %v\n", resp) + //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateNonEmployeeRecord`: NonEmployeeRecord + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord`: %v\n", resp) } ``` @@ -277,7 +275,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -299,24 +297,23 @@ func main() { "startDate" : "2020-03-24T00:00:00-05:00" }`) // NonEmployeeRequestBody | Non-Employee creation request body - - var nonEmployeeRequestBody beta.NonEmployeeRequestBody - if err := json.Unmarshal(nonemployeerequestbody, &nonEmployeeRequestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var nonEmployeeRequestBody beta.NonEmployeeRequestBody + if err := json.Unmarshal(nonemployeerequestbody, &nonEmployeeRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() - //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateNonEmployeeRequest`: NonEmployeeRequest - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest`: %v\n", resp) + //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateNonEmployeeRequest`: NonEmployeeRequest + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest`: %v\n", resp) } ``` @@ -359,7 +356,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -392,24 +389,23 @@ func main() { } ] }`) // NonEmployeeSourceRequestBody | Non-Employee source creation request body. - - var nonEmployeeSourceRequestBody beta.NonEmployeeSourceRequestBody - if err := json.Unmarshal(nonemployeesourcerequestbody, &nonEmployeeSourceRequestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var nonEmployeeSourceRequestBody beta.NonEmployeeSourceRequestBody + if err := json.Unmarshal(nonemployeesourcerequestbody, &nonEmployeeSourceRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource(context.Background()).NonEmployeeSourceRequestBody(nonEmployeeSourceRequestBody).Execute() - //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource(context.Background()).NonEmployeeSourceRequestBody(nonEmployeeSourceRequestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateNonEmployeeSource`: NonEmployeeSourceWithCloudExternalId - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource`: %v\n", resp) + //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource(context.Background()).NonEmployeeSourceRequestBody(nonEmployeeSourceRequestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateNonEmployeeSource`: NonEmployeeSourceWithCloudExternalId + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource`: %v\n", resp) } ``` @@ -457,7 +453,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -473,24 +469,23 @@ func main() { "required" : true }`) // NonEmployeeSchemaAttributeBody | - - var nonEmployeeSchemaAttributeBody beta.NonEmployeeSchemaAttributeBody - if err := json.Unmarshal(nonemployeeschemaattributebody, &nonEmployeeSchemaAttributeBody); err != nil { - fmt.Println("Error:", err) - return - } - + var nonEmployeeSchemaAttributeBody beta.NonEmployeeSchemaAttributeBody + if err := json.Unmarshal(nonemployeeschemaattributebody, &nonEmployeeSchemaAttributeBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).NonEmployeeSchemaAttributeBody(nonEmployeeSchemaAttributeBody).Execute() - //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).NonEmployeeSchemaAttributeBody(nonEmployeeSchemaAttributeBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateNonEmployeeSourceSchemaAttributes`: NonEmployeeSchemaAttribute - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes`: %v\n", resp) + //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).NonEmployeeSchemaAttributeBody(nonEmployeeSchemaAttributeBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateNonEmployeeSourceSchemaAttributes`: NonEmployeeSchemaAttribute + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes`: %v\n", resp) } ``` @@ -537,7 +532,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -545,16 +540,17 @@ import ( func main() { id := `2c91808b6ef1d43e016efba0ce470904` // string | Non-Employee record id (UUID) # string | Non-Employee record id (UUID) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord(context.Background(), id).Execute() - //r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -599,7 +595,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -607,22 +603,22 @@ import ( func main() { deletenonemployeerecordinbulkrequest := []byte(``) // DeleteNonEmployeeRecordInBulkRequest | Non-Employee bulk delete request body. - - var deleteNonEmployeeRecordInBulkRequest beta.DeleteNonEmployeeRecordInBulkRequest - if err := json.Unmarshal(deletenonemployeerecordinbulkrequest, &deleteNonEmployeeRecordInBulkRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var deleteNonEmployeeRecordInBulkRequest beta.DeleteNonEmployeeRecordInBulkRequest + if err := json.Unmarshal(deletenonemployeerecordinbulkrequest, &deleteNonEmployeeRecordInBulkRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordInBulk(context.Background()).DeleteNonEmployeeRecordInBulkRequest(deleteNonEmployeeRecordInBulkRequest).Execute() - //r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordInBulk(context.Background()).DeleteNonEmployeeRecordInBulkRequest(deleteNonEmployeeRecordInBulkRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordInBulk(context.Background()).DeleteNonEmployeeRecordInBulkRequest(deleteNonEmployeeRecordInBulkRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -669,7 +665,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -677,16 +673,17 @@ import ( func main() { id := `2c91808b6ef1d43e016efba0ce470904` // string | Non-Employee request id in the UUID format # string | Non-Employee request id in the UUID format - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest(context.Background(), id).Execute() - //r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -736,7 +733,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -745,16 +742,17 @@ func main() { attributeId := `2c91808b6ef1d43e016efba0ce470904` // string | The Schema Attribute Id (UUID) # string | The Schema Attribute Id (UUID) sourceId := `2c91808b6ef1d43e016efba0ce470904` // string | The Source id # string | The Source id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() - //r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -801,7 +799,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -809,16 +807,17 @@ import ( func main() { sourceId := `2c91808b6ef1d43e016efba0ce470904` // string | Source Id # string | Source Id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource(context.Background(), sourceId).Execute() - //r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -865,7 +864,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -873,16 +872,17 @@ import ( func main() { sourceId := `2c91808b6ef1d43e016efba0ce470904` // string | The Source id # string | The Source id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() - //r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -929,7 +929,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -937,16 +937,17 @@ import ( func main() { id := `2c918085842e69ae018432d22ccb212f` // string | Source Id (UUID) # string | Source Id (UUID) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords(context.Background(), id).Execute() - //r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -995,7 +996,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1003,16 +1004,17 @@ import ( func main() { id := `2c918085842e69ae018432d22ccb212f` // string | Source Id (UUID) # string | Source Id (UUID) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate(context.Background(), id).Execute() - //r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -1060,7 +1062,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1069,18 +1071,18 @@ func main() { id := `ac10d20a-841e-1e7d-8184-32d2e22c0179` // string | Non-Employee approval item id (UUID) # string | Non-Employee approval item id (UUID) includeDetail := `include-detail=false` // string | The object nonEmployeeRequest will not be included detail when set to false. *Default value is true* (optional) # string | The object nonEmployeeRequest will not be included detail when set to false. *Default value is true* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval(context.Background(), id).IncludeDetail(includeDetail).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeApproval`: NonEmployeeApprovalItemDetail - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval`: %v\n", resp) + //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval(context.Background(), id).IncludeDetail(includeDetail).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeApproval`: NonEmployeeApprovalItemDetail + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval`: %v\n", resp) } ``` @@ -1127,7 +1129,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1135,18 +1137,18 @@ import ( func main() { requestedFor := `ac10d20a-841e-1e7d-8184-32d2e22c0179` // string | The identity (UUID) of the approver for whom for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. # string | The identity (UUID) of the approver for whom for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary(context.Background(), requestedFor).Execute() - //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary(context.Background(), requestedFor).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeApprovalSummary`: NonEmployeeApprovalSummary - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary`: %v\n", resp) + //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary(context.Background(), requestedFor).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeApprovalSummary`: NonEmployeeApprovalSummary + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary`: %v\n", resp) } ``` @@ -1194,7 +1196,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1202,18 +1204,18 @@ import ( func main() { id := `2c918085842e69ae018432d22ccb212f` // string | Source ID (UUID) # string | Source ID (UUID) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeBulkUploadStatus`: NonEmployeeBulkUploadStatus - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus`: %v\n", resp) + //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeBulkUploadStatus`: NonEmployeeBulkUploadStatus + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus`: %v\n", resp) } ``` @@ -1260,7 +1262,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1268,18 +1270,18 @@ import ( func main() { id := `2c91808b6ef1d43e016efba0ce470904` // string | Non-Employee record id (UUID) # string | Non-Employee record id (UUID) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeRecord`: NonEmployeeRecord - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord`: %v\n", resp) + //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeRecord`: NonEmployeeRecord + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord`: %v\n", resp) } ``` @@ -1326,7 +1328,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1334,18 +1336,18 @@ import ( func main() { id := `2c91808b6ef1d43e016efba0ce470904` // string | Non-Employee request id (UUID) # string | Non-Employee request id (UUID) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeRequest`: NonEmployeeRequest - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest`: %v\n", resp) + //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeRequest`: NonEmployeeRequest + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest`: %v\n", resp) } ``` @@ -1392,7 +1394,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1400,18 +1402,18 @@ import ( func main() { requestedFor := `ac10d20a-841e-1e7d-8184-32d2e22c0179` // string | The identity (UUID) of the non-employee account manager for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. # string | The identity (UUID) of the non-employee account manager for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary(context.Background(), requestedFor).Execute() - //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary(context.Background(), requestedFor).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeRequestSummary`: NonEmployeeRequestSummary - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary`: %v\n", resp) + //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary(context.Background(), requestedFor).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeRequestSummary`: NonEmployeeRequestSummary + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary`: %v\n", resp) } ``` @@ -1460,7 +1462,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1469,18 +1471,18 @@ func main() { attributeId := `2c918085842e69ae018432d22ccb212f` // string | The Schema Attribute Id (UUID) # string | The Schema Attribute Id (UUID) sourceId := `2c918085842e69ae018432d22ccb212f` // string | The Source id # string | The Source id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() - //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeSchemaAttribute`: NonEmployeeSchemaAttribute - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute`: %v\n", resp) + //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeSchemaAttribute`: NonEmployeeSchemaAttribute + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute`: %v\n", resp) } ``` @@ -1527,7 +1529,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1535,18 +1537,18 @@ import ( func main() { sourceId := `2c91808b7c28b350017c2a2ec5790aa1` // string | Source Id # string | Source Id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeSource`: NonEmployeeSource - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource`: %v\n", resp) + //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeSource`: NonEmployeeSource + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource`: %v\n", resp) } ``` @@ -1593,7 +1595,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1601,18 +1603,18 @@ import ( func main() { sourceId := `2c918085842e69ae018432d22ccb212f` // string | The Source id # string | The Source id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeSourceSchemaAttributes`: []NonEmployeeSchemaAttribute - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes`: %v\n", resp) + //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeSourceSchemaAttributes`: []NonEmployeeSchemaAttribute + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes`: %v\n", resp) } ``` @@ -1662,7 +1664,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1671,18 +1673,18 @@ func main() { id := `e136567de87e4d029e60b3c3c55db56d` // string | Source Id (UUID) # string | Source Id (UUID) data := BINARY_DATA_HERE // *os.File | # *os.File | - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk(context.Background(), id).Data(data).Execute() - //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk(context.Background(), id).Data(data).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportNonEmployeeRecordsInBulk`: NonEmployeeBulkUploadJob - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk`: %v\n", resp) + //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk(context.Background(), id).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportNonEmployeeRecordsInBulk`: NonEmployeeBulkUploadJob + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk`: %v\n", resp) } ``` @@ -1730,7 +1732,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1743,18 +1745,18 @@ func main() { filters := `approvalStatus eq "PENDING"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **approvalStatus**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **approvalStatus**: *eq* (optional) sorters := `created` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ListNonEmployeeApproval(context.Background()).Execute() - //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ListNonEmployeeApproval(context.Background()).RequestedFor(requestedFor).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeApproval``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListNonEmployeeApproval`: []NonEmployeeApprovalItem - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeApproval`: %v\n", resp) + //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ListNonEmployeeApproval(context.Background()).RequestedFor(requestedFor).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeApproval``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListNonEmployeeApproval`: []NonEmployeeApprovalItem + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeApproval`: %v\n", resp) } ``` @@ -1801,7 +1803,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1813,18 +1815,18 @@ func main() { sorters := `accountName,sourceId` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, accountName, sourceId, manager, firstName, lastName, email, phone, startDate, endDate, created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, accountName, sourceId, manager, firstName, lastName, email, phone, startDate, endDate, created, modified** (optional) filters := `sourceId eq "2c91808568c529c60168cca6f90c1313"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **sourceId**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **sourceId**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords(context.Background()).Execute() - //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords(context.Background()).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListNonEmployeeRecords`: []NonEmployeeRecord - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords`: %v\n", resp) + //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords(context.Background()).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListNonEmployeeRecords`: []NonEmployeeRecord + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords`: %v\n", resp) } ``` @@ -1872,7 +1874,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1885,18 +1887,18 @@ func main() { sorters := `approvalStatus,firstName` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, approvalStatus, firstName, lastName, email, phone, accountName, startDate, endDate** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, approvalStatus, firstName, lastName, email, phone, accountName, startDate, endDate** (optional) filters := `sourceId eq "2c91808568c529c60168cca6f90c1313"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **sourceId**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **sourceId**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests(context.Background()).RequestedFor(requestedFor).Execute() - //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests(context.Background()).RequestedFor(requestedFor).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListNonEmployeeRequests`: []NonEmployeeRequest - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests`: %v\n", resp) + //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests(context.Background()).RequestedFor(requestedFor).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListNonEmployeeRequests`: []NonEmployeeRequest + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests`: %v\n", resp) } ``` @@ -1946,7 +1948,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1959,18 +1961,18 @@ func main() { nonEmployeeCount := false // bool | Flag that determines whether the API will return a non-employee count associated with the source. (optional) (default to false) # bool | Flag that determines whether the API will return a non-employee count associated with the source. (optional) (default to false) sorters := `name,created` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, sourceId** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, sourceId** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources(context.Background()).Execute() - //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources(context.Background()).Limit(limit).Offset(offset).Count(count).RequestedFor(requestedFor).NonEmployeeCount(nonEmployeeCount).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListNonEmployeeSources`: []NonEmployeeSourceWithNECount - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources`: %v\n", resp) + //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources(context.Background()).Limit(limit).Offset(offset).Count(count).RequestedFor(requestedFor).NonEmployeeCount(nonEmployeeCount).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListNonEmployeeSources`: []NonEmployeeSourceWithNECount + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources`: %v\n", resp) } ``` @@ -2018,7 +2020,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2027,24 +2029,23 @@ func main() { id := `2c91808b6ef1d43e016efba0ce470904` // string | Non-employee record id (UUID) # string | Non-employee record id (UUID) jsonpatchoperation := []byte(`[{op=replace, path=/endDate, value={2019-08-23T18:40:35.772Z=null}}]`) // []JsonPatchOperation | A list of non-employee update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Attributes are restricted by user type. Owner of source can update end date. Organization admins can update all available fields. - - var jsonPatchOperation beta.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []beta.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchNonEmployeeRecord`: NonEmployeeRecord - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord`: %v\n", resp) + //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchNonEmployeeRecord`: NonEmployeeRecord + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord`: %v\n", resp) } ``` @@ -2095,7 +2096,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2105,24 +2106,23 @@ func main() { sourceId := `2c91808b6ef1d43e016efba0ce470904` // string | The Source id # string | The Source id jsonpatchoperation := []byte(`[{op=replace, path=/label, value={new attribute label=null}}]`) // []JsonPatchOperation | A list of schema attribute update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following properties are allowed for update ':' 'label', 'helpText', 'placeholder', 'required'. - - var jsonPatchOperation beta.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []beta.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchNonEmployeeSchemaAttribute`: NonEmployeeSchemaAttribute - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute`: %v\n", resp) + //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchNonEmployeeSchemaAttribute`: NonEmployeeSchemaAttribute + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute`: %v\n", resp) } ``` @@ -2170,7 +2170,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2179,24 +2179,23 @@ func main() { sourceId := `2c91808b6ef1d43e016efba0ce470904` // string | Source Id # string | Source Id jsonpatchoperation := []byte(`[{op=replace, path=/name, value={new name=null}}, {op=replace, path=/approvers, value=[2c91809f703bb37a017040a2fe8748c7, 48b1f463c9e8427db5a5071bd81914b8]}]`) // []JsonPatchOperation | A list of non-employee source update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - - var jsonPatchOperation beta.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []beta.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource(context.Background(), sourceId).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource(context.Background(), sourceId).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchNonEmployeeSource`: NonEmployeeSource - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource`: %v\n", resp) + //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource(context.Background(), sourceId).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchNonEmployeeSource`: NonEmployeeSource + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource`: %v\n", resp) } ``` @@ -2244,7 +2243,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2255,24 +2254,23 @@ func main() { "comment" : "comment" }`) // NonEmployeeRejectApprovalDecision | - - var nonEmployeeRejectApprovalDecision beta.NonEmployeeRejectApprovalDecision - if err := json.Unmarshal(nonemployeerejectapprovaldecision, &nonEmployeeRejectApprovalDecision); err != nil { - fmt.Println("Error:", err) - return - } - + var nonEmployeeRejectApprovalDecision beta.NonEmployeeRejectApprovalDecision + if err := json.Unmarshal(nonemployeerejectapprovaldecision, &nonEmployeeRejectApprovalDecision); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest(context.Background(), id).NonEmployeeRejectApprovalDecision(nonEmployeeRejectApprovalDecision).Execute() - //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest(context.Background(), id).NonEmployeeRejectApprovalDecision(nonEmployeeRejectApprovalDecision).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `RejectNonEmployeeRequest`: NonEmployeeApprovalItem - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest`: %v\n", resp) + //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest(context.Background(), id).NonEmployeeRejectApprovalDecision(nonEmployeeRejectApprovalDecision).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RejectNonEmployeeRequest`: NonEmployeeApprovalItem + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest`: %v\n", resp) } ``` @@ -2320,7 +2318,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -2343,24 +2341,23 @@ func main() { "startDate" : "2020-03-24T00:00:00-05:00" }`) // NonEmployeeRequestBody | Non-employee record creation request body. Attributes are restricted by user type. Owner of source can update end date. Organization admins can update all available fields. - - var nonEmployeeRequestBody beta.NonEmployeeRequestBody - if err := json.Unmarshal(nonemployeerequestbody, &nonEmployeeRequestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var nonEmployeeRequestBody beta.NonEmployeeRequestBody + if err := json.Unmarshal(nonemployeerequestbody, &nonEmployeeRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord(context.Background(), id).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() - //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord(context.Background(), id).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateNonEmployeeRecord`: NonEmployeeRecord - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord`: %v\n", resp) + //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord(context.Background(), id).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateNonEmployeeRecord`: NonEmployeeRecord + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/NotificationsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/NotificationsAPI.md index e82a466c8..705f1a026 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/NotificationsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/NotificationsAPI.md @@ -69,7 +69,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -79,24 +79,23 @@ func main() { "domain" : "sailpoint.com" }`) // DomainAddress | - - var domainAddress beta.DomainAddress - if err := json.Unmarshal(domainaddress, &domainAddress); err != nil { - fmt.Println("Error:", err) - return - } - + var domainAddress beta.DomainAddress + if err := json.Unmarshal(domainaddress, &domainAddress); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NotificationsAPI.CreateDomainDkim(context.Background()).DomainAddress(domainAddress).Execute() - //resp, r, err := apiClient.Beta.NotificationsAPI.CreateDomainDkim(context.Background()).DomainAddress(domainAddress).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.CreateDomainDkim``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateDomainDkim`: DomainStatusDto - fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.CreateDomainDkim`: %v\n", resp) + //resp, r, err := apiClient.Beta.NotificationsAPI.CreateDomainDkim(context.Background()).DomainAddress(domainAddress).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.CreateDomainDkim``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateDomainDkim`: DomainStatusDto + fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.CreateDomainDkim`: %v\n", resp) } ``` @@ -141,7 +140,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -166,24 +165,23 @@ func main() { "key" : "cloud_manual_work_item_summary" }`) // TemplateDto | - - var templateDto beta.TemplateDto - if err := json.Unmarshal(templatedto, &templateDto); err != nil { - fmt.Println("Error:", err) - return - } - + var templateDto beta.TemplateDto + if err := json.Unmarshal(templatedto, &templateDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NotificationsAPI.CreateNotificationTemplate(context.Background()).TemplateDto(templateDto).Execute() - //resp, r, err := apiClient.Beta.NotificationsAPI.CreateNotificationTemplate(context.Background()).TemplateDto(templateDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.CreateNotificationTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateNotificationTemplate`: TemplateDto - fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.CreateNotificationTemplate`: %v\n", resp) + //resp, r, err := apiClient.Beta.NotificationsAPI.CreateNotificationTemplate(context.Background()).TemplateDto(templateDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.CreateNotificationTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateNotificationTemplate`: TemplateDto + fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.CreateNotificationTemplate`: %v\n", resp) } ``` @@ -226,7 +224,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -239,24 +237,23 @@ func main() { "email" : "sender@example.com" }`) // EmailStatusDto | - - var emailStatusDto beta.EmailStatusDto - if err := json.Unmarshal(emailstatusdto, &emailStatusDto); err != nil { - fmt.Println("Error:", err) - return - } - + var emailStatusDto beta.EmailStatusDto + if err := json.Unmarshal(emailstatusdto, &emailStatusDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NotificationsAPI.CreateVerifiedFromAddress(context.Background()).EmailStatusDto(emailStatusDto).Execute() - //resp, r, err := apiClient.Beta.NotificationsAPI.CreateVerifiedFromAddress(context.Background()).EmailStatusDto(emailStatusDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.CreateVerifiedFromAddress``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateVerifiedFromAddress`: EmailStatusDto - fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.CreateVerifiedFromAddress`: %v\n", resp) + //resp, r, err := apiClient.Beta.NotificationsAPI.CreateVerifiedFromAddress(context.Background()).EmailStatusDto(emailStatusDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.CreateVerifiedFromAddress``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateVerifiedFromAddress`: EmailStatusDto + fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.CreateVerifiedFromAddress`: %v\n", resp) } ``` @@ -299,7 +296,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -307,22 +304,22 @@ import ( func main() { templatebulkdeletedto := []byte(``) // []TemplateBulkDeleteDto | - - var templateBulkDeleteDto beta.[]TemplateBulkDeleteDto - if err := json.Unmarshal(templatebulkdeletedto, &templateBulkDeleteDto); err != nil { - fmt.Println("Error:", err) - return - } - + var templateBulkDeleteDto []beta.TemplateBulkDeleteDto + if err := json.Unmarshal(templatebulkdeletedto, &templateBulkDeleteDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.NotificationsAPI.DeleteNotificationTemplatesInBulk(context.Background()).TemplateBulkDeleteDto(templateBulkDeleteDto).Execute() - //r, err := apiClient.Beta.NotificationsAPI.DeleteNotificationTemplatesInBulk(context.Background()).TemplateBulkDeleteDto(templateBulkDeleteDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.DeleteNotificationTemplatesInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.NotificationsAPI.DeleteNotificationTemplatesInBulk(context.Background()).TemplateBulkDeleteDto(templateBulkDeleteDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.DeleteNotificationTemplatesInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -369,7 +366,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -377,16 +374,17 @@ import ( func main() { id := `id_example` // string | # string | - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.NotificationsAPI.DeleteVerifiedFromAddress(context.Background(), id).Execute() - //r, err := apiClient.Beta.NotificationsAPI.DeleteVerifiedFromAddress(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.DeleteVerifiedFromAddress``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.NotificationsAPI.DeleteVerifiedFromAddress(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.DeleteVerifiedFromAddress``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -425,25 +423,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NotificationsAPI.GetDkimAttributes(context.Background()).Execute() - //resp, r, err := apiClient.Beta.NotificationsAPI.GetDkimAttributes(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.GetDkimAttributes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetDkimAttributes`: []DkimAttributes - fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.GetDkimAttributes`: %v\n", resp) + //resp, r, err := apiClient.Beta.NotificationsAPI.GetDkimAttributes(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.GetDkimAttributes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDkimAttributes`: []DkimAttributes + fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.GetDkimAttributes`: %v\n", resp) } ``` @@ -490,7 +488,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -498,18 +496,18 @@ import ( func main() { identityId := `bobsmith@sailpoint.com` // string | Returns the MX and TXT record to be put in your DNS, as well as the MAIL FROM domain status # string | Returns the MX and TXT record to be put in your DNS, as well as the MAIL FROM domain status - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NotificationsAPI.GetMailFromAttributes(context.Background(), identityId).Execute() - //resp, r, err := apiClient.Beta.NotificationsAPI.GetMailFromAttributes(context.Background(), identityId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.GetMailFromAttributes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMailFromAttributes`: MailFromAttributes - fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.GetMailFromAttributes`: %v\n", resp) + //resp, r, err := apiClient.Beta.NotificationsAPI.GetMailFromAttributes(context.Background(), identityId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.GetMailFromAttributes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMailFromAttributes`: MailFromAttributes + fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.GetMailFromAttributes`: %v\n", resp) } ``` @@ -556,7 +554,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -564,18 +562,18 @@ import ( func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the Notification Template # string | Id of the Notification Template - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NotificationsAPI.GetNotificationTemplate(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.NotificationsAPI.GetNotificationTemplate(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.GetNotificationTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNotificationTemplate`: []TemplateDto - fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.GetNotificationTemplate`: %v\n", resp) + //resp, r, err := apiClient.Beta.NotificationsAPI.GetNotificationTemplate(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.GetNotificationTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNotificationTemplate`: []TemplateDto + fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.GetNotificationTemplate`: %v\n", resp) } ``` @@ -615,25 +613,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NotificationsAPI.GetNotificationsTemplateContext(context.Background()).Execute() - //resp, r, err := apiClient.Beta.NotificationsAPI.GetNotificationsTemplateContext(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.GetNotificationsTemplateContext``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNotificationsTemplateContext`: NotificationTemplateContext - fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.GetNotificationsTemplateContext`: %v\n", resp) + //resp, r, err := apiClient.Beta.NotificationsAPI.GetNotificationsTemplateContext(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.GetNotificationsTemplateContext``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNotificationsTemplateContext`: NotificationTemplateContext + fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.GetNotificationsTemplateContext`: %v\n", resp) } ``` @@ -680,7 +678,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -692,18 +690,18 @@ func main() { filters := `email eq "john.doe@company.com"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **email**: *eq, ge, le, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **email**: *eq, ge, le, sw* (optional) sorters := `email` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **email** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **email** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NotificationsAPI.ListFromAddresses(context.Background()).Execute() - //resp, r, err := apiClient.Beta.NotificationsAPI.ListFromAddresses(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.ListFromAddresses``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListFromAddresses`: []EmailStatusDto - fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.ListFromAddresses`: %v\n", resp) + //resp, r, err := apiClient.Beta.NotificationsAPI.ListFromAddresses(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.ListFromAddresses``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListFromAddresses`: []EmailStatusDto + fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.ListFromAddresses`: %v\n", resp) } ``` @@ -750,7 +748,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -758,18 +756,18 @@ import ( func main() { key := `cloud_manual_work_item_summary` // string | The notification key. # string | The notification key. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NotificationsAPI.ListNotificationPreferences(context.Background(), key).Execute() - //resp, r, err := apiClient.Beta.NotificationsAPI.ListNotificationPreferences(context.Background(), key).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.ListNotificationPreferences``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListNotificationPreferences`: []PreferencesDto - fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.ListNotificationPreferences`: %v\n", resp) + //resp, r, err := apiClient.Beta.NotificationsAPI.ListNotificationPreferences(context.Background(), key).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.ListNotificationPreferences``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListNotificationPreferences`: []PreferencesDto + fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.ListNotificationPreferences`: %v\n", resp) } ``` @@ -814,7 +812,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -824,18 +822,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) filters := `key eq "cloud_manual_work_item_summary"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **key**: *eq, in, sw* **medium**: *eq, sw* **locale**: *eq, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **key**: *eq, in, sw* **medium**: *eq, sw* **locale**: *eq, sw* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NotificationsAPI.ListNotificationTemplateDefaults(context.Background()).Execute() - //resp, r, err := apiClient.Beta.NotificationsAPI.ListNotificationTemplateDefaults(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.ListNotificationTemplateDefaults``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListNotificationTemplateDefaults`: []TemplateDtoDefault - fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.ListNotificationTemplateDefaults`: %v\n", resp) + //resp, r, err := apiClient.Beta.NotificationsAPI.ListNotificationTemplateDefaults(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.ListNotificationTemplateDefaults``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListNotificationTemplateDefaults`: []TemplateDtoDefault + fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.ListNotificationTemplateDefaults`: %v\n", resp) } ``` @@ -880,7 +878,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -890,18 +888,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) filters := `medium eq "EMAIL"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **key**: *eq, in, sw* **medium**: *eq, sw* **locale**: *eq, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **key**: *eq, in, sw* **medium**: *eq, sw* **locale**: *eq, sw* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NotificationsAPI.ListNotificationTemplates(context.Background()).Execute() - //resp, r, err := apiClient.Beta.NotificationsAPI.ListNotificationTemplates(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.ListNotificationTemplates``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListNotificationTemplates`: []TemplateDto - fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.ListNotificationTemplates`: %v\n", resp) + //resp, r, err := apiClient.Beta.NotificationsAPI.ListNotificationTemplates(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.ListNotificationTemplates``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListNotificationTemplates`: []TemplateDto + fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.ListNotificationTemplates`: %v\n", resp) } ``` @@ -944,7 +942,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -955,24 +953,23 @@ func main() { "mailFromDomain" : "example.sailpoint.com" }`) // MailFromAttributesDto | - - var mailFromAttributesDto beta.MailFromAttributesDto - if err := json.Unmarshal(mailfromattributesdto, &mailFromAttributesDto); err != nil { - fmt.Println("Error:", err) - return - } - + var mailFromAttributesDto beta.MailFromAttributesDto + if err := json.Unmarshal(mailfromattributesdto, &mailFromAttributesDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NotificationsAPI.PutMailFromAttributes(context.Background()).MailFromAttributesDto(mailFromAttributesDto).Execute() - //resp, r, err := apiClient.Beta.NotificationsAPI.PutMailFromAttributes(context.Background()).MailFromAttributesDto(mailFromAttributesDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.PutMailFromAttributes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutMailFromAttributes`: MailFromAttributes - fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.PutMailFromAttributes`: %v\n", resp) + //resp, r, err := apiClient.Beta.NotificationsAPI.PutMailFromAttributes(context.Background()).MailFromAttributesDto(mailFromAttributesDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.PutMailFromAttributes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutMailFromAttributes`: MailFromAttributes + fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.PutMailFromAttributes`: %v\n", resp) } ``` @@ -1015,7 +1012,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1027,22 +1024,22 @@ func main() { "key" : "cloud_manual_work_item_summary" }`) // SendTestNotificationRequestDto | - - var sendTestNotificationRequestDto beta.SendTestNotificationRequestDto - if err := json.Unmarshal(sendtestnotificationrequestdto, &sendTestNotificationRequestDto); err != nil { - fmt.Println("Error:", err) - return - } - + var sendTestNotificationRequestDto beta.SendTestNotificationRequestDto + if err := json.Unmarshal(sendtestnotificationrequestdto, &sendTestNotificationRequestDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.NotificationsAPI.SendTestNotification(context.Background()).SendTestNotificationRequestDto(sendTestNotificationRequestDto).Execute() - //r, err := apiClient.Beta.NotificationsAPI.SendTestNotification(context.Background()).SendTestNotificationRequestDto(sendTestNotificationRequestDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.SendTestNotification``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.NotificationsAPI.SendTestNotification(context.Background()).SendTestNotificationRequestDto(sendTestNotificationRequestDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.SendTestNotification``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/OAuthClientsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/OAuthClientsAPI.md index 047823a58..5401d055a 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/OAuthClientsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/OAuthClientsAPI.md @@ -62,7 +62,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -86,24 +86,23 @@ func main() { "claimsSupported" : false }`) // CreateOAuthClientRequest | - - var createOAuthClientRequest beta.CreateOAuthClientRequest - if err := json.Unmarshal(createoauthclientrequest, &createOAuthClientRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var createOAuthClientRequest beta.CreateOAuthClientRequest + if err := json.Unmarshal(createoauthclientrequest, &createOAuthClientRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.OAuthClientsAPI.CreateOauthClient(context.Background()).CreateOAuthClientRequest(createOAuthClientRequest).Execute() - //resp, r, err := apiClient.Beta.OAuthClientsAPI.CreateOauthClient(context.Background()).CreateOAuthClientRequest(createOAuthClientRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.CreateOauthClient``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateOauthClient`: CreateOAuthClientResponse - fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.CreateOauthClient`: %v\n", resp) + //resp, r, err := apiClient.Beta.OAuthClientsAPI.CreateOauthClient(context.Background()).CreateOAuthClientRequest(createOAuthClientRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.CreateOauthClient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateOauthClient`: CreateOAuthClientResponse + fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.CreateOauthClient`: %v\n", resp) } ``` @@ -150,7 +149,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -158,16 +157,17 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The OAuth client id # string | The OAuth client id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.OAuthClientsAPI.DeleteOauthClient(context.Background(), id).Execute() - //r, err := apiClient.Beta.OAuthClientsAPI.DeleteOauthClient(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.DeleteOauthClient``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.OAuthClientsAPI.DeleteOauthClient(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.DeleteOauthClient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -214,7 +214,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -222,18 +222,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The OAuth client id # string | The OAuth client id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.OAuthClientsAPI.GetOauthClient(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.OAuthClientsAPI.GetOauthClient(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.GetOauthClient``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetOauthClient`: GetOAuthClientResponse - fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.GetOauthClient`: %v\n", resp) + //resp, r, err := apiClient.Beta.OAuthClientsAPI.GetOauthClient(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.GetOauthClient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetOauthClient`: GetOAuthClientResponse + fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.GetOauthClient`: %v\n", resp) } ``` @@ -276,7 +276,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -284,18 +284,18 @@ import ( func main() { filters := `lastUsed le 2023-02-05T10:59:27.214Z` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **lastUsed**: *le, isnull* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **lastUsed**: *le, isnull* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.OAuthClientsAPI.ListOauthClients(context.Background()).Execute() - //resp, r, err := apiClient.Beta.OAuthClientsAPI.ListOauthClients(context.Background()).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.ListOauthClients``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListOauthClients`: []GetOAuthClientResponse - fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.ListOauthClients`: %v\n", resp) + //resp, r, err := apiClient.Beta.OAuthClientsAPI.ListOauthClients(context.Background()).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.ListOauthClients``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListOauthClients`: []GetOAuthClientResponse + fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.ListOauthClients`: %v\n", resp) } ``` @@ -345,7 +345,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -354,24 +354,23 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The OAuth client id # string | The OAuth client id jsonpatchoperation := []byte(`[{op=replace, path=/strongAuthSupported, value=true}, {op=replace, path=/businessName, value=acme-solar}]`) // []JsonPatchOperation | A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * tenant * businessName * homepageUrl * name * description * accessTokenValiditySeconds * refreshTokenValiditySeconds * redirectUris * grantTypes * accessType * enabled * strongAuthSupported * claimsSupported - - var jsonPatchOperation beta.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []beta.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.OAuthClientsAPI.PatchOauthClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.Beta.OAuthClientsAPI.PatchOauthClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.PatchOauthClient``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchOauthClient`: GetOAuthClientResponse - fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.PatchOauthClient`: %v\n", resp) + //resp, r, err := apiClient.Beta.OAuthClientsAPI.PatchOauthClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.PatchOauthClient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchOauthClient`: GetOAuthClientResponse + fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.PatchOauthClient`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/OrgConfigAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/OrgConfigAPI.md index 2394bc7ca..5b56648e1 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/OrgConfigAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/OrgConfigAPI.md @@ -55,25 +55,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.OrgConfigAPI.GetOrgConfig(context.Background()).Execute() - //resp, r, err := apiClient.Beta.OrgConfigAPI.GetOrgConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OrgConfigAPI.GetOrgConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetOrgConfig`: OrgConfig - fmt.Fprintf(os.Stdout, "Response from `OrgConfigAPI.GetOrgConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.OrgConfigAPI.GetOrgConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrgConfigAPI.GetOrgConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetOrgConfig`: OrgConfig + fmt.Fprintf(os.Stdout, "Response from `OrgConfigAPI.GetOrgConfig`: %v\n", resp) } ``` @@ -112,25 +112,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.OrgConfigAPI.GetValidTimeZones(context.Background()).Execute() - //resp, r, err := apiClient.Beta.OrgConfigAPI.GetValidTimeZones(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OrgConfigAPI.GetValidTimeZones``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetValidTimeZones`: []string - fmt.Fprintf(os.Stdout, "Response from `OrgConfigAPI.GetValidTimeZones`: %v\n", resp) + //resp, r, err := apiClient.Beta.OrgConfigAPI.GetValidTimeZones(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrgConfigAPI.GetValidTimeZones``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetValidTimeZones`: []string + fmt.Fprintf(os.Stdout, "Response from `OrgConfigAPI.GetValidTimeZones`: %v\n", resp) } ``` @@ -173,7 +173,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -181,24 +181,23 @@ import ( func main() { jsonpatchoperation := []byte(`[{op=replace, path=/timeZone, value=America/Toronto}]`) // []JsonPatchOperation | A list of schema attribute update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - - var jsonPatchOperation beta.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []beta.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.OrgConfigAPI.PatchOrgConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.Beta.OrgConfigAPI.PatchOrgConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OrgConfigAPI.PatchOrgConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchOrgConfig`: OrgConfig - fmt.Fprintf(os.Stdout, "Response from `OrgConfigAPI.PatchOrgConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.OrgConfigAPI.PatchOrgConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrgConfigAPI.PatchOrgConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchOrgConfig`: OrgConfig + fmt.Fprintf(os.Stdout, "Response from `OrgConfigAPI.PatchOrgConfig`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/PasswordConfigurationAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/PasswordConfigurationAPI.md index c954c91ab..343ccb587 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/PasswordConfigurationAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/PasswordConfigurationAPI.md @@ -65,7 +65,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -78,24 +78,23 @@ func main() { "customInstructionsEnabled" : true }`) // PasswordOrgConfig | - - var passwordOrgConfig beta.PasswordOrgConfig - if err := json.Unmarshal(passwordorgconfig, &passwordOrgConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var passwordOrgConfig beta.PasswordOrgConfig + if err := json.Unmarshal(passwordorgconfig, &passwordOrgConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PasswordConfigurationAPI.CreatePasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() - //resp, r, err := apiClient.Beta.PasswordConfigurationAPI.CreatePasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordConfigurationAPI.CreatePasswordOrgConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreatePasswordOrgConfig`: PasswordOrgConfig - fmt.Fprintf(os.Stdout, "Response from `PasswordConfigurationAPI.CreatePasswordOrgConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.PasswordConfigurationAPI.CreatePasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordConfigurationAPI.CreatePasswordOrgConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreatePasswordOrgConfig`: PasswordOrgConfig + fmt.Fprintf(os.Stdout, "Response from `PasswordConfigurationAPI.CreatePasswordOrgConfig`: %v\n", resp) } ``` @@ -134,25 +133,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PasswordConfigurationAPI.GetPasswordOrgConfig(context.Background()).Execute() - //resp, r, err := apiClient.Beta.PasswordConfigurationAPI.GetPasswordOrgConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordConfigurationAPI.GetPasswordOrgConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPasswordOrgConfig`: PasswordOrgConfig - fmt.Fprintf(os.Stdout, "Response from `PasswordConfigurationAPI.GetPasswordOrgConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.PasswordConfigurationAPI.GetPasswordOrgConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordConfigurationAPI.GetPasswordOrgConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPasswordOrgConfig`: PasswordOrgConfig + fmt.Fprintf(os.Stdout, "Response from `PasswordConfigurationAPI.GetPasswordOrgConfig`: %v\n", resp) } ``` @@ -197,7 +196,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -210,24 +209,23 @@ func main() { "customInstructionsEnabled" : true }`) // PasswordOrgConfig | - - var passwordOrgConfig beta.PasswordOrgConfig - if err := json.Unmarshal(passwordorgconfig, &passwordOrgConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var passwordOrgConfig beta.PasswordOrgConfig + if err := json.Unmarshal(passwordorgconfig, &passwordOrgConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PasswordConfigurationAPI.PutPasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() - //resp, r, err := apiClient.Beta.PasswordConfigurationAPI.PutPasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordConfigurationAPI.PutPasswordOrgConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutPasswordOrgConfig`: PasswordOrgConfig - fmt.Fprintf(os.Stdout, "Response from `PasswordConfigurationAPI.PutPasswordOrgConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.PasswordConfigurationAPI.PutPasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordConfigurationAPI.PutPasswordOrgConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutPasswordOrgConfig`: PasswordOrgConfig + fmt.Fprintf(os.Stdout, "Response from `PasswordConfigurationAPI.PutPasswordOrgConfig`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/PasswordDictionaryAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/PasswordDictionaryAPI.md index 1fcba3450..bbdaaff4e 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/PasswordDictionaryAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/PasswordDictionaryAPI.md @@ -127,25 +127,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PasswordDictionaryAPI.GetPasswordDictionary(context.Background()).Execute() - //resp, r, err := apiClient.Beta.PasswordDictionaryAPI.GetPasswordDictionary(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordDictionaryAPI.GetPasswordDictionary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPasswordDictionary`: string - fmt.Fprintf(os.Stdout, "Response from `PasswordDictionaryAPI.GetPasswordDictionary`: %v\n", resp) + //resp, r, err := apiClient.Beta.PasswordDictionaryAPI.GetPasswordDictionary(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordDictionaryAPI.GetPasswordDictionary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPasswordDictionary`: string + fmt.Fprintf(os.Stdout, "Response from `PasswordDictionaryAPI.GetPasswordDictionary`: %v\n", resp) } ``` @@ -216,7 +216,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -224,16 +224,17 @@ import ( func main() { file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.PasswordDictionaryAPI.PutPasswordDictionary(context.Background()).Execute() - //r, err := apiClient.Beta.PasswordDictionaryAPI.PutPasswordDictionary(context.Background()).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordDictionaryAPI.PutPasswordDictionary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.PasswordDictionaryAPI.PutPasswordDictionary(context.Background()).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordDictionaryAPI.PutPasswordDictionary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/PasswordManagementAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/PasswordManagementAPI.md index 3cfa2fd4b..86e3d2f8b 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/PasswordManagementAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/PasswordManagementAPI.md @@ -82,7 +82,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -94,24 +94,23 @@ func main() { "userId" : "Abby.Smith" }`) // PasswordDigitTokenReset | - - var passwordDigitTokenReset beta.PasswordDigitTokenReset - if err := json.Unmarshal(passworddigittokenreset, &passwordDigitTokenReset); err != nil { - fmt.Println("Error:", err) - return - } - + var passwordDigitTokenReset beta.PasswordDigitTokenReset + if err := json.Unmarshal(passworddigittokenreset, &passwordDigitTokenReset); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PasswordManagementAPI.CreateDigitToken(context.Background()).PasswordDigitTokenReset(passwordDigitTokenReset).Execute() - //resp, r, err := apiClient.Beta.PasswordManagementAPI.CreateDigitToken(context.Background()).PasswordDigitTokenReset(passwordDigitTokenReset).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordManagementAPI.CreateDigitToken``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateDigitToken`: PasswordDigitToken - fmt.Fprintf(os.Stdout, "Response from `PasswordManagementAPI.CreateDigitToken`: %v\n", resp) + //resp, r, err := apiClient.Beta.PasswordManagementAPI.CreateDigitToken(context.Background()).PasswordDigitTokenReset(passwordDigitTokenReset).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordManagementAPI.CreateDigitToken``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateDigitToken`: PasswordDigitToken + fmt.Fprintf(os.Stdout, "Response from `PasswordManagementAPI.CreateDigitToken`: %v\n", resp) } ``` @@ -158,7 +157,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -166,18 +165,18 @@ import ( func main() { id := `id_example` // string | # string | - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PasswordManagementAPI.GetIdentityPasswordChangeStatus(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.PasswordManagementAPI.GetIdentityPasswordChangeStatus(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordManagementAPI.GetIdentityPasswordChangeStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentityPasswordChangeStatus`: PasswordStatus - fmt.Fprintf(os.Stdout, "Response from `PasswordManagementAPI.GetIdentityPasswordChangeStatus`: %v\n", resp) + //resp, r, err := apiClient.Beta.PasswordManagementAPI.GetIdentityPasswordChangeStatus(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordManagementAPI.GetIdentityPasswordChangeStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityPasswordChangeStatus`: PasswordStatus + fmt.Fprintf(os.Stdout, "Response from `PasswordManagementAPI.GetIdentityPasswordChangeStatus`: %v\n", resp) } ``` @@ -228,7 +227,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -239,24 +238,23 @@ func main() { "userName" : "Abby.Smith" }`) // PasswordInfoQueryDTO | - - var passwordInfoQueryDTO beta.PasswordInfoQueryDTO - if err := json.Unmarshal(passwordinfoquerydto, &passwordInfoQueryDTO); err != nil { - fmt.Println("Error:", err) - return - } - + var passwordInfoQueryDTO beta.PasswordInfoQueryDTO + if err := json.Unmarshal(passwordinfoquerydto, &passwordInfoQueryDTO); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PasswordManagementAPI.QueryPasswordInfo(context.Background()).PasswordInfoQueryDTO(passwordInfoQueryDTO).Execute() - //resp, r, err := apiClient.Beta.PasswordManagementAPI.QueryPasswordInfo(context.Background()).PasswordInfoQueryDTO(passwordInfoQueryDTO).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordManagementAPI.QueryPasswordInfo``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `QueryPasswordInfo`: PasswordInfo - fmt.Fprintf(os.Stdout, "Response from `PasswordManagementAPI.QueryPasswordInfo`: %v\n", resp) + //resp, r, err := apiClient.Beta.PasswordManagementAPI.QueryPasswordInfo(context.Background()).PasswordInfoQueryDTO(passwordInfoQueryDTO).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordManagementAPI.QueryPasswordInfo``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `QueryPasswordInfo`: PasswordInfo + fmt.Fprintf(os.Stdout, "Response from `PasswordManagementAPI.QueryPasswordInfo`: %v\n", resp) } ``` @@ -342,7 +340,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -356,24 +354,23 @@ func main() { "encryptedPassword" : "XzN+YwKgr2C+InkMYFMBG3UtjMEw5ZIql/XFlXo8cJNeslmkplx6vn4kd4/43IF9STBk5RnzR6XmjpEO+FwHDoiBwYZAkAZK/Iswxk4OdybG6Y4MStJCOCiK8osKr35IMMSV/mbO4wAeltoCk7daTWzTGLiI6UaT5tf+F2EgdjJZ7YqM8W8r7aUWsm3p2Xt01Y46ZRx0QaM91QruiIx2rECFT2pUO0wr+7oQ77jypATyGWRtADsu3YcvCk/6U5MqCnXMzKBcRas7NnZdSL/d5H1GglVGz3VLPMaivG4/oL4chOMmFCRl/zVsGxZ9RhN8rxsRGFFKn+rhExTi+bax3A==" }`) // PasswordChangeRequest | - - var passwordChangeRequest beta.PasswordChangeRequest - if err := json.Unmarshal(passwordchangerequest, &passwordChangeRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var passwordChangeRequest beta.PasswordChangeRequest + if err := json.Unmarshal(passwordchangerequest, &passwordChangeRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PasswordManagementAPI.SetIdentityPassword(context.Background()).PasswordChangeRequest(passwordChangeRequest).Execute() - //resp, r, err := apiClient.Beta.PasswordManagementAPI.SetIdentityPassword(context.Background()).PasswordChangeRequest(passwordChangeRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordManagementAPI.SetIdentityPassword``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetIdentityPassword`: PasswordChangeResponse - fmt.Fprintf(os.Stdout, "Response from `PasswordManagementAPI.SetIdentityPassword`: %v\n", resp) + //resp, r, err := apiClient.Beta.PasswordManagementAPI.SetIdentityPassword(context.Background()).PasswordChangeRequest(passwordChangeRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordManagementAPI.SetIdentityPassword``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetIdentityPassword`: PasswordChangeResponse + fmt.Fprintf(os.Stdout, "Response from `PasswordManagementAPI.SetIdentityPassword`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/PasswordPoliciesAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/PasswordPoliciesAPI.md index f5d40c08d..db7757109 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/PasswordPoliciesAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/PasswordPoliciesAPI.md @@ -68,7 +68,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -108,24 +108,23 @@ func main() { "maxLength" : 25 }`) // PasswordPolicyV3Dto | - - var passwordPolicyV3Dto beta.PasswordPolicyV3Dto - if err := json.Unmarshal(passwordpolicyv3dto, &passwordPolicyV3Dto); err != nil { - fmt.Println("Error:", err) - return - } - + var passwordPolicyV3Dto beta.PasswordPolicyV3Dto + if err := json.Unmarshal(passwordpolicyv3dto, &passwordPolicyV3Dto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PasswordPoliciesAPI.CreatePasswordPolicy(context.Background()).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() - //resp, r, err := apiClient.Beta.PasswordPoliciesAPI.CreatePasswordPolicy(context.Background()).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.CreatePasswordPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreatePasswordPolicy`: PasswordPolicyV3Dto - fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.CreatePasswordPolicy`: %v\n", resp) + //resp, r, err := apiClient.Beta.PasswordPoliciesAPI.CreatePasswordPolicy(context.Background()).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.CreatePasswordPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreatePasswordPolicy`: PasswordPolicyV3Dto + fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.CreatePasswordPolicy`: %v\n", resp) } ``` @@ -172,7 +171,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -180,16 +179,17 @@ import ( func main() { id := `ff808081838d9e9d01838da6a03e0002` // string | The ID of password policy to delete. # string | The ID of password policy to delete. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.PasswordPoliciesAPI.DeletePasswordPolicy(context.Background(), id).Execute() - //r, err := apiClient.Beta.PasswordPoliciesAPI.DeletePasswordPolicy(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.DeletePasswordPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.PasswordPoliciesAPI.DeletePasswordPolicy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.DeletePasswordPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -236,7 +236,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -244,18 +244,18 @@ import ( func main() { id := `ff808081838d9e9d01838da6a03e0005` // string | The ID of password policy to retrieve. # string | The ID of password policy to retrieve. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PasswordPoliciesAPI.GetPasswordPolicyById(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.PasswordPoliciesAPI.GetPasswordPolicyById(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.GetPasswordPolicyById``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPasswordPolicyById`: PasswordPolicyV3Dto - fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.GetPasswordPolicyById`: %v\n", resp) + //resp, r, err := apiClient.Beta.PasswordPoliciesAPI.GetPasswordPolicyById(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.GetPasswordPolicyById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPasswordPolicyById`: PasswordPolicyV3Dto + fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.GetPasswordPolicyById`: %v\n", resp) } ``` @@ -301,7 +301,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -311,18 +311,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PasswordPoliciesAPI.ListPasswordPolicies(context.Background()).Execute() - //resp, r, err := apiClient.Beta.PasswordPoliciesAPI.ListPasswordPolicies(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.ListPasswordPolicies``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListPasswordPolicies`: []PasswordPolicyV3Dto - fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.ListPasswordPolicies`: %v\n", resp) + //resp, r, err := apiClient.Beta.PasswordPoliciesAPI.ListPasswordPolicies(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.ListPasswordPolicies``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListPasswordPolicies`: []PasswordPolicyV3Dto + fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.ListPasswordPolicies`: %v\n", resp) } ``` @@ -370,7 +370,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -411,24 +411,23 @@ func main() { "maxLength" : 25 }`) // PasswordPolicyV3Dto | - - var passwordPolicyV3Dto beta.PasswordPolicyV3Dto - if err := json.Unmarshal(passwordpolicyv3dto, &passwordPolicyV3Dto); err != nil { - fmt.Println("Error:", err) - return - } - + var passwordPolicyV3Dto beta.PasswordPolicyV3Dto + if err := json.Unmarshal(passwordpolicyv3dto, &passwordPolicyV3Dto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PasswordPoliciesAPI.SetPasswordPolicy(context.Background(), id).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() - //resp, r, err := apiClient.Beta.PasswordPoliciesAPI.SetPasswordPolicy(context.Background(), id).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.SetPasswordPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetPasswordPolicy`: PasswordPolicyV3Dto - fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.SetPasswordPolicy`: %v\n", resp) + //resp, r, err := apiClient.Beta.PasswordPoliciesAPI.SetPasswordPolicy(context.Background(), id).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.SetPasswordPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetPasswordPolicy`: PasswordPolicyV3Dto + fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.SetPasswordPolicy`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/PasswordSyncGroupsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/PasswordSyncGroupsAPI.md index 1ec323067..9bd2e5799 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/PasswordSyncGroupsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/PasswordSyncGroupsAPI.md @@ -91,7 +91,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -106,24 +106,23 @@ func main() { "sourceIds" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210500" ] }`) // PasswordSyncGroup | - - var passwordSyncGroup beta.PasswordSyncGroup - if err := json.Unmarshal(passwordsyncgroup, &passwordSyncGroup); err != nil { - fmt.Println("Error:", err) - return - } - + var passwordSyncGroup beta.PasswordSyncGroup + if err := json.Unmarshal(passwordsyncgroup, &passwordSyncGroup); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PasswordSyncGroupsAPI.CreatePasswordSyncGroup(context.Background()).PasswordSyncGroup(passwordSyncGroup).Execute() - //resp, r, err := apiClient.Beta.PasswordSyncGroupsAPI.CreatePasswordSyncGroup(context.Background()).PasswordSyncGroup(passwordSyncGroup).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.CreatePasswordSyncGroup``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreatePasswordSyncGroup`: PasswordSyncGroup - fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.CreatePasswordSyncGroup`: %v\n", resp) + //resp, r, err := apiClient.Beta.PasswordSyncGroupsAPI.CreatePasswordSyncGroup(context.Background()).PasswordSyncGroup(passwordSyncGroup).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.CreatePasswordSyncGroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreatePasswordSyncGroup`: PasswordSyncGroup + fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.CreatePasswordSyncGroup`: %v\n", resp) } ``` @@ -170,7 +169,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -178,16 +177,17 @@ import ( func main() { id := `6881f631-3bd5-4213-9c75-8e05cc3e35dd` // string | The ID of password sync group to delete. # string | The ID of password sync group to delete. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.PasswordSyncGroupsAPI.DeletePasswordSyncGroup(context.Background(), id).Execute() - //r, err := apiClient.Beta.PasswordSyncGroupsAPI.DeletePasswordSyncGroup(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.DeletePasswordSyncGroup``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.PasswordSyncGroupsAPI.DeletePasswordSyncGroup(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.DeletePasswordSyncGroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -234,7 +234,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -242,18 +242,18 @@ import ( func main() { id := `6881f631-3bd5-4213-9c75-8e05cc3e35dd` // string | The ID of password sync group to retrieve. # string | The ID of password sync group to retrieve. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PasswordSyncGroupsAPI.GetPasswordSyncGroup(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.PasswordSyncGroupsAPI.GetPasswordSyncGroup(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.GetPasswordSyncGroup``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPasswordSyncGroup`: PasswordSyncGroup - fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.GetPasswordSyncGroup`: %v\n", resp) + //resp, r, err := apiClient.Beta.PasswordSyncGroupsAPI.GetPasswordSyncGroup(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.GetPasswordSyncGroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPasswordSyncGroup`: PasswordSyncGroup + fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.GetPasswordSyncGroup`: %v\n", resp) } ``` @@ -298,7 +298,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -308,18 +308,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PasswordSyncGroupsAPI.GetPasswordSyncGroups(context.Background()).Execute() - //resp, r, err := apiClient.Beta.PasswordSyncGroupsAPI.GetPasswordSyncGroups(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.GetPasswordSyncGroups``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPasswordSyncGroups`: []PasswordSyncGroup - fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.GetPasswordSyncGroups`: %v\n", resp) + //resp, r, err := apiClient.Beta.PasswordSyncGroupsAPI.GetPasswordSyncGroups(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.GetPasswordSyncGroups``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPasswordSyncGroups`: []PasswordSyncGroup + fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.GetPasswordSyncGroups`: %v\n", resp) } ``` @@ -367,7 +367,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -383,24 +383,23 @@ func main() { "sourceIds" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210500" ] }`) // PasswordSyncGroup | - - var passwordSyncGroup beta.PasswordSyncGroup - if err := json.Unmarshal(passwordsyncgroup, &passwordSyncGroup); err != nil { - fmt.Println("Error:", err) - return - } - + var passwordSyncGroup beta.PasswordSyncGroup + if err := json.Unmarshal(passwordsyncgroup, &passwordSyncGroup); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PasswordSyncGroupsAPI.UpdatePasswordSyncGroup(context.Background(), id).PasswordSyncGroup(passwordSyncGroup).Execute() - //resp, r, err := apiClient.Beta.PasswordSyncGroupsAPI.UpdatePasswordSyncGroup(context.Background(), id).PasswordSyncGroup(passwordSyncGroup).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.UpdatePasswordSyncGroup``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdatePasswordSyncGroup`: PasswordSyncGroup - fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.UpdatePasswordSyncGroup`: %v\n", resp) + //resp, r, err := apiClient.Beta.PasswordSyncGroupsAPI.UpdatePasswordSyncGroup(context.Background(), id).PasswordSyncGroup(passwordSyncGroup).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.UpdatePasswordSyncGroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdatePasswordSyncGroup`: PasswordSyncGroup + fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.UpdatePasswordSyncGroup`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/PersonalAccessTokensAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/PersonalAccessTokensAPI.md index 7e8e6c7b4..f467bcbc2 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/PersonalAccessTokensAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/PersonalAccessTokensAPI.md @@ -69,7 +69,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -81,24 +81,23 @@ func main() { "name" : "NodeJS Integration" }`) // CreatePersonalAccessTokenRequest | Name and scope of personal access token. - - var createPersonalAccessTokenRequest beta.CreatePersonalAccessTokenRequest - if err := json.Unmarshal(createpersonalaccesstokenrequest, &createPersonalAccessTokenRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var createPersonalAccessTokenRequest beta.CreatePersonalAccessTokenRequest + if err := json.Unmarshal(createpersonalaccesstokenrequest, &createPersonalAccessTokenRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PersonalAccessTokensAPI.CreatePersonalAccessToken(context.Background()).CreatePersonalAccessTokenRequest(createPersonalAccessTokenRequest).Execute() - //resp, r, err := apiClient.Beta.PersonalAccessTokensAPI.CreatePersonalAccessToken(context.Background()).CreatePersonalAccessTokenRequest(createPersonalAccessTokenRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.CreatePersonalAccessToken``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreatePersonalAccessToken`: CreatePersonalAccessTokenResponse - fmt.Fprintf(os.Stdout, "Response from `PersonalAccessTokensAPI.CreatePersonalAccessToken`: %v\n", resp) + //resp, r, err := apiClient.Beta.PersonalAccessTokensAPI.CreatePersonalAccessToken(context.Background()).CreatePersonalAccessTokenRequest(createPersonalAccessTokenRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.CreatePersonalAccessToken``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreatePersonalAccessToken`: CreatePersonalAccessTokenResponse + fmt.Fprintf(os.Stdout, "Response from `PersonalAccessTokensAPI.CreatePersonalAccessToken`: %v\n", resp) } ``` @@ -145,7 +144,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -153,16 +152,17 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The personal access token id # string | The personal access token id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.PersonalAccessTokensAPI.DeletePersonalAccessToken(context.Background(), id).Execute() - //r, err := apiClient.Beta.PersonalAccessTokensAPI.DeletePersonalAccessToken(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.DeletePersonalAccessToken``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.PersonalAccessTokensAPI.DeletePersonalAccessToken(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.DeletePersonalAccessToken``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -206,7 +206,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -215,18 +215,18 @@ func main() { ownerId := `2c9180867b50d088017b554662fb281e` // string | The identity ID of the owner whose personal access tokens should be listed. If \"me\", the caller should have the following right: 'idn:my-personal-access-tokens:read' If an actual owner ID or if the `owner-id` parameter is omitted in the request, the caller should have the following right: 'idn:all-personal-access-tokens:read'. If the caller has the following right, then managed personal access tokens associated with `owner-id` will be retrieved: 'idn:managed-personal-access-tokens:read' (optional) # string | The identity ID of the owner whose personal access tokens should be listed. If \"me\", the caller should have the following right: 'idn:my-personal-access-tokens:read' If an actual owner ID or if the `owner-id` parameter is omitted in the request, the caller should have the following right: 'idn:all-personal-access-tokens:read'. If the caller has the following right, then managed personal access tokens associated with `owner-id` will be retrieved: 'idn:managed-personal-access-tokens:read' (optional) filters := `lastUsed le 2023-02-05T10:59:27.214Z` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **lastUsed**: *le, isnull* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **lastUsed**: *le, isnull* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PersonalAccessTokensAPI.ListPersonalAccessTokens(context.Background()).Execute() - //resp, r, err := apiClient.Beta.PersonalAccessTokensAPI.ListPersonalAccessTokens(context.Background()).OwnerId(ownerId).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.ListPersonalAccessTokens``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListPersonalAccessTokens`: []GetPersonalAccessTokenResponse - fmt.Fprintf(os.Stdout, "Response from `PersonalAccessTokensAPI.ListPersonalAccessTokens`: %v\n", resp) + //resp, r, err := apiClient.Beta.PersonalAccessTokensAPI.ListPersonalAccessTokens(context.Background()).OwnerId(ownerId).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.ListPersonalAccessTokens``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListPersonalAccessTokens`: []GetPersonalAccessTokenResponse + fmt.Fprintf(os.Stdout, "Response from `PersonalAccessTokensAPI.ListPersonalAccessTokens`: %v\n", resp) } ``` @@ -274,7 +274,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -283,24 +283,23 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The Personal Access Token id # string | The Personal Access Token id jsonpatchoperation := []byte(`[{op=replace, path=/name, value=New name}, {op=replace, path=/scope, value=[sp:scopes:all]}]`) // []JsonPatchOperation | A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * scope - - var jsonPatchOperation beta.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []beta.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PersonalAccessTokensAPI.PatchPersonalAccessToken(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.Beta.PersonalAccessTokensAPI.PatchPersonalAccessToken(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.PatchPersonalAccessToken``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchPersonalAccessToken`: GetPersonalAccessTokenResponse - fmt.Fprintf(os.Stdout, "Response from `PersonalAccessTokensAPI.PatchPersonalAccessToken`: %v\n", resp) + //resp, r, err := apiClient.Beta.PersonalAccessTokensAPI.PatchPersonalAccessToken(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.PatchPersonalAccessToken``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchPersonalAccessToken`: GetPersonalAccessTokenResponse + fmt.Fprintf(os.Stdout, "Response from `PersonalAccessTokensAPI.PatchPersonalAccessToken`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/PublicIdentitiesConfigAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/PublicIdentitiesConfigAPI.md index 14186a1c2..44bdbb435 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/PublicIdentitiesConfigAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/PublicIdentitiesConfigAPI.md @@ -65,25 +65,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PublicIdentitiesConfigAPI.GetPublicIdentityConfig(context.Background()).Execute() - //resp, r, err := apiClient.Beta.PublicIdentitiesConfigAPI.GetPublicIdentityConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PublicIdentitiesConfigAPI.GetPublicIdentityConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPublicIdentityConfig`: PublicIdentityConfig - fmt.Fprintf(os.Stdout, "Response from `PublicIdentitiesConfigAPI.GetPublicIdentityConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.PublicIdentitiesConfigAPI.GetPublicIdentityConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PublicIdentitiesConfigAPI.GetPublicIdentityConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPublicIdentityConfig`: PublicIdentityConfig + fmt.Fprintf(os.Stdout, "Response from `PublicIdentitiesConfigAPI.GetPublicIdentityConfig`: %v\n", resp) } ``` @@ -129,7 +129,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -151,24 +151,23 @@ func main() { } }`) // PublicIdentityConfig | - - var publicIdentityConfig beta.PublicIdentityConfig - if err := json.Unmarshal(publicidentityconfig, &publicIdentityConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var publicIdentityConfig beta.PublicIdentityConfig + if err := json.Unmarshal(publicidentityconfig, &publicIdentityConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig(context.Background()).PublicIdentityConfig(publicIdentityConfig).Execute() - //resp, r, err := apiClient.Beta.PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig(context.Background()).PublicIdentityConfig(publicIdentityConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdatePublicIdentityConfig`: PublicIdentityConfig - fmt.Fprintf(os.Stdout, "Response from `PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig(context.Background()).PublicIdentityConfig(publicIdentityConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdatePublicIdentityConfig`: PublicIdentityConfig + fmt.Fprintf(os.Stdout, "Response from `PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/RequestableObjectsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/RequestableObjectsAPI.md index a9e1ae963..75026b6ed 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/RequestableObjectsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/RequestableObjectsAPI.md @@ -67,7 +67,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -83,18 +83,18 @@ func main() { filters := `name sw "bob"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, sw* (optional) sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.RequestableObjectsAPI.ListRequestableObjects(context.Background()).Execute() - //resp, r, err := apiClient.Beta.RequestableObjectsAPI.ListRequestableObjects(context.Background()).IdentityId(identityId).Types(types).Term(term).Statuses(statuses).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RequestableObjectsAPI.ListRequestableObjects``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListRequestableObjects`: []RequestableObject - fmt.Fprintf(os.Stdout, "Response from `RequestableObjectsAPI.ListRequestableObjects`: %v\n", resp) + //resp, r, err := apiClient.Beta.RequestableObjectsAPI.ListRequestableObjects(context.Background()).IdentityId(identityId).Types(types).Term(term).Statuses(statuses).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RequestableObjectsAPI.ListRequestableObjects``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListRequestableObjects`: []RequestableObject + fmt.Fprintf(os.Stdout, "Response from `RequestableObjectsAPI.ListRequestableObjects`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/RoleInsightsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/RoleInsightsAPI.md index 25d4ebfe0..36a1c130d 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/RoleInsightsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/RoleInsightsAPI.md @@ -62,25 +62,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.RoleInsightsAPI.CreateRoleInsightRequests(context.Background()).Execute() - //resp, r, err := apiClient.Beta.RoleInsightsAPI.CreateRoleInsightRequests(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.CreateRoleInsightRequests``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateRoleInsightRequests`: RoleInsightsResponse - fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.CreateRoleInsightRequests`: %v\n", resp) + //resp, r, err := apiClient.Beta.RoleInsightsAPI.CreateRoleInsightRequests(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.CreateRoleInsightRequests``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateRoleInsightRequests`: RoleInsightsResponse + fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.CreateRoleInsightRequests`: %v\n", resp) } ``` @@ -129,7 +129,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -139,18 +139,18 @@ func main() { sorters := `identitiesWithAccess` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **identitiesWithAccess** The default sort is **identitiesWithAccess** in descending order. (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **identitiesWithAccess** The default sort is **identitiesWithAccess** in descending order. (optional) filters := `name sw "r"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *sw* **description**: *sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *sw* **description**: *sw* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.RoleInsightsAPI.DownloadRoleInsightsEntitlementsChanges(context.Background(), insightId).Execute() - //resp, r, err := apiClient.Beta.RoleInsightsAPI.DownloadRoleInsightsEntitlementsChanges(context.Background(), insightId).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.DownloadRoleInsightsEntitlementsChanges``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DownloadRoleInsightsEntitlementsChanges`: string - fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.DownloadRoleInsightsEntitlementsChanges`: %v\n", resp) + //resp, r, err := apiClient.Beta.RoleInsightsAPI.DownloadRoleInsightsEntitlementsChanges(context.Background(), insightId).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.DownloadRoleInsightsEntitlementsChanges``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DownloadRoleInsightsEntitlementsChanges`: string + fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.DownloadRoleInsightsEntitlementsChanges`: %v\n", resp) } ``` @@ -205,7 +205,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -220,18 +220,18 @@ func main() { sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name** (optional) filters := `name sw "Jan"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *sw* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.RoleInsightsAPI.GetEntitlementChangesIdentities(context.Background(), insightId, entitlementId).Execute() - //resp, r, err := apiClient.Beta.RoleInsightsAPI.GetEntitlementChangesIdentities(context.Background(), insightId, entitlementId).HasEntitlement(hasEntitlement).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetEntitlementChangesIdentities``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetEntitlementChangesIdentities`: []RoleInsightsIdentities - fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetEntitlementChangesIdentities`: %v\n", resp) + //resp, r, err := apiClient.Beta.RoleInsightsAPI.GetEntitlementChangesIdentities(context.Background(), insightId, entitlementId).HasEntitlement(hasEntitlement).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetEntitlementChangesIdentities``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetEntitlementChangesIdentities`: []RoleInsightsIdentities + fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetEntitlementChangesIdentities`: %v\n", resp) } ``` @@ -278,7 +278,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -286,18 +286,18 @@ import ( func main() { insightId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role insight id # string | The role insight id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsight(context.Background(), insightId).Execute() - //resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsight(context.Background(), insightId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetRoleInsight``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleInsight`: RoleInsight - fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetRoleInsight`: %v\n", resp) + //resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsight(context.Background(), insightId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetRoleInsight``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleInsight`: RoleInsight + fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetRoleInsight`: %v\n", resp) } ``` @@ -344,7 +344,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -356,18 +356,18 @@ func main() { sorters := `numberOfUpdates` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **numberOfUpdates, identitiesWithAccess, totalNumberOfIdentities** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **numberOfUpdates, identitiesWithAccess, totalNumberOfIdentities** (optional) filters := `name sw "John"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *sw* **ownerName**: *sw* **description**: *sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *sw* **ownerName**: *sw* **description**: *sw* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsights(context.Background()).Execute() - //resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsights(context.Background()).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetRoleInsights``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleInsights`: []RoleInsight - fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetRoleInsights`: %v\n", resp) + //resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsights(context.Background()).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetRoleInsights``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleInsights`: []RoleInsight + fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetRoleInsights`: %v\n", resp) } ``` @@ -415,7 +415,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -424,18 +424,18 @@ func main() { insightId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role insight id # string | The role insight id filters := `name sw "r"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *sw* **description**: *sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *sw* **description**: *sw* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsightsCurrentEntitlements(context.Background(), insightId).Execute() - //resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsightsCurrentEntitlements(context.Background(), insightId).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetRoleInsightsCurrentEntitlements``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleInsightsCurrentEntitlements`: []RoleInsightsEntitlement - fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetRoleInsightsCurrentEntitlements`: %v\n", resp) + //resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsightsCurrentEntitlements(context.Background(), insightId).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetRoleInsightsCurrentEntitlements``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleInsightsCurrentEntitlements`: []RoleInsightsEntitlement + fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetRoleInsightsCurrentEntitlements`: %v\n", resp) } ``` @@ -484,7 +484,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -494,18 +494,18 @@ func main() { sorters := `sorters_example` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **identitiesWithAccess, name** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **identitiesWithAccess, name** (optional) filters := `name sw "Admin"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *sw* **description**: *sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *sw* **description**: *sw* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsightsEntitlementsChanges(context.Background(), insightId).Execute() - //resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsightsEntitlementsChanges(context.Background(), insightId).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetRoleInsightsEntitlementsChanges``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleInsightsEntitlementsChanges`: []RoleInsightsEntitlementChanges - fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetRoleInsightsEntitlementsChanges`: %v\n", resp) + //resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsightsEntitlementsChanges(context.Background(), insightId).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetRoleInsightsEntitlementsChanges``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleInsightsEntitlementsChanges`: []RoleInsightsEntitlementChanges + fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetRoleInsightsEntitlementsChanges`: %v\n", resp) } ``` @@ -555,7 +555,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -563,18 +563,18 @@ import ( func main() { id := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role insights request id # string | The role insights request id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsightsRequests(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsightsRequests(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetRoleInsightsRequests``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleInsightsRequests`: RoleInsightsResponse - fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetRoleInsightsRequests`: %v\n", resp) + //resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsightsRequests(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetRoleInsightsRequests``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleInsightsRequests`: RoleInsightsResponse + fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetRoleInsightsRequests`: %v\n", resp) } ``` @@ -613,25 +613,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsightsSummary(context.Background()).Execute() - //resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsightsSummary(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetRoleInsightsSummary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleInsightsSummary`: RoleInsightsSummary - fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetRoleInsightsSummary`: %v\n", resp) + //resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsightsSummary(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetRoleInsightsSummary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleInsightsSummary`: RoleInsightsSummary + fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetRoleInsightsSummary`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/RolesAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/RolesAPI.md index e932eff3d..b3103e2c1 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/RolesAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/RolesAPI.md @@ -105,7 +105,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -271,24 +271,23 @@ func main() { "requestable" : true }`) // Role | - - var role beta.Role - if err := json.Unmarshal(role, &role); err != nil { - fmt.Println("Error:", err) - return - } - + var role beta.Role + if err := json.Unmarshal(role, &role); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.RolesAPI.CreateRole(context.Background()).Role(role).Execute() - //resp, r, err := apiClient.Beta.RolesAPI.CreateRole(context.Background()).Role(role).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.CreateRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateRole`: Role - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.CreateRole`: %v\n", resp) + //resp, r, err := apiClient.Beta.RolesAPI.CreateRole(context.Background()).Role(role).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.CreateRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateRole`: Role + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.CreateRole`: %v\n", resp) } ``` @@ -334,7 +333,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -344,24 +343,23 @@ func main() { "roleIds" : [ "2c9180847812e0b1017817051919ecca", "2c9180887812e0b201781e129f151816" ] }`) // RoleBulkDeleteRequest | - - var roleBulkDeleteRequest beta.RoleBulkDeleteRequest - if err := json.Unmarshal(rolebulkdeleterequest, &roleBulkDeleteRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var roleBulkDeleteRequest beta.RoleBulkDeleteRequest + if err := json.Unmarshal(rolebulkdeleterequest, &roleBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.RolesAPI.DeleteBulkRoles(context.Background()).RoleBulkDeleteRequest(roleBulkDeleteRequest).Execute() - //resp, r, err := apiClient.Beta.RolesAPI.DeleteBulkRoles(context.Background()).RoleBulkDeleteRequest(roleBulkDeleteRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.DeleteBulkRoles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteBulkRoles`: TaskResultDto - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.DeleteBulkRoles`: %v\n", resp) + //resp, r, err := apiClient.Beta.RolesAPI.DeleteBulkRoles(context.Background()).RoleBulkDeleteRequest(roleBulkDeleteRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.DeleteBulkRoles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteBulkRoles`: TaskResultDto + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.DeleteBulkRoles`: %v\n", resp) } ``` @@ -410,7 +408,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -418,16 +416,17 @@ import ( func main() { id := `2c91808a7813090a017814121e121518` // string | ID of the Role # string | ID of the Role - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.RolesAPI.DeleteRole(context.Background(), id).Execute() - //r, err := apiClient.Beta.RolesAPI.DeleteRole(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.DeleteRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.RolesAPI.DeleteRole(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.DeleteRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -475,7 +474,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -483,18 +482,18 @@ import ( func main() { id := `2c91808a7813090a017814121e121518` // string | ID of the Role # string | ID of the Role - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.RolesAPI.GetRole(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.RolesAPI.GetRole(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.GetRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRole`: Role - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.GetRole`: %v\n", resp) + //resp, r, err := apiClient.Beta.RolesAPI.GetRole(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.GetRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRole`: Role + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.GetRole`: %v\n", resp) } ``` @@ -546,7 +545,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -559,18 +558,18 @@ func main() { filters := `name sw Joe` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **aliasName**: *eq, sw* **email**: *eq, sw* **name**: *eq, sw, co* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **aliasName**: *eq, sw* **email**: *eq, sw* **name**: *eq, sw, co* (optional) sorters := `aliasName,name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, aliasName, email** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, aliasName, email** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.RolesAPI.GetRoleAssignedIdentities(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.RolesAPI.GetRoleAssignedIdentities(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.GetRoleAssignedIdentities``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleAssignedIdentities`: []RoleIdentity - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.GetRoleAssignedIdentities`: %v\n", resp) + //resp, r, err := apiClient.Beta.RolesAPI.GetRoleAssignedIdentities(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.GetRoleAssignedIdentities``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleAssignedIdentities`: []RoleIdentity + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.GetRoleAssignedIdentities`: %v\n", resp) } ``` @@ -622,7 +621,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -635,18 +634,18 @@ func main() { filters := `attribute eq "memberOf"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* (optional) sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, attribute, value, created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, attribute, value, created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.RolesAPI.GetRoleEntitlements(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.RolesAPI.GetRoleEntitlements(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.GetRoleEntitlements``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleEntitlements`: []Entitlement - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.GetRoleEntitlements`: %v\n", resp) + //resp, r, err := apiClient.Beta.RolesAPI.GetRoleEntitlements(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.GetRoleEntitlements``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleEntitlements`: []Entitlement + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.GetRoleEntitlements`: %v\n", resp) } ``` @@ -698,7 +697,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -713,18 +712,18 @@ func main() { forSegmentIds := `0b5c9f25-83c6-4762-9073-e38f7bb2ae26,2e8d8180-24bc-4d21-91c6-7affdb473b0d` // string | If present and not empty, additionally filters Roles to those which are assigned to the Segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) # string | If present and not empty, additionally filters Roles to those which are assigned to the Segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) includeUnsegmented := false // bool | Whether or not the response list should contain unsegmented Roles. If *for-segment-ids* is absent or empty, specifying *include-unsegmented* as false results in an error. (optional) (default to true) # bool | Whether or not the response list should contain unsegmented Roles. If *for-segment-ids* is absent or empty, specifying *include-unsegmented* as false results in an error. (optional) (default to true) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.RolesAPI.ListRoles(context.Background()).Execute() - //resp, r, err := apiClient.Beta.RolesAPI.ListRoles(context.Background()).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.ListRoles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListRoles`: []Role - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.ListRoles`: %v\n", resp) + //resp, r, err := apiClient.Beta.RolesAPI.ListRoles(context.Background()).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.ListRoles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListRoles`: []Role + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.ListRoles`: %v\n", resp) } ``` @@ -792,7 +791,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -801,24 +800,23 @@ func main() { id := `2c91808a7813090a017814121e121518` // string | ID of the Role to patch # string | ID of the Role to patch jsonpatchoperation := []byte(`[{op=replace, path=/requestable, value=true}, {op=replace, path=/enabled, value=true}]`) // []JsonPatchOperation | - - var jsonPatchOperation beta.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []beta.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.RolesAPI.PatchRole(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.Beta.RolesAPI.PatchRole(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.PatchRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchRole`: Role - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.PatchRole`: %v\n", resp) + //resp, r, err := apiClient.Beta.RolesAPI.PatchRole(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.PatchRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchRole`: Role + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.PatchRole`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/SIMIntegrationsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/SIMIntegrationsAPI.md index 460f928d6..53c7be07c 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/SIMIntegrationsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/SIMIntegrationsAPI.md @@ -68,7 +68,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -93,24 +93,23 @@ func main() { } }`) // SimIntegrationDetails | DTO containing the details of the SIM integration - - var simIntegrationDetails beta.SimIntegrationDetails - if err := json.Unmarshal(simintegrationdetails, &simIntegrationDetails); err != nil { - fmt.Println("Error:", err) - return - } - + var simIntegrationDetails beta.SimIntegrationDetails + if err := json.Unmarshal(simintegrationdetails, &simIntegrationDetails); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SIMIntegrationsAPI.CreateSIMIntegration(context.Background()).SimIntegrationDetails(simIntegrationDetails).Execute() - //resp, r, err := apiClient.Beta.SIMIntegrationsAPI.CreateSIMIntegration(context.Background()).SimIntegrationDetails(simIntegrationDetails).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.CreateSIMIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSIMIntegration`: ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `SIMIntegrationsAPI.CreateSIMIntegration`: %v\n", resp) + //resp, r, err := apiClient.Beta.SIMIntegrationsAPI.CreateSIMIntegration(context.Background()).SimIntegrationDetails(simIntegrationDetails).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.CreateSIMIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSIMIntegration`: ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `SIMIntegrationsAPI.CreateSIMIntegration`: %v\n", resp) } ``` @@ -157,7 +156,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -165,16 +164,17 @@ import ( func main() { id := `12345` // string | The id of the integration to delete. # string | The id of the integration to delete. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.SIMIntegrationsAPI.DeleteSIMIntegration(context.Background(), id).Execute() - //r, err := apiClient.Beta.SIMIntegrationsAPI.DeleteSIMIntegration(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.DeleteSIMIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.SIMIntegrationsAPI.DeleteSIMIntegration(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.DeleteSIMIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -221,7 +221,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -229,18 +229,18 @@ import ( func main() { id := `12345` // string | The id of the integration. # string | The id of the integration. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SIMIntegrationsAPI.GetSIMIntegration(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.SIMIntegrationsAPI.GetSIMIntegration(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.GetSIMIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSIMIntegration`: ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `SIMIntegrationsAPI.GetSIMIntegration`: %v\n", resp) + //resp, r, err := apiClient.Beta.SIMIntegrationsAPI.GetSIMIntegration(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.GetSIMIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSIMIntegration`: ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `SIMIntegrationsAPI.GetSIMIntegration`: %v\n", resp) } ``` @@ -279,25 +279,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SIMIntegrationsAPI.GetSIMIntegrations(context.Background()).Execute() - //resp, r, err := apiClient.Beta.SIMIntegrationsAPI.GetSIMIntegrations(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.GetSIMIntegrations``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSIMIntegrations`: ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `SIMIntegrationsAPI.GetSIMIntegrations`: %v\n", resp) + //resp, r, err := apiClient.Beta.SIMIntegrationsAPI.GetSIMIntegrations(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.GetSIMIntegrations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSIMIntegrations`: ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `SIMIntegrationsAPI.GetSIMIntegrations`: %v\n", resp) } ``` @@ -345,7 +345,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -354,24 +354,23 @@ func main() { id := `12345` // string | SIM integration id # string | SIM integration id jsonpatch := []byte(`"[\n {\n\t \"op\": \"replace\",\n\t \"path\": \"/description\",\n\t \"value\": \"A new description\"\n }\n]"`) // JsonPatch | The JsonPatch object that describes the changes of SIM beforeProvisioningRule. - - var jsonPatch beta.JsonPatch - if err := json.Unmarshal(jsonpatch, &jsonPatch); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatch beta.JsonPatch + if err := json.Unmarshal(jsonpatch, &jsonPatch); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SIMIntegrationsAPI.PatchBeforeProvisioningRule(context.Background(), id).JsonPatch(jsonPatch).Execute() - //resp, r, err := apiClient.Beta.SIMIntegrationsAPI.PatchBeforeProvisioningRule(context.Background(), id).JsonPatch(jsonPatch).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.PatchBeforeProvisioningRule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchBeforeProvisioningRule`: ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `SIMIntegrationsAPI.PatchBeforeProvisioningRule`: %v\n", resp) + //resp, r, err := apiClient.Beta.SIMIntegrationsAPI.PatchBeforeProvisioningRule(context.Background(), id).JsonPatch(jsonPatch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.PatchBeforeProvisioningRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchBeforeProvisioningRule`: ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `SIMIntegrationsAPI.PatchBeforeProvisioningRule`: %v\n", resp) } ``` @@ -419,7 +418,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -428,24 +427,23 @@ func main() { id := `12345` // string | SIM integration id # string | SIM integration id jsonpatch := []byte(`"[\n {\n\t \"op\": \"replace\",\n\t \"path\": \"/description\",\n\t \"value\": \"A new description\"\n }\n]"`) // JsonPatch | The JsonPatch object that describes the changes of SIM - - var jsonPatch beta.JsonPatch - if err := json.Unmarshal(jsonpatch, &jsonPatch); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatch beta.JsonPatch + if err := json.Unmarshal(jsonpatch, &jsonPatch); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SIMIntegrationsAPI.PatchSIMAttributes(context.Background(), id).JsonPatch(jsonPatch).Execute() - //resp, r, err := apiClient.Beta.SIMIntegrationsAPI.PatchSIMAttributes(context.Background(), id).JsonPatch(jsonPatch).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.PatchSIMAttributes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchSIMAttributes`: ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `SIMIntegrationsAPI.PatchSIMAttributes`: %v\n", resp) + //resp, r, err := apiClient.Beta.SIMIntegrationsAPI.PatchSIMAttributes(context.Background(), id).JsonPatch(jsonPatch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.PatchSIMAttributes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchSIMAttributes`: ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `SIMIntegrationsAPI.PatchSIMAttributes`: %v\n", resp) } ``` @@ -493,7 +491,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -519,24 +517,23 @@ func main() { } }`) // SimIntegrationDetails | The full DTO of the integration containing the updated model - - var simIntegrationDetails beta.SimIntegrationDetails - if err := json.Unmarshal(simintegrationdetails, &simIntegrationDetails); err != nil { - fmt.Println("Error:", err) - return - } - + var simIntegrationDetails beta.SimIntegrationDetails + if err := json.Unmarshal(simintegrationdetails, &simIntegrationDetails); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SIMIntegrationsAPI.PutSIMIntegration(context.Background(), id).SimIntegrationDetails(simIntegrationDetails).Execute() - //resp, r, err := apiClient.Beta.SIMIntegrationsAPI.PutSIMIntegration(context.Background(), id).SimIntegrationDetails(simIntegrationDetails).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.PutSIMIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutSIMIntegration`: ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `SIMIntegrationsAPI.PutSIMIntegration`: %v\n", resp) + //resp, r, err := apiClient.Beta.SIMIntegrationsAPI.PutSIMIntegration(context.Background(), id).SimIntegrationDetails(simIntegrationDetails).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.PutSIMIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutSIMIntegration`: ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `SIMIntegrationsAPI.PutSIMIntegration`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/SODPoliciesAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/SODPoliciesAPI.md index 2f94c6efa..bd0eed940 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/SODPoliciesAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/SODPoliciesAPI.md @@ -100,7 +100,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -163,24 +163,23 @@ func main() { "externalPolicyReference" : "XYZ policy" }`) // SodPolicy | - - var sodPolicy beta.SodPolicy - if err := json.Unmarshal(sodpolicy, &sodPolicy); err != nil { - fmt.Println("Error:", err) - return - } - + var sodPolicy beta.SodPolicy + if err := json.Unmarshal(sodpolicy, &sodPolicy); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SODPoliciesAPI.CreateSodPolicy(context.Background()).SodPolicy(sodPolicy).Execute() - //resp, r, err := apiClient.Beta.SODPoliciesAPI.CreateSodPolicy(context.Background()).SodPolicy(sodPolicy).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.CreateSodPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSodPolicy`: SodPolicy - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.CreateSodPolicy`: %v\n", resp) + //resp, r, err := apiClient.Beta.SODPoliciesAPI.CreateSodPolicy(context.Background()).SodPolicy(sodPolicy).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.CreateSodPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSodPolicy`: SodPolicy + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.CreateSodPolicy`: %v\n", resp) } ``` @@ -232,7 +231,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -241,16 +240,17 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the SOD Policy to delete. # string | The ID of the SOD Policy to delete. logical := true // bool | Indicates whether this is a soft delete (logical true) or a hard delete. (optional) (default to true) # bool | Indicates whether this is a soft delete (logical true) or a hard delete. (optional) (default to true) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.SODPoliciesAPI.DeleteSodPolicy(context.Background(), id).Execute() - //r, err := apiClient.Beta.SODPoliciesAPI.DeleteSodPolicy(context.Background(), id).Logical(logical).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.DeleteSodPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.SODPoliciesAPI.DeleteSodPolicy(context.Background(), id).Logical(logical).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.DeleteSodPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -301,7 +301,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -309,16 +309,17 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the SOD policy the schedule must be deleted for. # string | The ID of the SOD policy the schedule must be deleted for. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.SODPoliciesAPI.DeleteSodPolicySchedule(context.Background(), id).Execute() - //r, err := apiClient.Beta.SODPoliciesAPI.DeleteSodPolicySchedule(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.DeleteSodPolicySchedule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.SODPoliciesAPI.DeleteSodPolicySchedule(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.DeleteSodPolicySchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -371,7 +372,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -380,18 +381,18 @@ func main() { reportResultId := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the report reference to download. # string | The ID of the report reference to download. fileName := `custom-name` // string | Custom Name for the file. # string | Custom Name for the file. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SODPoliciesAPI.GetCustomViolationReport(context.Background(), reportResultId, fileName).Execute() - //resp, r, err := apiClient.Beta.SODPoliciesAPI.GetCustomViolationReport(context.Background(), reportResultId, fileName).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetCustomViolationReport``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCustomViolationReport`: *os.File - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetCustomViolationReport`: %v\n", resp) + //resp, r, err := apiClient.Beta.SODPoliciesAPI.GetCustomViolationReport(context.Background(), reportResultId, fileName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetCustomViolationReport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCustomViolationReport`: *os.File + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetCustomViolationReport`: %v\n", resp) } ``` @@ -442,7 +443,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -450,18 +451,18 @@ import ( func main() { reportResultId := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the report reference to download. # string | The ID of the report reference to download. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SODPoliciesAPI.GetDefaultViolationReport(context.Background(), reportResultId).Execute() - //resp, r, err := apiClient.Beta.SODPoliciesAPI.GetDefaultViolationReport(context.Background(), reportResultId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetDefaultViolationReport``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetDefaultViolationReport`: *os.File - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetDefaultViolationReport`: %v\n", resp) + //resp, r, err := apiClient.Beta.SODPoliciesAPI.GetDefaultViolationReport(context.Background(), reportResultId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetDefaultViolationReport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDefaultViolationReport`: *os.File + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetDefaultViolationReport`: %v\n", resp) } ``` @@ -504,25 +505,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SODPoliciesAPI.GetSodAllReportRunStatus(context.Background()).Execute() - //resp, r, err := apiClient.Beta.SODPoliciesAPI.GetSodAllReportRunStatus(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodAllReportRunStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSodAllReportRunStatus`: ReportResultReference - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodAllReportRunStatus`: %v\n", resp) + //resp, r, err := apiClient.Beta.SODPoliciesAPI.GetSodAllReportRunStatus(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodAllReportRunStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSodAllReportRunStatus`: ReportResultReference + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodAllReportRunStatus`: %v\n", resp) } ``` @@ -573,7 +574,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -581,18 +582,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the object reference to retrieve. # string | The ID of the object reference to retrieve. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SODPoliciesAPI.GetSodPolicy(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.SODPoliciesAPI.GetSodPolicy(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSodPolicy`: SodPolicy - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodPolicy`: %v\n", resp) + //resp, r, err := apiClient.Beta.SODPoliciesAPI.GetSodPolicy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSodPolicy`: SodPolicy + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodPolicy`: %v\n", resp) } ``` @@ -643,7 +644,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -651,18 +652,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the object reference to retrieve. # string | The ID of the object reference to retrieve. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SODPoliciesAPI.GetSodPolicySchedule(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.SODPoliciesAPI.GetSodPolicySchedule(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodPolicySchedule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSodPolicySchedule`: SodPolicySchedule - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodPolicySchedule`: %v\n", resp) + //resp, r, err := apiClient.Beta.SODPoliciesAPI.GetSodPolicySchedule(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodPolicySchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSodPolicySchedule`: SodPolicySchedule + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodPolicySchedule`: %v\n", resp) } ``` @@ -713,7 +714,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -721,18 +722,18 @@ import ( func main() { reportResultId := `2e8d8180-24bc-4d21-91c6-7affdb473b0d` // string | The ID of the report reference to retrieve. # string | The ID of the report reference to retrieve. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SODPoliciesAPI.GetSodViolationReportRunStatus(context.Background(), reportResultId).Execute() - //resp, r, err := apiClient.Beta.SODPoliciesAPI.GetSodViolationReportRunStatus(context.Background(), reportResultId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodViolationReportRunStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSodViolationReportRunStatus`: ReportResultReference - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodViolationReportRunStatus`: %v\n", resp) + //resp, r, err := apiClient.Beta.SODPoliciesAPI.GetSodViolationReportRunStatus(context.Background(), reportResultId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodViolationReportRunStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSodViolationReportRunStatus`: ReportResultReference + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodViolationReportRunStatus`: %v\n", resp) } ``` @@ -783,7 +784,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -791,18 +792,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the object reference to retrieve. # string | The ID of the object reference to retrieve. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SODPoliciesAPI.GetSodViolationReportStatus(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.SODPoliciesAPI.GetSodViolationReportStatus(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodViolationReportStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSodViolationReportStatus`: ReportResultReference - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodViolationReportStatus`: %v\n", resp) + //resp, r, err := apiClient.Beta.SODPoliciesAPI.GetSodViolationReportStatus(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodViolationReportStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSodViolationReportStatus`: ReportResultReference + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodViolationReportStatus`: %v\n", resp) } ``` @@ -853,7 +854,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -865,18 +866,18 @@ func main() { filters := `id eq "bc693f07e7b645539626c25954c58554"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in* **state**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in* **state**: *eq, in* (optional) sorters := `id,name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, description** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, description** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SODPoliciesAPI.ListSodPolicies(context.Background()).Execute() - //resp, r, err := apiClient.Beta.SODPoliciesAPI.ListSodPolicies(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.ListSodPolicies``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListSodPolicies`: []SodPolicy - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.ListSodPolicies`: %v\n", resp) + //resp, r, err := apiClient.Beta.SODPoliciesAPI.ListSodPolicies(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.ListSodPolicies``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListSodPolicies`: []SodPolicy + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.ListSodPolicies`: %v\n", resp) } ``` @@ -929,7 +930,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -938,24 +939,23 @@ func main() { id := `2c9180835d191a86015d28455b4a2329` // string | The ID of the SOD policy being modified. # string | The ID of the SOD policy being modified. requestbody := []byte(`[{op=replace, path=/description, value=Modified description}, {op=replace, path=/conflictingAccessCriteria/leftCriteria/name, value=money-in-modified}, {op=replace, path=/conflictingAccessCriteria/rightCriteria, value={name=money-out-modified, criteriaList=[{type=ENTITLEMENT, id=2c918087682f9a86016839c0509c1ab2}]}}]`) // []map[string]interface{} | A list of SOD Policy update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * ownerRef * externalPolicyReference * compensatingControls * correctionAdvice * state * tags * violationOwnerAssignmentConfig * scheduled * conflictingAccessCriteria - - var requestBody beta.[]RequestBody - if err := json.Unmarshal(requestbody, &requestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var requestBody []beta.RequestBody + if err := json.Unmarshal(requestbody, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SODPoliciesAPI.PatchSodPolicy(context.Background(), id).RequestBody(requestBody).Execute() - //resp, r, err := apiClient.Beta.SODPoliciesAPI.PatchSodPolicy(context.Background(), id).RequestBody(requestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.PatchSodPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchSodPolicy`: SodPolicy - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.PatchSodPolicy`: %v\n", resp) + //resp, r, err := apiClient.Beta.SODPoliciesAPI.PatchSodPolicy(context.Background(), id).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.PatchSodPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchSodPolicy`: SodPolicy + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.PatchSodPolicy`: %v\n", resp) } ``` @@ -1007,7 +1007,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1101,24 +1101,23 @@ func main() { "emailEmptyResults" : false }`) // SodPolicySchedule | - - var sodPolicySchedule beta.SodPolicySchedule - if err := json.Unmarshal(sodpolicyschedule, &sodPolicySchedule); err != nil { - fmt.Println("Error:", err) - return - } - + var sodPolicySchedule beta.SodPolicySchedule + if err := json.Unmarshal(sodpolicyschedule, &sodPolicySchedule); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SODPoliciesAPI.PutPolicySchedule(context.Background(), id).SodPolicySchedule(sodPolicySchedule).Execute() - //resp, r, err := apiClient.Beta.SODPoliciesAPI.PutPolicySchedule(context.Background(), id).SodPolicySchedule(sodPolicySchedule).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.PutPolicySchedule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutPolicySchedule`: SodPolicySchedule - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.PutPolicySchedule`: %v\n", resp) + //resp, r, err := apiClient.Beta.SODPoliciesAPI.PutPolicySchedule(context.Background(), id).SodPolicySchedule(sodPolicySchedule).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.PutPolicySchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutPolicySchedule`: SodPolicySchedule + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.PutPolicySchedule`: %v\n", resp) } ``` @@ -1170,7 +1169,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1234,24 +1233,23 @@ func main() { "externalPolicyReference" : "XYZ policy" }`) // SodPolicy | - - var sodPolicy beta.SodPolicy - if err := json.Unmarshal(sodpolicy, &sodPolicy); err != nil { - fmt.Println("Error:", err) - return - } - + var sodPolicy beta.SodPolicy + if err := json.Unmarshal(sodpolicy, &sodPolicy); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SODPoliciesAPI.PutSodPolicy(context.Background(), id).SodPolicy(sodPolicy).Execute() - //resp, r, err := apiClient.Beta.SODPoliciesAPI.PutSodPolicy(context.Background(), id).SodPolicy(sodPolicy).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.PutSodPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutSodPolicy`: SodPolicy - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.PutSodPolicy`: %v\n", resp) + //resp, r, err := apiClient.Beta.SODPoliciesAPI.PutSodPolicy(context.Background(), id).SodPolicy(sodPolicy).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.PutSodPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutSodPolicy`: SodPolicy + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.PutSodPolicy`: %v\n", resp) } ``` @@ -1298,7 +1296,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1308,18 +1306,18 @@ func main() { "filteredPolicyList" : [ "filteredPolicyList", "filteredPolicyList" ] }`) // MultiPolicyRequest | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SODPoliciesAPI.StartSodAllPoliciesForOrg(context.Background()).Execute() - //resp, r, err := apiClient.Beta.SODPoliciesAPI.StartSodAllPoliciesForOrg(context.Background()).MultiPolicyRequest(multiPolicyRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.StartSodAllPoliciesForOrg``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartSodAllPoliciesForOrg`: ReportResultReference - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.StartSodAllPoliciesForOrg`: %v\n", resp) + //resp, r, err := apiClient.Beta.SODPoliciesAPI.StartSodAllPoliciesForOrg(context.Background()).MultiPolicyRequest(multiPolicyRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.StartSodAllPoliciesForOrg``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartSodAllPoliciesForOrg`: ReportResultReference + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.StartSodAllPoliciesForOrg`: %v\n", resp) } ``` @@ -1370,7 +1368,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1378,18 +1376,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The SOD policy ID to run. # string | The SOD policy ID to run. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SODPoliciesAPI.StartSodPolicy(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.SODPoliciesAPI.StartSodPolicy(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.StartSodPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartSodPolicy`: ReportResultReference - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.StartSodPolicy`: %v\n", resp) + //resp, r, err := apiClient.Beta.SODPoliciesAPI.StartSodPolicy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.StartSodPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartSodPolicy`: ReportResultReference + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.StartSodPolicy`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/SODViolationsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/SODViolationsAPI.md index 576fde715..8caedde87 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/SODViolationsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/SODViolationsAPI.md @@ -78,7 +78,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -97,24 +97,23 @@ func main() { } ] }`) // IdentityWithNewAccess | - - var identityWithNewAccess beta.IdentityWithNewAccess - if err := json.Unmarshal(identitywithnewaccess, &identityWithNewAccess); err != nil { - fmt.Println("Error:", err) - return - } - + var identityWithNewAccess beta.IdentityWithNewAccess + if err := json.Unmarshal(identitywithnewaccess, &identityWithNewAccess); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SODViolationsAPI.StartPredictSodViolations(context.Background()).IdentityWithNewAccess(identityWithNewAccess).Execute() - //resp, r, err := apiClient.Beta.SODViolationsAPI.StartPredictSodViolations(context.Background()).IdentityWithNewAccess(identityWithNewAccess).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODViolationsAPI.StartPredictSodViolations``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartPredictSodViolations`: ViolationPrediction - fmt.Fprintf(os.Stdout, "Response from `SODViolationsAPI.StartPredictSodViolations`: %v\n", resp) + //resp, r, err := apiClient.Beta.SODViolationsAPI.StartPredictSodViolations(context.Background()).IdentityWithNewAccess(identityWithNewAccess).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODViolationsAPI.StartPredictSodViolations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartPredictSodViolations`: ViolationPrediction + fmt.Fprintf(os.Stdout, "Response from `SODViolationsAPI.StartPredictSodViolations`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/SPConfigAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/SPConfigAPI.md index 2c1dcc103..2204844df 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/SPConfigAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/SPConfigAPI.md @@ -62,7 +62,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -72,24 +72,23 @@ func main() { "description" : "Export Job 1 Test" }`) // ExportPayload | Export options control what will be included in the export. - - var exportPayload beta.ExportPayload - if err := json.Unmarshal(exportpayload, &exportPayload); err != nil { - fmt.Println("Error:", err) - return - } - + var exportPayload beta.ExportPayload + if err := json.Unmarshal(exportpayload, &exportPayload); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SPConfigAPI.ExportSpConfig(context.Background()).ExportPayload(exportPayload).Execute() - //resp, r, err := apiClient.Beta.SPConfigAPI.ExportSpConfig(context.Background()).ExportPayload(exportPayload).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.ExportSpConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExportSpConfig`: SpConfigExportJob - fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.ExportSpConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.SPConfigAPI.ExportSpConfig(context.Background()).ExportPayload(exportPayload).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.ExportSpConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExportSpConfig`: SpConfigExportJob + fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.ExportSpConfig`: %v\n", resp) } ``` @@ -138,7 +137,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -146,18 +145,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the export job whose results will be downloaded. # string | The ID of the export job whose results will be downloaded. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SPConfigAPI.GetSpConfigExport(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.SPConfigAPI.GetSpConfigExport(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.GetSpConfigExport``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSpConfigExport`: SpConfigExportResults - fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.GetSpConfigExport`: %v\n", resp) + //resp, r, err := apiClient.Beta.SPConfigAPI.GetSpConfigExport(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.GetSpConfigExport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSpConfigExport`: SpConfigExportResults + fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.GetSpConfigExport`: %v\n", resp) } ``` @@ -206,7 +205,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -214,18 +213,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the export job whose status will be returned. # string | The ID of the export job whose status will be returned. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SPConfigAPI.GetSpConfigExportStatus(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.SPConfigAPI.GetSpConfigExportStatus(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.GetSpConfigExportStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSpConfigExportStatus`: SpConfigExportJobStatus - fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.GetSpConfigExportStatus`: %v\n", resp) + //resp, r, err := apiClient.Beta.SPConfigAPI.GetSpConfigExportStatus(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.GetSpConfigExportStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSpConfigExportStatus`: SpConfigExportJobStatus + fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.GetSpConfigExportStatus`: %v\n", resp) } ``` @@ -274,7 +273,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -282,18 +281,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the import job whose results will be downloaded. # string | The ID of the import job whose results will be downloaded. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SPConfigAPI.GetSpConfigImport(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.SPConfigAPI.GetSpConfigImport(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.GetSpConfigImport``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSpConfigImport`: SpConfigImportResults - fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.GetSpConfigImport`: %v\n", resp) + //resp, r, err := apiClient.Beta.SPConfigAPI.GetSpConfigImport(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.GetSpConfigImport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSpConfigImport`: SpConfigImportResults + fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.GetSpConfigImport`: %v\n", resp) } ``` @@ -341,7 +340,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -349,18 +348,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the import job whose status will be returned. # string | The ID of the import job whose status will be returned. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SPConfigAPI.GetSpConfigImportStatus(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.SPConfigAPI.GetSpConfigImportStatus(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.GetSpConfigImportStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSpConfigImportStatus`: SpConfigImportJobStatus - fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.GetSpConfigImportStatus`: %v\n", resp) + //resp, r, err := apiClient.Beta.SPConfigAPI.GetSpConfigImportStatus(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.GetSpConfigImportStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSpConfigImportStatus`: SpConfigImportJobStatus + fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.GetSpConfigImportStatus`: %v\n", resp) } ``` @@ -415,7 +414,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -425,18 +424,18 @@ func main() { preview := true // bool | This option is intended to give the user information about how an import operation would proceed, without having any effect on the target tenant. If this parameter is \"true\", no objects will be imported. Instead, the import process will pre-process the import file and attempt to resolve references within imported objects. The import result file will contain messages pertaining to how specific references were resolved, any errors associated with the preprocessing, and messages indicating which objects would be imported. (optional) (default to false) # bool | This option is intended to give the user information about how an import operation would proceed, without having any effect on the target tenant. If this parameter is \"true\", no objects will be imported. Instead, the import process will pre-process the import file and attempt to resolve references within imported objects. The import result file will contain messages pertaining to how specific references were resolved, any errors associated with the preprocessing, and messages indicating which objects would be imported. (optional) (default to false) options := []byte(``) // ImportOptions | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SPConfigAPI.ImportSpConfig(context.Background()).Data(data).Execute() - //resp, r, err := apiClient.Beta.SPConfigAPI.ImportSpConfig(context.Background()).Data(data).Preview(preview).Options(options).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.ImportSpConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportSpConfig`: SpConfigJob - fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.ImportSpConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.SPConfigAPI.ImportSpConfig(context.Background()).Data(data).Preview(preview).Options(options).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.ImportSpConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportSpConfig`: SpConfigJob + fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.ImportSpConfig`: %v\n", resp) } ``` @@ -475,25 +474,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SPConfigAPI.ListSpConfigObjects(context.Background()).Execute() - //resp, r, err := apiClient.Beta.SPConfigAPI.ListSpConfigObjects(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.ListSpConfigObjects``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListSpConfigObjects`: []SpConfigObject - fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.ListSpConfigObjects`: %v\n", resp) + //resp, r, err := apiClient.Beta.SPConfigAPI.ListSpConfigObjects(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.ListSpConfigObjects``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListSpConfigObjects`: []SpConfigObject + fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.ListSpConfigObjects`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/SearchAttributeConfigurationAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/SearchAttributeConfigurationAPI.md index e2f0fb62f..5baee2a50 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/SearchAttributeConfigurationAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/SearchAttributeConfigurationAPI.md @@ -78,7 +78,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -93,24 +93,23 @@ func main() { } }`) // SearchAttributeConfig | - - var searchAttributeConfig beta.SearchAttributeConfig - if err := json.Unmarshal(searchattributeconfig, &searchAttributeConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var searchAttributeConfig beta.SearchAttributeConfig + if err := json.Unmarshal(searchattributeconfig, &searchAttributeConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SearchAttributeConfigurationAPI.CreateSearchAttributeConfig(context.Background()).SearchAttributeConfig(searchAttributeConfig).Execute() - //resp, r, err := apiClient.Beta.SearchAttributeConfigurationAPI.CreateSearchAttributeConfig(context.Background()).SearchAttributeConfig(searchAttributeConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.CreateSearchAttributeConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSearchAttributeConfig`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.CreateSearchAttributeConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.SearchAttributeConfigurationAPI.CreateSearchAttributeConfig(context.Background()).SearchAttributeConfig(searchAttributeConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.CreateSearchAttributeConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSearchAttributeConfig`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.CreateSearchAttributeConfig`: %v\n", resp) } ``` @@ -157,7 +156,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -165,16 +164,17 @@ import ( func main() { name := `newMailAttribute` // string | Name of the extended search attribute configuration to delete. # string | Name of the extended search attribute configuration to delete. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig(context.Background(), name).Execute() - //r, err := apiClient.Beta.SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig(context.Background(), name).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig(context.Background(), name).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -219,7 +219,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -228,18 +228,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SearchAttributeConfigurationAPI.GetSearchAttributeConfig(context.Background()).Execute() - //resp, r, err := apiClient.Beta.SearchAttributeConfigurationAPI.GetSearchAttributeConfig(context.Background()).Limit(limit).Offset(offset).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.GetSearchAttributeConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSearchAttributeConfig`: []SearchAttributeConfig - fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.GetSearchAttributeConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.SearchAttributeConfigurationAPI.GetSearchAttributeConfig(context.Background()).Limit(limit).Offset(offset).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.GetSearchAttributeConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSearchAttributeConfig`: []SearchAttributeConfig + fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.GetSearchAttributeConfig`: %v\n", resp) } ``` @@ -286,7 +286,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -294,18 +294,18 @@ import ( func main() { name := `newMailAttribute` // string | Name of the extended search attribute configuration to get. # string | Name of the extended search attribute configuration to get. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig(context.Background(), name).Execute() - //resp, r, err := apiClient.Beta.SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig(context.Background(), name).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSingleSearchAttributeConfig`: []SearchAttributeConfig - fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig(context.Background(), name).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSingleSearchAttributeConfig`: []SearchAttributeConfig + fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig`: %v\n", resp) } ``` @@ -355,7 +355,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -364,24 +364,23 @@ func main() { name := `promotedMailAttribute` // string | Name of the extended search attribute configuration to patch. # string | Name of the extended search attribute configuration to patch. jsonpatchoperation := []byte(`[{op=replace, path=/name, value=newAttributeName}, {op=replace, path=/displayName, value=new attribute display name}, {op=add, path=/applicationAttributes, value={2c91808b79fd2422017a0b35d30f3968=employeeNumber}}]`) // []JsonPatchOperation | - - var jsonPatchOperation beta.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []beta.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SearchAttributeConfigurationAPI.PatchSearchAttributeConfig(context.Background(), name).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.Beta.SearchAttributeConfigurationAPI.PatchSearchAttributeConfig(context.Background(), name).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.PatchSearchAttributeConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchSearchAttributeConfig`: SearchAttributeConfig - fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.PatchSearchAttributeConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.SearchAttributeConfigurationAPI.PatchSearchAttributeConfig(context.Background(), name).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.PatchSearchAttributeConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchSearchAttributeConfig`: SearchAttributeConfig + fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.PatchSearchAttributeConfig`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/SegmentsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/SegmentsAPI.md index 43a1eea30..e920b88bd 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/SegmentsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/SegmentsAPI.md @@ -78,7 +78,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -109,24 +109,23 @@ func main() { "id" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde" }`) // Segment | - - var segment beta.Segment - if err := json.Unmarshal(segment, &segment); err != nil { - fmt.Println("Error:", err) - return - } - + var segment beta.Segment + if err := json.Unmarshal(segment, &segment); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SegmentsAPI.CreateSegment(context.Background()).Segment(segment).Execute() - //resp, r, err := apiClient.Beta.SegmentsAPI.CreateSegment(context.Background()).Segment(segment).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.CreateSegment``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSegment`: Segment - fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.CreateSegment`: %v\n", resp) + //resp, r, err := apiClient.Beta.SegmentsAPI.CreateSegment(context.Background()).Segment(segment).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.CreateSegment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSegment`: Segment + fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.CreateSegment`: %v\n", resp) } ``` @@ -175,7 +174,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -183,16 +182,17 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The segment ID to delete. # string | The segment ID to delete. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.SegmentsAPI.DeleteSegment(context.Background(), id).Execute() - //r, err := apiClient.Beta.SegmentsAPI.DeleteSegment(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.DeleteSegment``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.SegmentsAPI.DeleteSegment(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.DeleteSegment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -240,7 +240,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -248,18 +248,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The segment ID to retrieve. # string | The segment ID to retrieve. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SegmentsAPI.GetSegment(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.SegmentsAPI.GetSegment(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.GetSegment``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSegment`: Segment - fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.GetSegment`: %v\n", resp) + //resp, r, err := apiClient.Beta.SegmentsAPI.GetSegment(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.GetSegment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSegment`: Segment + fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.GetSegment`: %v\n", resp) } ``` @@ -305,7 +305,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -315,18 +315,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SegmentsAPI.ListSegments(context.Background()).Execute() - //resp, r, err := apiClient.Beta.SegmentsAPI.ListSegments(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.ListSegments``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListSegments`: []Segment - fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.ListSegments`: %v\n", resp) + //resp, r, err := apiClient.Beta.SegmentsAPI.ListSegments(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.ListSegments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListSegments`: []Segment + fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.ListSegments`: %v\n", resp) } ``` @@ -376,7 +376,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -385,24 +385,23 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The segment ID to modify. # string | The segment ID to modify. requestbody := []byte(`[{op=replace, path=/visibilityCriteria, value={expression={operator=AND, children=[{operator=EQUALS, attribute=location, value={type=STRING, value=Philadelphia}}, {operator=EQUALS, attribute=department, value={type=STRING, value=HR}}]}}}]`) // []map[string]interface{} | A list of segment update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * owner * visibilityCriteria * active - - var requestBody beta.[]RequestBody - if err := json.Unmarshal(requestbody, &requestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var requestBody []beta.RequestBody + if err := json.Unmarshal(requestbody, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SegmentsAPI.PatchSegment(context.Background(), id).RequestBody(requestBody).Execute() - //resp, r, err := apiClient.Beta.SegmentsAPI.PatchSegment(context.Background(), id).RequestBody(requestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.PatchSegment``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchSegment`: Segment - fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.PatchSegment`: %v\n", resp) + //resp, r, err := apiClient.Beta.SegmentsAPI.PatchSegment(context.Background(), id).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.PatchSegment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchSegment`: Segment + fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.PatchSegment`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/ServiceDeskIntegrationAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/ServiceDeskIntegrationAPI.md index 8bbed10d7..61a3fe295 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/ServiceDeskIntegrationAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/ServiceDeskIntegrationAPI.md @@ -88,7 +88,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -126,24 +126,23 @@ func main() { "beforeProvisioningRule" : "" }`) // ServiceDeskIntegrationDto | The specifics of a new integration to create - - var serviceDeskIntegrationDto beta.ServiceDeskIntegrationDto - if err := json.Unmarshal(servicedeskintegrationdto, &serviceDeskIntegrationDto); err != nil { - fmt.Println("Error:", err) - return - } - + var serviceDeskIntegrationDto beta.ServiceDeskIntegrationDto + if err := json.Unmarshal(servicedeskintegrationdto, &serviceDeskIntegrationDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.CreateServiceDeskIntegration(context.Background()).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() - //resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.CreateServiceDeskIntegration(context.Background()).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.CreateServiceDeskIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateServiceDeskIntegration`: ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.CreateServiceDeskIntegration`: %v\n", resp) + //resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.CreateServiceDeskIntegration(context.Background()).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.CreateServiceDeskIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateServiceDeskIntegration`: ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.CreateServiceDeskIntegration`: %v\n", resp) } ``` @@ -190,7 +189,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -198,16 +197,17 @@ import ( func main() { id := `anId` // string | ID of Service Desk integration to delete # string | ID of Service Desk integration to delete - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration(context.Background(), id).Execute() - //r, err := apiClient.Beta.ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -254,7 +254,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -262,18 +262,18 @@ import ( func main() { id := `anId` // string | ID of the Service Desk integration to get # string | ID of the Service Desk integration to get - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.GetServiceDeskIntegration(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.GetServiceDeskIntegration(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetServiceDeskIntegration`: ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegration`: %v\n", resp) + //resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.GetServiceDeskIntegration(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetServiceDeskIntegration`: ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegration`: %v\n", resp) } ``` @@ -320,7 +320,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -332,18 +332,18 @@ func main() { filters := `id eq 2c91808b6ef1d43e016efba0ce470904` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq* **type**: *eq, in* **cluster**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq* **type**: *eq, in* **cluster**: *eq, in* (optional) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationList(context.Background()).Execute() - //resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationList(context.Background()).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetServiceDeskIntegrationList`: []ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationList`: %v\n", resp) + //resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationList(context.Background()).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetServiceDeskIntegrationList`: []ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationList`: %v\n", resp) } ``` @@ -390,7 +390,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -398,18 +398,18 @@ import ( func main() { scriptName := `aScriptName` // string | The scriptName value of the Service Desk integration template to get # string | The scriptName value of the Service Desk integration template to get - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate(context.Background(), scriptName).Execute() - //resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate(context.Background(), scriptName).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetServiceDeskIntegrationTemplate`: ServiceDeskIntegrationTemplateDto - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate`: %v\n", resp) + //resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate(context.Background(), scriptName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetServiceDeskIntegrationTemplate`: ServiceDeskIntegrationTemplateDto + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate`: %v\n", resp) } ``` @@ -448,25 +448,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes(context.Background()).Execute() - //resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetServiceDeskIntegrationTypes`: []ServiceDeskIntegrationTemplateType - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes`: %v\n", resp) + //resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetServiceDeskIntegrationTypes`: []ServiceDeskIntegrationTemplateType + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes`: %v\n", resp) } ``` @@ -505,25 +505,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.GetStatusCheckDetails(context.Background()).Execute() - //resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.GetStatusCheckDetails(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetStatusCheckDetails``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetStatusCheckDetails`: QueuedCheckConfigDetails - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetStatusCheckDetails`: %v\n", resp) + //resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.GetStatusCheckDetails(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetStatusCheckDetails``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetStatusCheckDetails`: QueuedCheckConfigDetails + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetStatusCheckDetails`: %v\n", resp) } ``` @@ -571,7 +571,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -580,24 +580,23 @@ func main() { id := `anId` // string | ID of the Service Desk integration to update # string | ID of the Service Desk integration to update jsonpatchoperation := []byte(``) // []JsonPatchOperation | A list of SDIM update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Only `replace` operations are accepted by this endpoint. A 403 Forbidden Error indicates that a PATCH operation was attempted that is not allowed. - - var jsonPatchOperation beta.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []beta.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.PatchServiceDeskIntegration(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.PatchServiceDeskIntegration(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.PatchServiceDeskIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchServiceDeskIntegration`: ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.PatchServiceDeskIntegration`: %v\n", resp) + //resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.PatchServiceDeskIntegration(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.PatchServiceDeskIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchServiceDeskIntegration`: ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.PatchServiceDeskIntegration`: %v\n", resp) } ``` @@ -645,7 +644,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -684,24 +683,23 @@ func main() { "beforeProvisioningRule" : "" }`) // ServiceDeskIntegrationDto | The specifics of the integration to update - - var serviceDeskIntegrationDto beta.ServiceDeskIntegrationDto - if err := json.Unmarshal(servicedeskintegrationdto, &serviceDeskIntegrationDto); err != nil { - fmt.Println("Error:", err) - return - } - + var serviceDeskIntegrationDto beta.ServiceDeskIntegrationDto + if err := json.Unmarshal(servicedeskintegrationdto, &serviceDeskIntegrationDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.PutServiceDeskIntegration(context.Background(), id).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() - //resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.PutServiceDeskIntegration(context.Background(), id).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.PutServiceDeskIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutServiceDeskIntegration`: ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.PutServiceDeskIntegration`: %v\n", resp) + //resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.PutServiceDeskIntegration(context.Background(), id).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.PutServiceDeskIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutServiceDeskIntegration`: ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.PutServiceDeskIntegration`: %v\n", resp) } ``` @@ -744,7 +742,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -755,24 +753,23 @@ func main() { "provisioningMaxStatusCheckDays" : "2" }`) // QueuedCheckConfigDetails | The modified time check configuration - - var queuedCheckConfigDetails beta.QueuedCheckConfigDetails - if err := json.Unmarshal(queuedcheckconfigdetails, &queuedCheckConfigDetails); err != nil { - fmt.Println("Error:", err) - return - } - + var queuedCheckConfigDetails beta.QueuedCheckConfigDetails + if err := json.Unmarshal(queuedcheckconfigdetails, &queuedCheckConfigDetails); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.UpdateStatusCheckDetails(context.Background()).QueuedCheckConfigDetails(queuedCheckConfigDetails).Execute() - //resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.UpdateStatusCheckDetails(context.Background()).QueuedCheckConfigDetails(queuedCheckConfigDetails).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.UpdateStatusCheckDetails``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateStatusCheckDetails`: QueuedCheckConfigDetails - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.UpdateStatusCheckDetails`: %v\n", resp) + //resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.UpdateStatusCheckDetails(context.Background()).QueuedCheckConfigDetails(queuedCheckConfigDetails).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.UpdateStatusCheckDetails``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateStatusCheckDetails`: QueuedCheckConfigDetails + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.UpdateStatusCheckDetails`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/SourceUsagesAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/SourceUsagesAPI.md index 6ccbe0a1a..112f16d22 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/SourceUsagesAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/SourceUsagesAPI.md @@ -63,7 +63,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -71,18 +71,18 @@ import ( func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | ID of IDN source # string | ID of IDN source - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourceUsagesAPI.GetStatusBySourceId(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.Beta.SourceUsagesAPI.GetStatusBySourceId(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourceUsagesAPI.GetStatusBySourceId``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetStatusBySourceId`: SourceUsageStatus - fmt.Fprintf(os.Stdout, "Response from `SourceUsagesAPI.GetStatusBySourceId`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourceUsagesAPI.GetStatusBySourceId(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourceUsagesAPI.GetStatusBySourceId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetStatusBySourceId`: SourceUsageStatus + fmt.Fprintf(os.Stdout, "Response from `SourceUsagesAPI.GetStatusBySourceId`: %v\n", resp) } ``` @@ -133,7 +133,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -145,18 +145,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) sorters := `-date` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **date** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **date** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourceUsagesAPI.GetUsagesBySourceId(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.Beta.SourceUsagesAPI.GetUsagesBySourceId(context.Background(), sourceId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourceUsagesAPI.GetUsagesBySourceId``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetUsagesBySourceId`: []SourceUsage - fmt.Fprintf(os.Stdout, "Response from `SourceUsagesAPI.GetUsagesBySourceId`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourceUsagesAPI.GetUsagesBySourceId(context.Background(), sourceId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourceUsagesAPI.GetUsagesBySourceId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetUsagesBySourceId`: []SourceUsage + fmt.Fprintf(os.Stdout, "Response from `SourceUsagesAPI.GetUsagesBySourceId`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/SourcesAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/SourcesAPI.md index c96918ee3..9fd6dda8e 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/SourcesAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/SourcesAPI.md @@ -161,7 +161,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -209,24 +209,23 @@ func main() { "usageType" : "CREATE" }`) // ProvisioningPolicyDto | - - var provisioningPolicyDto beta.ProvisioningPolicyDto - if err := json.Unmarshal(provisioningpolicydto, &provisioningPolicyDto); err != nil { - fmt.Println("Error:", err) - return - } - + var provisioningPolicyDto beta.ProvisioningPolicyDto + if err := json.Unmarshal(provisioningpolicydto, &provisioningPolicyDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.CreateProvisioningPolicy(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() - //resp, r, err := apiClient.Beta.SourcesAPI.CreateProvisioningPolicy(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.CreateProvisioningPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateProvisioningPolicy`: ProvisioningPolicyDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.CreateProvisioningPolicy`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourcesAPI.CreateProvisioningPolicy(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.CreateProvisioningPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateProvisioningPolicy`: ProvisioningPolicyDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.CreateProvisioningPolicy`: %v\n", resp) } ``` @@ -271,7 +270,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -362,24 +361,23 @@ func main() { }`) // Source | provisionAsCsv := false // bool | If this parameter is `true`, it configures the source as a Delimited File (CSV) source. Setting this to `true` will automatically set the `type` of the source to `DelimitedFile`. You must use this query parameter to create a Delimited File source as you would in the UI. If you don't set this query parameter and you attempt to set the `type` attribute directly, the request won't correctly generate the source. (optional) # bool | If this parameter is `true`, it configures the source as a Delimited File (CSV) source. Setting this to `true` will automatically set the `type` of the source to `DelimitedFile`. You must use this query parameter to create a Delimited File source as you would in the UI. If you don't set this query parameter and you attempt to set the `type` attribute directly, the request won't correctly generate the source. (optional) - - var source beta.Source - if err := json.Unmarshal(source, &source); err != nil { - fmt.Println("Error:", err) - return - } - + var source beta.Source + if err := json.Unmarshal(source, &source); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.CreateSource(context.Background()).Source(source).Execute() - //resp, r, err := apiClient.Beta.SourcesAPI.CreateSource(context.Background()).Source(source).ProvisionAsCsv(provisionAsCsv).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.CreateSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSource`: Source - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.CreateSource`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourcesAPI.CreateSource(context.Background()).Source(source).ProvisionAsCsv(provisionAsCsv).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.CreateSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSource`: Source + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.CreateSource`: %v\n", resp) } ``` @@ -427,7 +425,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -469,24 +467,23 @@ func main() { "identityAttribute" : "sAMAccountName" }`) // Schema | - - var schema beta.Schema - if err := json.Unmarshal(schema, &schema); err != nil { - fmt.Println("Error:", err) - return - } - + var schema beta.Schema + if err := json.Unmarshal(schema, &schema); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.CreateSourceSchema(context.Background(), sourceId).Schema(schema).Execute() - //resp, r, err := apiClient.Beta.SourcesAPI.CreateSourceSchema(context.Background(), sourceId).Schema(schema).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.CreateSourceSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSourceSchema`: Schema - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.CreateSourceSchema`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourcesAPI.CreateSourceSchema(context.Background(), sourceId).Schema(schema).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.CreateSourceSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSourceSchema`: Schema + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.CreateSourceSchema`: %v\n", resp) } ``` @@ -535,7 +532,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -543,18 +540,18 @@ import ( func main() { id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.Delete(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.SourcesAPI.Delete(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.Delete``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `Delete`: Delete202Response - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.Delete`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourcesAPI.Delete(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.Delete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `Delete`: Delete202Response + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.Delete`: %v\n", resp) } ``` @@ -607,7 +604,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -615,18 +612,18 @@ import ( func main() { sourceId := `ebbf35756e1140699ce52b233121384a` // string | The source id # string | The source id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.DeleteAccountsAsync(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.Beta.SourcesAPI.DeleteAccountsAsync(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteAccountsAsync``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteAccountsAsync`: TaskResultDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.DeleteAccountsAsync`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourcesAPI.DeleteAccountsAsync(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteAccountsAsync``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteAccountsAsync`: TaskResultDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.DeleteAccountsAsync`: %v\n", resp) } ``` @@ -674,7 +671,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -682,16 +679,17 @@ import ( func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The source id # string | The source id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.SourcesAPI.DeleteNativeChangeDetectionConfig(context.Background(), sourceId).Execute() - //r, err := apiClient.Beta.SourcesAPI.DeleteNativeChangeDetectionConfig(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteNativeChangeDetectionConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.SourcesAPI.DeleteNativeChangeDetectionConfig(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteNativeChangeDetectionConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -740,7 +738,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -749,16 +747,17 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source ID. # string | The Source ID. usageType := CREATE // UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.SourcesAPI.DeleteProvisioningPolicy(context.Background(), sourceId, usageType).Execute() - //r, err := apiClient.Beta.SourcesAPI.DeleteProvisioningPolicy(context.Background(), sourceId, usageType).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteProvisioningPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.SourcesAPI.DeleteProvisioningPolicy(context.Background(), sourceId, usageType).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteProvisioningPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -807,7 +806,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -816,16 +815,17 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source ID. # string | The Source ID. schemaId := `2c9180835d191a86015d28455b4a2329` // string | The Schema ID. # string | The Schema ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.SourcesAPI.DeleteSourceSchema(context.Background(), sourceId, schemaId).Execute() - //r, err := apiClient.Beta.SourcesAPI.DeleteSourceSchema(context.Background(), sourceId, schemaId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteSourceSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.SourcesAPI.DeleteSourceSchema(context.Background(), sourceId, schemaId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteSourceSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -872,7 +872,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -880,18 +880,18 @@ import ( func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The source id # string | The source id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.GetCorrelationConfig(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.Beta.SourcesAPI.GetCorrelationConfig(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetCorrelationConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCorrelationConfig`: CorrelationConfig - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetCorrelationConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourcesAPI.GetCorrelationConfig(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetCorrelationConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCorrelationConfig`: CorrelationConfig + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetCorrelationConfig`: %v\n", resp) } ``` @@ -939,7 +939,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -947,18 +947,18 @@ import ( func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The source id # string | The source id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.GetNativeChangeDetectionConfig(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.Beta.SourcesAPI.GetNativeChangeDetectionConfig(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetNativeChangeDetectionConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNativeChangeDetectionConfig`: NativeChangeDetectionConfig - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetNativeChangeDetectionConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourcesAPI.GetNativeChangeDetectionConfig(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetNativeChangeDetectionConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNativeChangeDetectionConfig`: NativeChangeDetectionConfig + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetNativeChangeDetectionConfig`: %v\n", resp) } ``` @@ -1007,7 +1007,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1016,18 +1016,18 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source ID. # string | The Source ID. usageType := CREATE // UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.GetProvisioningPolicy(context.Background(), sourceId, usageType).Execute() - //resp, r, err := apiClient.Beta.SourcesAPI.GetProvisioningPolicy(context.Background(), sourceId, usageType).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetProvisioningPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetProvisioningPolicy`: ProvisioningPolicyDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetProvisioningPolicy`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourcesAPI.GetProvisioningPolicy(context.Background(), sourceId, usageType).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetProvisioningPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetProvisioningPolicy`: ProvisioningPolicyDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetProvisioningPolicy`: %v\n", resp) } ``` @@ -1075,7 +1075,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1083,18 +1083,18 @@ import ( func main() { id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.GetSource(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.SourcesAPI.GetSource(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSource`: Source - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSource`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourcesAPI.GetSource(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSource`: Source + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSource`: %v\n", resp) } ``` @@ -1141,7 +1141,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1149,16 +1149,17 @@ import ( func main() { sourceId := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The Source id # string | The Source id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.SourcesAPI.GetSourceAccountsSchema(context.Background(), sourceId).Execute() - //r, err := apiClient.Beta.SourcesAPI.GetSourceAccountsSchema(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceAccountsSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.SourcesAPI.GetSourceAccountsSchema(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceAccountsSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -1206,7 +1207,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1214,18 +1215,18 @@ import ( func main() { id := `2c9180835d191a86015d28455b4a2329` // string | The source id # string | The source id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.GetSourceAttrSyncConfig(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.SourcesAPI.GetSourceAttrSyncConfig(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceAttrSyncConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSourceAttrSyncConfig`: AttrSyncSourceConfig - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceAttrSyncConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourcesAPI.GetSourceAttrSyncConfig(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceAttrSyncConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSourceAttrSyncConfig`: AttrSyncSourceConfig + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceAttrSyncConfig`: %v\n", resp) } ``` @@ -1274,7 +1275,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1283,18 +1284,18 @@ func main() { id := `id_example` // string | The Source id # string | The Source id locale := `locale_example` // string | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) # string | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.GetSourceConfig(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.SourcesAPI.GetSourceConfig(context.Background(), id).Locale(locale).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSourceConfig`: ConnectorDetail - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourcesAPI.GetSourceConfig(context.Background(), id).Locale(locale).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSourceConfig`: ConnectorDetail + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceConfig`: %v\n", resp) } ``` @@ -1347,7 +1348,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1355,18 +1356,18 @@ import ( func main() { sourceId := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The Source id # string | The Source id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.GetSourceEntitlementRequestConfig(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.Beta.SourcesAPI.GetSourceEntitlementRequestConfig(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceEntitlementRequestConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSourceEntitlementRequestConfig`: SourceEntitlementRequestConfig - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceEntitlementRequestConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourcesAPI.GetSourceEntitlementRequestConfig(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceEntitlementRequestConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSourceEntitlementRequestConfig`: SourceEntitlementRequestConfig + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceEntitlementRequestConfig`: %v\n", resp) } ``` @@ -1414,7 +1415,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1423,16 +1424,17 @@ func main() { sourceId := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The Source id # string | The Source id schemaName := `?schemaName=group` // string | Name of entitlement schema (optional) # string | Name of entitlement schema (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.SourcesAPI.GetSourceEntitlementsSchema(context.Background(), sourceId).Execute() - //r, err := apiClient.Beta.SourcesAPI.GetSourceEntitlementsSchema(context.Background(), sourceId).SchemaName(schemaName).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceEntitlementsSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.SourcesAPI.GetSourceEntitlementsSchema(context.Background(), sourceId).SchemaName(schemaName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceEntitlementsSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -1482,7 +1484,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1491,18 +1493,18 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source ID. # string | The Source ID. schemaId := `2c9180835d191a86015d28455b4a2329` // string | The Schema ID. # string | The Schema ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.GetSourceSchema(context.Background(), sourceId, schemaId).Execute() - //resp, r, err := apiClient.Beta.SourcesAPI.GetSourceSchema(context.Background(), sourceId, schemaId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSourceSchema`: Schema - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceSchema`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourcesAPI.GetSourceSchema(context.Background(), sourceId, schemaId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSourceSchema`: Schema + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceSchema`: %v\n", resp) } ``` @@ -1551,7 +1553,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1561,18 +1563,18 @@ func main() { includeTypes := `group` // string | If set to 'group', then the account schema is filtered and only group schemas are returned. Only a value of 'group' is recognized presently. Note: The API will check whether include-types is group or not, if not, it will list schemas based on include-names, if include-names is not provided, it will list all schemas. (optional) # string | If set to 'group', then the account schema is filtered and only group schemas are returned. Only a value of 'group' is recognized presently. Note: The API will check whether include-types is group or not, if not, it will list schemas based on include-names, if include-names is not provided, it will list all schemas. (optional) includeNames := `account` // string | A comma-separated list of schema names to filter result. (optional) # string | A comma-separated list of schema names to filter result. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.GetSourceSchemas(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.Beta.SourcesAPI.GetSourceSchemas(context.Background(), sourceId).IncludeTypes(includeTypes).IncludeNames(includeNames).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceSchemas``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSourceSchemas`: []Schema - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceSchemas`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourcesAPI.GetSourceSchemas(context.Background(), sourceId).IncludeTypes(includeTypes).IncludeNames(includeNames).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceSchemas``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSourceSchemas`: []Schema + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceSchemas`: %v\n", resp) } ``` @@ -1624,7 +1626,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1634,18 +1636,18 @@ func main() { file := BINARY_DATA_HERE // *os.File | The CSV file containing the source accounts to aggregate. (optional) # *os.File | The CSV file containing the source accounts to aggregate. (optional) disableOptimization := `disableOptimization_example` // string | Use this flag to reprocess every account whether or not the data has changed. (optional) # string | Use this flag to reprocess every account whether or not the data has changed. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.ImportAccounts(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.Beta.SourcesAPI.ImportAccounts(context.Background(), sourceId).File(file).DisableOptimization(disableOptimization).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportAccounts``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportAccounts`: LoadAccountsTask - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportAccounts`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourcesAPI.ImportAccounts(context.Background(), sourceId).File(file).DisableOptimization(disableOptimization).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportAccounts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportAccounts`: LoadAccountsTask + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportAccounts`: %v\n", resp) } ``` @@ -1696,7 +1698,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1705,18 +1707,18 @@ func main() { sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | Source Id # string | Source Id file := BINARY_DATA_HERE // *os.File | The CSV file containing the source entitlements to aggregate. (optional) # *os.File | The CSV file containing the source entitlements to aggregate. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.ImportEntitlements(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.Beta.SourcesAPI.ImportEntitlements(context.Background(), sourceId).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportEntitlements``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportEntitlements`: LoadEntitlementTask - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportEntitlements`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourcesAPI.ImportEntitlements(context.Background(), sourceId).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportEntitlements``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportEntitlements`: LoadEntitlementTask + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportEntitlements`: %v\n", resp) } ``` @@ -1764,7 +1766,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1773,18 +1775,18 @@ func main() { sourceId := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The Source id # string | The Source id file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.ImportSourceAccountsSchema(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.Beta.SourcesAPI.ImportSourceAccountsSchema(context.Background(), sourceId).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportSourceAccountsSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportSourceAccountsSchema`: Schema - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportSourceAccountsSchema`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourcesAPI.ImportSourceAccountsSchema(context.Background(), sourceId).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportSourceAccountsSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportSourceAccountsSchema`: Schema + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportSourceAccountsSchema`: %v\n", resp) } ``` @@ -1833,7 +1835,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1842,18 +1844,18 @@ func main() { sourceId := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The Source id # string | The Source id file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.ImportSourceConnectorFile(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.Beta.SourcesAPI.ImportSourceConnectorFile(context.Background(), sourceId).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportSourceConnectorFile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportSourceConnectorFile`: Source - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportSourceConnectorFile`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourcesAPI.ImportSourceConnectorFile(context.Background(), sourceId).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportSourceConnectorFile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportSourceConnectorFile`: Source + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportSourceConnectorFile`: %v\n", resp) } ``` @@ -1902,7 +1904,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1912,18 +1914,18 @@ func main() { schemaName := `?schemaName=group` // string | Name of entitlement schema (optional) # string | Name of entitlement schema (optional) file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.ImportSourceEntitlementsSchema(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.Beta.SourcesAPI.ImportSourceEntitlementsSchema(context.Background(), sourceId).SchemaName(schemaName).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportSourceEntitlementsSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportSourceEntitlementsSchema`: Schema - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportSourceEntitlementsSchema`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourcesAPI.ImportSourceEntitlementsSchema(context.Background(), sourceId).SchemaName(schemaName).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportSourceEntitlementsSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportSourceEntitlementsSchema`: Schema + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportSourceEntitlementsSchema`: %v\n", resp) } ``` @@ -1971,7 +1973,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1980,18 +1982,18 @@ func main() { sourceId := `75dbec1ebe154d5785da27b95e1dd5d7` // string | Source Id # string | Source Id file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.ImportUncorrelatedAccounts(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.Beta.SourcesAPI.ImportUncorrelatedAccounts(context.Background(), sourceId).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportUncorrelatedAccounts``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportUncorrelatedAccounts`: LoadUncorrelatedAccountsTask - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportUncorrelatedAccounts`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourcesAPI.ImportUncorrelatedAccounts(context.Background(), sourceId).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportUncorrelatedAccounts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportUncorrelatedAccounts`: LoadUncorrelatedAccountsTask + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportUncorrelatedAccounts`: %v\n", resp) } ``` @@ -2038,7 +2040,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2046,18 +2048,18 @@ import ( func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id # string | The Source id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.ListProvisioningPolicies(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.Beta.SourcesAPI.ListProvisioningPolicies(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ListProvisioningPolicies``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListProvisioningPolicies`: []ProvisioningPolicyDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ListProvisioningPolicies`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourcesAPI.ListProvisioningPolicies(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ListProvisioningPolicies``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListProvisioningPolicies`: []ProvisioningPolicyDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ListProvisioningPolicies`: %v\n", resp) } ``` @@ -2108,7 +2110,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2122,18 +2124,18 @@ func main() { forSubadmin := `name` // string | Filter the returned list of sources for the identity specified by the parameter, which is the id of an identity with the role SOURCE_SUBADMIN. By convention, the value **me** indicates the identity id of the current user. Subadmins may only view Sources which they are able to administer; all other Sources will be filtered out when this parameter is set. If the current user is a SOURCE_SUBADMIN but fails to pass a valid value for this parameter, a 403 Forbidden is returned. (optional) # string | Filter the returned list of sources for the identity specified by the parameter, which is the id of an identity with the role SOURCE_SUBADMIN. By convention, the value **me** indicates the identity id of the current user. Subadmins may only view Sources which they are able to administer; all other Sources will be filtered out when this parameter is set. If the current user is a SOURCE_SUBADMIN but fails to pass a valid value for this parameter, a 403 Forbidden is returned. (optional) includeIDNSource := true // bool | Include the IdentityNow source in the response. (optional) (default to false) # bool | Include the IdentityNow source in the response. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.ListSources(context.Background()).Execute() - //resp, r, err := apiClient.Beta.SourcesAPI.ListSources(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSubadmin(forSubadmin).IncludeIDNSource(includeIDNSource).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ListSources``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListSources`: []Source - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ListSources`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourcesAPI.ListSources(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSubadmin(forSubadmin).IncludeIDNSource(includeIDNSource).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ListSources``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListSources`: []Source + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ListSources`: %v\n", resp) } ``` @@ -2182,7 +2184,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2194,24 +2196,23 @@ func main() { "objectType" : "group" }`) // ResourceObjectsRequest | - - var resourceObjectsRequest beta.ResourceObjectsRequest - if err := json.Unmarshal(resourceobjectsrequest, &resourceObjectsRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var resourceObjectsRequest beta.ResourceObjectsRequest + if err := json.Unmarshal(resourceobjectsrequest, &resourceObjectsRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.PeekResourceObjects(context.Background(), sourceId).ResourceObjectsRequest(resourceObjectsRequest).Execute() - //resp, r, err := apiClient.Beta.SourcesAPI.PeekResourceObjects(context.Background(), sourceId).ResourceObjectsRequest(resourceObjectsRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PeekResourceObjects``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PeekResourceObjects`: ResourceObjectsResponse - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PeekResourceObjects`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourcesAPI.PeekResourceObjects(context.Background(), sourceId).ResourceObjectsRequest(resourceObjectsRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PeekResourceObjects``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PeekResourceObjects`: ResourceObjectsResponse + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PeekResourceObjects`: %v\n", resp) } ``` @@ -2259,7 +2260,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2267,18 +2268,18 @@ import ( func main() { sourceId := `cef3ee201db947c5912551015ba0c679` // string | The ID of the Source # string | The ID of the Source - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.PingCluster(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.Beta.SourcesAPI.PingCluster(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PingCluster``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PingCluster`: StatusResponse - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PingCluster`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourcesAPI.PingCluster(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PingCluster``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PingCluster`: StatusResponse + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PingCluster`: %v\n", resp) } ``` @@ -2326,7 +2327,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2355,24 +2356,23 @@ func main() { "id" : "2c9180835d191a86015d28455b4a2329" }`) // CorrelationConfig | - - var correlationConfig beta.CorrelationConfig - if err := json.Unmarshal(correlationconfig, &correlationConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var correlationConfig beta.CorrelationConfig + if err := json.Unmarshal(correlationconfig, &correlationConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.PutCorrelationConfig(context.Background(), sourceId).CorrelationConfig(correlationConfig).Execute() - //resp, r, err := apiClient.Beta.SourcesAPI.PutCorrelationConfig(context.Background(), sourceId).CorrelationConfig(correlationConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutCorrelationConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutCorrelationConfig`: CorrelationConfig - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutCorrelationConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourcesAPI.PutCorrelationConfig(context.Background(), sourceId).CorrelationConfig(correlationConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutCorrelationConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutCorrelationConfig`: CorrelationConfig + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutCorrelationConfig`: %v\n", resp) } ``` @@ -2422,7 +2422,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2438,24 +2438,23 @@ func main() { "enabled" : true }`) // NativeChangeDetectionConfig | - - var nativeChangeDetectionConfig beta.NativeChangeDetectionConfig - if err := json.Unmarshal(nativechangedetectionconfig, &nativeChangeDetectionConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var nativeChangeDetectionConfig beta.NativeChangeDetectionConfig + if err := json.Unmarshal(nativechangedetectionconfig, &nativeChangeDetectionConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.PutNativeChangeDetectionConfig(context.Background(), sourceId).NativeChangeDetectionConfig(nativeChangeDetectionConfig).Execute() - //resp, r, err := apiClient.Beta.SourcesAPI.PutNativeChangeDetectionConfig(context.Background(), sourceId).NativeChangeDetectionConfig(nativeChangeDetectionConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutNativeChangeDetectionConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutNativeChangeDetectionConfig`: NativeChangeDetectionConfig - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutNativeChangeDetectionConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourcesAPI.PutNativeChangeDetectionConfig(context.Background(), sourceId).NativeChangeDetectionConfig(nativeChangeDetectionConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutNativeChangeDetectionConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutNativeChangeDetectionConfig`: NativeChangeDetectionConfig + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutNativeChangeDetectionConfig`: %v\n", resp) } ``` @@ -2507,7 +2506,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2556,24 +2555,23 @@ func main() { "usageType" : "CREATE" }`) // ProvisioningPolicyDto | - - var provisioningPolicyDto beta.ProvisioningPolicyDto - if err := json.Unmarshal(provisioningpolicydto, &provisioningPolicyDto); err != nil { - fmt.Println("Error:", err) - return - } - + var provisioningPolicyDto beta.ProvisioningPolicyDto + if err := json.Unmarshal(provisioningpolicydto, &provisioningPolicyDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.PutProvisioningPolicy(context.Background(), sourceId, usageType).ProvisioningPolicyDto(provisioningPolicyDto).Execute() - //resp, r, err := apiClient.Beta.SourcesAPI.PutProvisioningPolicy(context.Background(), sourceId, usageType).ProvisioningPolicyDto(provisioningPolicyDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutProvisioningPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutProvisioningPolicy`: ProvisioningPolicyDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutProvisioningPolicy`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourcesAPI.PutProvisioningPolicy(context.Background(), sourceId, usageType).ProvisioningPolicyDto(provisioningPolicyDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutProvisioningPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutProvisioningPolicy`: ProvisioningPolicyDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutProvisioningPolicy`: %v\n", resp) } ``` @@ -2635,7 +2633,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2726,24 +2724,23 @@ func main() { "since" : "2021-09-28T15:48:29.3801666300Z" }`) // Source | - - var source beta.Source - if err := json.Unmarshal(source, &source); err != nil { - fmt.Println("Error:", err) - return - } - + var source beta.Source + if err := json.Unmarshal(source, &source); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.PutSource(context.Background(), id).Source(source).Execute() - //resp, r, err := apiClient.Beta.SourcesAPI.PutSource(context.Background(), id).Source(source).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutSource`: Source - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutSource`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourcesAPI.PutSource(context.Background(), id).Source(source).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutSource`: Source + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutSource`: %v\n", resp) } ``` @@ -2793,7 +2790,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2819,24 +2816,23 @@ func main() { } }`) // AttrSyncSourceConfig | - - var attrSyncSourceConfig beta.AttrSyncSourceConfig - if err := json.Unmarshal(attrsyncsourceconfig, &attrSyncSourceConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var attrSyncSourceConfig beta.AttrSyncSourceConfig + if err := json.Unmarshal(attrsyncsourceconfig, &attrSyncSourceConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.PutSourceAttrSyncConfig(context.Background(), id).AttrSyncSourceConfig(attrSyncSourceConfig).Execute() - //resp, r, err := apiClient.Beta.SourcesAPI.PutSourceAttrSyncConfig(context.Background(), id).AttrSyncSourceConfig(attrSyncSourceConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutSourceAttrSyncConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutSourceAttrSyncConfig`: AttrSyncSourceConfig - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutSourceAttrSyncConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourcesAPI.PutSourceAttrSyncConfig(context.Background(), id).AttrSyncSourceConfig(attrSyncSourceConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutSourceAttrSyncConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutSourceAttrSyncConfig`: AttrSyncSourceConfig + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutSourceAttrSyncConfig`: %v\n", resp) } ``` @@ -2891,7 +2887,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2934,24 +2930,23 @@ func main() { "identityAttribute" : "sAMAccountName" }`) // Schema | - - var schema beta.Schema - if err := json.Unmarshal(schema, &schema); err != nil { - fmt.Println("Error:", err) - return - } - + var schema beta.Schema + if err := json.Unmarshal(schema, &schema); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.PutSourceSchema(context.Background(), sourceId, schemaId).Schema(schema).Execute() - //resp, r, err := apiClient.Beta.SourcesAPI.PutSourceSchema(context.Background(), sourceId, schemaId).Schema(schema).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutSourceSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutSourceSchema`: Schema - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutSourceSchema`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourcesAPI.PutSourceSchema(context.Background(), sourceId, schemaId).Schema(schema).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutSourceSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutSourceSchema`: Schema + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutSourceSchema`: %v\n", resp) } ``` @@ -2999,7 +2994,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3007,18 +3002,18 @@ import ( func main() { sourceId := `sourceId_example` // string | The Source id # string | The Source id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.SyncAttributesForSource(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.Beta.SourcesAPI.SyncAttributesForSource(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.SyncAttributesForSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SyncAttributesForSource`: SourceSyncJob - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.SyncAttributesForSource`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourcesAPI.SyncAttributesForSource(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.SyncAttributesForSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SyncAttributesForSource`: SourceSyncJob + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.SyncAttributesForSource`: %v\n", resp) } ``` @@ -3066,7 +3061,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3074,18 +3069,18 @@ import ( func main() { sourceId := `cef3ee201db947c5912551015ba0c679` // string | The ID of the Source # string | The ID of the Source - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.TestSourceConfiguration(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.Beta.SourcesAPI.TestSourceConfiguration(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.TestSourceConfiguration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `TestSourceConfiguration`: StatusResponse - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.TestSourceConfiguration`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourcesAPI.TestSourceConfiguration(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.TestSourceConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TestSourceConfiguration`: StatusResponse + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.TestSourceConfiguration`: %v\n", resp) } ``` @@ -3133,7 +3128,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3141,18 +3136,18 @@ import ( func main() { sourceId := `cef3ee201db947c5912551015ba0c679` // string | The ID of the Source. # string | The ID of the Source. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.TestSourceConnection(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.Beta.SourcesAPI.TestSourceConnection(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.TestSourceConnection``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `TestSourceConnection`: StatusResponse - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.TestSourceConnection`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourcesAPI.TestSourceConnection(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.TestSourceConnection``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TestSourceConnection`: StatusResponse + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.TestSourceConnection`: %v\n", resp) } ``` @@ -3200,7 +3195,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3209,24 +3204,23 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. provisioningpolicydto := []byte(``) // []ProvisioningPolicyDto | - - var provisioningPolicyDto beta.[]ProvisioningPolicyDto - if err := json.Unmarshal(provisioningpolicydto, &provisioningPolicyDto); err != nil { - fmt.Println("Error:", err) - return - } - + var provisioningPolicyDto []beta.ProvisioningPolicyDto + if err := json.Unmarshal(provisioningpolicydto, &provisioningPolicyDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.UpdateProvisioningPoliciesInBulk(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() - //resp, r, err := apiClient.Beta.SourcesAPI.UpdateProvisioningPoliciesInBulk(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateProvisioningPoliciesInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateProvisioningPoliciesInBulk`: []ProvisioningPolicyDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateProvisioningPoliciesInBulk`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourcesAPI.UpdateProvisioningPoliciesInBulk(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateProvisioningPoliciesInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateProvisioningPoliciesInBulk`: []ProvisioningPolicyDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateProvisioningPoliciesInBulk`: %v\n", resp) } ``` @@ -3278,7 +3272,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3288,24 +3282,23 @@ func main() { usageType := CREATE // UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. jsonpatchoperation := []byte(`[{op=add, path=/fields/0, value={name=email, transform={type=identityAttribute, attributes={name=email}}, attributes={}, isRequired=false, type=string, isMultiValued=false}}]`) // []JsonPatchOperation | The JSONPatch payload used to update the schema. - - var jsonPatchOperation beta.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []beta.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.UpdateProvisioningPolicy(context.Background(), sourceId, usageType).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.Beta.SourcesAPI.UpdateProvisioningPolicy(context.Background(), sourceId, usageType).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateProvisioningPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateProvisioningPolicy`: ProvisioningPolicyDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateProvisioningPolicy`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourcesAPI.UpdateProvisioningPolicy(context.Background(), sourceId, usageType).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateProvisioningPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateProvisioningPolicy`: ProvisioningPolicyDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateProvisioningPolicy`: %v\n", resp) } ``` @@ -3369,7 +3362,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3378,24 +3371,23 @@ func main() { id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. jsonpatchoperation := []byte(`[{op=replace, path=/description, value=new description}]`) // []JsonPatchOperation | A list of account update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Any password changes are submitted as plain-text and encrypted upon receipt in Identity Security Cloud (ISC). - - var jsonPatchOperation beta.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []beta.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.UpdateSource(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.Beta.SourcesAPI.UpdateSource(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateSource`: Source - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateSource`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourcesAPI.UpdateSource(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateSource`: Source + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateSource`: %v\n", resp) } ``` @@ -3449,7 +3441,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3466,28 +3458,37 @@ func main() { "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", "approverType" : "GOVERNANCE_GROUP" } ], + "reauthorizationRequired" : false, "requestCommentRequired" : true + }, + "revocationRequestConfig" : { + "approvalSchemes" : [ { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + }, { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + } ] } }`) // SourceEntitlementRequestConfig | - - var sourceEntitlementRequestConfig beta.SourceEntitlementRequestConfig - if err := json.Unmarshal(sourceentitlementrequestconfig, &sourceEntitlementRequestConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var sourceEntitlementRequestConfig beta.SourceEntitlementRequestConfig + if err := json.Unmarshal(sourceentitlementrequestconfig, &sourceEntitlementRequestConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.UpdateSourceEntitlementRequestConfig(context.Background(), sourceId).SourceEntitlementRequestConfig(sourceEntitlementRequestConfig).Execute() - //resp, r, err := apiClient.Beta.SourcesAPI.UpdateSourceEntitlementRequestConfig(context.Background(), sourceId).SourceEntitlementRequestConfig(sourceEntitlementRequestConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateSourceEntitlementRequestConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateSourceEntitlementRequestConfig`: SourceEntitlementRequestConfig - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateSourceEntitlementRequestConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourcesAPI.UpdateSourceEntitlementRequestConfig(context.Background(), sourceId).SourceEntitlementRequestConfig(sourceEntitlementRequestConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateSourceEntitlementRequestConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateSourceEntitlementRequestConfig`: SourceEntitlementRequestConfig + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateSourceEntitlementRequestConfig`: %v\n", resp) } ``` @@ -3566,7 +3567,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3576,24 +3577,23 @@ func main() { schemaId := `2c9180835d191a86015d28455b4a2329` // string | The Schema id. # string | The Schema id. jsonpatchoperation := []byte(`[{op=replace, path=/displayAttribute, value={new-display-attribute=null}}]`) // []JsonPatchOperation | The JSONPatch payload used to update the schema. - - var jsonPatchOperation beta.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []beta.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.UpdateSourceSchema(context.Background(), sourceId, schemaId).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.Beta.SourcesAPI.UpdateSourceSchema(context.Background(), sourceId, schemaId).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateSourceSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateSourceSchema`: Schema - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateSourceSchema`: %v\n", resp) + //resp, r, err := apiClient.Beta.SourcesAPI.UpdateSourceSchema(context.Background(), sourceId, schemaId).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateSourceSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateSourceSchema`: Schema + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateSourceSchema`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/SuggestedEntitlementDescriptionAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/SuggestedEntitlementDescriptionAPI.md index 9873c1ffa..9bff353a9 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/SuggestedEntitlementDescriptionAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/SuggestedEntitlementDescriptionAPI.md @@ -72,7 +72,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -80,18 +80,18 @@ import ( func main() { batchId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | Batch Id # string | Batch Id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.GetSedBatchStats(context.Background(), batchId).Execute() - //resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.GetSedBatchStats(context.Background(), batchId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.GetSedBatchStats``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSedBatchStats`: SedBatchStats - fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.GetSedBatchStats`: %v\n", resp) + //resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.GetSedBatchStats(context.Background(), batchId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.GetSedBatchStats``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSedBatchStats`: SedBatchStats + fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.GetSedBatchStats`: %v\n", resp) } ``` @@ -131,25 +131,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.GetSedBatches(context.Background()).Execute() - //resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.GetSedBatches(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.GetSedBatches``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSedBatches`: SedBatchStatus - fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.GetSedBatches`: %v\n", resp) + //resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.GetSedBatches(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.GetSedBatches``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSedBatches`: SedBatchStatus + fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.GetSedBatches`: %v\n", resp) } ``` @@ -212,7 +212,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -226,18 +226,18 @@ func main() { requestedByAnyone := requested-by-anyone=true // bool | By default, the ListSeds API will only return items that you have requested to be generated. This option will allow you to see all items that have been requested (optional) # bool | By default, the ListSeds API will only return items that you have requested to be generated. This option will allow you to see all items that have been requested (optional) showPendingStatusOnly := show-pending-status-only=true // bool | Will limit records to items that are in \"suggested\" or \"approved\" status (optional) # bool | Will limit records to items that are in \"suggested\" or \"approved\" status (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.ListSeds(context.Background()).Execute() - //resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.ListSeds(context.Background()).Limit(limit).Filters(filters).Sorters(sorters).Count(count).CountOnly(countOnly).RequestedByAnyone(requestedByAnyone).ShowPendingStatusOnly(showPendingStatusOnly).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.ListSeds``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListSeds`: []Sed - fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.ListSeds`: %v\n", resp) + //resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.ListSeds(context.Background()).Limit(limit).Filters(filters).Sorters(sorters).Count(count).CountOnly(countOnly).RequestedByAnyone(requestedByAnyone).ShowPendingStatusOnly(showPendingStatusOnly).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.ListSeds``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListSeds`: []Sed + fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.ListSeds`: %v\n", resp) } ``` @@ -285,7 +285,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -294,24 +294,23 @@ func main() { id := `ebab396f-0af1-4050-89b7-dafc63ec70e7` // string | id is sed id # string | id is sed id sedpatch := []byte(``) // []SedPatch | Sed Patch Request - - var sedPatch beta.[]SedPatch - if err := json.Unmarshal(sedpatch, &sedPatch); err != nil { - fmt.Println("Error:", err) - return - } - + var sedPatch []beta.SedPatch + if err := json.Unmarshal(sedpatch, &sedPatch); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.PatchSed(context.Background(), id).SedPatch(sedPatch).Execute() - //resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.PatchSed(context.Background(), id).SedPatch(sedPatch).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.PatchSed``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchSed`: Sed - fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.PatchSed`: %v\n", resp) + //resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.PatchSed(context.Background(), id).SedPatch(sedPatch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.PatchSed``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchSed`: Sed + fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.PatchSed`: %v\n", resp) } ``` @@ -355,7 +354,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -363,24 +362,23 @@ import ( func main() { sedapproval := []byte(``) // []SedApproval | Sed Approval - - var sedApproval beta.[]SedApproval - if err := json.Unmarshal(sedapproval, &sedApproval); err != nil { - fmt.Println("Error:", err) - return - } - + var sedApproval []beta.SedApproval + if err := json.Unmarshal(sedapproval, &sedApproval); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.SubmitSedApproval(context.Background()).SedApproval(sedApproval).Execute() - //resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.SubmitSedApproval(context.Background()).SedApproval(sedApproval).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.SubmitSedApproval``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SubmitSedApproval`: []SedApprovalStatus - fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.SubmitSedApproval`: %v\n", resp) + //resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.SubmitSedApproval(context.Background()).SedApproval(sedApproval).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.SubmitSedApproval``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SubmitSedApproval`: []SedApprovalStatus + fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.SubmitSedApproval`: %v\n", resp) } ``` @@ -424,7 +422,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -438,24 +436,23 @@ func main() { "items" : [ "016629d1-1d25-463f-97f3-0c6686846650", "016629d1-1d25-463f-97f3-0c6686846650" ] }`) // SedAssignment | Sed Assignment Request - - var sedAssignment beta.SedAssignment - if err := json.Unmarshal(sedassignment, &sedAssignment); err != nil { - fmt.Println("Error:", err) - return - } - + var sedAssignment beta.SedAssignment + if err := json.Unmarshal(sedassignment, &sedAssignment); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.SubmitSedAssignment(context.Background()).SedAssignment(sedAssignment).Execute() - //resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.SubmitSedAssignment(context.Background()).SedAssignment(sedAssignment).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.SubmitSedAssignment``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SubmitSedAssignment`: SedAssignmentResponse - fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.SubmitSedAssignment`: %v\n", resp) + //resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.SubmitSedAssignment(context.Background()).SedAssignment(sedAssignment).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.SubmitSedAssignment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SubmitSedAssignment`: SedAssignmentResponse + fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.SubmitSedAssignment`: %v\n", resp) } ``` @@ -502,7 +499,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -513,18 +510,18 @@ func main() { "seds" : [ "016629d1-1d25-463f-97f3-c6686846650", "016629d1-1d25-463f-97f3-c6686846650" ] }`) // SedBatchRequest | Sed Batch Request (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.SubmitSedBatchRequest(context.Background()).Execute() - //resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.SubmitSedBatchRequest(context.Background()).SedBatchRequest(sedBatchRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.SubmitSedBatchRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SubmitSedBatchRequest`: SedBatchResponse - fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.SubmitSedBatchRequest`: %v\n", resp) + //resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.SubmitSedBatchRequest(context.Background()).SedBatchRequest(sedBatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.SubmitSedBatchRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SubmitSedBatchRequest`: SedBatchResponse + fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.SubmitSedBatchRequest`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/TaggedObjectsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/TaggedObjectsAPI.md index c9e1e96ee..399917524 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/TaggedObjectsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/TaggedObjectsAPI.md @@ -121,7 +121,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -130,16 +130,17 @@ func main() { type_ := `ROLE` // string | The type of object to delete tags from. # string | The type of object to delete tags from. id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the object to delete tags from. # string | The ID of the object to delete tags from. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.TaggedObjectsAPI.DeleteTaggedObject(context.Background(), type_, id).Execute() - //r, err := apiClient.Beta.TaggedObjectsAPI.DeleteTaggedObject(context.Background(), type_, id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.DeleteTaggedObject``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.TaggedObjectsAPI.DeleteTaggedObject(context.Background(), type_, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.DeleteTaggedObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -184,7 +185,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -204,22 +205,22 @@ func main() { "tags" : [ "BU_FINANCE", "PCI" ] }`) // BulkTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. - - var bulkTaggedObject beta.BulkTaggedObject - if err := json.Unmarshal(bulktaggedobject, &bulkTaggedObject); err != nil { - fmt.Println("Error:", err) - return - } - + var bulkTaggedObject beta.BulkTaggedObject + if err := json.Unmarshal(bulktaggedobject, &bulkTaggedObject); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.TaggedObjectsAPI.DeleteTagsToManyObject(context.Background()).BulkTaggedObject(bulkTaggedObject).Execute() - //r, err := apiClient.Beta.TaggedObjectsAPI.DeleteTagsToManyObject(context.Background()).BulkTaggedObject(bulkTaggedObject).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.DeleteTagsToManyObject``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.TaggedObjectsAPI.DeleteTagsToManyObject(context.Background()).BulkTaggedObject(bulkTaggedObject).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.DeleteTagsToManyObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -268,7 +269,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -277,18 +278,18 @@ func main() { type_ := `ROLE` // string | The type of tagged object to retrieve. # string | The type of tagged object to retrieve. id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the object reference to retrieve. # string | The ID of the object reference to retrieve. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TaggedObjectsAPI.GetTaggedObject(context.Background(), type_, id).Execute() - //resp, r, err := apiClient.Beta.TaggedObjectsAPI.GetTaggedObject(context.Background(), type_, id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.GetTaggedObject``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetTaggedObject`: TaggedObject - fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.GetTaggedObject`: %v\n", resp) + //resp, r, err := apiClient.Beta.TaggedObjectsAPI.GetTaggedObject(context.Background(), type_, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.GetTaggedObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTaggedObject`: TaggedObject + fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.GetTaggedObject`: %v\n", resp) } ``` @@ -336,7 +337,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -347,18 +348,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) filters := `tagName eq "BU_FINANCE"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **objectRef.id**: *eq, in* **objectRef.type**: *eq, in* **tagName**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **objectRef.id**: *eq, in* **objectRef.type**: *eq, in* **tagName**: *eq, in* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TaggedObjectsAPI.ListTaggedObjects(context.Background()).Execute() - //resp, r, err := apiClient.Beta.TaggedObjectsAPI.ListTaggedObjects(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.ListTaggedObjects``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListTaggedObjects`: []TaggedObject - fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.ListTaggedObjects`: %v\n", resp) + //resp, r, err := apiClient.Beta.TaggedObjectsAPI.ListTaggedObjects(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.ListTaggedObjects``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListTaggedObjects`: []TaggedObject + fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.ListTaggedObjects`: %v\n", resp) } ``` @@ -411,7 +412,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -423,18 +424,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) filters := `objectRef.id eq "2c91808568c529c60168cca6f90c1313"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **objectRef.id**: *eq* **objectRef.type**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **objectRef.id**: *eq* **objectRef.type**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TaggedObjectsAPI.ListTaggedObjectsByType(context.Background(), type_).Execute() - //resp, r, err := apiClient.Beta.TaggedObjectsAPI.ListTaggedObjectsByType(context.Background(), type_).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.ListTaggedObjectsByType``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListTaggedObjectsByType`: []TaggedObject - fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.ListTaggedObjectsByType`: %v\n", resp) + //resp, r, err := apiClient.Beta.TaggedObjectsAPI.ListTaggedObjectsByType(context.Background(), type_).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.ListTaggedObjectsByType``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListTaggedObjectsByType`: []TaggedObject + fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.ListTaggedObjectsByType`: %v\n", resp) } ``` @@ -484,7 +485,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -501,24 +502,23 @@ func main() { "tags" : [ "BU_FINANCE", "PCI" ] }`) // TaggedObject | - - var taggedObject beta.TaggedObject - if err := json.Unmarshal(taggedobject, &taggedObject); err != nil { - fmt.Println("Error:", err) - return - } - + var taggedObject beta.TaggedObject + if err := json.Unmarshal(taggedobject, &taggedObject); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TaggedObjectsAPI.PutTaggedObject(context.Background(), type_, id).TaggedObject(taggedObject).Execute() - //resp, r, err := apiClient.Beta.TaggedObjectsAPI.PutTaggedObject(context.Background(), type_, id).TaggedObject(taggedObject).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.PutTaggedObject``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutTaggedObject`: TaggedObject - fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.PutTaggedObject`: %v\n", resp) + //resp, r, err := apiClient.Beta.TaggedObjectsAPI.PutTaggedObject(context.Background(), type_, id).TaggedObject(taggedObject).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.PutTaggedObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutTaggedObject`: TaggedObject + fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.PutTaggedObject`: %v\n", resp) } ``` @@ -563,7 +563,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -578,22 +578,22 @@ func main() { "tags" : [ "BU_FINANCE", "PCI" ] }`) // TaggedObject | - - var taggedObject beta.TaggedObject - if err := json.Unmarshal(taggedobject, &taggedObject); err != nil { - fmt.Println("Error:", err) - return - } - + var taggedObject beta.TaggedObject + if err := json.Unmarshal(taggedobject, &taggedObject); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.TaggedObjectsAPI.SetTagToObject(context.Background()).TaggedObject(taggedObject).Execute() - //r, err := apiClient.Beta.TaggedObjectsAPI.SetTagToObject(context.Background()).TaggedObject(taggedObject).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.SetTagToObject``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.TaggedObjectsAPI.SetTagToObject(context.Background()).TaggedObject(taggedObject).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.SetTagToObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -638,7 +638,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -658,24 +658,23 @@ func main() { "tags" : [ "BU_FINANCE", "PCI" ] }`) // BulkTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. - - var bulkTaggedObject beta.BulkTaggedObject - if err := json.Unmarshal(bulktaggedobject, &bulkTaggedObject); err != nil { - fmt.Println("Error:", err) - return - } - + var bulkTaggedObject beta.BulkTaggedObject + if err := json.Unmarshal(bulktaggedobject, &bulkTaggedObject); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TaggedObjectsAPI.SetTagsToManyObjects(context.Background()).BulkTaggedObject(bulkTaggedObject).Execute() - //resp, r, err := apiClient.Beta.TaggedObjectsAPI.SetTagsToManyObjects(context.Background()).BulkTaggedObject(bulkTaggedObject).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.SetTagsToManyObjects``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetTagsToManyObjects`: BulkTaggedObject - fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.SetTagsToManyObjects`: %v\n", resp) + //resp, r, err := apiClient.Beta.TaggedObjectsAPI.SetTagsToManyObjects(context.Background()).BulkTaggedObject(bulkTaggedObject).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.SetTagsToManyObjects``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetTagsToManyObjects`: BulkTaggedObject + fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.SetTagsToManyObjects`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/TagsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/TagsAPI.md index 81aec5c11..b3faad2be 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/TagsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/TagsAPI.md @@ -60,7 +60,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -83,24 +83,23 @@ func main() { "id" : "449ecdc0-d4ff-4341-acf6-92f6f7ce604f" }`) // Tag | - - var tag beta.Tag - if err := json.Unmarshal(tag, &tag); err != nil { - fmt.Println("Error:", err) - return - } - + var tag beta.Tag + if err := json.Unmarshal(tag, &tag); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TagsAPI.CreateTag(context.Background()).Tag(tag).Execute() - //resp, r, err := apiClient.Beta.TagsAPI.CreateTag(context.Background()).Tag(tag).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TagsAPI.CreateTag``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateTag`: Tag - fmt.Fprintf(os.Stdout, "Response from `TagsAPI.CreateTag`: %v\n", resp) + //resp, r, err := apiClient.Beta.TagsAPI.CreateTag(context.Background()).Tag(tag).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagsAPI.CreateTag``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateTag`: Tag + fmt.Fprintf(os.Stdout, "Response from `TagsAPI.CreateTag`: %v\n", resp) } ``` @@ -149,7 +148,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -157,16 +156,17 @@ import ( func main() { id := `329d96cf-3bdb-40a9-988a-b5037ab89022` // string | The ID of the object reference to delete. # string | The ID of the object reference to delete. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.TagsAPI.DeleteTagById(context.Background(), id).Execute() - //r, err := apiClient.Beta.TagsAPI.DeleteTagById(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TagsAPI.DeleteTagById``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.TagsAPI.DeleteTagById(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagsAPI.DeleteTagById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -215,7 +215,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -223,18 +223,18 @@ import ( func main() { id := `329d96cf-3bdb-40a9-988a-b5037ab89022` // string | The ID of the object reference to retrieve. # string | The ID of the object reference to retrieve. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TagsAPI.GetTagById(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.TagsAPI.GetTagById(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TagsAPI.GetTagById``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetTagById`: Tag - fmt.Fprintf(os.Stdout, "Response from `TagsAPI.GetTagById`: %v\n", resp) + //resp, r, err := apiClient.Beta.TagsAPI.GetTagById(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagsAPI.GetTagById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTagById`: Tag + fmt.Fprintf(os.Stdout, "Response from `TagsAPI.GetTagById`: %v\n", resp) } ``` @@ -283,7 +283,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -295,18 +295,18 @@ func main() { filters := `id eq "27462f54-61c7-4140-b5da-d5dbe27fc6db"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, sw* (optional) sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TagsAPI.ListTags(context.Background()).Execute() - //resp, r, err := apiClient.Beta.TagsAPI.ListTags(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TagsAPI.ListTags``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListTags`: []Tag - fmt.Fprintf(os.Stdout, "Response from `TagsAPI.ListTags`: %v\n", resp) + //resp, r, err := apiClient.Beta.TagsAPI.ListTags(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagsAPI.ListTags``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListTags`: []Tag + fmt.Fprintf(os.Stdout, "Response from `TagsAPI.ListTags`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/TaskManagementAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/TaskManagementAPI.md index c0bac1273..f536882b2 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/TaskManagementAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/TaskManagementAPI.md @@ -61,7 +61,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -71,16 +71,17 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.TaskManagementAPI.GetPendingTaskHeaders(context.Background()).Execute() - //r, err := apiClient.Beta.TaskManagementAPI.GetPendingTaskHeaders(context.Background()).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaskManagementAPI.GetPendingTaskHeaders``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.TaskManagementAPI.GetPendingTaskHeaders(context.Background()).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaskManagementAPI.GetPendingTaskHeaders``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -125,7 +126,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -135,18 +136,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TaskManagementAPI.GetPendingTasks(context.Background()).Execute() - //resp, r, err := apiClient.Beta.TaskManagementAPI.GetPendingTasks(context.Background()).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaskManagementAPI.GetPendingTasks``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPendingTasks`: []TaskStatus - fmt.Fprintf(os.Stdout, "Response from `TaskManagementAPI.GetPendingTasks`: %v\n", resp) + //resp, r, err := apiClient.Beta.TaskManagementAPI.GetPendingTasks(context.Background()).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaskManagementAPI.GetPendingTasks``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPendingTasks`: []TaskStatus + fmt.Fprintf(os.Stdout, "Response from `TaskManagementAPI.GetPendingTasks`: %v\n", resp) } ``` @@ -193,7 +194,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -201,18 +202,18 @@ import ( func main() { id := `00eebcf881994e419d72e757fd30dc0e` // string | Task ID. # string | Task ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TaskManagementAPI.GetTaskStatus(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.TaskManagementAPI.GetTaskStatus(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaskManagementAPI.GetTaskStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetTaskStatus`: TaskStatus - fmt.Fprintf(os.Stdout, "Response from `TaskManagementAPI.GetTaskStatus`: %v\n", resp) + //resp, r, err := apiClient.Beta.TaskManagementAPI.GetTaskStatus(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaskManagementAPI.GetTaskStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTaskStatus`: TaskStatus + fmt.Fprintf(os.Stdout, "Response from `TaskManagementAPI.GetTaskStatus`: %v\n", resp) } ``` @@ -260,7 +261,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -272,18 +273,18 @@ func main() { filters := `completionStatus eq "Success"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **sourceId**: *eq, in* **completionStatus**: *eq, in* **type**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **sourceId**: *eq, in* **completionStatus**: *eq, in* **type**: *eq, in* (optional) sorters := `-created` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TaskManagementAPI.GetTaskStatusList(context.Background()).Execute() - //resp, r, err := apiClient.Beta.TaskManagementAPI.GetTaskStatusList(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaskManagementAPI.GetTaskStatusList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetTaskStatusList`: []TaskStatus - fmt.Fprintf(os.Stdout, "Response from `TaskManagementAPI.GetTaskStatusList`: %v\n", resp) + //resp, r, err := apiClient.Beta.TaskManagementAPI.GetTaskStatusList(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaskManagementAPI.GetTaskStatusList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTaskStatusList`: []TaskStatus + fmt.Fprintf(os.Stdout, "Response from `TaskManagementAPI.GetTaskStatusList`: %v\n", resp) } ``` @@ -331,7 +332,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -340,24 +341,23 @@ func main() { id := `00eebcf881994e419d72e757fd30dc0e` // string | Task ID. # string | Task ID. jsonpatchoperation := []byte(``) // []JsonPatchOperation | The JSONPatch payload used to update the object. - - var jsonPatchOperation beta.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []beta.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TaskManagementAPI.UpdateTaskStatus(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.Beta.TaskManagementAPI.UpdateTaskStatus(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaskManagementAPI.UpdateTaskStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateTaskStatus`: TaskStatus - fmt.Fprintf(os.Stdout, "Response from `TaskManagementAPI.UpdateTaskStatus`: %v\n", resp) + //resp, r, err := apiClient.Beta.TaskManagementAPI.UpdateTaskStatus(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaskManagementAPI.UpdateTaskStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateTaskStatus`: TaskStatus + fmt.Fprintf(os.Stdout, "Response from `TaskManagementAPI.UpdateTaskStatus`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/TenantAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/TenantAPI.md index 707a20daa..482565abd 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/TenantAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/TenantAPI.md @@ -51,25 +51,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TenantAPI.GetTenant(context.Background()).Execute() - //resp, r, err := apiClient.Beta.TenantAPI.GetTenant(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenantAPI.GetTenant``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetTenant`: Tenant - fmt.Fprintf(os.Stdout, "Response from `TenantAPI.GetTenant`: %v\n", resp) + //resp, r, err := apiClient.Beta.TenantAPI.GetTenant(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TenantAPI.GetTenant``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTenant`: Tenant + fmt.Fprintf(os.Stdout, "Response from `TenantAPI.GetTenant`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/TransformsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/TransformsAPI.md index c417257d6..998faf0af 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/TransformsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/TransformsAPI.md @@ -64,7 +64,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -76,24 +76,23 @@ func main() { "type" : "dateFormat" }`) // Transform | The transform to be created. - - var transform beta.Transform - if err := json.Unmarshal(transform, &transform); err != nil { - fmt.Println("Error:", err) - return - } - + var transform beta.Transform + if err := json.Unmarshal(transform, &transform); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TransformsAPI.CreateTransform(context.Background()).Transform(transform).Execute() - //resp, r, err := apiClient.Beta.TransformsAPI.CreateTransform(context.Background()).Transform(transform).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.CreateTransform``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateTransform`: TransformRead - fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.CreateTransform`: %v\n", resp) + //resp, r, err := apiClient.Beta.TransformsAPI.CreateTransform(context.Background()).Transform(transform).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.CreateTransform``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateTransform`: TransformRead + fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.CreateTransform`: %v\n", resp) } ``` @@ -141,7 +140,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -149,16 +148,17 @@ import ( func main() { id := `2cd78adghjkja34jh2b1hkjhasuecd` // string | ID of the transform to delete # string | ID of the transform to delete - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.TransformsAPI.DeleteTransform(context.Background(), id).Execute() - //r, err := apiClient.Beta.TransformsAPI.DeleteTransform(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.DeleteTransform``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.TransformsAPI.DeleteTransform(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.DeleteTransform``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -206,7 +206,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -214,18 +214,18 @@ import ( func main() { id := `2cd78adghjkja34jh2b1hkjhasuecd` // string | ID of the transform to retrieve # string | ID of the transform to retrieve - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TransformsAPI.GetTransform(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.TransformsAPI.GetTransform(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.GetTransform``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetTransform`: TransformRead - fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.GetTransform`: %v\n", resp) + //resp, r, err := apiClient.Beta.TransformsAPI.GetTransform(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.GetTransform``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTransform`: TransformRead + fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.GetTransform`: %v\n", resp) } ``` @@ -273,7 +273,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -285,18 +285,18 @@ func main() { name := `ExampleTransformName123` // string | Name of the transform to retrieve from the list. (optional) # string | Name of the transform to retrieve from the list. (optional) filters := `name eq "Uppercase"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **internal**: *eq* **name**: *eq, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **internal**: *eq* **name**: *eq, sw* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TransformsAPI.ListTransforms(context.Background()).Execute() - //resp, r, err := apiClient.Beta.TransformsAPI.ListTransforms(context.Background()).Offset(offset).Limit(limit).Count(count).Name(name).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.ListTransforms``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListTransforms`: []TransformRead - fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.ListTransforms`: %v\n", resp) + //resp, r, err := apiClient.Beta.TransformsAPI.ListTransforms(context.Background()).Offset(offset).Limit(limit).Count(count).Name(name).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.ListTransforms``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListTransforms`: []TransformRead + fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.ListTransforms`: %v\n", resp) } ``` @@ -345,7 +345,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -358,18 +358,18 @@ func main() { "type" : "dateFormat" }`) // Transform | The updated transform object. Must include \"name\", \"type\", and \"attributes\" fields, but \"name\" and \"type\" must not be modified. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TransformsAPI.UpdateTransform(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.TransformsAPI.UpdateTransform(context.Background(), id).Transform(transform).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.UpdateTransform``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateTransform`: TransformRead - fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.UpdateTransform`: %v\n", resp) + //resp, r, err := apiClient.Beta.TransformsAPI.UpdateTransform(context.Background(), id).Transform(transform).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.UpdateTransform``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateTransform`: TransformRead + fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.UpdateTransform`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/TriggersAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/TriggersAPI.md index 688adde50..53f42d6d0 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/TriggersAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/TriggersAPI.md @@ -110,7 +110,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -125,22 +125,22 @@ func main() { "error" : "Access request is denied." }`) // CompleteInvocation | - - var completeInvocation beta.CompleteInvocation - if err := json.Unmarshal(completeinvocation, &completeInvocation); err != nil { - fmt.Println("Error:", err) - return - } - + var completeInvocation beta.CompleteInvocation + if err := json.Unmarshal(completeinvocation, &completeInvocation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.TriggersAPI.CompleteTriggerInvocation(context.Background(), id).CompleteInvocation(completeInvocation).Execute() - //r, err := apiClient.Beta.TriggersAPI.CompleteTriggerInvocation(context.Background(), id).CompleteInvocation(completeInvocation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.CompleteTriggerInvocation``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.TriggersAPI.CompleteTriggerInvocation(context.Background(), id).CompleteInvocation(completeInvocation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.CompleteTriggerInvocation``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -185,7 +185,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -217,24 +217,23 @@ func main() { "enabled" : true }`) // SubscriptionPostRequest | - - var subscriptionPostRequest beta.SubscriptionPostRequest - if err := json.Unmarshal(subscriptionpostrequest, &subscriptionPostRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var subscriptionPostRequest beta.SubscriptionPostRequest + if err := json.Unmarshal(subscriptionpostrequest, &subscriptionPostRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TriggersAPI.CreateSubscription(context.Background()).SubscriptionPostRequest(subscriptionPostRequest).Execute() - //resp, r, err := apiClient.Beta.TriggersAPI.CreateSubscription(context.Background()).SubscriptionPostRequest(subscriptionPostRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.CreateSubscription``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSubscription`: Subscription - fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.CreateSubscription`: %v\n", resp) + //resp, r, err := apiClient.Beta.TriggersAPI.CreateSubscription(context.Background()).SubscriptionPostRequest(subscriptionPostRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.CreateSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSubscription`: Subscription + fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.CreateSubscription`: %v\n", resp) } ``` @@ -281,7 +280,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -289,16 +288,17 @@ import ( func main() { id := `0f11f2a4-7c94-4bf3-a2bd-742580fe3bde` // string | Subscription ID # string | Subscription ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.TriggersAPI.DeleteSubscription(context.Background(), id).Execute() - //r, err := apiClient.Beta.TriggersAPI.DeleteSubscription(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.DeleteSubscription``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.TriggersAPI.DeleteSubscription(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.DeleteSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -345,7 +345,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -357,18 +357,18 @@ func main() { filters := `id eq "12cff757-c0c0-413b-8ad7-2a47956d1e89"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* **triggerId**: *eq* **type**: *eq, le* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* **triggerId**: *eq* **type**: *eq, le* (optional) sorters := `triggerName` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **triggerId, triggerName** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **triggerId, triggerName** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TriggersAPI.ListSubscriptions(context.Background()).Execute() - //resp, r, err := apiClient.Beta.TriggersAPI.ListSubscriptions(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.ListSubscriptions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListSubscriptions`: []Subscription - fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.ListSubscriptions`: %v\n", resp) + //resp, r, err := apiClient.Beta.TriggersAPI.ListSubscriptions(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.ListSubscriptions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListSubscriptions`: []Subscription + fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.ListSubscriptions`: %v\n", resp) } ``` @@ -417,7 +417,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -429,18 +429,18 @@ func main() { filters := `triggerId eq "idn:access-request-dynamic-approver"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **triggerId**: *eq* **subscriptionId**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **triggerId**: *eq* **subscriptionId**: *eq* (optional) sorters := `created` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **triggerId, subscriptionName, created, completed** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **triggerId, subscriptionName, created, completed** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TriggersAPI.ListTriggerInvocationStatus(context.Background()).Execute() - //resp, r, err := apiClient.Beta.TriggersAPI.ListTriggerInvocationStatus(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.ListTriggerInvocationStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListTriggerInvocationStatus`: []InvocationStatus - fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.ListTriggerInvocationStatus`: %v\n", resp) + //resp, r, err := apiClient.Beta.TriggersAPI.ListTriggerInvocationStatus(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.ListTriggerInvocationStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListTriggerInvocationStatus`: []InvocationStatus + fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.ListTriggerInvocationStatus`: %v\n", resp) } ``` @@ -487,7 +487,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -499,18 +499,18 @@ func main() { filters := `id eq "idn:access-request-post-approval"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, ge, le* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, ge, le* (optional) sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TriggersAPI.ListTriggers(context.Background()).Execute() - //resp, r, err := apiClient.Beta.TriggersAPI.ListTriggers(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.ListTriggers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListTriggers`: []Trigger - fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.ListTriggers`: %v\n", resp) + //resp, r, err := apiClient.Beta.TriggersAPI.ListTriggers(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.ListTriggers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListTriggers`: []Trigger + fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.ListTriggers`: %v\n", resp) } ``` @@ -560,7 +560,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -569,24 +569,23 @@ func main() { id := `0f11f2a4-7c94-4bf3-a2bd-742580fe3bde` // string | ID of the Subscription to patch # string | ID of the Subscription to patch subscriptionpatchrequestinner := []byte(``) // []SubscriptionPatchRequestInner | - - var subscriptionPatchRequestInner beta.[]SubscriptionPatchRequestInner - if err := json.Unmarshal(subscriptionpatchrequestinner, &subscriptionPatchRequestInner); err != nil { - fmt.Println("Error:", err) - return - } - + var subscriptionPatchRequestInner []beta.SubscriptionPatchRequestInner + if err := json.Unmarshal(subscriptionpatchrequestinner, &subscriptionPatchRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TriggersAPI.PatchSubscription(context.Background(), id).SubscriptionPatchRequestInner(subscriptionPatchRequestInner).Execute() - //resp, r, err := apiClient.Beta.TriggersAPI.PatchSubscription(context.Background(), id).SubscriptionPatchRequestInner(subscriptionPatchRequestInner).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.PatchSubscription``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchSubscription`: Subscription - fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.PatchSubscription`: %v\n", resp) + //resp, r, err := apiClient.Beta.TriggersAPI.PatchSubscription(context.Background(), id).SubscriptionPatchRequestInner(subscriptionPatchRequestInner).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.PatchSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchSubscription`: Subscription + fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.PatchSubscription`: %v\n", resp) } ``` @@ -629,7 +628,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -646,24 +645,23 @@ func main() { } }`) // TestInvocation | - - var testInvocation beta.TestInvocation - if err := json.Unmarshal(testinvocation, &testInvocation); err != nil { - fmt.Println("Error:", err) - return - } - + var testInvocation beta.TestInvocation + if err := json.Unmarshal(testinvocation, &testInvocation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TriggersAPI.StartTestTriggerInvocation(context.Background()).TestInvocation(testInvocation).Execute() - //resp, r, err := apiClient.Beta.TriggersAPI.StartTestTriggerInvocation(context.Background()).TestInvocation(testInvocation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.StartTestTriggerInvocation``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartTestTriggerInvocation`: []Invocation - fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.StartTestTriggerInvocation`: %v\n", resp) + //resp, r, err := apiClient.Beta.TriggersAPI.StartTestTriggerInvocation(context.Background()).TestInvocation(testInvocation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.StartTestTriggerInvocation``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartTestTriggerInvocation`: []Invocation + fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.StartTestTriggerInvocation`: %v\n", resp) } ``` @@ -707,7 +705,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -720,24 +718,23 @@ func main() { } }`) // ValidateFilterInputDto | - - var validateFilterInputDto beta.ValidateFilterInputDto - if err := json.Unmarshal(validatefilterinputdto, &validateFilterInputDto); err != nil { - fmt.Println("Error:", err) - return - } - + var validateFilterInputDto beta.ValidateFilterInputDto + if err := json.Unmarshal(validatefilterinputdto, &validateFilterInputDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TriggersAPI.TestSubscriptionFilter(context.Background()).ValidateFilterInputDto(validateFilterInputDto).Execute() - //resp, r, err := apiClient.Beta.TriggersAPI.TestSubscriptionFilter(context.Background()).ValidateFilterInputDto(validateFilterInputDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.TestSubscriptionFilter``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `TestSubscriptionFilter`: ValidateFilterOutputDto - fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.TestSubscriptionFilter`: %v\n", resp) + //resp, r, err := apiClient.Beta.TriggersAPI.TestSubscriptionFilter(context.Background()).ValidateFilterInputDto(validateFilterInputDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.TestSubscriptionFilter``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TestSubscriptionFilter`: ValidateFilterOutputDto + fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.TestSubscriptionFilter`: %v\n", resp) } ``` @@ -794,7 +791,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -826,24 +823,23 @@ func main() { "enabled" : true }`) // SubscriptionPutRequest | - - var subscriptionPutRequest beta.SubscriptionPutRequest - if err := json.Unmarshal(subscriptionputrequest, &subscriptionPutRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var subscriptionPutRequest beta.SubscriptionPutRequest + if err := json.Unmarshal(subscriptionputrequest, &subscriptionPutRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TriggersAPI.UpdateSubscription(context.Background(), id).SubscriptionPutRequest(subscriptionPutRequest).Execute() - //resp, r, err := apiClient.Beta.TriggersAPI.UpdateSubscription(context.Background(), id).SubscriptionPutRequest(subscriptionPutRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.UpdateSubscription``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateSubscription`: Subscription - fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.UpdateSubscription`: %v\n", resp) + //resp, r, err := apiClient.Beta.TriggersAPI.UpdateSubscription(context.Background(), id).SubscriptionPutRequest(subscriptionPutRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.UpdateSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateSubscription`: Subscription + fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.UpdateSubscription`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/UIMetadataAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/UIMetadataAPI.md index 2468bfb7f..695d4a166 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/UIMetadataAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/UIMetadataAPI.md @@ -54,25 +54,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.UIMetadataAPI.GetTenantUiMetadata(context.Background()).Execute() - //resp, r, err := apiClient.Beta.UIMetadataAPI.GetTenantUiMetadata(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UIMetadataAPI.GetTenantUiMetadata``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetTenantUiMetadata`: TenantUiMetadataItemResponse - fmt.Fprintf(os.Stdout, "Response from `UIMetadataAPI.GetTenantUiMetadata`: %v\n", resp) + //resp, r, err := apiClient.Beta.UIMetadataAPI.GetTenantUiMetadata(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UIMetadataAPI.GetTenantUiMetadata``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTenantUiMetadata`: TenantUiMetadataItemResponse + fmt.Fprintf(os.Stdout, "Response from `UIMetadataAPI.GetTenantUiMetadata`: %v\n", resp) } ``` @@ -116,7 +116,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -128,24 +128,23 @@ func main() { "iframeWhiteList" : "http://example.com http://example2.com" }`) // TenantUiMetadataItemUpdateRequest | - - var tenantUiMetadataItemUpdateRequest beta.TenantUiMetadataItemUpdateRequest - if err := json.Unmarshal(tenantuimetadataitemupdaterequest, &tenantUiMetadataItemUpdateRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var tenantUiMetadataItemUpdateRequest beta.TenantUiMetadataItemUpdateRequest + if err := json.Unmarshal(tenantuimetadataitemupdaterequest, &tenantUiMetadataItemUpdateRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.UIMetadataAPI.SetTenantUiMetadata(context.Background()).TenantUiMetadataItemUpdateRequest(tenantUiMetadataItemUpdateRequest).Execute() - //resp, r, err := apiClient.Beta.UIMetadataAPI.SetTenantUiMetadata(context.Background()).TenantUiMetadataItemUpdateRequest(tenantUiMetadataItemUpdateRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UIMetadataAPI.SetTenantUiMetadata``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetTenantUiMetadata`: TenantUiMetadataItemResponse - fmt.Fprintf(os.Stdout, "Response from `UIMetadataAPI.SetTenantUiMetadata`: %v\n", resp) + //resp, r, err := apiClient.Beta.UIMetadataAPI.SetTenantUiMetadata(context.Background()).TenantUiMetadataItemUpdateRequest(tenantUiMetadataItemUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UIMetadataAPI.SetTenantUiMetadata``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetTenantUiMetadata`: TenantUiMetadataItemResponse + fmt.Fprintf(os.Stdout, "Response from `UIMetadataAPI.SetTenantUiMetadata`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/VendorConnectorMappingsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/VendorConnectorMappingsAPI.md index 9bd6988e5..9aab4da76 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/VendorConnectorMappingsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/VendorConnectorMappingsAPI.md @@ -62,7 +62,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -92,24 +92,23 @@ func main() { } }`) // VendorConnectorMapping | - - var vendorConnectorMapping beta.VendorConnectorMapping - if err := json.Unmarshal(vendorconnectormapping, &vendorConnectorMapping); err != nil { - fmt.Println("Error:", err) - return - } - + var vendorConnectorMapping beta.VendorConnectorMapping + if err := json.Unmarshal(vendorconnectormapping, &vendorConnectorMapping); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.VendorConnectorMappingsAPI.CreateVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() - //resp, r, err := apiClient.Beta.VendorConnectorMappingsAPI.CreateVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VendorConnectorMappingsAPI.CreateVendorConnectorMapping``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateVendorConnectorMapping`: VendorConnectorMapping - fmt.Fprintf(os.Stdout, "Response from `VendorConnectorMappingsAPI.CreateVendorConnectorMapping`: %v\n", resp) + //resp, r, err := apiClient.Beta.VendorConnectorMappingsAPI.CreateVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VendorConnectorMappingsAPI.CreateVendorConnectorMapping``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateVendorConnectorMapping`: VendorConnectorMapping + fmt.Fprintf(os.Stdout, "Response from `VendorConnectorMappingsAPI.CreateVendorConnectorMapping`: %v\n", resp) } ``` @@ -153,7 +152,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -183,24 +182,23 @@ func main() { } }`) // VendorConnectorMapping | - - var vendorConnectorMapping beta.VendorConnectorMapping - if err := json.Unmarshal(vendorconnectormapping, &vendorConnectorMapping); err != nil { - fmt.Println("Error:", err) - return - } - + var vendorConnectorMapping beta.VendorConnectorMapping + if err := json.Unmarshal(vendorconnectormapping, &vendorConnectorMapping); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.VendorConnectorMappingsAPI.DeleteVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() - //resp, r, err := apiClient.Beta.VendorConnectorMappingsAPI.DeleteVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VendorConnectorMappingsAPI.DeleteVendorConnectorMapping``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteVendorConnectorMapping`: DeleteVendorConnectorMapping200Response - fmt.Fprintf(os.Stdout, "Response from `VendorConnectorMappingsAPI.DeleteVendorConnectorMapping`: %v\n", resp) + //resp, r, err := apiClient.Beta.VendorConnectorMappingsAPI.DeleteVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VendorConnectorMappingsAPI.DeleteVendorConnectorMapping``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteVendorConnectorMapping`: DeleteVendorConnectorMapping200Response + fmt.Fprintf(os.Stdout, "Response from `VendorConnectorMappingsAPI.DeleteVendorConnectorMapping`: %v\n", resp) } ``` @@ -240,25 +238,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.VendorConnectorMappingsAPI.GetVendorConnectorMappings(context.Background()).Execute() - //resp, r, err := apiClient.Beta.VendorConnectorMappingsAPI.GetVendorConnectorMappings(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VendorConnectorMappingsAPI.GetVendorConnectorMappings``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetVendorConnectorMappings`: []VendorConnectorMapping - fmt.Fprintf(os.Stdout, "Response from `VendorConnectorMappingsAPI.GetVendorConnectorMappings`: %v\n", resp) + //resp, r, err := apiClient.Beta.VendorConnectorMappingsAPI.GetVendorConnectorMappings(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VendorConnectorMappingsAPI.GetVendorConnectorMappings``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetVendorConnectorMappings`: []VendorConnectorMapping + fmt.Fprintf(os.Stdout, "Response from `VendorConnectorMappingsAPI.GetVendorConnectorMappings`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/WorkItemsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/WorkItemsAPI.md index 5028e557b..1b4637ed2 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/WorkItemsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/WorkItemsAPI.md @@ -90,7 +90,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -99,18 +99,18 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item approvalItemId := `1211bcaa32112bcef6122adb21cef1ac` // string | The ID of the approval item. # string | The ID of the approval item. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkItemsAPI.ApproveApprovalItem(context.Background(), id, approvalItemId).Execute() - //resp, r, err := apiClient.Beta.WorkItemsAPI.ApproveApprovalItem(context.Background(), id, approvalItemId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.ApproveApprovalItem``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ApproveApprovalItem`: WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.ApproveApprovalItem`: %v\n", resp) + //resp, r, err := apiClient.Beta.WorkItemsAPI.ApproveApprovalItem(context.Background(), id, approvalItemId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.ApproveApprovalItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApproveApprovalItem`: WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.ApproveApprovalItem`: %v\n", resp) } ``` @@ -160,7 +160,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -168,18 +168,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkItemsAPI.ApproveApprovalItemsInBulk(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.WorkItemsAPI.ApproveApprovalItemsInBulk(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.ApproveApprovalItemsInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ApproveApprovalItemsInBulk`: WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.ApproveApprovalItemsInBulk`: %v\n", resp) + //resp, r, err := apiClient.Beta.WorkItemsAPI.ApproveApprovalItemsInBulk(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.ApproveApprovalItemsInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApproveApprovalItemsInBulk`: WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.ApproveApprovalItemsInBulk`: %v\n", resp) } ``` @@ -230,7 +230,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -239,18 +239,18 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item body := `body_example` // string | Body is the request payload to create form definition request (optional) # string | Body is the request payload to create form definition request (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkItemsAPI.CompleteWorkItem(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.WorkItemsAPI.CompleteWorkItem(context.Background(), id).Body(body).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.CompleteWorkItem``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CompleteWorkItem`: WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.CompleteWorkItem`: %v\n", resp) + //resp, r, err := apiClient.Beta.WorkItemsAPI.CompleteWorkItem(context.Background(), id).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.CompleteWorkItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CompleteWorkItem`: WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.CompleteWorkItem`: %v\n", resp) } ``` @@ -299,7 +299,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -310,18 +310,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkItemsAPI.GetCompletedWorkItems(context.Background()).Execute() - //resp, r, err := apiClient.Beta.WorkItemsAPI.GetCompletedWorkItems(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetCompletedWorkItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCompletedWorkItems`: []WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetCompletedWorkItems`: %v\n", resp) + //resp, r, err := apiClient.Beta.WorkItemsAPI.GetCompletedWorkItems(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetCompletedWorkItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCompletedWorkItems`: []WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetCompletedWorkItems`: %v\n", resp) } ``` @@ -369,7 +369,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -379,18 +379,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkItemsAPI.GetCountCompletedWorkItems(context.Background()).Execute() - //resp, r, err := apiClient.Beta.WorkItemsAPI.GetCountCompletedWorkItems(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetCountCompletedWorkItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCountCompletedWorkItems`: []WorkItemsCount - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetCountCompletedWorkItems`: %v\n", resp) + //resp, r, err := apiClient.Beta.WorkItemsAPI.GetCountCompletedWorkItems(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetCountCompletedWorkItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCountCompletedWorkItems`: []WorkItemsCount + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetCountCompletedWorkItems`: %v\n", resp) } ``` @@ -436,7 +436,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -444,18 +444,18 @@ import ( func main() { ownerId := `2c91808571bcfcf80171c23e4b4221fc` // string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkItemsAPI.GetCountWorkItems(context.Background()).Execute() - //resp, r, err := apiClient.Beta.WorkItemsAPI.GetCountWorkItems(context.Background()).OwnerId(ownerId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetCountWorkItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCountWorkItems`: WorkItemsCount - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetCountWorkItems`: %v\n", resp) + //resp, r, err := apiClient.Beta.WorkItemsAPI.GetCountWorkItems(context.Background()).OwnerId(ownerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetCountWorkItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCountWorkItems`: WorkItemsCount + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetCountWorkItems`: %v\n", resp) } ``` @@ -506,7 +506,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -515,18 +515,18 @@ func main() { id := `2c9180835d191a86015d28455b4a2329` // string | ID of the work item. # string | ID of the work item. ownerId := `2c9180835d191a86015d28455b4a2329` // string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkItemsAPI.GetWorkItem(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.WorkItemsAPI.GetWorkItem(context.Background(), id).OwnerId(ownerId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetWorkItem``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetWorkItem`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetWorkItem`: %v\n", resp) + //resp, r, err := apiClient.Beta.WorkItemsAPI.GetWorkItem(context.Background(), id).OwnerId(ownerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetWorkItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkItem`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetWorkItem`: %v\n", resp) } ``` @@ -572,7 +572,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -580,18 +580,18 @@ import ( func main() { ownerId := `ef38f94347e94562b5bb8424a56397d8` // string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkItemsAPI.GetWorkItemsSummary(context.Background()).Execute() - //resp, r, err := apiClient.Beta.WorkItemsAPI.GetWorkItemsSummary(context.Background()).OwnerId(ownerId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetWorkItemsSummary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetWorkItemsSummary`: WorkItemsSummary - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetWorkItemsSummary`: %v\n", resp) + //resp, r, err := apiClient.Beta.WorkItemsAPI.GetWorkItemsSummary(context.Background()).OwnerId(ownerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetWorkItemsSummary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkItemsSummary`: WorkItemsSummary + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetWorkItemsSummary`: %v\n", resp) } ``` @@ -640,7 +640,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -651,18 +651,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) ownerId := `ef38f94347e94562b5bb8424a56397d8` // string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkItemsAPI.ListWorkItems(context.Background()).Execute() - //resp, r, err := apiClient.Beta.WorkItemsAPI.ListWorkItems(context.Background()).Limit(limit).Offset(offset).Count(count).OwnerId(ownerId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.ListWorkItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListWorkItems`: []WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.ListWorkItems`: %v\n", resp) + //resp, r, err := apiClient.Beta.WorkItemsAPI.ListWorkItems(context.Background()).Limit(limit).Offset(offset).Count(count).OwnerId(ownerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.ListWorkItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListWorkItems`: []WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.ListWorkItems`: %v\n", resp) } ``` @@ -714,7 +714,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -723,18 +723,18 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item approvalItemId := `1211bcaa32112bcef6122adb21cef1ac` // string | The ID of the approval item. # string | The ID of the approval item. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkItemsAPI.RejectApprovalItem(context.Background(), id, approvalItemId).Execute() - //resp, r, err := apiClient.Beta.WorkItemsAPI.RejectApprovalItem(context.Background(), id, approvalItemId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.RejectApprovalItem``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `RejectApprovalItem`: WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.RejectApprovalItem`: %v\n", resp) + //resp, r, err := apiClient.Beta.WorkItemsAPI.RejectApprovalItem(context.Background(), id, approvalItemId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.RejectApprovalItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RejectApprovalItem`: WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.RejectApprovalItem`: %v\n", resp) } ``` @@ -784,7 +784,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -792,18 +792,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkItemsAPI.RejectApprovalItemsInBulk(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.WorkItemsAPI.RejectApprovalItemsInBulk(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.RejectApprovalItemsInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `RejectApprovalItemsInBulk`: WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.RejectApprovalItemsInBulk`: %v\n", resp) + //resp, r, err := apiClient.Beta.WorkItemsAPI.RejectApprovalItemsInBulk(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.RejectApprovalItemsInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RejectApprovalItemsInBulk`: WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.RejectApprovalItemsInBulk`: %v\n", resp) } ``` @@ -854,7 +854,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -863,24 +863,23 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item requestBody := {fieldName=fieldValue} // map[string]interface{} | Account Selection Data map, keyed on fieldName # map[string]interface{} | Account Selection Data map, keyed on fieldName - - var requestBody beta.RequestBody - if err := json.Unmarshal(requestbody, &requestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var requestBody beta.RequestBody + if err := json.Unmarshal(requestbody, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkItemsAPI.SubmitAccountSelection(context.Background(), id).RequestBody(requestBody).Execute() - //resp, r, err := apiClient.Beta.WorkItemsAPI.SubmitAccountSelection(context.Background(), id).RequestBody(requestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.SubmitAccountSelection``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SubmitAccountSelection`: WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.SubmitAccountSelection`: %v\n", resp) + //resp, r, err := apiClient.Beta.WorkItemsAPI.SubmitAccountSelection(context.Background(), id).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.SubmitAccountSelection``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SubmitAccountSelection`: WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.SubmitAccountSelection`: %v\n", resp) } ``` @@ -931,7 +930,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -944,22 +943,22 @@ func main() { "sendNotifications" : true }`) // WorkItemForward | - - var workItemForward beta.WorkItemForward - if err := json.Unmarshal(workitemforward, &workItemForward); err != nil { - fmt.Println("Error:", err) - return - } - + var workItemForward beta.WorkItemForward + if err := json.Unmarshal(workitemforward, &workItemForward); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.WorkItemsAPI.SubmitForwardWorkItem(context.Background(), id).WorkItemForward(workItemForward).Execute() - //r, err := apiClient.Beta.WorkItemsAPI.SubmitForwardWorkItem(context.Background(), id).WorkItemForward(workItemForward).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.SubmitForwardWorkItem``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.WorkItemsAPI.SubmitForwardWorkItem(context.Background(), id).WorkItemForward(workItemForward).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.SubmitForwardWorkItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/WorkReassignmentAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/WorkReassignmentAPI.md index 2f93bae0c..93db8c51e 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/WorkReassignmentAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/WorkReassignmentAPI.md @@ -73,7 +73,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -87,24 +87,23 @@ func main() { "startDate" : "2022-07-21T11:13:12.345Z" }`) // ConfigurationItemRequest | - - var configurationItemRequest beta.ConfigurationItemRequest - if err := json.Unmarshal(configurationitemrequest, &configurationItemRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var configurationItemRequest beta.ConfigurationItemRequest + if err := json.Unmarshal(configurationitemrequest, &configurationItemRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkReassignmentAPI.CreateReassignmentConfiguration(context.Background()).ConfigurationItemRequest(configurationItemRequest).Execute() - //resp, r, err := apiClient.Beta.WorkReassignmentAPI.CreateReassignmentConfiguration(context.Background()).ConfigurationItemRequest(configurationItemRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.CreateReassignmentConfiguration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateReassignmentConfiguration`: ConfigurationItemResponse - fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.CreateReassignmentConfiguration`: %v\n", resp) + //resp, r, err := apiClient.Beta.WorkReassignmentAPI.CreateReassignmentConfiguration(context.Background()).ConfigurationItemRequest(configurationItemRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.CreateReassignmentConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateReassignmentConfiguration`: ConfigurationItemResponse + fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.CreateReassignmentConfiguration`: %v\n", resp) } ``` @@ -153,7 +152,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -162,16 +161,17 @@ func main() { identityId := `2c91808781a71ddb0181b9090b5c504e` // string | unique identity id # string | unique identity id configType := // ConfigTypeEnum | # ConfigTypeEnum | - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.WorkReassignmentAPI.DeleteReassignmentConfiguration(context.Background(), identityId, configType).Execute() - //r, err := apiClient.Beta.WorkReassignmentAPI.DeleteReassignmentConfiguration(context.Background(), identityId, configType).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.DeleteReassignmentConfiguration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.WorkReassignmentAPI.DeleteReassignmentConfiguration(context.Background(), identityId, configType).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.DeleteReassignmentConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -221,7 +221,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -231,18 +231,18 @@ func main() { configType := accessRequests // ConfigTypeEnum | Reassignment work type # ConfigTypeEnum | Reassignment work type exclusionfilters := []byte(`SELF_REVIEW_DELEGATION`) // []string | Exclusion filters that disable parts of the reassignment evaluation. Possible values are listed below: - `SELF_REVIEW_DELEGATION`: This will exclude delegations of self-review reassignments (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkReassignmentAPI.GetEvaluateReassignmentConfiguration(context.Background(), identityId, configType).Execute() - //resp, r, err := apiClient.Beta.WorkReassignmentAPI.GetEvaluateReassignmentConfiguration(context.Background(), identityId, configType).ExclusionFilters(exclusionFilters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.GetEvaluateReassignmentConfiguration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetEvaluateReassignmentConfiguration`: []EvaluateResponse - fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.GetEvaluateReassignmentConfiguration`: %v\n", resp) + //resp, r, err := apiClient.Beta.WorkReassignmentAPI.GetEvaluateReassignmentConfiguration(context.Background(), identityId, configType).ExclusionFilters(exclusionFilters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.GetEvaluateReassignmentConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetEvaluateReassignmentConfiguration`: []EvaluateResponse + fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.GetEvaluateReassignmentConfiguration`: %v\n", resp) } ``` @@ -281,25 +281,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkReassignmentAPI.GetReassignmentConfigTypes(context.Background()).Execute() - //resp, r, err := apiClient.Beta.WorkReassignmentAPI.GetReassignmentConfigTypes(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.GetReassignmentConfigTypes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetReassignmentConfigTypes`: []ConfigType - fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.GetReassignmentConfigTypes`: %v\n", resp) + //resp, r, err := apiClient.Beta.WorkReassignmentAPI.GetReassignmentConfigTypes(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.GetReassignmentConfigTypes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetReassignmentConfigTypes`: []ConfigType + fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.GetReassignmentConfigTypes`: %v\n", resp) } ``` @@ -346,7 +346,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -354,18 +354,18 @@ import ( func main() { identityId := `2c91808781a71ddb0181b9090b5c504f` // string | unique identity id # string | unique identity id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkReassignmentAPI.GetReassignmentConfiguration(context.Background(), identityId).Execute() - //resp, r, err := apiClient.Beta.WorkReassignmentAPI.GetReassignmentConfiguration(context.Background(), identityId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.GetReassignmentConfiguration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetReassignmentConfiguration`: ConfigurationResponse - fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.GetReassignmentConfiguration`: %v\n", resp) + //resp, r, err := apiClient.Beta.WorkReassignmentAPI.GetReassignmentConfiguration(context.Background(), identityId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.GetReassignmentConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetReassignmentConfiguration`: ConfigurationResponse + fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.GetReassignmentConfiguration`: %v\n", resp) } ``` @@ -404,25 +404,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkReassignmentAPI.GetTenantConfigConfiguration(context.Background()).Execute() - //resp, r, err := apiClient.Beta.WorkReassignmentAPI.GetTenantConfigConfiguration(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.GetTenantConfigConfiguration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetTenantConfigConfiguration`: TenantConfigurationResponse - fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.GetTenantConfigConfiguration`: %v\n", resp) + //resp, r, err := apiClient.Beta.WorkReassignmentAPI.GetTenantConfigConfiguration(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.GetTenantConfigConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTenantConfigConfiguration`: TenantConfigurationResponse + fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.GetTenantConfigConfiguration`: %v\n", resp) } ``` @@ -466,7 +466,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -475,18 +475,18 @@ func main() { limit := 20 // int32 | Max number of results to return. (optional) (default to 20) # int32 | Max number of results to return. (optional) (default to 20) offset := 10 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. Defaults to 0 if not specified. (optional) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. Defaults to 0 if not specified. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkReassignmentAPI.ListReassignmentConfigurations(context.Background()).Execute() - //resp, r, err := apiClient.Beta.WorkReassignmentAPI.ListReassignmentConfigurations(context.Background()).Limit(limit).Offset(offset).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.ListReassignmentConfigurations``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListReassignmentConfigurations`: []ConfigurationResponse - fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.ListReassignmentConfigurations`: %v\n", resp) + //resp, r, err := apiClient.Beta.WorkReassignmentAPI.ListReassignmentConfigurations(context.Background()).Limit(limit).Offset(offset).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.ListReassignmentConfigurations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListReassignmentConfigurations`: []ConfigurationResponse + fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.ListReassignmentConfigurations`: %v\n", resp) } ``` @@ -534,7 +534,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -549,24 +549,23 @@ func main() { "startDate" : "2022-07-21T11:13:12.345Z" }`) // ConfigurationItemRequest | - - var configurationItemRequest beta.ConfigurationItemRequest - if err := json.Unmarshal(configurationitemrequest, &configurationItemRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var configurationItemRequest beta.ConfigurationItemRequest + if err := json.Unmarshal(configurationitemrequest, &configurationItemRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkReassignmentAPI.PutReassignmentConfig(context.Background(), identityId).ConfigurationItemRequest(configurationItemRequest).Execute() - //resp, r, err := apiClient.Beta.WorkReassignmentAPI.PutReassignmentConfig(context.Background(), identityId).ConfigurationItemRequest(configurationItemRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.PutReassignmentConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutReassignmentConfig`: ConfigurationItemResponse - fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.PutReassignmentConfig`: %v\n", resp) + //resp, r, err := apiClient.Beta.WorkReassignmentAPI.PutReassignmentConfig(context.Background(), identityId).ConfigurationItemRequest(configurationItemRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.PutReassignmentConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutReassignmentConfig`: ConfigurationItemResponse + fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.PutReassignmentConfig`: %v\n", resp) } ``` @@ -609,7 +608,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -621,24 +620,23 @@ func main() { } }`) // TenantConfigurationRequest | - - var tenantConfigurationRequest beta.TenantConfigurationRequest - if err := json.Unmarshal(tenantconfigurationrequest, &tenantConfigurationRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var tenantConfigurationRequest beta.TenantConfigurationRequest + if err := json.Unmarshal(tenantconfigurationrequest, &tenantConfigurationRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkReassignmentAPI.PutTenantConfiguration(context.Background()).TenantConfigurationRequest(tenantConfigurationRequest).Execute() - //resp, r, err := apiClient.Beta.WorkReassignmentAPI.PutTenantConfiguration(context.Background()).TenantConfigurationRequest(tenantConfigurationRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.PutTenantConfiguration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutTenantConfiguration`: TenantConfigurationResponse - fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.PutTenantConfiguration`: %v\n", resp) + //resp, r, err := apiClient.Beta.WorkReassignmentAPI.PutTenantConfiguration(context.Background()).TenantConfigurationRequest(tenantConfigurationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.PutTenantConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutTenantConfiguration`: TenantConfigurationResponse + fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.PutTenantConfiguration`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Methods/WorkflowsAPI.md b/docs/tools/sdk/go/Reference/Beta/Methods/WorkflowsAPI.md index ecc2efc70..970980c88 100644 --- a/docs/tools/sdk/go/Reference/Beta/Methods/WorkflowsAPI.md +++ b/docs/tools/sdk/go/Reference/Beta/Methods/WorkflowsAPI.md @@ -77,7 +77,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -85,16 +85,17 @@ import ( func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | The workflow execution ID # string | The workflow execution ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.WorkflowsAPI.CancelWorkflowExecution(context.Background(), id).Execute() - //r, err := apiClient.Beta.WorkflowsAPI.CancelWorkflowExecution(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.CancelWorkflowExecution``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.WorkflowsAPI.CancelWorkflowExecution(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.CancelWorkflowExecution``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -137,7 +138,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -145,24 +146,23 @@ import ( func main() { createworkflowrequest := []byte(`{name=Send Email, owner={type=IDENTITY, id=2c91808568c529c60168cca6f90c1313, name=William Wilson}, description=Send an email to the identity who's attributes changed., definition={start=Send Email Test, steps={Send Email={actionId=sp:send-email, attributes={body=This is a test, from=sailpoint@sailpoint.com, recipientId.$=$.identity.id, subject=test}, nextStep=success, selectResult=null, type=action}, success={type=success}}}, enabled=false, trigger={type=EVENT, attributes={id=idn:identity-attributes-changed, filter=$.changes[?(@.attribute == 'manager')]}}}`) // CreateWorkflowRequest | - - var createWorkflowRequest beta.CreateWorkflowRequest - if err := json.Unmarshal(createworkflowrequest, &createWorkflowRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var createWorkflowRequest beta.CreateWorkflowRequest + if err := json.Unmarshal(createworkflowrequest, &createWorkflowRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkflowsAPI.CreateWorkflow(context.Background()).CreateWorkflowRequest(createWorkflowRequest).Execute() - //resp, r, err := apiClient.Beta.WorkflowsAPI.CreateWorkflow(context.Background()).CreateWorkflowRequest(createWorkflowRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.CreateWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateWorkflow`: Workflow - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.CreateWorkflow`: %v\n", resp) + //resp, r, err := apiClient.Beta.WorkflowsAPI.CreateWorkflow(context.Background()).CreateWorkflowRequest(createWorkflowRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.CreateWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateWorkflow`: Workflow + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.CreateWorkflow`: %v\n", resp) } ``` @@ -209,7 +209,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -217,16 +217,17 @@ import ( func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the Workflow # string | Id of the Workflow - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.WorkflowsAPI.DeleteWorkflow(context.Background(), id).Execute() - //r, err := apiClient.Beta.WorkflowsAPI.DeleteWorkflow(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.DeleteWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.Beta.WorkflowsAPI.DeleteWorkflow(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.DeleteWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -274,7 +275,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -283,18 +284,18 @@ func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow workflowMetrics := false // bool | disable workflow metrics (optional) (default to true) # bool | disable workflow metrics (optional) (default to true) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkflowsAPI.GetWorkflow(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.WorkflowsAPI.GetWorkflow(context.Background(), id).WorkflowMetrics(workflowMetrics).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetWorkflow`: Workflow - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflow`: %v\n", resp) + //resp, r, err := apiClient.Beta.WorkflowsAPI.GetWorkflow(context.Background(), id).WorkflowMetrics(workflowMetrics).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkflow`: Workflow + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflow`: %v\n", resp) } ``` @@ -341,7 +342,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -349,18 +350,18 @@ import ( func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Workflow execution ID. # string | Workflow execution ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkflowsAPI.GetWorkflowExecution(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.WorkflowsAPI.GetWorkflowExecution(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflowExecution``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetWorkflowExecution`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflowExecution`: %v\n", resp) + //resp, r, err := apiClient.Beta.WorkflowsAPI.GetWorkflowExecution(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflowExecution``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkflowExecution`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflowExecution`: %v\n", resp) } ``` @@ -407,7 +408,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -415,18 +416,18 @@ import ( func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow execution # string | Id of the workflow execution - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkflowsAPI.GetWorkflowExecutionHistory(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.WorkflowsAPI.GetWorkflowExecutionHistory(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflowExecutionHistory``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetWorkflowExecutionHistory`: []WorkflowExecutionEvent - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflowExecutionHistory`: %v\n", resp) + //resp, r, err := apiClient.Beta.WorkflowsAPI.GetWorkflowExecutionHistory(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflowExecutionHistory``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkflowExecutionHistory`: []WorkflowExecutionEvent + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflowExecutionHistory`: %v\n", resp) } ``` @@ -487,7 +488,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -499,18 +500,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) filters := `status eq "Failed"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **startTime**: *eq, lt, le, gt, ge* **status**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **startTime**: *eq, lt, le, gt, ge* **status**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkflowsAPI.GetWorkflowExecutions(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.WorkflowsAPI.GetWorkflowExecutions(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflowExecutions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetWorkflowExecutions`: []WorkflowExecution - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflowExecutions`: %v\n", resp) + //resp, r, err := apiClient.Beta.WorkflowsAPI.GetWorkflowExecutions(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflowExecutions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkflowExecutions`: []WorkflowExecution + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflowExecutions`: %v\n", resp) } ``` @@ -554,7 +555,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -563,18 +564,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkflowsAPI.ListCompleteWorkflowLibrary(context.Background()).Execute() - //resp, r, err := apiClient.Beta.WorkflowsAPI.ListCompleteWorkflowLibrary(context.Background()).Limit(limit).Offset(offset).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListCompleteWorkflowLibrary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListCompleteWorkflowLibrary`: []ListCompleteWorkflowLibrary200ResponseInner - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListCompleteWorkflowLibrary`: %v\n", resp) + //resp, r, err := apiClient.Beta.WorkflowsAPI.ListCompleteWorkflowLibrary(context.Background()).Limit(limit).Offset(offset).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListCompleteWorkflowLibrary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCompleteWorkflowLibrary`: []ListCompleteWorkflowLibrary200ResponseInner + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListCompleteWorkflowLibrary`: %v\n", resp) } ``` @@ -619,7 +620,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -629,18 +630,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) filters := `id eq "sp:create-campaign"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkflowsAPI.ListWorkflowLibraryActions(context.Background()).Execute() - //resp, r, err := apiClient.Beta.WorkflowsAPI.ListWorkflowLibraryActions(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflowLibraryActions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListWorkflowLibraryActions`: []WorkflowLibraryAction - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflowLibraryActions`: %v\n", resp) + //resp, r, err := apiClient.Beta.WorkflowsAPI.ListWorkflowLibraryActions(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflowLibraryActions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListWorkflowLibraryActions`: []WorkflowLibraryAction + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflowLibraryActions`: %v\n", resp) } ``` @@ -679,25 +680,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkflowsAPI.ListWorkflowLibraryOperators(context.Background()).Execute() - //resp, r, err := apiClient.Beta.WorkflowsAPI.ListWorkflowLibraryOperators(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflowLibraryOperators``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListWorkflowLibraryOperators`: []WorkflowLibraryOperator - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflowLibraryOperators`: %v\n", resp) + //resp, r, err := apiClient.Beta.WorkflowsAPI.ListWorkflowLibraryOperators(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflowLibraryOperators``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListWorkflowLibraryOperators`: []WorkflowLibraryOperator + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflowLibraryOperators`: %v\n", resp) } ``` @@ -742,7 +743,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -752,18 +753,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) filters := `id eq "idn:identity-attributes-changed"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkflowsAPI.ListWorkflowLibraryTriggers(context.Background()).Execute() - //resp, r, err := apiClient.Beta.WorkflowsAPI.ListWorkflowLibraryTriggers(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflowLibraryTriggers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListWorkflowLibraryTriggers`: []WorkflowLibraryTrigger - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflowLibraryTriggers`: %v\n", resp) + //resp, r, err := apiClient.Beta.WorkflowsAPI.ListWorkflowLibraryTriggers(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflowLibraryTriggers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListWorkflowLibraryTriggers`: []WorkflowLibraryTrigger + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflowLibraryTriggers`: %v\n", resp) } ``` @@ -809,7 +810,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -820,18 +821,18 @@ func main() { triggerId := `idn:identity-created` // string | Trigger ID (optional) # string | Trigger ID (optional) connectorInstanceId := `28541fec-bb81-4ad4-88ef-0f7d213adcad` // string | Connector Instance ID (optional) # string | Connector Instance ID (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkflowsAPI.ListWorkflows(context.Background()).Execute() - //resp, r, err := apiClient.Beta.WorkflowsAPI.ListWorkflows(context.Background()).Limit(limit).Offset(offset).TriggerId(triggerId).ConnectorInstanceId(connectorInstanceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflows``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListWorkflows`: []Workflow - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflows`: %v\n", resp) + //resp, r, err := apiClient.Beta.WorkflowsAPI.ListWorkflows(context.Background()).Limit(limit).Offset(offset).TriggerId(triggerId).ConnectorInstanceId(connectorInstanceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflows``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListWorkflows`: []Workflow + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflows`: %v\n", resp) } ``` @@ -879,7 +880,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -888,24 +889,23 @@ func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the Workflow # string | Id of the Workflow jsonpatchoperation := []byte(`[{op=replace, path=/name, value=Send Email}, {op=replace, path=/owner, value={type=IDENTITY, id=2c91808568c529c60168cca6f90c1313, name=William Wilson}}, {op=replace, path=/description, value=Send an email to the identity who's attributes changed.}, {op=replace, path=/enabled, value=false}, {op=replace, path=/definition, value={start=Send Email Test, steps={Send Email={actionId=sp:send-email, attributes={body=This is a test, from=sailpoint@sailpoint.com, recipientId.$=$.identity.id, subject=test}, nextStep=success, selectResult=null, type=action}, success={type=success}}}}, {op=replace, path=/trigger, value={type=EVENT, attributes={id=idn:identity-attributes-changed}}}]`) // []JsonPatchOperation | - - var jsonPatchOperation beta.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []beta.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkflowsAPI.PatchWorkflow(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.Beta.WorkflowsAPI.PatchWorkflow(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.PatchWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchWorkflow`: Workflow - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.PatchWorkflow`: %v\n", resp) + //resp, r, err := apiClient.Beta.WorkflowsAPI.PatchWorkflow(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.PatchWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchWorkflow`: Workflow + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.PatchWorkflow`: %v\n", resp) } ``` @@ -953,7 +953,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -962,18 +962,18 @@ func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow postexternalexecuteworkflowrequest := []byte(``) // PostExternalExecuteWorkflowRequest | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkflowsAPI.PostExternalExecuteWorkflow(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.WorkflowsAPI.PostExternalExecuteWorkflow(context.Background(), id).PostExternalExecuteWorkflowRequest(postExternalExecuteWorkflowRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.PostExternalExecuteWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PostExternalExecuteWorkflow`: PostExternalExecuteWorkflow200Response - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.PostExternalExecuteWorkflow`: %v\n", resp) + //resp, r, err := apiClient.Beta.WorkflowsAPI.PostExternalExecuteWorkflow(context.Background(), id).PostExternalExecuteWorkflowRequest(postExternalExecuteWorkflowRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.PostExternalExecuteWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PostExternalExecuteWorkflow`: PostExternalExecuteWorkflow200Response + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.PostExternalExecuteWorkflow`: %v\n", resp) } ``` @@ -1020,7 +1020,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1028,18 +1028,18 @@ import ( func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkflowsAPI.PostWorkflowExternalTrigger(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.WorkflowsAPI.PostWorkflowExternalTrigger(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.PostWorkflowExternalTrigger``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PostWorkflowExternalTrigger`: WorkflowOAuthClient - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.PostWorkflowExternalTrigger`: %v\n", resp) + //resp, r, err := apiClient.Beta.WorkflowsAPI.PostWorkflowExternalTrigger(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.PostWorkflowExternalTrigger``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PostWorkflowExternalTrigger`: WorkflowOAuthClient + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.PostWorkflowExternalTrigger`: %v\n", resp) } ``` @@ -1087,7 +1087,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1129,24 +1129,23 @@ func main() { "enabled" : false }`) // WorkflowBody | - - var workflowBody beta.WorkflowBody - if err := json.Unmarshal(workflowbody, &workflowBody); err != nil { - fmt.Println("Error:", err) - return - } - + var workflowBody beta.WorkflowBody + if err := json.Unmarshal(workflowbody, &workflowBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkflowsAPI.PutWorkflow(context.Background(), id).WorkflowBody(workflowBody).Execute() - //resp, r, err := apiClient.Beta.WorkflowsAPI.PutWorkflow(context.Background(), id).WorkflowBody(workflowBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.PutWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutWorkflow`: Workflow - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.PutWorkflow`: %v\n", resp) + //resp, r, err := apiClient.Beta.WorkflowsAPI.PutWorkflow(context.Background(), id).WorkflowBody(workflowBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.PutWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutWorkflow`: Workflow + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.PutWorkflow`: %v\n", resp) } ``` @@ -1194,7 +1193,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1203,18 +1202,18 @@ func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow testexternalexecuteworkflowrequest := []byte(``) // TestExternalExecuteWorkflowRequest | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkflowsAPI.TestExternalExecuteWorkflow(context.Background(), id).Execute() - //resp, r, err := apiClient.Beta.WorkflowsAPI.TestExternalExecuteWorkflow(context.Background(), id).TestExternalExecuteWorkflowRequest(testExternalExecuteWorkflowRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.TestExternalExecuteWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `TestExternalExecuteWorkflow`: TestExternalExecuteWorkflow200Response - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.TestExternalExecuteWorkflow`: %v\n", resp) + //resp, r, err := apiClient.Beta.WorkflowsAPI.TestExternalExecuteWorkflow(context.Background(), id).TestExternalExecuteWorkflowRequest(testExternalExecuteWorkflowRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.TestExternalExecuteWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TestExternalExecuteWorkflow`: TestExternalExecuteWorkflow200Response + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.TestExternalExecuteWorkflow`: %v\n", resp) } ``` @@ -1264,7 +1263,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1273,24 +1272,23 @@ func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow testworkflowrequest := []byte(`{input={identity={id=ee769173319b41d19ccec6cea52f237b, name=john.doe, type=IDENTITY}, changes=[{attribute=department, oldValue=sales, newValue=marketing}, {attribute=manager, oldValue={id=ee769173319b41d19ccec6c235423237b, name=nice.guy, type=IDENTITY}, newValue={id=ee769173319b41d19ccec6c235423236c, name=mean.guy, type=IDENTITY}}, {attribute=email, oldValue=john.doe@hotmail.com, newValue=john.doe@gmail.com}]}}`) // TestWorkflowRequest | - - var testWorkflowRequest beta.TestWorkflowRequest - if err := json.Unmarshal(testworkflowrequest, &testWorkflowRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var testWorkflowRequest beta.TestWorkflowRequest + if err := json.Unmarshal(testworkflowrequest, &testWorkflowRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkflowsAPI.TestWorkflow(context.Background(), id).TestWorkflowRequest(testWorkflowRequest).Execute() - //resp, r, err := apiClient.Beta.WorkflowsAPI.TestWorkflow(context.Background(), id).TestWorkflowRequest(testWorkflowRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.TestWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `TestWorkflow`: TestWorkflow200Response - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.TestWorkflow`: %v\n", resp) + //resp, r, err := apiClient.Beta.WorkflowsAPI.TestWorkflow(context.Background(), id).TestWorkflowRequest(testWorkflowRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.TestWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TestWorkflow`: TestWorkflow200Response + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.TestWorkflow`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/Beta/Models/AccessRequest.md b/docs/tools/sdk/go/Reference/Beta/Models/AccessRequest.md index 1c1d003e0..c2bcfd728 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/AccessRequest.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/AccessRequest.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes **RequestType** | Pointer to [**NullableAccessRequestType**](access-request-type) | | [optional] **RequestedItems** | [**[]AccessRequestItem**](access-request-item) | | **ClientMetadata** | Pointer to **map[string]string** | Arbitrary key-value pairs. They will never be processed by the IdentityNow system but will be returned on associated APIs such as /account-activities. | [optional] -**RequestedForWithRequestedItems** | Pointer to [**[]RequestedForDtoRef**](requested-for-dto-ref) | Additional submit data structure with requestedFor containing requestedItems allowing distinction for each request item and Identity. * Can only be used when 'requestedFor' and 'requestedItems' are not separately provided * Adds ability to specify which account the user wants the access on, in case they have multiple accounts on a source * Allows the ability to request items with different remove dates * Also allows different combinations of request items and identities in the same request | [optional] +**RequestedForWithRequestedItems** | Pointer to [**[]RequestedForDtoRef**](requested-for-dto-ref) | Additional submit data structure with requestedFor containing requestedItems allowing distinction for each request item and Identity. * Can only be used when 'requestedFor' and 'requestedItems' are not separately provided * Adds ability to specify which account the user wants the access on, in case they have multiple accounts on a source * Allows the ability to request items with different remove dates * Also allows different combinations of request items and identities in the same request * Only for use in GRANT_ACCESS type requests | [optional] ## Methods diff --git a/docs/tools/sdk/go/Reference/Beta/Models/AccessRequestItem.md b/docs/tools/sdk/go/Reference/Beta/Models/AccessRequestItem.md index 87c089333..7231d1697 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/AccessRequestItem.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/AccessRequestItem.md @@ -21,7 +21,7 @@ Name | Type | Description | Notes **ClientMetadata** | Pointer to **map[string]string** | Arbitrary key-value pairs. They will never be processed by the IdentityNow system but will be returned on associated APIs such as /account-activities and /access-request-status. | [optional] **RemoveDate** | Pointer to **SailPointTime** | The date the role or access profile or entitlement is no longer assigned to the specified identity. Also known as the expiration date. * Specify a date in the future. * The current SLA for the deprovisioning is 24 hours. * This date can be modified to either extend or decrease the duration of access item assignments for the specified identity. You can change the expiration date for requests for yourself or direct reports, but you cannot remove an expiration date on an already approved item. If the access request has not been approved, you can cancel it and submit a new one without the expiration. If it has already been approved, then you have to revoke the access and then re-request without the expiration. | [optional] **AssignmentId** | Pointer to **NullableString** | The assignmentId for a specific role assignment on the identity. This id is used to revoke that specific roleAssignment on that identity. * For use with REVOKE_ACCESS requests for roles for identities with multiple accounts on a single source. | [optional] -**NativeIdentity** | Pointer to **NullableString** | The 'distinguishedName' field for an account on the identity, also called nativeIdentity. This nativeIdentity is used to revoke a specific attributeAssignment on the identity. * For use with REVOKE_ACCESS requests for entitlements for identities with multiple accounts on a single source. | [optional] +**NativeIdentity** | Pointer to **NullableString** | The unique identifier for an account on the identity, designated as the account ID attribute in the source's account schema. This is used to revoke a specific attributeAssignment on the identity. * For use with REVOKE_ACCESS requests for entitlements for identities with multiple accounts on a single source. | [optional] ## Methods diff --git a/docs/tools/sdk/go/Reference/Beta/Models/EntitlementAccessRequestConfig.md b/docs/tools/sdk/go/Reference/Beta/Models/EntitlementAccessRequestConfig.md index 49b3af0b5..f2e06bbf6 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/EntitlementAccessRequestConfig.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/EntitlementAccessRequestConfig.md @@ -18,6 +18,7 @@ Name | Type | Description | Notes **ApprovalSchemes** | Pointer to [**[]EntitlementApprovalScheme**](entitlement-approval-scheme) | Ordered list of approval steps for the access request. Empty when no approval is required. | [optional] **RequestCommentRequired** | Pointer to **bool** | If the requester must provide a comment during access request. | [optional] [default to false] **DenialCommentRequired** | Pointer to **bool** | If the reviewer must provide a comment when denying the access request. | [optional] [default to false] +**ReauthorizationRequired** | Pointer to **bool** | Is Reauthorization Required | [optional] [default to false] ## Methods @@ -113,4 +114,29 @@ SetDenialCommentRequired sets DenialCommentRequired field to given value. HasDenialCommentRequired returns a boolean if a field has been set. +### GetReauthorizationRequired + +`func (o *EntitlementAccessRequestConfig) GetReauthorizationRequired() bool` + +GetReauthorizationRequired returns the ReauthorizationRequired field if non-nil, zero value otherwise. + +### GetReauthorizationRequiredOk + +`func (o *EntitlementAccessRequestConfig) GetReauthorizationRequiredOk() (*bool, bool)` + +GetReauthorizationRequiredOk returns a tuple with the ReauthorizationRequired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReauthorizationRequired + +`func (o *EntitlementAccessRequestConfig) SetReauthorizationRequired(v bool)` + +SetReauthorizationRequired sets ReauthorizationRequired field to given value. + +### HasReauthorizationRequired + +`func (o *EntitlementAccessRequestConfig) HasReauthorizationRequired() bool` + +HasReauthorizationRequired returns a boolean if a field has been set. + diff --git a/docs/tools/sdk/go/Reference/Beta/Models/EntitlementRequestConfig.md b/docs/tools/sdk/go/Reference/Beta/Models/EntitlementRequestConfig.md index 7feb51e32..266e0a931 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/EntitlementRequestConfig.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/EntitlementRequestConfig.md @@ -16,6 +16,7 @@ tags: ['SDK', 'Software Development Kit', 'EntitlementRequestConfig', 'BetaEntit Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **AccessRequestConfig** | Pointer to [**EntitlementAccessRequestConfig**](entitlement-access-request-config) | | [optional] +**RevocationRequestConfig** | Pointer to [**EntitlementRevocationRequestConfig**](entitlement-revocation-request-config) | | [optional] ## Methods @@ -61,4 +62,29 @@ SetAccessRequestConfig sets AccessRequestConfig field to given value. HasAccessRequestConfig returns a boolean if a field has been set. +### GetRevocationRequestConfig + +`func (o *EntitlementRequestConfig) GetRevocationRequestConfig() EntitlementRevocationRequestConfig` + +GetRevocationRequestConfig returns the RevocationRequestConfig field if non-nil, zero value otherwise. + +### GetRevocationRequestConfigOk + +`func (o *EntitlementRequestConfig) GetRevocationRequestConfigOk() (*EntitlementRevocationRequestConfig, bool)` + +GetRevocationRequestConfigOk returns a tuple with the RevocationRequestConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRevocationRequestConfig + +`func (o *EntitlementRequestConfig) SetRevocationRequestConfig(v EntitlementRevocationRequestConfig)` + +SetRevocationRequestConfig sets RevocationRequestConfig field to given value. + +### HasRevocationRequestConfig + +`func (o *EntitlementRequestConfig) HasRevocationRequestConfig() bool` + +HasRevocationRequestConfig returns a boolean if a field has been set. + diff --git a/docs/tools/sdk/go/Reference/Beta/Models/EntitlementRevocationRequestConfig.md b/docs/tools/sdk/go/Reference/Beta/Models/EntitlementRevocationRequestConfig.md new file mode 100644 index 000000000..cdb362aa5 --- /dev/null +++ b/docs/tools/sdk/go/Reference/Beta/Models/EntitlementRevocationRequestConfig.md @@ -0,0 +1,64 @@ +--- +id: beta-entitlement-revocation-request-config +title: EntitlementRevocationRequestConfig +pagination_label: EntitlementRevocationRequestConfig +sidebar_label: EntitlementRevocationRequestConfig +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'EntitlementRevocationRequestConfig', 'BetaEntitlementRevocationRequestConfig'] +slug: /tools/sdk/go/beta/models/entitlement-revocation-request-config +tags: ['SDK', 'Software Development Kit', 'EntitlementRevocationRequestConfig', 'BetaEntitlementRevocationRequestConfig'] +--- + +# EntitlementRevocationRequestConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApprovalSchemes** | Pointer to [**[]EntitlementApprovalScheme**](entitlement-approval-scheme) | Ordered list of approval steps for the access request. Empty when no approval is required. | [optional] + +## Methods + +### NewEntitlementRevocationRequestConfig + +`func NewEntitlementRevocationRequestConfig() *EntitlementRevocationRequestConfig` + +NewEntitlementRevocationRequestConfig instantiates a new EntitlementRevocationRequestConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEntitlementRevocationRequestConfigWithDefaults + +`func NewEntitlementRevocationRequestConfigWithDefaults() *EntitlementRevocationRequestConfig` + +NewEntitlementRevocationRequestConfigWithDefaults instantiates a new EntitlementRevocationRequestConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApprovalSchemes + +`func (o *EntitlementRevocationRequestConfig) GetApprovalSchemes() []EntitlementApprovalScheme` + +GetApprovalSchemes returns the ApprovalSchemes field if non-nil, zero value otherwise. + +### GetApprovalSchemesOk + +`func (o *EntitlementRevocationRequestConfig) GetApprovalSchemesOk() (*[]EntitlementApprovalScheme, bool)` + +GetApprovalSchemesOk returns a tuple with the ApprovalSchemes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApprovalSchemes + +`func (o *EntitlementRevocationRequestConfig) SetApprovalSchemes(v []EntitlementApprovalScheme)` + +SetApprovalSchemes sets ApprovalSchemes field to given value. + +### HasApprovalSchemes + +`func (o *EntitlementRevocationRequestConfig) HasApprovalSchemes() bool` + +HasApprovalSchemes returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/Beta/Models/RequestedItemDtoRef.md b/docs/tools/sdk/go/Reference/Beta/Models/RequestedItemDtoRef.md index 0a49d7769..19e5603a8 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/RequestedItemDtoRef.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/RequestedItemDtoRef.md @@ -20,8 +20,6 @@ Name | Type | Description | Notes **Comment** | Pointer to **string** | Comment provided by requester. * Comment is required when the request is of type Revoke Access. | [optional] **ClientMetadata** | Pointer to **map[string]string** | Arbitrary key-value pairs. They will never be processed by the IdentityNow system but will be returned on associated APIs such as /account-activities and /access-request-status. | [optional] **RemoveDate** | Pointer to **SailPointTime** | The date the role or access profile or entitlement is no longer assigned to the specified identity. Also known as the expiration date. * Specify a date in the future. * The current SLA for the deprovisioning is 24 hours. * This date can be modified to either extend or decrease the duration of access item assignments for the specified identity. You can change the expiration date for requests for yourself or direct reports, but you cannot remove an expiration date on an already approved item. If the access request has not been approved, you can cancel it and submit a new one without the expiration. If it has already been approved, then you have to revoke the access and then re-request without the expiration. | [optional] -**AssignmentId** | Pointer to **NullableString** | The assignmentId for a specific role assignment on the identity. This id is used to revoke that specific roleAssignment on that identity. * For use with REVOKE_ACCESS requests for roles for identities with multiple accounts on a single source. | [optional] -**NativeIdentity** | Pointer to **NullableString** | The 'distinguishedName' field for an account on the identity, also called nativeIdentity. This nativeIdentity is used to revoke a specific attributeAssignment on the identity. * For use with REVOKE_ACCESS requests for entitlements for identities with multiple accounts on a single source. | [optional] **AccountSelection** | Pointer to [**[]SourceItemRef**](source-item-ref) | The accounts where the access item will be provisioned to * Includes selections performed by the user in the event of multiple accounts existing on the same source * Also includes details for sources where user only has one account | [optional] ## Methods @@ -158,76 +156,6 @@ SetRemoveDate sets RemoveDate field to given value. HasRemoveDate returns a boolean if a field has been set. -### GetAssignmentId - -`func (o *RequestedItemDtoRef) GetAssignmentId() string` - -GetAssignmentId returns the AssignmentId field if non-nil, zero value otherwise. - -### GetAssignmentIdOk - -`func (o *RequestedItemDtoRef) GetAssignmentIdOk() (*string, bool)` - -GetAssignmentIdOk returns a tuple with the AssignmentId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAssignmentId - -`func (o *RequestedItemDtoRef) SetAssignmentId(v string)` - -SetAssignmentId sets AssignmentId field to given value. - -### HasAssignmentId - -`func (o *RequestedItemDtoRef) HasAssignmentId() bool` - -HasAssignmentId returns a boolean if a field has been set. - -### SetAssignmentIdNil - -`func (o *RequestedItemDtoRef) SetAssignmentIdNil(b bool)` - - SetAssignmentIdNil sets the value for AssignmentId to be an explicit nil - -### UnsetAssignmentId -`func (o *RequestedItemDtoRef) UnsetAssignmentId()` - -UnsetAssignmentId ensures that no value is present for AssignmentId, not even an explicit nil -### GetNativeIdentity - -`func (o *RequestedItemDtoRef) GetNativeIdentity() string` - -GetNativeIdentity returns the NativeIdentity field if non-nil, zero value otherwise. - -### GetNativeIdentityOk - -`func (o *RequestedItemDtoRef) GetNativeIdentityOk() (*string, bool)` - -GetNativeIdentityOk returns a tuple with the NativeIdentity field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNativeIdentity - -`func (o *RequestedItemDtoRef) SetNativeIdentity(v string)` - -SetNativeIdentity sets NativeIdentity field to given value. - -### HasNativeIdentity - -`func (o *RequestedItemDtoRef) HasNativeIdentity() bool` - -HasNativeIdentity returns a boolean if a field has been set. - -### SetNativeIdentityNil - -`func (o *RequestedItemDtoRef) SetNativeIdentityNil(b bool)` - - SetNativeIdentityNil sets the value for NativeIdentity to be an explicit nil - -### UnsetNativeIdentity -`func (o *RequestedItemDtoRef) UnsetNativeIdentity()` - -UnsetNativeIdentity ensures that no value is present for NativeIdentity, not even an explicit nil ### GetAccountSelection `func (o *RequestedItemDtoRef) GetAccountSelection() []SourceItemRef` diff --git a/docs/tools/sdk/go/Reference/Beta/Models/SourceEntitlementRequestConfig.md b/docs/tools/sdk/go/Reference/Beta/Models/SourceEntitlementRequestConfig.md index 61057b293..2f7cd2ad6 100644 --- a/docs/tools/sdk/go/Reference/Beta/Models/SourceEntitlementRequestConfig.md +++ b/docs/tools/sdk/go/Reference/Beta/Models/SourceEntitlementRequestConfig.md @@ -16,6 +16,7 @@ tags: ['SDK', 'Software Development Kit', 'SourceEntitlementRequestConfig', 'Bet Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **AccessRequestConfig** | Pointer to [**EntitlementAccessRequestConfig**](entitlement-access-request-config) | | [optional] +**RevocationRequestConfig** | Pointer to [**EntitlementRevocationRequestConfig**](entitlement-revocation-request-config) | | [optional] ## Methods @@ -61,4 +62,29 @@ SetAccessRequestConfig sets AccessRequestConfig field to given value. HasAccessRequestConfig returns a boolean if a field has been set. +### GetRevocationRequestConfig + +`func (o *SourceEntitlementRequestConfig) GetRevocationRequestConfig() EntitlementRevocationRequestConfig` + +GetRevocationRequestConfig returns the RevocationRequestConfig field if non-nil, zero value otherwise. + +### GetRevocationRequestConfigOk + +`func (o *SourceEntitlementRequestConfig) GetRevocationRequestConfigOk() (*EntitlementRevocationRequestConfig, bool)` + +GetRevocationRequestConfigOk returns a tuple with the RevocationRequestConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRevocationRequestConfig + +`func (o *SourceEntitlementRequestConfig) SetRevocationRequestConfig(v EntitlementRevocationRequestConfig)` + +SetRevocationRequestConfig sets RevocationRequestConfig field to given value. + +### HasRevocationRequestConfig + +`func (o *SourceEntitlementRequestConfig) HasRevocationRequestConfig() bool` + +HasRevocationRequestConfig returns a boolean if a field has been set. + diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/AccessModelMetadataAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/AccessModelMetadataAPI.md index 2d4be1579..11202658e 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/AccessModelMetadataAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/AccessModelMetadataAPI.md @@ -84,7 +84,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -93,18 +93,18 @@ func main() { key := `iscPrivacy` // string | Technical name of the Attribute. # string | Technical name of the Attribute. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessModelMetadataAPI.GetAccessModelMetadataAttribute(context.Background(), key).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.AccessModelMetadataAPI.GetAccessModelMetadataAttribute(context.Background(), key).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessModelMetadataAPI.GetAccessModelMetadataAttribute``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessModelMetadataAttribute`: AttributeDTO - fmt.Fprintf(os.Stdout, "Response from `AccessModelMetadataAPI.GetAccessModelMetadataAttribute`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccessModelMetadataAPI.GetAccessModelMetadataAttribute(context.Background(), key).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessModelMetadataAPI.GetAccessModelMetadataAttribute``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessModelMetadataAttribute`: AttributeDTO + fmt.Fprintf(os.Stdout, "Response from `AccessModelMetadataAPI.GetAccessModelMetadataAttribute`: %v\n", resp) } ``` @@ -165,7 +165,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -175,18 +175,18 @@ func main() { value := `public` // string | Technical name of the Attribute value. # string | Technical name of the Attribute value. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessModelMetadataAPI.GetAccessModelMetadataAttributeValue(context.Background(), key, value).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.AccessModelMetadataAPI.GetAccessModelMetadataAttributeValue(context.Background(), key, value).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessModelMetadataAPI.GetAccessModelMetadataAttributeValue``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessModelMetadataAttributeValue`: AttributeValueDTO - fmt.Fprintf(os.Stdout, "Response from `AccessModelMetadataAPI.GetAccessModelMetadataAttributeValue`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccessModelMetadataAPI.GetAccessModelMetadataAttributeValue(context.Background(), key, value).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessModelMetadataAPI.GetAccessModelMetadataAttributeValue``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessModelMetadataAttributeValue`: AttributeValueDTO + fmt.Fprintf(os.Stdout, "Response from `AccessModelMetadataAPI.GetAccessModelMetadataAttributeValue`: %v\n", resp) } ``` @@ -241,7 +241,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -250,18 +250,18 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") filters := `name eq "Privacy"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *eq* **type**: *eq* **status**: *eq* **objectTypes**: *eq* Supported composite operators: *and* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *eq* **type**: *eq* **status**: *eq* **objectTypes**: *eq* Supported composite operators: *and* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessModelMetadataAPI.ListAccessModelMetadataAttribute(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.AccessModelMetadataAPI.ListAccessModelMetadataAttribute(context.Background()).XSailPointExperimental(xSailPointExperimental).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessModelMetadataAPI.ListAccessModelMetadataAttribute``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAccessModelMetadataAttribute`: []AttributeDTO - fmt.Fprintf(os.Stdout, "Response from `AccessModelMetadataAPI.ListAccessModelMetadataAttribute`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccessModelMetadataAPI.ListAccessModelMetadataAttribute(context.Background()).XSailPointExperimental(xSailPointExperimental).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessModelMetadataAPI.ListAccessModelMetadataAttribute``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAccessModelMetadataAttribute`: []AttributeDTO + fmt.Fprintf(os.Stdout, "Response from `AccessModelMetadataAPI.ListAccessModelMetadataAttribute`: %v\n", resp) } ``` @@ -320,7 +320,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -329,18 +329,18 @@ func main() { key := `iscPrivacy` // string | Technical name of the Attribute. # string | Technical name of the Attribute. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessModelMetadataAPI.ListAccessModelMetadataAttributeValue(context.Background(), key).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.AccessModelMetadataAPI.ListAccessModelMetadataAttributeValue(context.Background(), key).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessModelMetadataAPI.ListAccessModelMetadataAttributeValue``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAccessModelMetadataAttributeValue`: []AttributeValueDTO - fmt.Fprintf(os.Stdout, "Response from `AccessModelMetadataAPI.ListAccessModelMetadataAttributeValue`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccessModelMetadataAPI.ListAccessModelMetadataAttributeValue(context.Background(), key).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessModelMetadataAPI.ListAccessModelMetadataAttributeValue``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAccessModelMetadataAttributeValue`: []AttributeValueDTO + fmt.Fprintf(os.Stdout, "Response from `AccessModelMetadataAPI.ListAccessModelMetadataAttributeValue`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/AccessProfilesAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/AccessProfilesAPI.md index 49e036734..287c2cb00 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/AccessProfilesAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/AccessProfilesAPI.md @@ -99,7 +99,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -192,24 +192,23 @@ func main() { "requestable" : true }`) // AccessProfile | - - var accessProfile v2024.AccessProfile - if err := json.Unmarshal(accessprofile, &accessProfile); err != nil { - fmt.Println("Error:", err) - return - } - + var accessProfile v2024.AccessProfile + if err := json.Unmarshal(accessprofile, &accessProfile); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessProfilesAPI.CreateAccessProfile(context.Background()).AccessProfile(accessProfile).Execute() - //resp, r, err := apiClient.V2024.AccessProfilesAPI.CreateAccessProfile(context.Background()).AccessProfile(accessProfile).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.CreateAccessProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateAccessProfile`: AccessProfile - fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.CreateAccessProfile`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccessProfilesAPI.CreateAccessProfile(context.Background()).AccessProfile(accessProfile).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.CreateAccessProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAccessProfile`: AccessProfile + fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.CreateAccessProfile`: %v\n", resp) } ``` @@ -260,7 +259,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -268,16 +267,17 @@ import ( func main() { id := `2c91808a7813090a017814121919ecca` // string | ID of the Access Profile to delete # string | ID of the Access Profile to delete - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.AccessProfilesAPI.DeleteAccessProfile(context.Background(), id).Execute() - //r, err := apiClient.V2024.AccessProfilesAPI.DeleteAccessProfile(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.DeleteAccessProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.AccessProfilesAPI.DeleteAccessProfile(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.DeleteAccessProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -324,7 +324,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -335,24 +335,23 @@ func main() { "bestEffortOnly" : true }`) // AccessProfileBulkDeleteRequest | - - var accessProfileBulkDeleteRequest v2024.AccessProfileBulkDeleteRequest - if err := json.Unmarshal(accessprofilebulkdeleterequest, &accessProfileBulkDeleteRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var accessProfileBulkDeleteRequest v2024.AccessProfileBulkDeleteRequest + if err := json.Unmarshal(accessprofilebulkdeleterequest, &accessProfileBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessProfilesAPI.DeleteAccessProfilesInBulk(context.Background()).AccessProfileBulkDeleteRequest(accessProfileBulkDeleteRequest).Execute() - //resp, r, err := apiClient.V2024.AccessProfilesAPI.DeleteAccessProfilesInBulk(context.Background()).AccessProfileBulkDeleteRequest(accessProfileBulkDeleteRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.DeleteAccessProfilesInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteAccessProfilesInBulk`: AccessProfileBulkDeleteResponse - fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.DeleteAccessProfilesInBulk`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccessProfilesAPI.DeleteAccessProfilesInBulk(context.Background()).AccessProfileBulkDeleteRequest(accessProfileBulkDeleteRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.DeleteAccessProfilesInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteAccessProfilesInBulk`: AccessProfileBulkDeleteResponse + fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.DeleteAccessProfilesInBulk`: %v\n", resp) } ``` @@ -399,7 +398,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -407,18 +406,18 @@ import ( func main() { id := `2c9180837ca6693d017ca8d097500149` // string | ID of the Access Profile # string | ID of the Access Profile - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessProfilesAPI.GetAccessProfile(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.AccessProfilesAPI.GetAccessProfile(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.GetAccessProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessProfile`: AccessProfile - fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.GetAccessProfile`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccessProfilesAPI.GetAccessProfile(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.GetAccessProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessProfile`: AccessProfile + fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.GetAccessProfile`: %v\n", resp) } ``` @@ -472,7 +471,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -485,18 +484,18 @@ func main() { filters := `attribute eq "memberOf"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* Filtering is not supported for access profiles and entitlements that have the '+' symbol in their names. (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* Filtering is not supported for access profiles and entitlements that have the '+' symbol in their names. (optional) sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, attribute, value, created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, attribute, value, created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessProfilesAPI.GetAccessProfileEntitlements(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.AccessProfilesAPI.GetAccessProfileEntitlements(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.GetAccessProfileEntitlements``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessProfileEntitlements`: []Entitlement - fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.GetAccessProfileEntitlements`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccessProfilesAPI.GetAccessProfileEntitlements(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.GetAccessProfileEntitlements``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessProfileEntitlements`: []Entitlement + fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.GetAccessProfileEntitlements`: %v\n", resp) } ``` @@ -547,7 +546,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -562,18 +561,18 @@ func main() { forSegmentIds := `0b5c9f25-83c6-4762-9073-e38f7bb2ae26,2e8d8180-24bc-4d21-91c6-7affdb473b0d` // string | Filters access profiles to only those assigned to the segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) # string | Filters access profiles to only those assigned to the segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) includeUnsegmented := false // bool | Indicates whether the response list should contain unsegmented access profiles. If `for-segment-ids` is absent or empty, specifying *include-unsegmented* as `false` results in an error. (optional) (default to true) # bool | Indicates whether the response list should contain unsegmented access profiles. If `for-segment-ids` is absent or empty, specifying *include-unsegmented* as `false` results in an error. (optional) (default to true) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessProfilesAPI.ListAccessProfiles(context.Background()).Execute() - //resp, r, err := apiClient.V2024.AccessProfilesAPI.ListAccessProfiles(context.Background()).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.ListAccessProfiles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAccessProfiles`: []AccessProfile - fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.ListAccessProfiles`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccessProfilesAPI.ListAccessProfiles(context.Background()).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.ListAccessProfiles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAccessProfiles`: []AccessProfile + fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.ListAccessProfiles`: %v\n", resp) } ``` @@ -650,7 +649,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -659,24 +658,23 @@ func main() { id := `2c91808a7813090a017814121919ecca` // string | ID of the Access Profile to patch # string | ID of the Access Profile to patch jsonpatchoperation := []byte(`[{op=add, path=/entitlements, value=[{id=2c9180857725c14301772a93bb77242d, type=ENTITLEMENT, name=AD User Group}]}]`) // []JsonPatchOperation | - - var jsonPatchOperation v2024.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2024.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessProfilesAPI.PatchAccessProfile(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2024.AccessProfilesAPI.PatchAccessProfile(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.PatchAccessProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchAccessProfile`: AccessProfile - fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.PatchAccessProfile`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccessProfilesAPI.PatchAccessProfile(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.PatchAccessProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchAccessProfile`: AccessProfile + fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.PatchAccessProfile`: %v\n", resp) } ``` @@ -737,7 +735,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -746,24 +744,23 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") accessprofilebulkupdaterequestinner := []byte(`[{id=464ae7bf-791e-49fd-b746-06a2e4a89635, requestable=false}]`) // []AccessProfileBulkUpdateRequestInner | - - var accessProfileBulkUpdateRequestInner v2024.[]AccessProfileBulkUpdateRequestInner - if err := json.Unmarshal(accessprofilebulkupdaterequestinner, &accessProfileBulkUpdateRequestInner); err != nil { - fmt.Println("Error:", err) - return - } - + var accessProfileBulkUpdateRequestInner []v2024.AccessProfileBulkUpdateRequestInner + if err := json.Unmarshal(accessprofilebulkupdaterequestinner, &accessProfileBulkUpdateRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessProfilesAPI.UpdateAccessProfilesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessProfileBulkUpdateRequestInner(accessProfileBulkUpdateRequestInner).Execute() - //resp, r, err := apiClient.V2024.AccessProfilesAPI.UpdateAccessProfilesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessProfileBulkUpdateRequestInner(accessProfileBulkUpdateRequestInner).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.UpdateAccessProfilesInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateAccessProfilesInBulk`: []AccessProfileUpdateItem - fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.UpdateAccessProfilesInBulk`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccessProfilesAPI.UpdateAccessProfilesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessProfileBulkUpdateRequestInner(accessProfileBulkUpdateRequestInner).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.UpdateAccessProfilesInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateAccessProfilesInBulk`: []AccessProfileUpdateItem + fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.UpdateAccessProfilesInBulk`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/AccessRequestApprovalsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/AccessRequestApprovalsAPI.md index 369a68440..beb389f5a 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/AccessRequestApprovalsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/AccessRequestApprovalsAPI.md @@ -83,7 +83,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -100,18 +100,18 @@ func main() { "comment" : "This is a comment." }`) // CommentDto | Reviewer's comment. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.ApproveAccessRequest(context.Background(), approvalId).Execute() - //resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.ApproveAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.ApproveAccessRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ApproveAccessRequest`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.ApproveAccessRequest`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.ApproveAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.ApproveAccessRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApproveAccessRequest`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.ApproveAccessRequest`: %v\n", resp) } ``` @@ -159,7 +159,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -171,24 +171,23 @@ func main() { "comment" : "2c91808568c529c60168cca6f90c1313" }`) // ForwardApprovalDto | Information about the forwarded approval. - - var forwardApprovalDto v2024.ForwardApprovalDto - if err := json.Unmarshal(forwardapprovaldto, &forwardApprovalDto); err != nil { - fmt.Println("Error:", err) - return - } - + var forwardApprovalDto v2024.ForwardApprovalDto + if err := json.Unmarshal(forwardapprovaldto, &forwardApprovalDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.ForwardAccessRequest(context.Background(), approvalId).ForwardApprovalDto(forwardApprovalDto).Execute() - //resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.ForwardAccessRequest(context.Background(), approvalId).ForwardApprovalDto(forwardApprovalDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.ForwardAccessRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ForwardAccessRequest`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.ForwardAccessRequest`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.ForwardAccessRequest(context.Background(), approvalId).ForwardApprovalDto(forwardApprovalDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.ForwardAccessRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ForwardAccessRequest`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.ForwardAccessRequest`: %v\n", resp) } ``` @@ -232,7 +231,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -241,18 +240,18 @@ func main() { ownerId := `2c91808568c529c60168cca6f90c1313` // string | The ID of the owner or approver identity of the approvals. If present, the value returns approval summary for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN user can also fetch all the approvals in the org, when owner-id is not used. * Non ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) # string | The ID of the owner or approver identity of the approvals. If present, the value returns approval summary for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN user can also fetch all the approvals in the org, when owner-id is not used. * Non ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) fromDate := `from-date=2020-03-19T19:59:11Z` // string | This is the date and time the results will be shown from. It must be in a valid ISO-8601 format. (optional) # string | This is the date and time the results will be shown from. It must be in a valid ISO-8601 format. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary(context.Background()).Execute() - //resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary(context.Background()).OwnerId(ownerId).FromDate(fromDate).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessRequestApprovalSummary`: ApprovalSummary - fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary(context.Background()).OwnerId(ownerId).FromDate(fromDate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessRequestApprovalSummary`: ApprovalSummary + fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary`: %v\n", resp) } ``` @@ -303,7 +302,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -314,18 +313,18 @@ func main() { offset := 10 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. Defaults to 0 if not specified. (optional) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. Defaults to 0 if not specified. (optional) count := false // bool | If this is true, the *X-Total-Count* response header populates with the number of results that would be returned if limit and offset were ignored. (optional) (default to false) # bool | If this is true, the *X-Total-Count* response header populates with the number of results that would be returned if limit and offset were ignored. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.ListAccessRequestApprovers(context.Background(), accessRequestId).Execute() - //resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.ListAccessRequestApprovers(context.Background(), accessRequestId).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.ListAccessRequestApprovers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAccessRequestApprovers`: []AccessRequestApproversListResponse - fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.ListAccessRequestApprovers`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.ListAccessRequestApprovers(context.Background(), accessRequestId).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.ListAccessRequestApprovers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAccessRequestApprovers`: []AccessRequestApproversListResponse + fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.ListAccessRequestApprovers`: %v\n", resp) } ``` @@ -373,7 +372,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -386,18 +385,18 @@ func main() { filters := `id eq "2c91808568c529c60168cca6f90c1313"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **requestedFor.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **requestedFor.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, sw* (optional) sorters := `modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.ListCompletedApprovals(context.Background()).Execute() - //resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.ListCompletedApprovals(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.ListCompletedApprovals``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListCompletedApprovals`: []CompletedApproval - fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.ListCompletedApprovals`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.ListCompletedApprovals(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.ListCompletedApprovals``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCompletedApprovals`: []CompletedApproval + fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.ListCompletedApprovals`: %v\n", resp) } ``` @@ -445,7 +444,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -458,18 +457,18 @@ func main() { filters := `id eq "2c91808568c529c60168cca6f90c1313"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **requestedFor.id**: *eq, in* **modified**: *gt, lt, ge, le, eq, in* **accessRequestId**: *eq, in* **created**: *gt, lt, ge, le, eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **requestedFor.id**: *eq, in* **modified**: *gt, lt, ge, le, eq, in* **accessRequestId**: *eq, in* **created**: *gt, lt, ge, le, eq, in* (optional) sorters := `modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.ListPendingApprovals(context.Background()).Execute() - //resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.ListPendingApprovals(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.ListPendingApprovals``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListPendingApprovals`: []PendingApproval - fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.ListPendingApprovals`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.ListPendingApprovals(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.ListPendingApprovals``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListPendingApprovals`: []PendingApproval + fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.ListPendingApprovals`: %v\n", resp) } ``` @@ -517,7 +516,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -534,24 +533,23 @@ func main() { "comment" : "This is a comment." }`) // CommentDto | Reviewer's comment. - - var commentDto v2024.CommentDto - if err := json.Unmarshal(commentdto, &commentDto); err != nil { - fmt.Println("Error:", err) - return - } - + var commentDto v2024.CommentDto + if err := json.Unmarshal(commentdto, &commentDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.RejectAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() - //resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.RejectAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.RejectAccessRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `RejectAccessRequest`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.RejectAccessRequest`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.RejectAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.RejectAccessRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RejectAccessRequest`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.RejectAccessRequest`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/AccessRequestIdentityMetricsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/AccessRequestIdentityMetricsAPI.md index 39799099c..bbe92b7d5 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/AccessRequestIdentityMetricsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/AccessRequestIdentityMetricsAPI.md @@ -67,7 +67,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -77,18 +77,18 @@ func main() { requestedObjectId := `2db501be-f0fb-4cc5-a695-334133c52891` // string | Requested access item's ID. # string | Requested access item's ID. type_ := `ENTITLEMENT` // string | Requested access item's type. # string | Requested access item's type. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessRequestIdentityMetricsAPI.GetAccessRequestIdentityMetrics(context.Background(), identityId, requestedObjectId, type_).Execute() - //resp, r, err := apiClient.V2024.AccessRequestIdentityMetricsAPI.GetAccessRequestIdentityMetrics(context.Background(), identityId, requestedObjectId, type_).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestIdentityMetricsAPI.GetAccessRequestIdentityMetrics``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessRequestIdentityMetrics`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `AccessRequestIdentityMetricsAPI.GetAccessRequestIdentityMetrics`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccessRequestIdentityMetricsAPI.GetAccessRequestIdentityMetrics(context.Background(), identityId, requestedObjectId, type_).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestIdentityMetricsAPI.GetAccessRequestIdentityMetrics``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessRequestIdentityMetrics`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AccessRequestIdentityMetricsAPI.GetAccessRequestIdentityMetrics`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/AccessRequestsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/AccessRequestsAPI.md index 326bd8c61..713bd57b8 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/AccessRequestsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/AccessRequestsAPI.md @@ -79,7 +79,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -90,24 +90,23 @@ func main() { "approvalIds" : [ "2c9180835d2e5168015d32f890ca1581", "2c9180835d2e5168015d32f890ca1582" ] }`) // BulkApproveAccessRequest | - - var bulkApproveAccessRequest v2024.BulkApproveAccessRequest - if err := json.Unmarshal(bulkapproveaccessrequest, &bulkApproveAccessRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var bulkApproveAccessRequest v2024.BulkApproveAccessRequest + if err := json.Unmarshal(bulkapproveaccessrequest, &bulkApproveAccessRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessRequestsAPI.ApproveBulkAccessRequest(context.Background()).BulkApproveAccessRequest(bulkApproveAccessRequest).Execute() - //resp, r, err := apiClient.V2024.AccessRequestsAPI.ApproveBulkAccessRequest(context.Background()).BulkApproveAccessRequest(bulkApproveAccessRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.ApproveBulkAccessRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ApproveBulkAccessRequest`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.ApproveBulkAccessRequest`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccessRequestsAPI.ApproveBulkAccessRequest(context.Background()).BulkApproveAccessRequest(bulkApproveAccessRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.ApproveBulkAccessRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApproveBulkAccessRequest`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.ApproveBulkAccessRequest`: %v\n", resp) } ``` @@ -151,7 +150,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -162,24 +161,23 @@ func main() { "comment" : "I requested this role by mistake." }`) // CancelAccessRequest | - - var cancelAccessRequest v2024.CancelAccessRequest - if err := json.Unmarshal(cancelaccessrequest, &cancelAccessRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var cancelAccessRequest v2024.CancelAccessRequest + if err := json.Unmarshal(cancelaccessrequest, &cancelAccessRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessRequestsAPI.CancelAccessRequest(context.Background()).CancelAccessRequest(cancelAccessRequest).Execute() - //resp, r, err := apiClient.V2024.AccessRequestsAPI.CancelAccessRequest(context.Background()).CancelAccessRequest(cancelAccessRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.CancelAccessRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CancelAccessRequest`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.CancelAccessRequest`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccessRequestsAPI.CancelAccessRequest(context.Background()).CancelAccessRequest(cancelAccessRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.CancelAccessRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CancelAccessRequest`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.CancelAccessRequest`: %v\n", resp) } ``` @@ -223,7 +221,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -234,24 +232,23 @@ func main() { "comment" : "I requested this role by mistake." }`) // BulkCancelAccessRequest | - - var bulkCancelAccessRequest v2024.BulkCancelAccessRequest - if err := json.Unmarshal(bulkcancelaccessrequest, &bulkCancelAccessRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var bulkCancelAccessRequest v2024.BulkCancelAccessRequest + if err := json.Unmarshal(bulkcancelaccessrequest, &bulkCancelAccessRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessRequestsAPI.CancelAccessRequestInBulk(context.Background()).BulkCancelAccessRequest(bulkCancelAccessRequest).Execute() - //resp, r, err := apiClient.V2024.AccessRequestsAPI.CancelAccessRequestInBulk(context.Background()).BulkCancelAccessRequest(bulkCancelAccessRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.CancelAccessRequestInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CancelAccessRequestInBulk`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.CancelAccessRequestInBulk`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccessRequestsAPI.CancelAccessRequestInBulk(context.Background()).BulkCancelAccessRequest(bulkCancelAccessRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.CancelAccessRequestInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CancelAccessRequestInBulk`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.CancelAccessRequestInBulk`: %v\n", resp) } ``` @@ -317,7 +314,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -331,24 +328,23 @@ func main() { "message" : "The IdentityNow Administrator manually closed this request." }`) // CloseAccessRequest | - - var closeAccessRequest v2024.CloseAccessRequest - if err := json.Unmarshal(closeaccessrequest, &closeAccessRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var closeAccessRequest v2024.CloseAccessRequest + if err := json.Unmarshal(closeaccessrequest, &closeAccessRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessRequestsAPI.CloseAccessRequest(context.Background()).XSailPointExperimental(xSailPointExperimental).CloseAccessRequest(closeAccessRequest).Execute() - //resp, r, err := apiClient.V2024.AccessRequestsAPI.CloseAccessRequest(context.Background()).XSailPointExperimental(xSailPointExperimental).CloseAccessRequest(closeAccessRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.CloseAccessRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CloseAccessRequest`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.CloseAccessRequest`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccessRequestsAPI.CloseAccessRequest(context.Background()).XSailPointExperimental(xSailPointExperimental).CloseAccessRequest(closeAccessRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.CloseAccessRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CloseAccessRequest`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.CloseAccessRequest`: %v\n", resp) } ``` @@ -387,7 +383,8 @@ __REVOKE_ACCESS__ * Revoke requests for entitlements are limited to 1 entitlement per access request currently. * You can specify a `removeDate` if the access doesn't already have a sunset date. The `removeDate` must be a future date, in the UTC timezone. * Allows a manager to request to revoke access for direct employees. A user with ORG_ADMIN authority can also request to revoke access from anyone. -* Now supports REVOKE_ACCESS requests for identities with multiple accounts on a single source, with the help of 'assignmentId' and 'nativeIdentity' fields. +* Now supports REVOKE_ACCESS requests for identities with multiple accounts on a single source, with the help of 'assignmentId' and 'nativeIdentity' fields. These fields should be used within the 'requestedItems' section for the revoke requests. +* Usage of 'requestedForWithRequestedItems' field is not supported for revoke requests. [API Spec](https://developer.sailpoint.com/docs/api/v2024/create-access-request) @@ -423,7 +420,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -521,9 +518,7 @@ func main() { } ], "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE", - "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", - "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + "type" : "ACCESS_PROFILE" }, { "clientMetadata" : { "requestedAppName" : "test-app", @@ -551,9 +546,7 @@ func main() { } ], "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE", - "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", - "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + "type" : "ACCESS_PROFILE" } ] }, { "identityId" : "cb89bc2f1ee6445fbea12224c526ba3a", @@ -584,9 +577,7 @@ func main() { } ], "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE", - "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", - "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + "type" : "ACCESS_PROFILE" }, { "clientMetadata" : { "requestedAppName" : "test-app", @@ -614,31 +605,28 @@ func main() { } ], "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE", - "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", - "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + "type" : "ACCESS_PROFILE" } ] } ] }`) // AccessRequest | - - var accessRequest v2024.AccessRequest - if err := json.Unmarshal(accessrequest, &accessRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var accessRequest v2024.AccessRequest + if err := json.Unmarshal(accessrequest, &accessRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessRequestsAPI.CreateAccessRequest(context.Background()).AccessRequest(accessRequest).Execute() - //resp, r, err := apiClient.V2024.AccessRequestsAPI.CreateAccessRequest(context.Background()).AccessRequest(accessRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.CreateAccessRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateAccessRequest`: AccessRequestResponse - fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.CreateAccessRequest`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccessRequestsAPI.CreateAccessRequest(context.Background()).AccessRequest(accessRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.CreateAccessRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAccessRequest`: AccessRequestResponse + fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.CreateAccessRequest`: %v\n", resp) } ``` @@ -677,25 +665,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessRequestsAPI.GetAccessRequestConfig(context.Background()).Execute() - //resp, r, err := apiClient.V2024.AccessRequestsAPI.GetAccessRequestConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.GetAccessRequestConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessRequestConfig`: AccessRequestConfig - fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.GetAccessRequestConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccessRequestsAPI.GetAccessRequestConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.GetAccessRequestConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessRequestConfig`: AccessRequestConfig + fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.GetAccessRequestConfig`: %v\n", resp) } ``` @@ -749,7 +737,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -766,18 +754,18 @@ func main() { sorters := `created` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified, accountActivityItemId, name** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified, accountActivityItemId, name** (optional) requestState := `request-state=EXECUTING` // string | Filter the results by the state of the request. The only valid value is *EXECUTING*. (optional) # string | Filter the results by the state of the request. The only valid value is *EXECUTING*. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessRequestsAPI.ListAccessRequestStatus(context.Background()).Execute() - //resp, r, err := apiClient.V2024.AccessRequestsAPI.ListAccessRequestStatus(context.Background()).RequestedFor(requestedFor).RequestedBy(requestedBy).RegardingIdentity(regardingIdentity).AssignedTo(assignedTo).Count(count).Limit(limit).Offset(offset).Filters(filters).Sorters(sorters).RequestState(requestState).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.ListAccessRequestStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAccessRequestStatus`: []RequestedItemStatus - fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.ListAccessRequestStatus`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccessRequestsAPI.ListAccessRequestStatus(context.Background()).RequestedFor(requestedFor).RequestedBy(requestedBy).RegardingIdentity(regardingIdentity).AssignedTo(assignedTo).Count(count).Limit(limit).Offset(offset).Filters(filters).Sorters(sorters).RequestState(requestState).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.ListAccessRequestStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAccessRequestStatus`: []RequestedItemStatus + fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.ListAccessRequestStatus`: %v\n", resp) } ``` @@ -830,7 +818,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -847,18 +835,18 @@ func main() { sorters := `created` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified, accountActivityItemId, name, accessRequestId** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified, accountActivityItemId, name, accessRequestId** (optional) requestState := `request-state=EXECUTING` // string | Filter the results by the state of the request. The only valid value is *EXECUTING*. (optional) # string | Filter the results by the state of the request. The only valid value is *EXECUTING*. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessRequestsAPI.ListAdministratorsAccessRequestStatus(context.Background()).Execute() - //resp, r, err := apiClient.V2024.AccessRequestsAPI.ListAdministratorsAccessRequestStatus(context.Background()).RequestedFor(requestedFor).RequestedBy(requestedBy).RegardingIdentity(regardingIdentity).AssignedTo(assignedTo).Count(count).Limit(limit).Offset(offset).Filters(filters).Sorters(sorters).RequestState(requestState).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.ListAdministratorsAccessRequestStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAdministratorsAccessRequestStatus`: []AccessRequestAdminItemStatus - fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.ListAdministratorsAccessRequestStatus`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccessRequestsAPI.ListAdministratorsAccessRequestStatus(context.Background()).RequestedFor(requestedFor).RequestedBy(requestedBy).RegardingIdentity(regardingIdentity).AssignedTo(assignedTo).Count(count).Limit(limit).Offset(offset).Filters(filters).Sorters(sorters).RequestState(requestState).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.ListAdministratorsAccessRequestStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAdministratorsAccessRequestStatus`: []AccessRequestAdminItemStatus + fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.ListAdministratorsAccessRequestStatus`: %v\n", resp) } ``` @@ -904,7 +892,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -975,24 +963,23 @@ func main() { } ] }`) // AccountsSelectionRequest | - - var accountsSelectionRequest v2024.AccountsSelectionRequest - if err := json.Unmarshal(accountsselectionrequest, &accountsSelectionRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var accountsSelectionRequest v2024.AccountsSelectionRequest + if err := json.Unmarshal(accountsselectionrequest, &accountsSelectionRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessRequestsAPI.LoadAccountSelections(context.Background()).AccountsSelectionRequest(accountsSelectionRequest).Execute() - //resp, r, err := apiClient.V2024.AccessRequestsAPI.LoadAccountSelections(context.Background()).AccountsSelectionRequest(accountsSelectionRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.LoadAccountSelections``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `LoadAccountSelections`: AccountsSelectionResponse - fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.LoadAccountSelections`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccessRequestsAPI.LoadAccountSelections(context.Background()).AccountsSelectionRequest(accountsSelectionRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.LoadAccountSelections``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `LoadAccountSelections`: AccountsSelectionResponse + fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.LoadAccountSelections`: %v\n", resp) } ``` @@ -1035,7 +1022,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1068,31 +1055,40 @@ func main() { "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", "approverType" : "GOVERNANCE_GROUP" } ], + "reauthorizationRequired" : false, "requestCommentRequired" : true + }, + "revocationRequestConfig" : { + "approvalSchemes" : [ { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + }, { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + } ] } }, "reauthorizationEnabled" : true, "approvalsMustBeExternal" : true }`) // AccessRequestConfig | - - var accessRequestConfig v2024.AccessRequestConfig - if err := json.Unmarshal(accessrequestconfig, &accessRequestConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var accessRequestConfig v2024.AccessRequestConfig + if err := json.Unmarshal(accessrequestconfig, &accessRequestConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessRequestsAPI.SetAccessRequestConfig(context.Background()).AccessRequestConfig(accessRequestConfig).Execute() - //resp, r, err := apiClient.V2024.AccessRequestsAPI.SetAccessRequestConfig(context.Background()).AccessRequestConfig(accessRequestConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.SetAccessRequestConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetAccessRequestConfig`: AccessRequestConfig - fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.SetAccessRequestConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccessRequestsAPI.SetAccessRequestConfig(context.Background()).AccessRequestConfig(accessRequestConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.SetAccessRequestConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetAccessRequestConfig`: AccessRequestConfig + fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.SetAccessRequestConfig`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/AccountActivitiesAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/AccountActivitiesAPI.md index 3ae76ce1d..23e31e430 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/AccountActivitiesAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/AccountActivitiesAPI.md @@ -93,7 +93,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -101,18 +101,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The account activity id # string | The account activity id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountActivitiesAPI.GetAccountActivity(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.AccountActivitiesAPI.GetAccountActivity(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountActivitiesAPI.GetAccountActivity``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccountActivity`: AccountActivity - fmt.Fprintf(os.Stdout, "Response from `AccountActivitiesAPI.GetAccountActivity`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccountActivitiesAPI.GetAccountActivity(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountActivitiesAPI.GetAccountActivity``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccountActivity`: AccountActivity + fmt.Fprintf(os.Stdout, "Response from `AccountActivitiesAPI.GetAccountActivity`: %v\n", resp) } ``` @@ -162,7 +162,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -177,18 +177,18 @@ func main() { filters := `type eq "Identity Refresh"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **type**: *eq, in, ge, le, lt, ne, isnull, sw* **created**: *gt, lt, ge, le, eq, in, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, isnull, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **type**: *eq, in, ge, le, lt, ne, isnull, sw* **created**: *gt, lt, ge, le, eq, in, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, isnull, sw* (optional) sorters := `created` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **type, created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **type, created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountActivitiesAPI.ListAccountActivities(context.Background()).Execute() - //resp, r, err := apiClient.V2024.AccountActivitiesAPI.ListAccountActivities(context.Background()).RequestedFor(requestedFor).RequestedBy(requestedBy).RegardingIdentity(regardingIdentity).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountActivitiesAPI.ListAccountActivities``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAccountActivities`: []AccountActivity - fmt.Fprintf(os.Stdout, "Response from `AccountActivitiesAPI.ListAccountActivities`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccountActivitiesAPI.ListAccountActivities(context.Background()).RequestedFor(requestedFor).RequestedBy(requestedBy).RegardingIdentity(regardingIdentity).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountActivitiesAPI.ListAccountActivities``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAccountActivities`: []AccountActivity + fmt.Fprintf(os.Stdout, "Response from `AccountActivitiesAPI.ListAccountActivities`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/AccountAggregationsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/AccountAggregationsAPI.md index 6a23d552d..6e987d2ed 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/AccountAggregationsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/AccountAggregationsAPI.md @@ -88,7 +88,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -97,18 +97,18 @@ func main() { id := `2c91808477a6b0c60177a81146b8110b` // string | The account aggregation id # string | The account aggregation id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountAggregationsAPI.GetAccountAggregationStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.AccountAggregationsAPI.GetAccountAggregationStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountAggregationsAPI.GetAccountAggregationStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccountAggregationStatus`: AccountAggregationStatus - fmt.Fprintf(os.Stdout, "Response from `AccountAggregationsAPI.GetAccountAggregationStatus`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccountAggregationsAPI.GetAccountAggregationStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountAggregationsAPI.GetAccountAggregationStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccountAggregationStatus`: AccountAggregationStatus + fmt.Fprintf(os.Stdout, "Response from `AccountAggregationsAPI.GetAccountAggregationStatus`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/AccountUsagesAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/AccountUsagesAPI.md index c4a744e67..1da11b29b 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/AccountUsagesAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/AccountUsagesAPI.md @@ -66,7 +66,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -78,18 +78,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) sorters := `-date` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **date** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **date** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountUsagesAPI.GetUsagesByAccountId(context.Background(), accountId).Execute() - //resp, r, err := apiClient.V2024.AccountUsagesAPI.GetUsagesByAccountId(context.Background(), accountId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountUsagesAPI.GetUsagesByAccountId``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetUsagesByAccountId`: []AccountUsage - fmt.Fprintf(os.Stdout, "Response from `AccountUsagesAPI.GetUsagesByAccountId`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccountUsagesAPI.GetUsagesByAccountId(context.Background(), accountId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountUsagesAPI.GetUsagesByAccountId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetUsagesByAccountId`: []AccountUsage + fmt.Fprintf(os.Stdout, "Response from `AccountUsagesAPI.GetUsagesByAccountId`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/AccountsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/AccountsAPI.md index faa030faf..791d8e476 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/AccountsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/AccountsAPI.md @@ -108,7 +108,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -125,24 +125,23 @@ func main() { } }`) // AccountAttributesCreate | - - var accountAttributesCreate v2024.AccountAttributesCreate - if err := json.Unmarshal(accountattributescreate, &accountAttributesCreate); err != nil { - fmt.Println("Error:", err) - return - } - + var accountAttributesCreate v2024.AccountAttributesCreate + if err := json.Unmarshal(accountattributescreate, &accountAttributesCreate); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountsAPI.CreateAccount(context.Background()).AccountAttributesCreate(accountAttributesCreate).Execute() - //resp, r, err := apiClient.V2024.AccountsAPI.CreateAccount(context.Background()).AccountAttributesCreate(accountAttributesCreate).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.CreateAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateAccount`: AccountsAsyncResult - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.CreateAccount`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccountsAPI.CreateAccount(context.Background()).AccountAttributesCreate(accountAttributesCreate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.CreateAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAccount`: AccountsAsyncResult + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.CreateAccount`: %v\n", resp) } ``` @@ -192,7 +191,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -200,18 +199,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountsAPI.DeleteAccount(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.AccountsAPI.DeleteAccount(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.DeleteAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteAccount`: AccountsAsyncResult - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.DeleteAccount`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccountsAPI.DeleteAccount(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.DeleteAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteAccount`: AccountsAsyncResult + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.DeleteAccount`: %v\n", resp) } ``` @@ -276,7 +275,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -285,18 +284,18 @@ func main() { id := `c350d6aa4f104c61b062cb632421ad10` // string | The account id # string | The account id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountsAPI.DeleteAccountAsync(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.AccountsAPI.DeleteAccountAsync(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.DeleteAccountAsync``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteAccountAsync`: TaskResultDto - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.DeleteAccountAsync`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccountsAPI.DeleteAccountAsync(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.DeleteAccountAsync``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteAccountAsync`: TaskResultDto + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.DeleteAccountAsync`: %v\n", resp) } ``` @@ -344,7 +343,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -356,24 +355,23 @@ func main() { "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581" }`) // AccountToggleRequest | - - var accountToggleRequest v2024.AccountToggleRequest - if err := json.Unmarshal(accounttogglerequest, &accountToggleRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var accountToggleRequest v2024.AccountToggleRequest + if err := json.Unmarshal(accounttogglerequest, &accountToggleRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountsAPI.DisableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() - //resp, r, err := apiClient.V2024.AccountsAPI.DisableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.DisableAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DisableAccount`: AccountsAsyncResult - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.DisableAccount`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccountsAPI.DisableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.DisableAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DisableAccount`: AccountsAsyncResult + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.DisableAccount`: %v\n", resp) } ``` @@ -432,7 +430,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -441,18 +439,18 @@ func main() { id := `2c91808384203c2d018437e631158309` // string | The identity id. # string | The identity id. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountsAPI.DisableAccountForIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.AccountsAPI.DisableAccountForIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.DisableAccountForIdentity``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DisableAccountForIdentity`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.DisableAccountForIdentity`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccountsAPI.DisableAccountForIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.DisableAccountForIdentity``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DisableAccountForIdentity`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.DisableAccountForIdentity`: %v\n", resp) } ``` @@ -507,7 +505,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -518,24 +516,23 @@ func main() { "identityIds" : [ "2c91808384203c2d018437e631158308", "2c9180858082150f0180893dbaf553fe" ] }`) // IdentitiesAccountsBulkRequest | - - var identitiesAccountsBulkRequest v2024.IdentitiesAccountsBulkRequest - if err := json.Unmarshal(identitiesaccountsbulkrequest, &identitiesAccountsBulkRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var identitiesAccountsBulkRequest v2024.IdentitiesAccountsBulkRequest + if err := json.Unmarshal(identitiesaccountsbulkrequest, &identitiesAccountsBulkRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountsAPI.DisableAccountsForIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentitiesAccountsBulkRequest(identitiesAccountsBulkRequest).Execute() - //resp, r, err := apiClient.V2024.AccountsAPI.DisableAccountsForIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentitiesAccountsBulkRequest(identitiesAccountsBulkRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.DisableAccountsForIdentities``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DisableAccountsForIdentities`: []BulkIdentitiesAccountsResponse - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.DisableAccountsForIdentities`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccountsAPI.DisableAccountsForIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentitiesAccountsBulkRequest(identitiesAccountsBulkRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.DisableAccountsForIdentities``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DisableAccountsForIdentities`: []BulkIdentitiesAccountsResponse + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.DisableAccountsForIdentities`: %v\n", resp) } ``` @@ -583,7 +580,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -595,24 +592,23 @@ func main() { "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581" }`) // AccountToggleRequest | - - var accountToggleRequest v2024.AccountToggleRequest - if err := json.Unmarshal(accounttogglerequest, &accountToggleRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var accountToggleRequest v2024.AccountToggleRequest + if err := json.Unmarshal(accounttogglerequest, &accountToggleRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountsAPI.EnableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() - //resp, r, err := apiClient.V2024.AccountsAPI.EnableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.EnableAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `EnableAccount`: AccountsAsyncResult - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.EnableAccount`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccountsAPI.EnableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.EnableAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `EnableAccount`: AccountsAsyncResult + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.EnableAccount`: %v\n", resp) } ``` @@ -671,7 +667,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -680,18 +676,18 @@ func main() { id := `2c91808384203c2d018437e631158309` // string | The identity id. # string | The identity id. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountsAPI.EnableAccountForIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.AccountsAPI.EnableAccountForIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.EnableAccountForIdentity``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `EnableAccountForIdentity`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.EnableAccountForIdentity`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccountsAPI.EnableAccountForIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.EnableAccountForIdentity``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `EnableAccountForIdentity`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.EnableAccountForIdentity`: %v\n", resp) } ``` @@ -746,7 +742,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -757,24 +753,23 @@ func main() { "identityIds" : [ "2c91808384203c2d018437e631158308", "2c9180858082150f0180893dbaf553fe" ] }`) // IdentitiesAccountsBulkRequest | - - var identitiesAccountsBulkRequest v2024.IdentitiesAccountsBulkRequest - if err := json.Unmarshal(identitiesaccountsbulkrequest, &identitiesAccountsBulkRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var identitiesAccountsBulkRequest v2024.IdentitiesAccountsBulkRequest + if err := json.Unmarshal(identitiesaccountsbulkrequest, &identitiesAccountsBulkRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountsAPI.EnableAccountsForIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentitiesAccountsBulkRequest(identitiesAccountsBulkRequest).Execute() - //resp, r, err := apiClient.V2024.AccountsAPI.EnableAccountsForIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentitiesAccountsBulkRequest(identitiesAccountsBulkRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.EnableAccountsForIdentities``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `EnableAccountsForIdentities`: []BulkIdentitiesAccountsResponse - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.EnableAccountsForIdentities`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccountsAPI.EnableAccountsForIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentitiesAccountsBulkRequest(identitiesAccountsBulkRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.EnableAccountsForIdentities``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `EnableAccountsForIdentities`: []BulkIdentitiesAccountsResponse + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.EnableAccountsForIdentities`: %v\n", resp) } ``` @@ -821,7 +816,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -829,18 +824,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountsAPI.GetAccount(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.AccountsAPI.GetAccount(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.GetAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccount`: Account - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.GetAccount`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccountsAPI.GetAccount(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.GetAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccount`: Account + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.GetAccount`: %v\n", resp) } ``` @@ -890,7 +885,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -901,18 +896,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountsAPI.GetAccountEntitlements(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.AccountsAPI.GetAccountEntitlements(context.Background(), id).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.GetAccountEntitlements``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccountEntitlements`: []Entitlement - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.GetAccountEntitlements`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccountsAPI.GetAccountEntitlements(context.Background(), id).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.GetAccountEntitlements``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccountEntitlements`: []Entitlement + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.GetAccountEntitlements`: %v\n", resp) } ``` @@ -960,7 +955,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -973,18 +968,18 @@ func main() { filters := `identityId eq "2c9180858082150f0180893dbaf44201"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in, sw* **identityId**: *eq, in, sw* **name**: *eq, in, sw* **nativeIdentity**: *eq, in, sw* **hasEntitlements**: *eq* **sourceId**: *eq, in, sw* **uncorrelated**: *eq* **entitlements**: *eq* **origin**: *eq, in* **manuallyCorrelated**: *eq* **identity.name**: *eq, in, sw* **identity.correlated**: *eq* **identity.identityState**: *eq, in* **source.displayableName**: *eq, in* **source.authoritative**: *eq* **source.connectionType**: *eq, in* **recommendation.method**: *eq, in, isnull* **created**: *eq, ge, gt, le, lt* **modified**: *eq, ge, gt, le, lt* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in, sw* **identityId**: *eq, in, sw* **name**: *eq, in, sw* **nativeIdentity**: *eq, in, sw* **hasEntitlements**: *eq* **sourceId**: *eq, in, sw* **uncorrelated**: *eq* **entitlements**: *eq* **origin**: *eq, in* **manuallyCorrelated**: *eq* **identity.name**: *eq, in, sw* **identity.correlated**: *eq* **identity.identityState**: *eq, in* **source.displayableName**: *eq, in* **source.authoritative**: *eq* **source.connectionType**: *eq, in* **recommendation.method**: *eq, in, isnull* **created**: *eq, ge, gt, le, lt* **modified**: *eq, ge, gt, le, lt* (optional) sorters := `id,name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, sourceId, identityId, nativeIdentity, uuid, manuallyCorrelated, entitlements, origin, identity.name, identity.identityState, identity.correlated, source.displayableName, source.authoritative, source.connectionType** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, sourceId, identityId, nativeIdentity, uuid, manuallyCorrelated, entitlements, origin, identity.name, identity.identityState, identity.correlated, source.displayableName, source.authoritative, source.connectionType** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountsAPI.ListAccounts(context.Background()).Execute() - //resp, r, err := apiClient.V2024.AccountsAPI.ListAccounts(context.Background()).Limit(limit).Offset(offset).Count(count).DetailLevel(detailLevel).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.ListAccounts``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAccounts`: []Account - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.ListAccounts`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccountsAPI.ListAccounts(context.Background()).Limit(limit).Offset(offset).Count(count).DetailLevel(detailLevel).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.ListAccounts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAccounts`: []Account + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.ListAccounts`: %v\n", resp) } ``` @@ -1037,7 +1032,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1054,24 +1049,23 @@ func main() { } }`) // AccountAttributes | - - var accountAttributes v2024.AccountAttributes - if err := json.Unmarshal(accountattributes, &accountAttributes); err != nil { - fmt.Println("Error:", err) - return - } - + var accountAttributes v2024.AccountAttributes + if err := json.Unmarshal(accountattributes, &accountAttributes); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountsAPI.PutAccount(context.Background(), id).AccountAttributes(accountAttributes).Execute() - //resp, r, err := apiClient.V2024.AccountsAPI.PutAccount(context.Background(), id).AccountAttributes(accountAttributes).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.PutAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutAccount`: AccountsAsyncResult - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.PutAccount`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccountsAPI.PutAccount(context.Background(), id).AccountAttributes(accountAttributes).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.PutAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutAccount`: AccountsAsyncResult + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.PutAccount`: %v\n", resp) } ``` @@ -1118,7 +1112,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1126,18 +1120,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The account id # string | The account id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountsAPI.SubmitReloadAccount(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.AccountsAPI.SubmitReloadAccount(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.SubmitReloadAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SubmitReloadAccount`: AccountsAsyncResult - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.SubmitReloadAccount`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccountsAPI.SubmitReloadAccount(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.SubmitReloadAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SubmitReloadAccount`: AccountsAsyncResult + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.SubmitReloadAccount`: %v\n", resp) } ``` @@ -1186,7 +1180,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1199,24 +1193,23 @@ func main() { "unlockIDNAccount" : false }`) // AccountUnlockRequest | - - var accountUnlockRequest v2024.AccountUnlockRequest - if err := json.Unmarshal(accountunlockrequest, &accountUnlockRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var accountUnlockRequest v2024.AccountUnlockRequest + if err := json.Unmarshal(accountunlockrequest, &accountUnlockRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountsAPI.UnlockAccount(context.Background(), id).AccountUnlockRequest(accountUnlockRequest).Execute() - //resp, r, err := apiClient.V2024.AccountsAPI.UnlockAccount(context.Background(), id).AccountUnlockRequest(accountUnlockRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.UnlockAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UnlockAccount`: AccountsAsyncResult - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.UnlockAccount`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccountsAPI.UnlockAccount(context.Background(), id).AccountUnlockRequest(accountUnlockRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.UnlockAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UnlockAccount`: AccountsAsyncResult + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.UnlockAccount`: %v\n", resp) } ``` @@ -1274,7 +1267,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1283,24 +1276,23 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. requestbody := []byte(`[{op=remove, path=/identityId}]`) // []map[string]interface{} | A list of account update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - - var requestBody v2024.[]RequestBody - if err := json.Unmarshal(requestbody, &requestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var requestBody []v2024.RequestBody + if err := json.Unmarshal(requestbody, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountsAPI.UpdateAccount(context.Background(), id).RequestBody(requestBody).Execute() - //resp, r, err := apiClient.V2024.AccountsAPI.UpdateAccount(context.Background(), id).RequestBody(requestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.UpdateAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateAccount`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.UpdateAccount`: %v\n", resp) + //resp, r, err := apiClient.V2024.AccountsAPI.UpdateAccount(context.Background(), id).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.UpdateAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateAccount`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.UpdateAccount`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/ApplicationDiscoveryAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/ApplicationDiscoveryAPI.md index a0116f5b4..019463b3e 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/ApplicationDiscoveryAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/ApplicationDiscoveryAPI.md @@ -64,7 +64,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -76,18 +76,18 @@ func main() { filter := `name eq "Okta" and description co "Okta" and discoverySource in ("csv", "Okta Saas")` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *eq, sw, co* **description**: *eq, sw, co* **createdAtStart**: *eq, le, ge* **createdAtEnd**: *eq, le, ge* **discoveredAtStart**: *eq, le, ge* **discoveredAtEnd**: *eq, le, ge* **discoverySource**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *eq, sw, co* **description**: *eq, sw, co* **createdAtStart**: *eq, le, ge* **createdAtEnd**: *eq, le, ge* **discoveredAtStart**: *eq, le, ge* **discoveredAtEnd**: *eq, le, ge* **discoverySource**: *eq, in* (optional) sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, description, discoveredAt, discoverySource** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, description, discoveredAt, discoverySource** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ApplicationDiscoveryAPI.GetDiscoveredApplications(context.Background()).Execute() - //resp, r, err := apiClient.V2024.ApplicationDiscoveryAPI.GetDiscoveredApplications(context.Background()).Limit(limit).Offset(offset).Detail(detail).Filter(filter).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ApplicationDiscoveryAPI.GetDiscoveredApplications``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetDiscoveredApplications`: []GetDiscoveredApplications200ResponseInner - fmt.Fprintf(os.Stdout, "Response from `ApplicationDiscoveryAPI.GetDiscoveredApplications`: %v\n", resp) + //resp, r, err := apiClient.V2024.ApplicationDiscoveryAPI.GetDiscoveredApplications(context.Background()).Limit(limit).Offset(offset).Detail(detail).Filter(filter).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApplicationDiscoveryAPI.GetDiscoveredApplications``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDiscoveredApplications`: []GetDiscoveredApplications200ResponseInner + fmt.Fprintf(os.Stdout, "Response from `ApplicationDiscoveryAPI.GetDiscoveredApplications`: %v\n", resp) } ``` @@ -129,25 +129,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() - //resp, r, err := apiClient.V2024.ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetManualDiscoverApplicationsCsvTemplate`: ManualDiscoverApplicationsTemplate - fmt.Fprintf(os.Stdout, "Response from `ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate`: %v\n", resp) + //resp, r, err := apiClient.V2024.ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetManualDiscoverApplicationsCsvTemplate`: ManualDiscoverApplicationsTemplate + fmt.Fprintf(os.Stdout, "Response from `ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate`: %v\n", resp) } ``` @@ -191,7 +191,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -199,16 +199,17 @@ import ( func main() { file := BINARY_DATA_HERE // *os.File | The CSV file to upload containing `application_name` and `description` columns. Each row represents an application to be discovered. # *os.File | The CSV file to upload containing `application_name` and `description` columns. Each row represents an application to be discovered. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate(context.Background()).File(file).Execute() - //r, err := apiClient.V2024.ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate(context.Background()).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate(context.Background()).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/ApprovalsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/ApprovalsAPI.md index a99f8dd43..7a510eadf 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/ApprovalsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/ApprovalsAPI.md @@ -75,7 +75,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -84,18 +84,18 @@ func main() { id := `38453251-6be2-5f8f-df93-5ce19e295837` // string | ID of the approval that is to be returned # string | ID of the approval that is to be returned xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ApprovalsAPI.GetApproval(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.ApprovalsAPI.GetApproval(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ApprovalsAPI.GetApproval``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetApproval`: Approval - fmt.Fprintf(os.Stdout, "Response from `ApprovalsAPI.GetApproval`: %v\n", resp) + //resp, r, err := apiClient.V2024.ApprovalsAPI.GetApproval(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApprovalsAPI.GetApproval``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetApproval`: Approval + fmt.Fprintf(os.Stdout, "Response from `ApprovalsAPI.GetApproval`: %v\n", resp) } ``` @@ -153,7 +153,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -164,18 +164,18 @@ func main() { requesterId := `17e633e7d57e481569df76323169deb6a` // string | Returns the list of approvals for a given requester ID (optional) # string | Returns the list of approvals for a given requester ID (optional) filters := `filters=status eq PENDING` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **status**: *eq* **referenceType**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **status**: *eq* **referenceType**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ApprovalsAPI.GetApprovals(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.ApprovalsAPI.GetApprovals(context.Background()).XSailPointExperimental(xSailPointExperimental).Mine(mine).RequesterId(requesterId).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ApprovalsAPI.GetApprovals``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetApprovals`: []Approval - fmt.Fprintf(os.Stdout, "Response from `ApprovalsAPI.GetApprovals`: %v\n", resp) + //resp, r, err := apiClient.V2024.ApprovalsAPI.GetApprovals(context.Background()).XSailPointExperimental(xSailPointExperimental).Mine(mine).RequesterId(requesterId).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApprovalsAPI.GetApprovals``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetApprovals`: []Approval + fmt.Fprintf(os.Stdout, "Response from `ApprovalsAPI.GetApprovals`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/AppsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/AppsAPI.md index 4d0eca216..2a7bc1742 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/AppsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/AppsAPI.md @@ -82,7 +82,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -100,24 +100,23 @@ func main() { "matchAllAccounts" : true }`) // SourceAppCreateDto | - - var sourceAppCreateDto v2024.SourceAppCreateDto - if err := json.Unmarshal(sourceappcreatedto, &sourceAppCreateDto); err != nil { - fmt.Println("Error:", err) - return - } - + var sourceAppCreateDto v2024.SourceAppCreateDto + if err := json.Unmarshal(sourceappcreatedto, &sourceAppCreateDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AppsAPI.CreateSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).SourceAppCreateDto(sourceAppCreateDto).Execute() - //resp, r, err := apiClient.V2024.AppsAPI.CreateSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).SourceAppCreateDto(sourceAppCreateDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.CreateSourceApp``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSourceApp`: SourceApp - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.CreateSourceApp`: %v\n", resp) + //resp, r, err := apiClient.V2024.AppsAPI.CreateSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).SourceAppCreateDto(sourceAppCreateDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.CreateSourceApp``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSourceApp`: SourceApp + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.CreateSourceApp`: %v\n", resp) } ``` @@ -178,7 +177,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -189,24 +188,23 @@ func main() { requestbody := []byte(`[c9575abb5e3a4e3db82b2f989a738aa2, c9dc28e148a24d65b3ccb5fb8ca5ddd9]`) // []string | limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - - var requestBody v2024.[]RequestBody - if err := json.Unmarshal(requestbody, &requestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var requestBody []v2024.RequestBody + if err := json.Unmarshal(requestbody, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AppsAPI.DeleteAccessProfilesFromSourceAppByBulk(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() - //resp, r, err := apiClient.V2024.AppsAPI.DeleteAccessProfilesFromSourceAppByBulk(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Limit(limit).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.DeleteAccessProfilesFromSourceAppByBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteAccessProfilesFromSourceAppByBulk`: []AccessProfileDetails - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.DeleteAccessProfilesFromSourceAppByBulk`: %v\n", resp) + //resp, r, err := apiClient.V2024.AppsAPI.DeleteAccessProfilesFromSourceAppByBulk(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.DeleteAccessProfilesFromSourceAppByBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteAccessProfilesFromSourceAppByBulk`: []AccessProfileDetails + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.DeleteAccessProfilesFromSourceAppByBulk`: %v\n", resp) } ``` @@ -265,7 +263,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -274,18 +272,18 @@ func main() { id := `2c9180835d191a86015d28455b4a2329` // string | source app ID. # string | source app ID. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AppsAPI.DeleteSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.AppsAPI.DeleteSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.DeleteSourceApp``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteSourceApp`: SourceApp - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.DeleteSourceApp`: %v\n", resp) + //resp, r, err := apiClient.V2024.AppsAPI.DeleteSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.DeleteSourceApp``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteSourceApp`: SourceApp + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.DeleteSourceApp`: %v\n", resp) } ``` @@ -344,7 +342,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -353,18 +351,18 @@ func main() { id := `2c91808a7813090a017814121e121518` // string | ID of the source app # string | ID of the source app xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AppsAPI.GetSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.AppsAPI.GetSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.GetSourceApp``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSourceApp`: SourceApp - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.GetSourceApp`: %v\n", resp) + //resp, r, err := apiClient.V2024.AppsAPI.GetSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.GetSourceApp``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSourceApp`: SourceApp + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.GetSourceApp`: %v\n", resp) } ``` @@ -426,7 +424,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -438,18 +436,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) filters := `name eq "developer access profile"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AppsAPI.ListAccessProfilesForSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.AppsAPI.ListAccessProfilesForSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListAccessProfilesForSourceApp``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAccessProfilesForSourceApp`: []AccessProfileDetails - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListAccessProfilesForSourceApp`: %v\n", resp) + //resp, r, err := apiClient.V2024.AppsAPI.ListAccessProfilesForSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListAccessProfilesForSourceApp``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAccessProfilesForSourceApp`: []AccessProfileDetails + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListAccessProfilesForSourceApp`: %v\n", resp) } ``` @@ -508,7 +506,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -521,18 +519,18 @@ func main() { sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, owner.id, accountSource.id** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, owner.id, accountSource.id** (optional) filters := `enabled eq true` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **accountSource.id**: *eq, in* **enabled**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **accountSource.id**: *eq, in* **enabled**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AppsAPI.ListAllSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.AppsAPI.ListAllSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListAllSourceApp``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAllSourceApp`: []SourceApp - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListAllSourceApp`: %v\n", resp) + //resp, r, err := apiClient.V2024.AppsAPI.ListAllSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListAllSourceApp``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAllSourceApp`: []SourceApp + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListAllSourceApp`: %v\n", resp) } ``` @@ -591,7 +589,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -603,18 +601,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AppsAPI.ListAllUserApps(context.Background()).Filters(filters).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.AppsAPI.ListAllUserApps(context.Background()).Filters(filters).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListAllUserApps``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAllUserApps`: []UserApp - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListAllUserApps`: %v\n", resp) + //resp, r, err := apiClient.V2024.AppsAPI.ListAllUserApps(context.Background()).Filters(filters).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListAllUserApps``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAllUserApps`: []UserApp + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListAllUserApps`: %v\n", resp) } ``` @@ -673,7 +671,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -686,18 +684,18 @@ func main() { sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, accountSource.id** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, accountSource.id** (optional) filters := `name eq "source app name"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **accountSource.id**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **accountSource.id**: *eq, in* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AppsAPI.ListAssignedSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.AppsAPI.ListAssignedSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListAssignedSourceApp``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAssignedSourceApp`: []SourceApp - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListAssignedSourceApp`: %v\n", resp) + //resp, r, err := apiClient.V2024.AppsAPI.ListAssignedSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListAssignedSourceApp``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAssignedSourceApp`: []SourceApp + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListAssignedSourceApp`: %v\n", resp) } ``` @@ -758,7 +756,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -769,18 +767,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AppsAPI.ListAvailableAccountsForUserApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.AppsAPI.ListAvailableAccountsForUserApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListAvailableAccountsForUserApp``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAvailableAccountsForUserApp`: []AppAccountDetails - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListAvailableAccountsForUserApp`: %v\n", resp) + //resp, r, err := apiClient.V2024.AppsAPI.ListAvailableAccountsForUserApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListAvailableAccountsForUserApp``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAvailableAccountsForUserApp`: []AppAccountDetails + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListAvailableAccountsForUserApp`: %v\n", resp) } ``` @@ -839,7 +837,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -852,18 +850,18 @@ func main() { sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, owner.id, accountSource.id** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, owner.id, accountSource.id** (optional) filters := `name eq "source app name"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **accountSource.id**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **accountSource.id**: *eq, in* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AppsAPI.ListAvailableSourceApps(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.AppsAPI.ListAvailableSourceApps(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListAvailableSourceApps``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAvailableSourceApps`: []SourceApp - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListAvailableSourceApps`: %v\n", resp) + //resp, r, err := apiClient.V2024.AppsAPI.ListAvailableSourceApps(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListAvailableSourceApps``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAvailableSourceApps`: []SourceApp + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListAvailableSourceApps`: %v\n", resp) } ``` @@ -921,7 +919,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -933,18 +931,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) filters := `name eq "user app name"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AppsAPI.ListOwnedUserApps(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.AppsAPI.ListOwnedUserApps(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListOwnedUserApps``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListOwnedUserApps`: []UserApp - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListOwnedUserApps`: %v\n", resp) + //resp, r, err := apiClient.V2024.AppsAPI.ListOwnedUserApps(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListOwnedUserApps``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListOwnedUserApps`: []UserApp + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListOwnedUserApps`: %v\n", resp) } ``` @@ -1006,7 +1004,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1016,18 +1014,18 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") jsonpatchoperation := []byte(`[{op=replace, path=/enabled, value=true}, {op=replace, path=/matchAllAccounts, value=true}]`) // []JsonPatchOperation | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AppsAPI.PatchSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.AppsAPI.PatchSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.PatchSourceApp``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchSourceApp`: SourceAppPatchDto - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.PatchSourceApp`: %v\n", resp) + //resp, r, err := apiClient.V2024.AppsAPI.PatchSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.PatchSourceApp``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchSourceApp`: SourceAppPatchDto + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.PatchSourceApp`: %v\n", resp) } ``` @@ -1088,7 +1086,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1098,18 +1096,18 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") jsonpatchoperation := []byte(``) // []JsonPatchOperation | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AppsAPI.PatchUserApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.AppsAPI.PatchUserApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.PatchUserApp``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchUserApp`: UserApp - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.PatchUserApp`: %v\n", resp) + //resp, r, err := apiClient.V2024.AppsAPI.PatchUserApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.PatchUserApp``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchUserApp`: UserApp + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.PatchUserApp`: %v\n", resp) } ``` @@ -1166,7 +1164,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1186,16 +1184,17 @@ func main() { } ] }`) // SourceAppBulkUpdateRequest | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.AppsAPI.UpdateSourceAppsInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //r, err := apiClient.V2024.AppsAPI.UpdateSourceAppsInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).SourceAppBulkUpdateRequest(sourceAppBulkUpdateRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.UpdateSourceAppsInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.AppsAPI.UpdateSourceAppsInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).SourceAppBulkUpdateRequest(sourceAppBulkUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.UpdateSourceAppsInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/AuthProfileAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/AuthProfileAPI.md index 8dc39908c..def4be782 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/AuthProfileAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/AuthProfileAPI.md @@ -79,7 +79,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -88,18 +88,18 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") id := `2c91808a7813090a017814121919ecca` // string | ID of the Auth Profile to patch. # string | ID of the Auth Profile to patch. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AuthProfileAPI.GetProfileConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.AuthProfileAPI.GetProfileConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AuthProfileAPI.GetProfileConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetProfileConfig`: AuthProfile - fmt.Fprintf(os.Stdout, "Response from `AuthProfileAPI.GetProfileConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.AuthProfileAPI.GetProfileConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthProfileAPI.GetProfileConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetProfileConfig`: AuthProfile + fmt.Fprintf(os.Stdout, "Response from `AuthProfileAPI.GetProfileConfig`: %v\n", resp) } ``` @@ -153,7 +153,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -161,18 +161,18 @@ import ( func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AuthProfileAPI.GetProfileConfigList(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.AuthProfileAPI.GetProfileConfigList(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AuthProfileAPI.GetProfileConfigList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetProfileConfigList`: []AuthProfileSummary - fmt.Fprintf(os.Stdout, "Response from `AuthProfileAPI.GetProfileConfigList`: %v\n", resp) + //resp, r, err := apiClient.V2024.AuthProfileAPI.GetProfileConfigList(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthProfileAPI.GetProfileConfigList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetProfileConfigList`: []AuthProfileSummary + fmt.Fprintf(os.Stdout, "Response from `AuthProfileAPI.GetProfileConfigList`: %v\n", resp) } ``` @@ -233,7 +233,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -243,24 +243,23 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") jsonpatchoperation := []byte(``) // []JsonPatchOperation | - - var jsonPatchOperation v2024.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2024.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AuthProfileAPI.PatchProfileConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2024.AuthProfileAPI.PatchProfileConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AuthProfileAPI.PatchProfileConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchProfileConfig`: AuthProfile - fmt.Fprintf(os.Stdout, "Response from `AuthProfileAPI.PatchProfileConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.AuthProfileAPI.PatchProfileConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthProfileAPI.PatchProfileConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchProfileConfig`: AuthProfile + fmt.Fprintf(os.Stdout, "Response from `AuthProfileAPI.PatchProfileConfig`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/AuthUsersAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/AuthUsersAPI.md index 8938f108d..6355d69a7 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/AuthUsersAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/AuthUsersAPI.md @@ -65,7 +65,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -73,18 +73,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Identity ID # string | Identity ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AuthUsersAPI.GetAuthUser(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.AuthUsersAPI.GetAuthUser(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AuthUsersAPI.GetAuthUser``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAuthUser`: AuthUser - fmt.Fprintf(os.Stdout, "Response from `AuthUsersAPI.GetAuthUser`: %v\n", resp) + //resp, r, err := apiClient.V2024.AuthUsersAPI.GetAuthUser(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthUsersAPI.GetAuthUser``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAuthUser`: AuthUser + fmt.Fprintf(os.Stdout, "Response from `AuthUsersAPI.GetAuthUser`: %v\n", resp) } ``` @@ -136,7 +136,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -145,24 +145,23 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Identity ID # string | Identity ID jsonpatchoperation := []byte(`[{op=replace, path=/capabilities, value=[ORG_ADMIN]}]`) // []JsonPatchOperation | A list of auth user update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - - var jsonPatchOperation v2024.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2024.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AuthUsersAPI.PatchAuthUser(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2024.AuthUsersAPI.PatchAuthUser(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AuthUsersAPI.PatchAuthUser``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchAuthUser`: AuthUser - fmt.Fprintf(os.Stdout, "Response from `AuthUsersAPI.PatchAuthUser`: %v\n", resp) + //resp, r, err := apiClient.V2024.AuthUsersAPI.PatchAuthUser(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthUsersAPI.PatchAuthUser``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchAuthUser`: AuthUser + fmt.Fprintf(os.Stdout, "Response from `AuthUsersAPI.PatchAuthUser`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/BrandingAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/BrandingAPI.md index 00a0205d0..fc40afef1 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/BrandingAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/BrandingAPI.md @@ -71,7 +71,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -86,18 +86,18 @@ func main() { loginInformationalMessage := `loginInformationalMessage_example` // string | login information message (optional) # string | login information message (optional) fileStandard := BINARY_DATA_HERE // *os.File | png file with logo (optional) # *os.File | png file with logo (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.BrandingAPI.CreateBrandingItem(context.Background()).Name(name).ProductName(productName).Execute() - //resp, r, err := apiClient.V2024.BrandingAPI.CreateBrandingItem(context.Background()).Name(name).ProductName(productName).ActionButtonColor(actionButtonColor).ActiveLinkColor(activeLinkColor).NavigationColor(navigationColor).EmailFromAddress(emailFromAddress).LoginInformationalMessage(loginInformationalMessage).FileStandard(fileStandard).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `BrandingAPI.CreateBrandingItem``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateBrandingItem`: BrandingItem - fmt.Fprintf(os.Stdout, "Response from `BrandingAPI.CreateBrandingItem`: %v\n", resp) + //resp, r, err := apiClient.V2024.BrandingAPI.CreateBrandingItem(context.Background()).Name(name).ProductName(productName).ActionButtonColor(actionButtonColor).ActiveLinkColor(activeLinkColor).NavigationColor(navigationColor).EmailFromAddress(emailFromAddress).LoginInformationalMessage(loginInformationalMessage).FileStandard(fileStandard).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BrandingAPI.CreateBrandingItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateBrandingItem`: BrandingItem + fmt.Fprintf(os.Stdout, "Response from `BrandingAPI.CreateBrandingItem`: %v\n", resp) } ``` @@ -144,7 +144,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -152,16 +152,17 @@ import ( func main() { name := `default` // string | The name of the branding item to be deleted # string | The name of the branding item to be deleted - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.BrandingAPI.DeleteBranding(context.Background(), name).Execute() - //r, err := apiClient.V2024.BrandingAPI.DeleteBranding(context.Background(), name).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `BrandingAPI.DeleteBranding``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.BrandingAPI.DeleteBranding(context.Background(), name).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BrandingAPI.DeleteBranding``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -208,7 +209,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -216,18 +217,18 @@ import ( func main() { name := `default` // string | The name of the branding item to be retrieved # string | The name of the branding item to be retrieved - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.BrandingAPI.GetBranding(context.Background(), name).Execute() - //resp, r, err := apiClient.V2024.BrandingAPI.GetBranding(context.Background(), name).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `BrandingAPI.GetBranding``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetBranding`: BrandingItem - fmt.Fprintf(os.Stdout, "Response from `BrandingAPI.GetBranding`: %v\n", resp) + //resp, r, err := apiClient.V2024.BrandingAPI.GetBranding(context.Background(), name).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BrandingAPI.GetBranding``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetBranding`: BrandingItem + fmt.Fprintf(os.Stdout, "Response from `BrandingAPI.GetBranding`: %v\n", resp) } ``` @@ -266,25 +267,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.BrandingAPI.GetBrandingList(context.Background()).Execute() - //resp, r, err := apiClient.V2024.BrandingAPI.GetBrandingList(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `BrandingAPI.GetBrandingList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetBrandingList`: []BrandingItem - fmt.Fprintf(os.Stdout, "Response from `BrandingAPI.GetBrandingList`: %v\n", resp) + //resp, r, err := apiClient.V2024.BrandingAPI.GetBrandingList(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BrandingAPI.GetBrandingList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetBrandingList`: []BrandingItem + fmt.Fprintf(os.Stdout, "Response from `BrandingAPI.GetBrandingList`: %v\n", resp) } ``` @@ -339,7 +340,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -355,18 +356,18 @@ func main() { loginInformationalMessage := `loginInformationalMessage_example` // string | login information message (optional) # string | login information message (optional) fileStandard := BINARY_DATA_HERE // *os.File | png file with logo (optional) # *os.File | png file with logo (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.BrandingAPI.SetBrandingItem(context.Background(), name).Name2(name2).ProductName(productName).Execute() - //resp, r, err := apiClient.V2024.BrandingAPI.SetBrandingItem(context.Background(), name).Name2(name2).ProductName(productName).ActionButtonColor(actionButtonColor).ActiveLinkColor(activeLinkColor).NavigationColor(navigationColor).EmailFromAddress(emailFromAddress).LoginInformationalMessage(loginInformationalMessage).FileStandard(fileStandard).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `BrandingAPI.SetBrandingItem``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetBrandingItem`: BrandingItem - fmt.Fprintf(os.Stdout, "Response from `BrandingAPI.SetBrandingItem`: %v\n", resp) + //resp, r, err := apiClient.V2024.BrandingAPI.SetBrandingItem(context.Background(), name).Name2(name2).ProductName(productName).ActionButtonColor(actionButtonColor).ActiveLinkColor(activeLinkColor).NavigationColor(navigationColor).EmailFromAddress(emailFromAddress).LoginInformationalMessage(loginInformationalMessage).FileStandard(fileStandard).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BrandingAPI.SetBrandingItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetBrandingItem`: BrandingItem + fmt.Fprintf(os.Stdout, "Response from `BrandingAPI.SetBrandingItem`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/CertificationCampaignFiltersAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/CertificationCampaignFiltersAPI.md index a3c0564b8..a27eebed0 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/CertificationCampaignFiltersAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/CertificationCampaignFiltersAPI.md @@ -86,7 +86,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -111,24 +111,23 @@ func main() { } ] }`) // CampaignFilterDetails | - - var campaignFilterDetails v2024.CampaignFilterDetails - if err := json.Unmarshal(campaignfilterdetails, &campaignFilterDetails); err != nil { - fmt.Println("Error:", err) - return - } - + var campaignFilterDetails v2024.CampaignFilterDetails + if err := json.Unmarshal(campaignfilterdetails, &campaignFilterDetails); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignFiltersAPI.CreateCampaignFilter(context.Background()).CampaignFilterDetails(campaignFilterDetails).Execute() - //resp, r, err := apiClient.V2024.CertificationCampaignFiltersAPI.CreateCampaignFilter(context.Background()).CampaignFilterDetails(campaignFilterDetails).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignFiltersAPI.CreateCampaignFilter``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateCampaignFilter`: CampaignFilterDetails - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignFiltersAPI.CreateCampaignFilter`: %v\n", resp) + //resp, r, err := apiClient.V2024.CertificationCampaignFiltersAPI.CreateCampaignFilter(context.Background()).CampaignFilterDetails(campaignFilterDetails).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignFiltersAPI.CreateCampaignFilter``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCampaignFilter`: CampaignFilterDetails + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignFiltersAPI.CreateCampaignFilter`: %v\n", resp) } ``` @@ -171,7 +170,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -179,22 +178,22 @@ import ( func main() { requestbody := []byte(``) // []string | A json list of IDs of campaign filters to delete. - - var requestBody v2024.[]RequestBody - if err := json.Unmarshal(requestbody, &requestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var requestBody []v2024.RequestBody + if err := json.Unmarshal(requestbody, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.CertificationCampaignFiltersAPI.DeleteCampaignFilters(context.Background()).RequestBody(requestBody).Execute() - //r, err := apiClient.V2024.CertificationCampaignFiltersAPI.DeleteCampaignFilters(context.Background()).RequestBody(requestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignFiltersAPI.DeleteCampaignFilters``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.CertificationCampaignFiltersAPI.DeleteCampaignFilters(context.Background()).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignFiltersAPI.DeleteCampaignFilters``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -241,7 +240,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -249,18 +248,18 @@ import ( func main() { id := `e9f9a1397b842fd5a65842087040d3ac` // string | The ID of the campaign filter to be retrieved. # string | The ID of the campaign filter to be retrieved. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignFiltersAPI.GetCampaignFilterById(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.CertificationCampaignFiltersAPI.GetCampaignFilterById(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignFiltersAPI.GetCampaignFilterById``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCampaignFilterById`: CampaignFilterDetails - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignFiltersAPI.GetCampaignFilterById`: %v\n", resp) + //resp, r, err := apiClient.V2024.CertificationCampaignFiltersAPI.GetCampaignFilterById(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignFiltersAPI.GetCampaignFilterById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCampaignFilterById`: CampaignFilterDetails + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignFiltersAPI.GetCampaignFilterById`: %v\n", resp) } ``` @@ -305,7 +304,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -315,18 +314,18 @@ func main() { start := 0 // int32 | Start/Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Start/Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) includeSystemFilters := true // bool | If this is true, the API includes system filters in the count and results. Otherwise it excludes them. If no value is provided, the default is true. (optional) (default to true) # bool | If this is true, the API includes system filters in the count and results. Otherwise it excludes them. If no value is provided, the default is true. (optional) (default to true) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignFiltersAPI.ListCampaignFilters(context.Background()).Execute() - //resp, r, err := apiClient.V2024.CertificationCampaignFiltersAPI.ListCampaignFilters(context.Background()).Limit(limit).Start(start).IncludeSystemFilters(includeSystemFilters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignFiltersAPI.ListCampaignFilters``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListCampaignFilters`: ListCampaignFilters200Response - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignFiltersAPI.ListCampaignFilters`: %v\n", resp) + //resp, r, err := apiClient.V2024.CertificationCampaignFiltersAPI.ListCampaignFilters(context.Background()).Limit(limit).Start(start).IncludeSystemFilters(includeSystemFilters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignFiltersAPI.ListCampaignFilters``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCampaignFilters`: ListCampaignFilters200Response + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignFiltersAPI.ListCampaignFilters`: %v\n", resp) } ``` @@ -374,7 +373,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -400,24 +399,23 @@ func main() { } ] }`) // CampaignFilterDetails | A campaign filter details with updated field values. - - var campaignFilterDetails v2024.CampaignFilterDetails - if err := json.Unmarshal(campaignfilterdetails, &campaignFilterDetails); err != nil { - fmt.Println("Error:", err) - return - } - + var campaignFilterDetails v2024.CampaignFilterDetails + if err := json.Unmarshal(campaignfilterdetails, &campaignFilterDetails); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignFiltersAPI.UpdateCampaignFilter(context.Background(), filterId).CampaignFilterDetails(campaignFilterDetails).Execute() - //resp, r, err := apiClient.V2024.CertificationCampaignFiltersAPI.UpdateCampaignFilter(context.Background(), filterId).CampaignFilterDetails(campaignFilterDetails).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignFiltersAPI.UpdateCampaignFilter``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateCampaignFilter`: CampaignFilterDetails - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignFiltersAPI.UpdateCampaignFilter`: %v\n", resp) + //resp, r, err := apiClient.V2024.CertificationCampaignFiltersAPI.UpdateCampaignFilter(context.Background(), filterId).CampaignFilterDetails(campaignFilterDetails).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignFiltersAPI.UpdateCampaignFilter``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateCampaignFilter`: CampaignFilterDetails + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignFiltersAPI.UpdateCampaignFilter`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/CertificationCampaignsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/CertificationCampaignsAPI.md index 6bb0a121f..8b2a3040d 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/CertificationCampaignsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/CertificationCampaignsAPI.md @@ -156,7 +156,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -167,18 +167,18 @@ func main() { "autoCompleteAction" : "REVOKE" }`) // CampaignCompleteOptions | Optional. Default behavior is for the campaign to auto-approve upon completion, unless autoCompleteAction=REVOKE (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.CompleteCampaign(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.CompleteCampaign(context.Background(), id).CampaignCompleteOptions(campaignCompleteOptions).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.CompleteCampaign``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CompleteCampaign`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.CompleteCampaign`: %v\n", resp) + //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.CompleteCampaign(context.Background(), id).CampaignCompleteOptions(campaignCompleteOptions).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.CompleteCampaign``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CompleteCampaign`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.CompleteCampaign`: %v\n", resp) } ``` @@ -222,7 +222,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -339,24 +339,23 @@ func main() { "correlatedStatus" : "CORRELATED" }`) // Campaign | - - var campaign v2024.Campaign - if err := json.Unmarshal(campaign, &campaign); err != nil { - fmt.Println("Error:", err) - return - } - + var campaign v2024.Campaign + if err := json.Unmarshal(campaign, &campaign); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.CreateCampaign(context.Background()).Campaign(campaign).Execute() - //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.CreateCampaign(context.Background()).Campaign(campaign).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.CreateCampaign``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateCampaign`: Campaign - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.CreateCampaign`: %v\n", resp) + //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.CreateCampaign(context.Background()).Campaign(campaign).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.CreateCampaign``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCampaign`: Campaign + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.CreateCampaign`: %v\n", resp) } ``` @@ -400,7 +399,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -533,24 +532,23 @@ func main() { "id" : "2c9079b270a266a60170a277bb960008" }`) // CampaignTemplate | - - var campaignTemplate v2024.CampaignTemplate - if err := json.Unmarshal(campaigntemplate, &campaignTemplate); err != nil { - fmt.Println("Error:", err) - return - } - + var campaignTemplate v2024.CampaignTemplate + if err := json.Unmarshal(campaigntemplate, &campaignTemplate); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.CreateCampaignTemplate(context.Background()).CampaignTemplate(campaignTemplate).Execute() - //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.CreateCampaignTemplate(context.Background()).CampaignTemplate(campaignTemplate).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.CreateCampaignTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateCampaignTemplate`: CampaignTemplate - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.CreateCampaignTemplate`: %v\n", resp) + //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.CreateCampaignTemplate(context.Background()).CampaignTemplate(campaignTemplate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.CreateCampaignTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCampaignTemplate`: CampaignTemplate + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.CreateCampaignTemplate`: %v\n", resp) } ``` @@ -598,7 +596,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -606,16 +604,17 @@ import ( func main() { id := `2c9180835d191a86015d28455b4a2329` // string | ID of the campaign template being deleted. # string | ID of the campaign template being deleted. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.CertificationCampaignsAPI.DeleteCampaignTemplate(context.Background(), id).Execute() - //r, err := apiClient.V2024.CertificationCampaignsAPI.DeleteCampaignTemplate(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.DeleteCampaignTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.CertificationCampaignsAPI.DeleteCampaignTemplate(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.DeleteCampaignTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -663,7 +662,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -671,16 +670,17 @@ import ( func main() { id := `04bedce387bd47b2ae1f86eb0bb36dee` // string | ID of the campaign template whose schedule is being deleted. # string | ID of the campaign template whose schedule is being deleted. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.CertificationCampaignsAPI.DeleteCampaignTemplateSchedule(context.Background(), id).Execute() - //r, err := apiClient.V2024.CertificationCampaignsAPI.DeleteCampaignTemplateSchedule(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.DeleteCampaignTemplateSchedule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.CertificationCampaignsAPI.DeleteCampaignTemplateSchedule(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.DeleteCampaignTemplateSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -724,7 +724,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -734,24 +734,23 @@ func main() { "ids" : [ "2c9180887335cee10173490db1776c26", "2c9180836a712436016a7125a90c0021" ] }`) // CampaignsDeleteRequest | IDs of the campaigns to delete. - - var campaignsDeleteRequest v2024.CampaignsDeleteRequest - if err := json.Unmarshal(campaignsdeleterequest, &campaignsDeleteRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var campaignsDeleteRequest v2024.CampaignsDeleteRequest + if err := json.Unmarshal(campaignsdeleterequest, &campaignsDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.DeleteCampaigns(context.Background()).CampaignsDeleteRequest(campaignsDeleteRequest).Execute() - //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.DeleteCampaigns(context.Background()).CampaignsDeleteRequest(campaignsDeleteRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.DeleteCampaigns``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteCampaigns`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.DeleteCampaigns`: %v\n", resp) + //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.DeleteCampaigns(context.Background()).CampaignsDeleteRequest(campaignsDeleteRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.DeleteCampaigns``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCampaigns`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.DeleteCampaigns`: %v\n", resp) } ``` @@ -800,7 +799,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -813,18 +812,18 @@ func main() { filters := `name eq "Manager Campaign"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **status**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **status**: *eq, in* (optional) sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetActiveCampaigns(context.Background()).Execute() - //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetActiveCampaigns(context.Background()).Detail(detail).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetActiveCampaigns``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetActiveCampaigns`: []GetActiveCampaigns200ResponseInner - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetActiveCampaigns`: %v\n", resp) + //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetActiveCampaigns(context.Background()).Detail(detail).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetActiveCampaigns``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetActiveCampaigns`: []GetActiveCampaigns200ResponseInner + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetActiveCampaigns`: %v\n", resp) } ``` @@ -873,7 +872,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -882,18 +881,18 @@ func main() { id := `2c91808571bcfcf80171c23e4b4221fc` // string | ID of the campaign to be retrieved. # string | ID of the campaign to be retrieved. detail := `FULL` // string | Determines whether slim, or increased level of detail is provided for each campaign in the returned list. Slim is the default behavior. (optional) # string | Determines whether slim, or increased level of detail is provided for each campaign in the returned list. Slim is the default behavior. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaign(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaign(context.Background(), id).Detail(detail).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaign``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCampaign`: GetCampaign200Response - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaign`: %v\n", resp) + //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaign(context.Background(), id).Detail(detail).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaign``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCampaign`: GetCampaign200Response + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaign`: %v\n", resp) } ``` @@ -941,7 +940,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -949,18 +948,18 @@ import ( func main() { id := `2c91808571bcfcf80171c23e4b4221fc` // string | ID of the campaign whose reports are being fetched. # string | ID of the campaign whose reports are being fetched. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaignReports(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaignReports(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignReports``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCampaignReports`: []CampaignReport - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignReports`: %v\n", resp) + //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaignReports(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignReports``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCampaignReports`: []CampaignReport + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignReports`: %v\n", resp) } ``` @@ -1000,25 +999,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaignReportsConfig(context.Background()).Execute() - //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaignReportsConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignReportsConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCampaignReportsConfig`: CampaignReportsConfig - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignReportsConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaignReportsConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignReportsConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCampaignReportsConfig`: CampaignReportsConfig + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignReportsConfig`: %v\n", resp) } ``` @@ -1066,7 +1065,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1074,18 +1073,18 @@ import ( func main() { id := `2c9180835d191a86015d28455b4a2329` // string | Requested campaign template's ID. # string | Requested campaign template's ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaignTemplate(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaignTemplate(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCampaignTemplate`: CampaignTemplate - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignTemplate`: %v\n", resp) + //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaignTemplate(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCampaignTemplate`: CampaignTemplate + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignTemplate`: %v\n", resp) } ``` @@ -1133,7 +1132,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1141,18 +1140,18 @@ import ( func main() { id := `04bedce387bd47b2ae1f86eb0bb36dee` // string | ID of the campaign template whose schedule is being fetched. # string | ID of the campaign template whose schedule is being fetched. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaignTemplateSchedule(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaignTemplateSchedule(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignTemplateSchedule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCampaignTemplateSchedule`: Schedule - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignTemplateSchedule`: %v\n", resp) + //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaignTemplateSchedule(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignTemplateSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCampaignTemplateSchedule`: Schedule + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignTemplateSchedule`: %v\n", resp) } ``` @@ -1202,7 +1201,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1214,18 +1213,18 @@ func main() { sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, modified** (optional) filters := `name eq "manager template"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *eq, ge, gt, in, le, lt, ne, sw* **id**: *eq, ge, gt, in, le, lt, ne, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *eq, ge, gt, in, le, lt, ne, sw* **id**: *eq, ge, gt, in, le, lt, ne, sw* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaignTemplates(context.Background()).Execute() - //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaignTemplates(context.Background()).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignTemplates``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCampaignTemplates`: []CampaignTemplate - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignTemplates`: %v\n", resp) + //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaignTemplates(context.Background()).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignTemplates``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCampaignTemplates`: []CampaignTemplate + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignTemplates`: %v\n", resp) } ``` @@ -1274,7 +1273,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1290,24 +1289,23 @@ func main() { } }`) // AdminReviewReassign | - - var adminReviewReassign v2024.AdminReviewReassign - if err := json.Unmarshal(adminreviewreassign, &adminReviewReassign); err != nil { - fmt.Println("Error:", err) - return - } - + var adminReviewReassign v2024.AdminReviewReassign + if err := json.Unmarshal(adminreviewreassign, &adminReviewReassign); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.Move(context.Background(), id).AdminReviewReassign(adminReviewReassign).Execute() - //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.Move(context.Background(), id).AdminReviewReassign(adminReviewReassign).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.Move``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `Move`: CertificationTask - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.Move`: %v\n", resp) + //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.Move(context.Background(), id).AdminReviewReassign(adminReviewReassign).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.Move``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `Move`: CertificationTask + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.Move`: %v\n", resp) } ``` @@ -1356,7 +1354,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1365,24 +1363,23 @@ func main() { id := `2c9180835d191a86015d28455b4a2329` // string | ID of the campaign template being modified. # string | ID of the campaign template being modified. jsonpatchoperation := []byte(`[{op=replace, path=/description, value=Updated description!}, {op=replace, path=/campaign/filter/id, value=ff80818155fe8c080155fe8d925b0316}]`) // []JsonPatchOperation | A list of campaign update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * deadlineDuration * campaign (all fields that are allowed during create) - - var jsonPatchOperation v2024.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2024.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.PatchCampaignTemplate(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.PatchCampaignTemplate(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.PatchCampaignTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchCampaignTemplate`: CampaignTemplate - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.PatchCampaignTemplate`: %v\n", resp) + //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.PatchCampaignTemplate(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.PatchCampaignTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCampaignTemplate`: CampaignTemplate + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.PatchCampaignTemplate`: %v\n", resp) } ``` @@ -1426,7 +1423,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1436,24 +1433,23 @@ func main() { "identityAttributeColumns" : [ "firstname", "lastname" ] }`) // CampaignReportsConfig | Campaign report configuration. - - var campaignReportsConfig v2024.CampaignReportsConfig - if err := json.Unmarshal(campaignreportsconfig, &campaignReportsConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var campaignReportsConfig v2024.CampaignReportsConfig + if err := json.Unmarshal(campaignreportsconfig, &campaignReportsConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.SetCampaignReportsConfig(context.Background()).CampaignReportsConfig(campaignReportsConfig).Execute() - //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.SetCampaignReportsConfig(context.Background()).CampaignReportsConfig(campaignReportsConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.SetCampaignReportsConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetCampaignReportsConfig`: CampaignReportsConfig - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.SetCampaignReportsConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.SetCampaignReportsConfig(context.Background()).CampaignReportsConfig(campaignReportsConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.SetCampaignReportsConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetCampaignReportsConfig`: CampaignReportsConfig + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.SetCampaignReportsConfig`: %v\n", resp) } ``` @@ -1502,7 +1498,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1530,16 +1526,17 @@ func main() { "type" : "WEEKLY" }`) // Schedule | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.CertificationCampaignsAPI.SetCampaignTemplateSchedule(context.Background(), id).Execute() - //r, err := apiClient.V2024.CertificationCampaignsAPI.SetCampaignTemplateSchedule(context.Background(), id).Schedule(schedule).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.SetCampaignTemplateSchedule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.CertificationCampaignsAPI.SetCampaignTemplateSchedule(context.Background(), id).Schedule(schedule).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.SetCampaignTemplateSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -1588,7 +1585,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1599,18 +1596,18 @@ func main() { "timeZone" : "-05:00" }`) // ActivateCampaignOptions | Optional. If no timezone is specified, the standard UTC timezone is used (i.e. UTC+00:00). Although this can take any timezone, the intended value is the caller's timezone. The activation time calculated from the given timezone may cause the campaign deadline time to be modified, but it will remain within the original date. The timezone must be in a valid ISO 8601 format. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.StartCampaign(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.StartCampaign(context.Background(), id).ActivateCampaignOptions(activateCampaignOptions).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.StartCampaign``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartCampaign`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.StartCampaign`: %v\n", resp) + //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.StartCampaign(context.Background(), id).ActivateCampaignOptions(activateCampaignOptions).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.StartCampaign``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartCampaign`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.StartCampaign`: %v\n", resp) } ``` @@ -1658,7 +1655,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1666,18 +1663,18 @@ import ( func main() { id := `2c91808571bcfcf80171c23e4b4221fc` // string | ID of the campaign the remediation scan is being run for. # string | ID of the campaign the remediation scan is being run for. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.StartCampaignRemediationScan(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.StartCampaignRemediationScan(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.StartCampaignRemediationScan``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartCampaignRemediationScan`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.StartCampaignRemediationScan`: %v\n", resp) + //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.StartCampaignRemediationScan(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.StartCampaignRemediationScan``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartCampaignRemediationScan`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.StartCampaignRemediationScan`: %v\n", resp) } ``` @@ -1727,7 +1724,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1736,18 +1733,18 @@ func main() { id := `2c91808571bcfcf80171c23e4b4221fc` // string | ID of the campaign the report is being run for. # string | ID of the campaign the report is being run for. type_ := // ReportType | Type of the report to run. # ReportType | Type of the report to run. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.StartCampaignReport(context.Background(), id, type_).Execute() - //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.StartCampaignReport(context.Background(), id, type_).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.StartCampaignReport``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartCampaignReport`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.StartCampaignReport`: %v\n", resp) + //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.StartCampaignReport(context.Background(), id, type_).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.StartCampaignReport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartCampaignReport`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.StartCampaignReport`: %v\n", resp) } ``` @@ -1805,7 +1802,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1813,18 +1810,18 @@ import ( func main() { id := `2c9180835d191a86015d28455b4a2329` // string | ID of the campaign template to use for generation. # string | ID of the campaign template to use for generation. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.StartGenerateCampaignTemplate(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.StartGenerateCampaignTemplate(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.StartGenerateCampaignTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartGenerateCampaignTemplate`: CampaignReference - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.StartGenerateCampaignTemplate`: %v\n", resp) + //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.StartGenerateCampaignTemplate(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.StartGenerateCampaignTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartGenerateCampaignTemplate`: CampaignReference + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.StartGenerateCampaignTemplate`: %v\n", resp) } ``` @@ -1873,7 +1870,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1882,24 +1879,23 @@ func main() { id := `2c91808571bcfcf80171c23e4b4221fc` // string | ID of the campaign template being modified. # string | ID of the campaign template being modified. jsonpatchoperation := []byte(`[{op=replace, path=/name, value=This field has been updated!}, {op=copy, from=/name, path=/description}]`) // []JsonPatchOperation | A list of campaign update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The fields that can be patched differ based on the status of the campaign. When the campaign is in the *STAGED* status, you can patch these fields: * name * description * recommendationsEnabled * deadline * emailNotificationEnabled * autoRevokeAllowed When the campaign is in the *ACTIVE* status, you can patch these fields: * deadline - - var jsonPatchOperation v2024.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2024.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.UpdateCampaign(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.UpdateCampaign(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.UpdateCampaign``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateCampaign`: SlimCampaign - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.UpdateCampaign`: %v\n", resp) + //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.UpdateCampaign(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.UpdateCampaign``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateCampaign`: SlimCampaign + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.UpdateCampaign`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/CertificationSummariesAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/CertificationSummariesAPI.md index 30803f2d4..03d2f6b43 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/CertificationSummariesAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/CertificationSummariesAPI.md @@ -83,7 +83,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -97,18 +97,18 @@ func main() { filters := `access.id eq "ef38f94347e94562b5bb8424a56397d8"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **completed**: *eq, ne* **access.id**: *eq, in* **access.name**: *eq, sw* **entitlement.sourceName**: *eq, sw* **accessProfile.sourceName**: *eq, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **completed**: *eq, ne* **access.id**: *eq, in* **access.name**: *eq, sw* **entitlement.sourceName**: *eq, sw* **accessProfile.sourceName**: *eq, sw* (optional) sorters := `access.name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.name** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.name** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationSummariesAPI.GetIdentityAccessSummaries(context.Background(), id, type_).Execute() - //resp, r, err := apiClient.V2024.CertificationSummariesAPI.GetIdentityAccessSummaries(context.Background(), id, type_).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationSummariesAPI.GetIdentityAccessSummaries``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentityAccessSummaries`: []AccessSummary - fmt.Fprintf(os.Stdout, "Response from `CertificationSummariesAPI.GetIdentityAccessSummaries`: %v\n", resp) + //resp, r, err := apiClient.V2024.CertificationSummariesAPI.GetIdentityAccessSummaries(context.Background(), id, type_).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationSummariesAPI.GetIdentityAccessSummaries``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityAccessSummaries`: []AccessSummary + fmt.Fprintf(os.Stdout, "Response from `CertificationSummariesAPI.GetIdentityAccessSummaries`: %v\n", resp) } ``` @@ -156,7 +156,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -165,18 +165,18 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The certification ID # string | The certification ID filters := `identitySummary.id eq "ef38f94347e94562b5bb8424a56397d8"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **identitySummary.id**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **identitySummary.id**: *eq, in* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationSummariesAPI.GetIdentityDecisionSummary(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.CertificationSummariesAPI.GetIdentityDecisionSummary(context.Background(), id).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationSummariesAPI.GetIdentityDecisionSummary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentityDecisionSummary`: IdentityCertDecisionSummary - fmt.Fprintf(os.Stdout, "Response from `CertificationSummariesAPI.GetIdentityDecisionSummary`: %v\n", resp) + //resp, r, err := apiClient.V2024.CertificationSummariesAPI.GetIdentityDecisionSummary(context.Background(), id).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationSummariesAPI.GetIdentityDecisionSummary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityDecisionSummary`: IdentityCertDecisionSummary + fmt.Fprintf(os.Stdout, "Response from `CertificationSummariesAPI.GetIdentityDecisionSummary`: %v\n", resp) } ``` @@ -228,7 +228,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -241,18 +241,18 @@ func main() { filters := `id eq "ef38f94347e94562b5bb8424a56397d8"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **completed**: *eq, ne* **name**: *eq, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **completed**: *eq, ne* **name**: *eq, sw* (optional) sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationSummariesAPI.GetIdentitySummaries(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.CertificationSummariesAPI.GetIdentitySummaries(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationSummariesAPI.GetIdentitySummaries``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentitySummaries`: []CertificationIdentitySummary - fmt.Fprintf(os.Stdout, "Response from `CertificationSummariesAPI.GetIdentitySummaries`: %v\n", resp) + //resp, r, err := apiClient.V2024.CertificationSummariesAPI.GetIdentitySummaries(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationSummariesAPI.GetIdentitySummaries``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentitySummaries`: []CertificationIdentitySummary + fmt.Fprintf(os.Stdout, "Response from `CertificationSummariesAPI.GetIdentitySummaries`: %v\n", resp) } ``` @@ -301,7 +301,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -310,18 +310,18 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The identity campaign certification ID # string | The identity campaign certification ID identitySummaryId := `2c91808772a504f50172a9540e501ba8` // string | The identity summary ID # string | The identity summary ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationSummariesAPI.GetIdentitySummary(context.Background(), id, identitySummaryId).Execute() - //resp, r, err := apiClient.V2024.CertificationSummariesAPI.GetIdentitySummary(context.Background(), id, identitySummaryId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationSummariesAPI.GetIdentitySummary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentitySummary`: CertificationIdentitySummary - fmt.Fprintf(os.Stdout, "Response from `CertificationSummariesAPI.GetIdentitySummary`: %v\n", resp) + //resp, r, err := apiClient.V2024.CertificationSummariesAPI.GetIdentitySummary(context.Background(), id, identitySummaryId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationSummariesAPI.GetIdentitySummary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentitySummary`: CertificationIdentitySummary + fmt.Fprintf(os.Stdout, "Response from `CertificationSummariesAPI.GetIdentitySummary`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/CertificationsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/CertificationsAPI.md index 12aa1845f..24509b25d 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/CertificationsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/CertificationsAPI.md @@ -92,7 +92,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -100,18 +100,18 @@ import ( func main() { id := `63b32151-26c0-42f4-9299-8898dc1c9daa` // string | The task ID # string | The task ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationsAPI.GetCertificationTask(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.CertificationsAPI.GetCertificationTask(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.GetCertificationTask``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCertificationTask`: CertificationTask - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.GetCertificationTask`: %v\n", resp) + //resp, r, err := apiClient.V2024.CertificationsAPI.GetCertificationTask(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.GetCertificationTask``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificationTask`: CertificationTask + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.GetCertificationTask`: %v\n", resp) } ``` @@ -158,7 +158,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -166,18 +166,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The certification id # string | The certification id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationsAPI.GetIdentityCertification(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.CertificationsAPI.GetIdentityCertification(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.GetIdentityCertification``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentityCertification`: IdentityCertificationDto - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.GetIdentityCertification`: %v\n", resp) + //resp, r, err := apiClient.V2024.CertificationsAPI.GetIdentityCertification(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.GetIdentityCertification``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityCertification`: IdentityCertificationDto + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.GetIdentityCertification`: %v\n", resp) } ``` @@ -230,7 +230,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -243,18 +243,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationsAPI.GetIdentityCertificationItemPermissions(context.Background(), certificationId, itemId).Execute() - //resp, r, err := apiClient.V2024.CertificationsAPI.GetIdentityCertificationItemPermissions(context.Background(), certificationId, itemId).Filters(filters).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.GetIdentityCertificationItemPermissions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentityCertificationItemPermissions`: []PermissionDto - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.GetIdentityCertificationItemPermissions`: %v\n", resp) + //resp, r, err := apiClient.V2024.CertificationsAPI.GetIdentityCertificationItemPermissions(context.Background(), certificationId, itemId).Filters(filters).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.GetIdentityCertificationItemPermissions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityCertificationItemPermissions`: []PermissionDto + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.GetIdentityCertificationItemPermissions`: %v\n", resp) } ``` @@ -301,7 +301,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -313,18 +313,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) filters := `type eq "ADMIN_REASSIGN"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **targetId**: *eq, in* **type**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **targetId**: *eq, in* **type**: *eq, in* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationsAPI.GetPendingCertificationTasks(context.Background()).Execute() - //resp, r, err := apiClient.V2024.CertificationsAPI.GetPendingCertificationTasks(context.Background()).ReviewerIdentity(reviewerIdentity).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.GetPendingCertificationTasks``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPendingCertificationTasks`: []CertificationTask - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.GetPendingCertificationTasks`: %v\n", resp) + //resp, r, err := apiClient.V2024.CertificationsAPI.GetPendingCertificationTasks(context.Background()).ReviewerIdentity(reviewerIdentity).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.GetPendingCertificationTasks``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPendingCertificationTasks`: []CertificationTask + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.GetPendingCertificationTasks`: %v\n", resp) } ``` @@ -376,7 +376,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -389,18 +389,18 @@ func main() { filters := `name eq "Bob"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **email**: *eq, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **email**: *eq, sw* (optional) sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, email** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, email** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationsAPI.ListCertificationReviewers(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.CertificationsAPI.ListCertificationReviewers(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.ListCertificationReviewers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListCertificationReviewers`: []IdentityReferenceWithNameAndEmail - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.ListCertificationReviewers`: %v\n", resp) + //resp, r, err := apiClient.V2024.CertificationsAPI.ListCertificationReviewers(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.ListCertificationReviewers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCertificationReviewers`: []IdentityReferenceWithNameAndEmail + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.ListCertificationReviewers`: %v\n", resp) } ``` @@ -455,7 +455,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -471,18 +471,18 @@ func main() { accessProfiles := `accessProfile1` // string | Filter results to view access review items that pertain to any of the specified comma-separated access-profle IDs. An error will occur if this param is used with **entitlements** or **roles** as only one of these query params can be used at a time. (optional) # string | Filter results to view access review items that pertain to any of the specified comma-separated access-profle IDs. An error will occur if this param is used with **entitlements** or **roles** as only one of these query params can be used at a time. (optional) roles := `userRole` // string | Filter results to view access review items that pertain to any of the specified comma-separated role IDs. An error will occur if this param is used with **entitlements** or **access-profiles** as only one of these query params can be used at a time. (optional) # string | Filter results to view access review items that pertain to any of the specified comma-separated role IDs. An error will occur if this param is used with **entitlements** or **access-profiles** as only one of these query params can be used at a time. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationsAPI.ListIdentityAccessReviewItems(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.CertificationsAPI.ListIdentityAccessReviewItems(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Entitlements(entitlements).AccessProfiles(accessProfiles).Roles(roles).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.ListIdentityAccessReviewItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListIdentityAccessReviewItems`: []AccessReviewItem - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.ListIdentityAccessReviewItems`: %v\n", resp) + //resp, r, err := apiClient.V2024.CertificationsAPI.ListIdentityAccessReviewItems(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Entitlements(entitlements).AccessProfiles(accessProfiles).Roles(roles).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.ListIdentityAccessReviewItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListIdentityAccessReviewItems`: []AccessReviewItem + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.ListIdentityAccessReviewItems`: %v\n", resp) } ``` @@ -530,7 +530,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -543,18 +543,18 @@ func main() { filters := `id eq "ef38f94347e94562b5bb8424a56397d8"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **campaign.id**: *eq, in* **phase**: *eq* **completed**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **campaign.id**: *eq, in* **phase**: *eq* **completed**: *eq* (optional) sorters := `name,due` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, due, signed** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, due, signed** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationsAPI.ListIdentityCertifications(context.Background()).Execute() - //resp, r, err := apiClient.V2024.CertificationsAPI.ListIdentityCertifications(context.Background()).ReviewerIdentity(reviewerIdentity).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.ListIdentityCertifications``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListIdentityCertifications`: []IdentityCertificationDto - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.ListIdentityCertifications`: %v\n", resp) + //resp, r, err := apiClient.V2024.CertificationsAPI.ListIdentityCertifications(context.Background()).ReviewerIdentity(reviewerIdentity).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.ListIdentityCertifications``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListIdentityCertifications`: []IdentityCertificationDto + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.ListIdentityCertifications`: %v\n", resp) } ``` @@ -602,7 +602,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -611,24 +611,23 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the identity campaign certification on which to make decisions # string | The ID of the identity campaign certification on which to make decisions reviewdecision := []byte(`[{id=ef38f94347e94562b5bb8424a56396b5, decision=APPROVE, bulk=true, comments=This user still needs access to this source.}, {id=ef38f94347e94562b5bb8424a56397d8, decision=APPROVE, bulk=true, comments=This user still needs access to this source too.}]`) // []ReviewDecision | A non-empty array of decisions to be made. - - var reviewDecision v2024.[]ReviewDecision - if err := json.Unmarshal(reviewdecision, &reviewDecision); err != nil { - fmt.Println("Error:", err) - return - } - + var reviewDecision []v2024.ReviewDecision + if err := json.Unmarshal(reviewdecision, &reviewDecision); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationsAPI.MakeIdentityDecision(context.Background(), id).ReviewDecision(reviewDecision).Execute() - //resp, r, err := apiClient.V2024.CertificationsAPI.MakeIdentityDecision(context.Background(), id).ReviewDecision(reviewDecision).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.MakeIdentityDecision``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `MakeIdentityDecision`: IdentityCertificationDto - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.MakeIdentityDecision`: %v\n", resp) + //resp, r, err := apiClient.V2024.CertificationsAPI.MakeIdentityDecision(context.Background(), id).ReviewDecision(reviewDecision).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.MakeIdentityDecision``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `MakeIdentityDecision`: IdentityCertificationDto + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.MakeIdentityDecision`: %v\n", resp) } ``` @@ -676,7 +675,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -695,24 +694,23 @@ func main() { } ] }`) // ReviewReassign | - - var reviewReassign v2024.ReviewReassign - if err := json.Unmarshal(reviewreassign, &reviewReassign); err != nil { - fmt.Println("Error:", err) - return - } - + var reviewReassign v2024.ReviewReassign + if err := json.Unmarshal(reviewreassign, &reviewReassign); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationsAPI.ReassignIdentityCertifications(context.Background(), id).ReviewReassign(reviewReassign).Execute() - //resp, r, err := apiClient.V2024.CertificationsAPI.ReassignIdentityCertifications(context.Background(), id).ReviewReassign(reviewReassign).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.ReassignIdentityCertifications``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ReassignIdentityCertifications`: IdentityCertificationDto - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.ReassignIdentityCertifications`: %v\n", resp) + //resp, r, err := apiClient.V2024.CertificationsAPI.ReassignIdentityCertifications(context.Background(), id).ReviewReassign(reviewReassign).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.ReassignIdentityCertifications``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReassignIdentityCertifications`: IdentityCertificationDto + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.ReassignIdentityCertifications`: %v\n", resp) } ``` @@ -759,7 +757,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -767,18 +765,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The identity campaign certification ID # string | The identity campaign certification ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationsAPI.SignOffIdentityCertification(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.CertificationsAPI.SignOffIdentityCertification(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.SignOffIdentityCertification``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SignOffIdentityCertification`: IdentityCertificationDto - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.SignOffIdentityCertification`: %v\n", resp) + //resp, r, err := apiClient.V2024.CertificationsAPI.SignOffIdentityCertification(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.SignOffIdentityCertification``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SignOffIdentityCertification`: IdentityCertificationDto + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.SignOffIdentityCertification`: %v\n", resp) } ``` @@ -831,7 +829,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -850,24 +848,23 @@ func main() { } ] }`) // ReviewReassign | - - var reviewReassign v2024.ReviewReassign - if err := json.Unmarshal(reviewreassign, &reviewReassign); err != nil { - fmt.Println("Error:", err) - return - } - + var reviewReassign v2024.ReviewReassign + if err := json.Unmarshal(reviewreassign, &reviewReassign); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationsAPI.SubmitReassignCertsAsync(context.Background(), id).ReviewReassign(reviewReassign).Execute() - //resp, r, err := apiClient.V2024.CertificationsAPI.SubmitReassignCertsAsync(context.Background(), id).ReviewReassign(reviewReassign).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.SubmitReassignCertsAsync``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SubmitReassignCertsAsync`: CertificationTask - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.SubmitReassignCertsAsync`: %v\n", resp) + //resp, r, err := apiClient.V2024.CertificationsAPI.SubmitReassignCertsAsync(context.Background(), id).ReviewReassign(reviewReassign).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.SubmitReassignCertsAsync``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SubmitReassignCertsAsync`: CertificationTask + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.SubmitReassignCertsAsync`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/ConfigurationHubAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/ConfigurationHubAPI.md index a961416a3..ef729d987 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/ConfigurationHubAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/ConfigurationHubAPI.md @@ -85,7 +85,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -95,24 +95,23 @@ func main() { "draftId" : "3d0fe04b-57df-4a46-a83b-8f04b0f9d10b" }`) // DeployRequest | The deploy request body. - - var deployRequest v2024.DeployRequest - if err := json.Unmarshal(deployrequest, &deployRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var deployRequest v2024.DeployRequest + if err := json.Unmarshal(deployrequest, &deployRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConfigurationHubAPI.CreateDeploy(context.Background()).DeployRequest(deployRequest).Execute() - //resp, r, err := apiClient.V2024.ConfigurationHubAPI.CreateDeploy(context.Background()).DeployRequest(deployRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.CreateDeploy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateDeploy`: DeployResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.CreateDeploy`: %v\n", resp) + //resp, r, err := apiClient.V2024.ConfigurationHubAPI.CreateDeploy(context.Background()).DeployRequest(deployRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.CreateDeploy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateDeploy`: DeployResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.CreateDeploy`: %v\n", resp) } ``` @@ -163,7 +162,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -178,24 +177,23 @@ func main() { "objectType" : "IDENTITY" }`) // ObjectMappingRequest | The object mapping request body. - - var objectMappingRequest v2024.ObjectMappingRequest - if err := json.Unmarshal(objectmappingrequest, &objectMappingRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var objectMappingRequest v2024.ObjectMappingRequest + if err := json.Unmarshal(objectmappingrequest, &objectMappingRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConfigurationHubAPI.CreateObjectMapping(context.Background(), sourceOrg).ObjectMappingRequest(objectMappingRequest).Execute() - //resp, r, err := apiClient.V2024.ConfigurationHubAPI.CreateObjectMapping(context.Background(), sourceOrg).ObjectMappingRequest(objectMappingRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.CreateObjectMapping``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateObjectMapping`: ObjectMappingResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.CreateObjectMapping`: %v\n", resp) + //resp, r, err := apiClient.V2024.ConfigurationHubAPI.CreateObjectMapping(context.Background(), sourceOrg).ObjectMappingRequest(objectMappingRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.CreateObjectMapping``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateObjectMapping`: ObjectMappingResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.CreateObjectMapping`: %v\n", resp) } ``` @@ -246,7 +244,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -269,24 +267,23 @@ func main() { } ] }`) // ObjectMappingBulkCreateRequest | The bulk create object mapping request body. - - var objectMappingBulkCreateRequest v2024.ObjectMappingBulkCreateRequest - if err := json.Unmarshal(objectmappingbulkcreaterequest, &objectMappingBulkCreateRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var objectMappingBulkCreateRequest v2024.ObjectMappingBulkCreateRequest + if err := json.Unmarshal(objectmappingbulkcreaterequest, &objectMappingBulkCreateRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConfigurationHubAPI.CreateObjectMappings(context.Background(), sourceOrg).ObjectMappingBulkCreateRequest(objectMappingBulkCreateRequest).Execute() - //resp, r, err := apiClient.V2024.ConfigurationHubAPI.CreateObjectMappings(context.Background(), sourceOrg).ObjectMappingBulkCreateRequest(objectMappingBulkCreateRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.CreateObjectMappings``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateObjectMappings`: ObjectMappingBulkCreateResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.CreateObjectMappings`: %v\n", resp) + //resp, r, err := apiClient.V2024.ConfigurationHubAPI.CreateObjectMappings(context.Background(), sourceOrg).ObjectMappingBulkCreateRequest(objectMappingBulkCreateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.CreateObjectMappings``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateObjectMappings`: ObjectMappingBulkCreateResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.CreateObjectMappings`: %v\n", resp) } ``` @@ -329,7 +326,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -359,24 +356,23 @@ func main() { } }`) // ScheduledActionPayload | The scheduled action creation request body. - - var scheduledActionPayload v2024.ScheduledActionPayload - if err := json.Unmarshal(scheduledactionpayload, &scheduledActionPayload); err != nil { - fmt.Println("Error:", err) - return - } - + var scheduledActionPayload v2024.ScheduledActionPayload + if err := json.Unmarshal(scheduledactionpayload, &scheduledActionPayload); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConfigurationHubAPI.CreateScheduledAction(context.Background()).ScheduledActionPayload(scheduledActionPayload).Execute() - //resp, r, err := apiClient.V2024.ConfigurationHubAPI.CreateScheduledAction(context.Background()).ScheduledActionPayload(scheduledActionPayload).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.CreateScheduledAction``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateScheduledAction`: ScheduledActionResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.CreateScheduledAction`: %v\n", resp) + //resp, r, err := apiClient.V2024.ConfigurationHubAPI.CreateScheduledAction(context.Background()).ScheduledActionPayload(scheduledActionPayload).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.CreateScheduledAction``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateScheduledAction`: ScheduledActionResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.CreateScheduledAction`: %v\n", resp) } ``` @@ -424,7 +420,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -433,18 +429,18 @@ func main() { data := BINARY_DATA_HERE // *os.File | JSON file containing the objects to be imported. # *os.File | JSON file containing the objects to be imported. name := `name_example` // string | Name that will be assigned to the uploaded configuration file. # string | Name that will be assigned to the uploaded configuration file. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConfigurationHubAPI.CreateUploadedConfiguration(context.Background()).Data(data).Name(name).Execute() - //resp, r, err := apiClient.V2024.ConfigurationHubAPI.CreateUploadedConfiguration(context.Background()).Data(data).Name(name).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.CreateUploadedConfiguration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateUploadedConfiguration`: BackupResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.CreateUploadedConfiguration`: %v\n", resp) + //resp, r, err := apiClient.V2024.ConfigurationHubAPI.CreateUploadedConfiguration(context.Background()).Data(data).Name(name).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.CreateUploadedConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateUploadedConfiguration`: BackupResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.CreateUploadedConfiguration`: %v\n", resp) } ``` @@ -495,7 +491,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -503,16 +499,17 @@ import ( func main() { id := `07659d7d-2cce-47c0-9e49-185787ee565a` // string | The id of the backup to delete. # string | The id of the backup to delete. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.ConfigurationHubAPI.DeleteBackup(context.Background(), id).Execute() - //r, err := apiClient.V2024.ConfigurationHubAPI.DeleteBackup(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.DeleteBackup``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.ConfigurationHubAPI.DeleteBackup(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.DeleteBackup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -563,7 +560,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -571,16 +568,17 @@ import ( func main() { id := `07659d7d-2cce-47c0-9e49-185787ee565a` // string | The id of the draft to delete. # string | The id of the draft to delete. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.ConfigurationHubAPI.DeleteDraft(context.Background(), id).Execute() - //r, err := apiClient.V2024.ConfigurationHubAPI.DeleteDraft(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.DeleteDraft``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.ConfigurationHubAPI.DeleteDraft(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.DeleteDraft``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -632,7 +630,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -641,16 +639,17 @@ func main() { sourceOrg := `source-org` // string | The name of the source org. # string | The name of the source org. objectMappingId := `3d6e0144-963f-4bd6-8d8d-d77b4e507ce4` // string | The id of the object mapping to be deleted. # string | The id of the object mapping to be deleted. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.ConfigurationHubAPI.DeleteObjectMapping(context.Background(), sourceOrg, objectMappingId).Execute() - //r, err := apiClient.V2024.ConfigurationHubAPI.DeleteObjectMapping(context.Background(), sourceOrg, objectMappingId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.DeleteObjectMapping``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.ConfigurationHubAPI.DeleteObjectMapping(context.Background(), sourceOrg, objectMappingId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.DeleteObjectMapping``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -697,7 +696,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -705,16 +704,17 @@ import ( func main() { scheduledActionId := `0f11f2a4-7c94-4bf3-a2bd-742580fe3bde` // string | The ID of the scheduled action. # string | The ID of the scheduled action. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.ConfigurationHubAPI.DeleteScheduledAction(context.Background(), scheduledActionId).Execute() - //r, err := apiClient.V2024.ConfigurationHubAPI.DeleteScheduledAction(context.Background(), scheduledActionId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.DeleteScheduledAction``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.ConfigurationHubAPI.DeleteScheduledAction(context.Background(), scheduledActionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.DeleteScheduledAction``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -765,7 +765,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -773,16 +773,17 @@ import ( func main() { id := `3d0fe04b-57df-4a46-a83b-8f04b0f9d10b` // string | The id of the uploaded configuration. # string | The id of the uploaded configuration. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.ConfigurationHubAPI.DeleteUploadedConfiguration(context.Background(), id).Execute() - //r, err := apiClient.V2024.ConfigurationHubAPI.DeleteUploadedConfiguration(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.DeleteUploadedConfiguration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.ConfigurationHubAPI.DeleteUploadedConfiguration(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.DeleteUploadedConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -829,7 +830,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -837,18 +838,18 @@ import ( func main() { id := `3d0fe04b-57df-4a46-a83b-8f04b0f9d10b` // string | The id of the deploy. # string | The id of the deploy. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConfigurationHubAPI.GetDeploy(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.ConfigurationHubAPI.GetDeploy(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.GetDeploy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetDeploy`: DeployResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.GetDeploy`: %v\n", resp) + //resp, r, err := apiClient.V2024.ConfigurationHubAPI.GetDeploy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.GetDeploy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDeploy`: DeployResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.GetDeploy`: %v\n", resp) } ``` @@ -898,7 +899,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -906,18 +907,18 @@ import ( func main() { sourceOrg := `source-org` // string | The name of the source org. # string | The name of the source org. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConfigurationHubAPI.GetObjectMappings(context.Background(), sourceOrg).Execute() - //resp, r, err := apiClient.V2024.ConfigurationHubAPI.GetObjectMappings(context.Background(), sourceOrg).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.GetObjectMappings``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetObjectMappings`: []ObjectMappingResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.GetObjectMappings`: %v\n", resp) + //resp, r, err := apiClient.V2024.ConfigurationHubAPI.GetObjectMappings(context.Background(), sourceOrg).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.GetObjectMappings``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetObjectMappings`: []ObjectMappingResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.GetObjectMappings`: %v\n", resp) } ``` @@ -964,7 +965,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -972,18 +973,18 @@ import ( func main() { id := `3d0fe04b-57df-4a46-a83b-8f04b0f9d10b` // string | The id of the uploaded configuration. # string | The id of the uploaded configuration. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConfigurationHubAPI.GetUploadedConfiguration(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.ConfigurationHubAPI.GetUploadedConfiguration(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.GetUploadedConfiguration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetUploadedConfiguration`: BackupResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.GetUploadedConfiguration`: %v\n", resp) + //resp, r, err := apiClient.V2024.ConfigurationHubAPI.GetUploadedConfiguration(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.GetUploadedConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetUploadedConfiguration`: BackupResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.GetUploadedConfiguration`: %v\n", resp) } ``` @@ -1026,7 +1027,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1034,18 +1035,18 @@ import ( func main() { filters := `status eq "COMPLETE"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **status**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **status**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConfigurationHubAPI.ListBackups(context.Background()).Execute() - //resp, r, err := apiClient.V2024.ConfigurationHubAPI.ListBackups(context.Background()).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.ListBackups``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListBackups`: []BackupResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.ListBackups`: %v\n", resp) + //resp, r, err := apiClient.V2024.ConfigurationHubAPI.ListBackups(context.Background()).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.ListBackups``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListBackups`: []BackupResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.ListBackups`: %v\n", resp) } ``` @@ -1084,25 +1085,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConfigurationHubAPI.ListDeploys(context.Background()).Execute() - //resp, r, err := apiClient.V2024.ConfigurationHubAPI.ListDeploys(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.ListDeploys``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListDeploys`: ListDeploys200Response - fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.ListDeploys`: %v\n", resp) + //resp, r, err := apiClient.V2024.ConfigurationHubAPI.ListDeploys(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.ListDeploys``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListDeploys`: ListDeploys200Response + fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.ListDeploys`: %v\n", resp) } ``` @@ -1145,7 +1146,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1153,18 +1154,18 @@ import ( func main() { filters := `status eq "COMPLETE"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **status**: *eq* **approvalStatus**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **status**: *eq* **approvalStatus**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConfigurationHubAPI.ListDrafts(context.Background()).Execute() - //resp, r, err := apiClient.V2024.ConfigurationHubAPI.ListDrafts(context.Background()).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.ListDrafts``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListDrafts`: []DraftResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.ListDrafts`: %v\n", resp) + //resp, r, err := apiClient.V2024.ConfigurationHubAPI.ListDrafts(context.Background()).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.ListDrafts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListDrafts`: []DraftResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.ListDrafts`: %v\n", resp) } ``` @@ -1203,25 +1204,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConfigurationHubAPI.ListScheduledActions(context.Background()).Execute() - //resp, r, err := apiClient.V2024.ConfigurationHubAPI.ListScheduledActions(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.ListScheduledActions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListScheduledActions`: []ScheduledActionResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.ListScheduledActions`: %v\n", resp) + //resp, r, err := apiClient.V2024.ConfigurationHubAPI.ListScheduledActions(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.ListScheduledActions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListScheduledActions`: []ScheduledActionResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.ListScheduledActions`: %v\n", resp) } ``` @@ -1264,7 +1265,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1272,18 +1273,18 @@ import ( func main() { filters := `status eq "COMPLETE"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **status**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **status**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConfigurationHubAPI.ListUploadedConfigurations(context.Background()).Execute() - //resp, r, err := apiClient.V2024.ConfigurationHubAPI.ListUploadedConfigurations(context.Background()).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.ListUploadedConfigurations``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListUploadedConfigurations`: []BackupResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.ListUploadedConfigurations`: %v\n", resp) + //resp, r, err := apiClient.V2024.ConfigurationHubAPI.ListUploadedConfigurations(context.Background()).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.ListUploadedConfigurations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListUploadedConfigurations`: []BackupResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.ListUploadedConfigurations`: %v\n", resp) } ``` @@ -1334,7 +1335,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1356,24 +1357,23 @@ func main() { } }`) // ObjectMappingBulkPatchRequest | The object mapping request body. - - var objectMappingBulkPatchRequest v2024.ObjectMappingBulkPatchRequest - if err := json.Unmarshal(objectmappingbulkpatchrequest, &objectMappingBulkPatchRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var objectMappingBulkPatchRequest v2024.ObjectMappingBulkPatchRequest + if err := json.Unmarshal(objectmappingbulkpatchrequest, &objectMappingBulkPatchRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConfigurationHubAPI.UpdateObjectMappings(context.Background(), sourceOrg).ObjectMappingBulkPatchRequest(objectMappingBulkPatchRequest).Execute() - //resp, r, err := apiClient.V2024.ConfigurationHubAPI.UpdateObjectMappings(context.Background(), sourceOrg).ObjectMappingBulkPatchRequest(objectMappingBulkPatchRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.UpdateObjectMappings``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateObjectMappings`: ObjectMappingBulkPatchResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.UpdateObjectMappings`: %v\n", resp) + //resp, r, err := apiClient.V2024.ConfigurationHubAPI.UpdateObjectMappings(context.Background(), sourceOrg).ObjectMappingBulkPatchRequest(objectMappingBulkPatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.UpdateObjectMappings``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateObjectMappings`: ObjectMappingBulkPatchResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.UpdateObjectMappings`: %v\n", resp) } ``` @@ -1421,7 +1421,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1440,24 +1440,23 @@ func main() { } ] }`) // JsonPatch | The JSON Patch document containing the changes to apply to the scheduled action. - - var jsonPatch v2024.JsonPatch - if err := json.Unmarshal(jsonpatch, &jsonPatch); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatch v2024.JsonPatch + if err := json.Unmarshal(jsonpatch, &jsonPatch); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConfigurationHubAPI.UpdateScheduledAction(context.Background(), scheduledActionId).JsonPatch(jsonPatch).Execute() - //resp, r, err := apiClient.V2024.ConfigurationHubAPI.UpdateScheduledAction(context.Background(), scheduledActionId).JsonPatch(jsonPatch).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.UpdateScheduledAction``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateScheduledAction`: ScheduledActionResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.UpdateScheduledAction`: %v\n", resp) + //resp, r, err := apiClient.V2024.ConfigurationHubAPI.UpdateScheduledAction(context.Background(), scheduledActionId).JsonPatch(jsonPatch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.UpdateScheduledAction``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateScheduledAction`: ScheduledActionResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.UpdateScheduledAction`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/ConnectorCustomizersAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/ConnectorCustomizersAPI.md index 866edbbcb..ce925084a 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/ConnectorCustomizersAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/ConnectorCustomizersAPI.md @@ -63,7 +63,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -73,24 +73,23 @@ func main() { "name" : "My Custom Connector" }`) // ConnectorCustomizerCreateRequest | Connector customizer to create. - - var connectorCustomizerCreateRequest v2024.ConnectorCustomizerCreateRequest - if err := json.Unmarshal(connectorcustomizercreaterequest, &connectorCustomizerCreateRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var connectorCustomizerCreateRequest v2024.ConnectorCustomizerCreateRequest + if err := json.Unmarshal(connectorcustomizercreaterequest, &connectorCustomizerCreateRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorCustomizersAPI.CreateConnectorCustomizer(context.Background()).ConnectorCustomizerCreateRequest(connectorCustomizerCreateRequest).Execute() - //resp, r, err := apiClient.V2024.ConnectorCustomizersAPI.CreateConnectorCustomizer(context.Background()).ConnectorCustomizerCreateRequest(connectorCustomizerCreateRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorCustomizersAPI.CreateConnectorCustomizer``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateConnectorCustomizer`: ConnectorCustomizerCreateResponse - fmt.Fprintf(os.Stdout, "Response from `ConnectorCustomizersAPI.CreateConnectorCustomizer`: %v\n", resp) + //resp, r, err := apiClient.V2024.ConnectorCustomizersAPI.CreateConnectorCustomizer(context.Background()).ConnectorCustomizerCreateRequest(connectorCustomizerCreateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorCustomizersAPI.CreateConnectorCustomizer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateConnectorCustomizer`: ConnectorCustomizerCreateResponse + fmt.Fprintf(os.Stdout, "Response from `ConnectorCustomizersAPI.CreateConnectorCustomizer`: %v\n", resp) } ``` @@ -137,7 +136,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -145,18 +144,18 @@ import ( func main() { id := `b07dc46a-1498-4de8-bfbb-259a68e70c8a` // string | The id of the connector customizer. # string | The id of the connector customizer. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorCustomizersAPI.CreateConnectorCustomizerVersion(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.ConnectorCustomizersAPI.CreateConnectorCustomizerVersion(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorCustomizersAPI.CreateConnectorCustomizerVersion``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateConnectorCustomizerVersion`: ConnectorCustomizerVersionCreateResponse - fmt.Fprintf(os.Stdout, "Response from `ConnectorCustomizersAPI.CreateConnectorCustomizerVersion`: %v\n", resp) + //resp, r, err := apiClient.V2024.ConnectorCustomizersAPI.CreateConnectorCustomizerVersion(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorCustomizersAPI.CreateConnectorCustomizerVersion``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateConnectorCustomizerVersion`: ConnectorCustomizerVersionCreateResponse + fmt.Fprintf(os.Stdout, "Response from `ConnectorCustomizersAPI.CreateConnectorCustomizerVersion`: %v\n", resp) } ``` @@ -203,7 +202,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -211,16 +210,17 @@ import ( func main() { id := `b07dc46a-1498-4de8-bfbb-259a68e70c8a` // string | ID of the connector customizer to delete. # string | ID of the connector customizer to delete. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.ConnectorCustomizersAPI.DeleteConnectorCustomizer(context.Background(), id).Execute() - //r, err := apiClient.V2024.ConnectorCustomizersAPI.DeleteConnectorCustomizer(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorCustomizersAPI.DeleteConnectorCustomizer``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.ConnectorCustomizersAPI.DeleteConnectorCustomizer(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorCustomizersAPI.DeleteConnectorCustomizer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -267,7 +267,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -275,18 +275,18 @@ import ( func main() { id := `b07dc46a-1498-4de8-bfbb-259a68e70c8a` // string | ID of the connector customizer to get. # string | ID of the connector customizer to get. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorCustomizersAPI.GetConnectorCustomizer(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.ConnectorCustomizersAPI.GetConnectorCustomizer(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorCustomizersAPI.GetConnectorCustomizer``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetConnectorCustomizer`: ConnectorCustomizersResponse - fmt.Fprintf(os.Stdout, "Response from `ConnectorCustomizersAPI.GetConnectorCustomizer`: %v\n", resp) + //resp, r, err := apiClient.V2024.ConnectorCustomizersAPI.GetConnectorCustomizer(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorCustomizersAPI.GetConnectorCustomizer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnectorCustomizer`: ConnectorCustomizersResponse + fmt.Fprintf(os.Stdout, "Response from `ConnectorCustomizersAPI.GetConnectorCustomizer`: %v\n", resp) } ``` @@ -330,7 +330,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -339,18 +339,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorCustomizersAPI.ListConnectorCustomizers(context.Background()).Execute() - //resp, r, err := apiClient.V2024.ConnectorCustomizersAPI.ListConnectorCustomizers(context.Background()).Offset(offset).Limit(limit).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorCustomizersAPI.ListConnectorCustomizers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListConnectorCustomizers`: []ConnectorCustomizersResponse - fmt.Fprintf(os.Stdout, "Response from `ConnectorCustomizersAPI.ListConnectorCustomizers`: %v\n", resp) + //resp, r, err := apiClient.V2024.ConnectorCustomizersAPI.ListConnectorCustomizers(context.Background()).Offset(offset).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorCustomizersAPI.ListConnectorCustomizers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListConnectorCustomizers`: []ConnectorCustomizersResponse + fmt.Fprintf(os.Stdout, "Response from `ConnectorCustomizersAPI.ListConnectorCustomizers`: %v\n", resp) } ``` @@ -398,7 +398,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -409,18 +409,18 @@ func main() { "name" : "My Custom Connector" }`) // ConnectorCustomizerUpdateRequest | Connector rule with updated data. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorCustomizersAPI.PutConnectorCustomizer(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.ConnectorCustomizersAPI.PutConnectorCustomizer(context.Background(), id).ConnectorCustomizerUpdateRequest(connectorCustomizerUpdateRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorCustomizersAPI.PutConnectorCustomizer``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutConnectorCustomizer`: ConnectorCustomizerUpdateResponse - fmt.Fprintf(os.Stdout, "Response from `ConnectorCustomizersAPI.PutConnectorCustomizer`: %v\n", resp) + //resp, r, err := apiClient.V2024.ConnectorCustomizersAPI.PutConnectorCustomizer(context.Background(), id).ConnectorCustomizerUpdateRequest(connectorCustomizerUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorCustomizersAPI.PutConnectorCustomizer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutConnectorCustomizer`: ConnectorCustomizerUpdateResponse + fmt.Fprintf(os.Stdout, "Response from `ConnectorCustomizersAPI.PutConnectorCustomizer`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/ConnectorRuleManagementAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/ConnectorRuleManagementAPI.md index 9e3fa0866..e79791084 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/ConnectorRuleManagementAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/ConnectorRuleManagementAPI.md @@ -67,7 +67,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -100,24 +100,23 @@ func main() { "type" : "BuildMap" }`) // ConnectorRuleCreateRequest | Connector rule to create. - - var connectorRuleCreateRequest v2024.ConnectorRuleCreateRequest - if err := json.Unmarshal(connectorrulecreaterequest, &connectorRuleCreateRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var connectorRuleCreateRequest v2024.ConnectorRuleCreateRequest + if err := json.Unmarshal(connectorrulecreaterequest, &connectorRuleCreateRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorRuleManagementAPI.CreateConnectorRule(context.Background()).ConnectorRuleCreateRequest(connectorRuleCreateRequest).Execute() - //resp, r, err := apiClient.V2024.ConnectorRuleManagementAPI.CreateConnectorRule(context.Background()).ConnectorRuleCreateRequest(connectorRuleCreateRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorRuleManagementAPI.CreateConnectorRule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateConnectorRule`: ConnectorRuleResponse - fmt.Fprintf(os.Stdout, "Response from `ConnectorRuleManagementAPI.CreateConnectorRule`: %v\n", resp) + //resp, r, err := apiClient.V2024.ConnectorRuleManagementAPI.CreateConnectorRule(context.Background()).ConnectorRuleCreateRequest(connectorRuleCreateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorRuleManagementAPI.CreateConnectorRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateConnectorRule`: ConnectorRuleResponse + fmt.Fprintf(os.Stdout, "Response from `ConnectorRuleManagementAPI.CreateConnectorRule`: %v\n", resp) } ``` @@ -164,7 +163,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -172,16 +171,17 @@ import ( func main() { id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | ID of the connector rule to delete. # string | ID of the connector rule to delete. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.ConnectorRuleManagementAPI.DeleteConnectorRule(context.Background(), id).Execute() - //r, err := apiClient.V2024.ConnectorRuleManagementAPI.DeleteConnectorRule(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorRuleManagementAPI.DeleteConnectorRule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.ConnectorRuleManagementAPI.DeleteConnectorRule(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorRuleManagementAPI.DeleteConnectorRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -228,7 +228,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -236,18 +236,18 @@ import ( func main() { id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | ID of the connector rule to get. # string | ID of the connector rule to get. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorRuleManagementAPI.GetConnectorRule(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.ConnectorRuleManagementAPI.GetConnectorRule(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorRuleManagementAPI.GetConnectorRule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetConnectorRule`: ConnectorRuleResponse - fmt.Fprintf(os.Stdout, "Response from `ConnectorRuleManagementAPI.GetConnectorRule`: %v\n", resp) + //resp, r, err := apiClient.V2024.ConnectorRuleManagementAPI.GetConnectorRule(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorRuleManagementAPI.GetConnectorRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnectorRule`: ConnectorRuleResponse + fmt.Fprintf(os.Stdout, "Response from `ConnectorRuleManagementAPI.GetConnectorRule`: %v\n", resp) } ``` @@ -292,7 +292,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -302,18 +302,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorRuleManagementAPI.GetConnectorRuleList(context.Background()).Execute() - //resp, r, err := apiClient.V2024.ConnectorRuleManagementAPI.GetConnectorRuleList(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorRuleManagementAPI.GetConnectorRuleList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetConnectorRuleList`: []ConnectorRuleResponse - fmt.Fprintf(os.Stdout, "Response from `ConnectorRuleManagementAPI.GetConnectorRuleList`: %v\n", resp) + //resp, r, err := apiClient.V2024.ConnectorRuleManagementAPI.GetConnectorRuleList(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorRuleManagementAPI.GetConnectorRuleList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnectorRuleList`: []ConnectorRuleResponse + fmt.Fprintf(os.Stdout, "Response from `ConnectorRuleManagementAPI.GetConnectorRuleList`: %v\n", resp) } ``` @@ -361,7 +361,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -396,18 +396,18 @@ func main() { "type" : "BuildMap" }`) // ConnectorRuleUpdateRequest | Connector rule with updated data. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorRuleManagementAPI.PutConnectorRule(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.ConnectorRuleManagementAPI.PutConnectorRule(context.Background(), id).ConnectorRuleUpdateRequest(connectorRuleUpdateRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorRuleManagementAPI.PutConnectorRule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutConnectorRule`: ConnectorRuleResponse - fmt.Fprintf(os.Stdout, "Response from `ConnectorRuleManagementAPI.PutConnectorRule`: %v\n", resp) + //resp, r, err := apiClient.V2024.ConnectorRuleManagementAPI.PutConnectorRule(context.Background(), id).ConnectorRuleUpdateRequest(connectorRuleUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorRuleManagementAPI.PutConnectorRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutConnectorRule`: ConnectorRuleResponse + fmt.Fprintf(os.Stdout, "Response from `ConnectorRuleManagementAPI.PutConnectorRule`: %v\n", resp) } ``` @@ -450,7 +450,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -461,24 +461,23 @@ func main() { "script" : "return \"Mr. \" + firstName;" }`) // SourceCode | Code to validate. - - var sourceCode v2024.SourceCode - if err := json.Unmarshal(sourcecode, &sourceCode); err != nil { - fmt.Println("Error:", err) - return - } - + var sourceCode v2024.SourceCode + if err := json.Unmarshal(sourcecode, &sourceCode); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorRuleManagementAPI.TestConnectorRule(context.Background()).SourceCode(sourceCode).Execute() - //resp, r, err := apiClient.V2024.ConnectorRuleManagementAPI.TestConnectorRule(context.Background()).SourceCode(sourceCode).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorRuleManagementAPI.TestConnectorRule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `TestConnectorRule`: ConnectorRuleValidationResponse - fmt.Fprintf(os.Stdout, "Response from `ConnectorRuleManagementAPI.TestConnectorRule`: %v\n", resp) + //resp, r, err := apiClient.V2024.ConnectorRuleManagementAPI.TestConnectorRule(context.Background()).SourceCode(sourceCode).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorRuleManagementAPI.TestConnectorRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TestConnectorRule`: ConnectorRuleValidationResponse + fmt.Fprintf(os.Stdout, "Response from `ConnectorRuleManagementAPI.TestConnectorRule`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/ConnectorsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/ConnectorsAPI.md index 44518b27c..8eaa06fa8 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/ConnectorsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/ConnectorsAPI.md @@ -81,7 +81,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -95,24 +95,23 @@ func main() { "status" : "RELEASED" }`) // V3CreateConnectorDto | - - var v3CreateConnectorDto v2024.V3CreateConnectorDto - if err := json.Unmarshal(v3createconnectordto, &v3CreateConnectorDto); err != nil { - fmt.Println("Error:", err) - return - } - + var v3CreateConnectorDto v2024.V3CreateConnectorDto + if err := json.Unmarshal(v3createconnectordto, &v3CreateConnectorDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorsAPI.CreateCustomConnector(context.Background()).V3CreateConnectorDto(v3CreateConnectorDto).Execute() - //resp, r, err := apiClient.V2024.ConnectorsAPI.CreateCustomConnector(context.Background()).V3CreateConnectorDto(v3CreateConnectorDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.CreateCustomConnector``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateCustomConnector`: V3ConnectorDto - fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.CreateCustomConnector`: %v\n", resp) + //resp, r, err := apiClient.V2024.ConnectorsAPI.CreateCustomConnector(context.Background()).V3CreateConnectorDto(v3CreateConnectorDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.CreateCustomConnector``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCustomConnector`: V3ConnectorDto + fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.CreateCustomConnector`: %v\n", resp) } ``` @@ -159,7 +158,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -167,16 +166,17 @@ import ( func main() { scriptName := `aScriptName` // string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.ConnectorsAPI.DeleteCustomConnector(context.Background(), scriptName).Execute() - //r, err := apiClient.V2024.ConnectorsAPI.DeleteCustomConnector(context.Background(), scriptName).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.DeleteCustomConnector``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.ConnectorsAPI.DeleteCustomConnector(context.Background(), scriptName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.DeleteCustomConnector``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -224,7 +224,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -233,18 +233,18 @@ func main() { scriptName := `aScriptName` // string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. locale := `de` // string | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) # string | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnector(context.Background(), scriptName).Execute() - //resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnector(context.Background(), scriptName).Locale(locale).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.GetConnector``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetConnector`: ConnectorDetail - fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.GetConnector`: %v\n", resp) + //resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnector(context.Background(), scriptName).Locale(locale).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.GetConnector``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnector`: ConnectorDetail + fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.GetConnector`: %v\n", resp) } ``` @@ -291,7 +291,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -299,18 +299,18 @@ import ( func main() { scriptName := `aScriptName` // string | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. # string | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnectorCorrelationConfig(context.Background(), scriptName).Execute() - //resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnectorCorrelationConfig(context.Background(), scriptName).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.GetConnectorCorrelationConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetConnectorCorrelationConfig`: string - fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.GetConnectorCorrelationConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnectorCorrelationConfig(context.Background(), scriptName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.GetConnectorCorrelationConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnectorCorrelationConfig`: string + fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.GetConnectorCorrelationConfig`: %v\n", resp) } ``` @@ -357,7 +357,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -369,18 +369,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) locale := `de` // string | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) # string | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnectorList(context.Background()).Execute() - //resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnectorList(context.Background()).Filters(filters).Limit(limit).Offset(offset).Count(count).Locale(locale).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.GetConnectorList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetConnectorList`: []V3ConnectorDto - fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.GetConnectorList`: %v\n", resp) + //resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnectorList(context.Background()).Filters(filters).Limit(limit).Offset(offset).Count(count).Locale(locale).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.GetConnectorList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnectorList`: []V3ConnectorDto + fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.GetConnectorList`: %v\n", resp) } ``` @@ -427,7 +427,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -435,18 +435,18 @@ import ( func main() { scriptName := `aScriptName` // string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnectorSourceConfig(context.Background(), scriptName).Execute() - //resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnectorSourceConfig(context.Background(), scriptName).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.GetConnectorSourceConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetConnectorSourceConfig`: string - fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.GetConnectorSourceConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnectorSourceConfig(context.Background(), scriptName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.GetConnectorSourceConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnectorSourceConfig`: string + fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.GetConnectorSourceConfig`: %v\n", resp) } ``` @@ -493,7 +493,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -501,18 +501,18 @@ import ( func main() { scriptName := `aScriptName` // string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnectorSourceTemplate(context.Background(), scriptName).Execute() - //resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnectorSourceTemplate(context.Background(), scriptName).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.GetConnectorSourceTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetConnectorSourceTemplate`: string - fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.GetConnectorSourceTemplate`: %v\n", resp) + //resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnectorSourceTemplate(context.Background(), scriptName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.GetConnectorSourceTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnectorSourceTemplate`: string + fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.GetConnectorSourceTemplate`: %v\n", resp) } ``` @@ -561,7 +561,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -570,18 +570,18 @@ func main() { scriptName := `aScriptName` // string | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. # string | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. locale := `de` // string | The locale to apply to the config. If no viable locale is given, it will default to \"en\" # string | The locale to apply to the config. If no viable locale is given, it will default to \"en\" - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnectorTranslations(context.Background(), scriptName, locale).Execute() - //resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnectorTranslations(context.Background(), scriptName, locale).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.GetConnectorTranslations``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetConnectorTranslations`: string - fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.GetConnectorTranslations`: %v\n", resp) + //resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnectorTranslations(context.Background(), scriptName, locale).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.GetConnectorTranslations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnectorTranslations`: string + fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.GetConnectorTranslations`: %v\n", resp) } ``` @@ -629,7 +629,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -638,18 +638,18 @@ func main() { scriptName := `aScriptName` // string | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. # string | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. file := BINARY_DATA_HERE // *os.File | connector correlation config xml file # *os.File | connector correlation config xml file - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorsAPI.PutConnectorCorrelationConfig(context.Background(), scriptName).File(file).Execute() - //resp, r, err := apiClient.V2024.ConnectorsAPI.PutConnectorCorrelationConfig(context.Background(), scriptName).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.PutConnectorCorrelationConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutConnectorCorrelationConfig`: UpdateDetail - fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.PutConnectorCorrelationConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.ConnectorsAPI.PutConnectorCorrelationConfig(context.Background(), scriptName).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.PutConnectorCorrelationConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutConnectorCorrelationConfig`: UpdateDetail + fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.PutConnectorCorrelationConfig`: %v\n", resp) } ``` @@ -697,7 +697,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -706,18 +706,18 @@ func main() { scriptName := `aScriptName` // string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. file := BINARY_DATA_HERE // *os.File | connector source config xml file # *os.File | connector source config xml file - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorsAPI.PutConnectorSourceConfig(context.Background(), scriptName).File(file).Execute() - //resp, r, err := apiClient.V2024.ConnectorsAPI.PutConnectorSourceConfig(context.Background(), scriptName).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.PutConnectorSourceConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutConnectorSourceConfig`: UpdateDetail - fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.PutConnectorSourceConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.ConnectorsAPI.PutConnectorSourceConfig(context.Background(), scriptName).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.PutConnectorSourceConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutConnectorSourceConfig`: UpdateDetail + fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.PutConnectorSourceConfig`: %v\n", resp) } ``` @@ -765,7 +765,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -774,18 +774,18 @@ func main() { scriptName := `aScriptName` // string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. file := BINARY_DATA_HERE // *os.File | connector source template xml file # *os.File | connector source template xml file - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorsAPI.PutConnectorSourceTemplate(context.Background(), scriptName).File(file).Execute() - //resp, r, err := apiClient.V2024.ConnectorsAPI.PutConnectorSourceTemplate(context.Background(), scriptName).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.PutConnectorSourceTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutConnectorSourceTemplate`: UpdateDetail - fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.PutConnectorSourceTemplate`: %v\n", resp) + //resp, r, err := apiClient.V2024.ConnectorsAPI.PutConnectorSourceTemplate(context.Background(), scriptName).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.PutConnectorSourceTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutConnectorSourceTemplate`: UpdateDetail + fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.PutConnectorSourceTemplate`: %v\n", resp) } ``` @@ -834,7 +834,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -843,18 +843,18 @@ func main() { scriptName := `aScriptName` // string | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. # string | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. locale := `de` // string | The locale to apply to the config. If no viable locale is given, it will default to \"en\" # string | The locale to apply to the config. If no viable locale is given, it will default to \"en\" - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorsAPI.PutConnectorTranslations(context.Background(), scriptName, locale).Execute() - //resp, r, err := apiClient.V2024.ConnectorsAPI.PutConnectorTranslations(context.Background(), scriptName, locale).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.PutConnectorTranslations``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutConnectorTranslations`: UpdateDetail - fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.PutConnectorTranslations`: %v\n", resp) + //resp, r, err := apiClient.V2024.ConnectorsAPI.PutConnectorTranslations(context.Background(), scriptName, locale).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.PutConnectorTranslations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutConnectorTranslations`: UpdateDetail + fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.PutConnectorTranslations`: %v\n", resp) } ``` @@ -914,7 +914,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -923,24 +923,23 @@ func main() { scriptName := `aScriptName` // string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. jsonpatchoperation := []byte(``) // []JsonPatchOperation | A list of connector detail update operations - - var jsonPatchOperation v2024.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2024.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorsAPI.UpdateConnector(context.Background(), scriptName).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2024.ConnectorsAPI.UpdateConnector(context.Background(), scriptName).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.UpdateConnector``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateConnector`: ConnectorDetail - fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.UpdateConnector`: %v\n", resp) + //resp, r, err := apiClient.V2024.ConnectorsAPI.UpdateConnector(context.Background(), scriptName).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.UpdateConnector``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateConnector`: ConnectorDetail + fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.UpdateConnector`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/CustomFormsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/CustomFormsAPI.md index e64b7906f..786d46ab4 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/CustomFormsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/CustomFormsAPI.md @@ -80,7 +80,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -198,18 +198,18 @@ func main() { } ] }`) // CreateFormDefinitionRequest | Body is the request payload to create form definition request (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.CreateFormDefinition(context.Background()).Execute() - //resp, r, err := apiClient.V2024.CustomFormsAPI.CreateFormDefinition(context.Background()).Body(body).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.CreateFormDefinition``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateFormDefinition`: FormDefinitionResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.CreateFormDefinition`: %v\n", resp) + //resp, r, err := apiClient.V2024.CustomFormsAPI.CreateFormDefinition(context.Background()).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.CreateFormDefinition``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateFormDefinition`: FormDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.CreateFormDefinition`: %v\n", resp) } ``` @@ -252,7 +252,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -268,18 +268,18 @@ func main() { "versionNumber" : 1 }`) // FormDefinitionDynamicSchemaRequest | Body is the request payload to create a form definition dynamic schema (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.CreateFormDefinitionDynamicSchema(context.Background()).Execute() - //resp, r, err := apiClient.V2024.CustomFormsAPI.CreateFormDefinitionDynamicSchema(context.Background()).Body(body).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.CreateFormDefinitionDynamicSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateFormDefinitionDynamicSchema`: FormDefinitionDynamicSchemaResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.CreateFormDefinitionDynamicSchema`: %v\n", resp) + //resp, r, err := apiClient.V2024.CustomFormsAPI.CreateFormDefinitionDynamicSchema(context.Background()).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.CreateFormDefinitionDynamicSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateFormDefinitionDynamicSchema`: FormDefinitionDynamicSchemaResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.CreateFormDefinitionDynamicSchema`: %v\n", resp) } ``` @@ -327,7 +327,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -336,18 +336,18 @@ func main() { formDefinitionID := `00000000-0000-0000-0000-000000000000` // string | FormDefinitionID String specifying FormDefinitionID # string | FormDefinitionID String specifying FormDefinitionID file := BINARY_DATA_HERE // *os.File | File specifying the multipart # *os.File | File specifying the multipart - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.CreateFormDefinitionFileRequest(context.Background(), formDefinitionID).File(file).Execute() - //resp, r, err := apiClient.V2024.CustomFormsAPI.CreateFormDefinitionFileRequest(context.Background(), formDefinitionID).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.CreateFormDefinitionFileRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateFormDefinitionFileRequest`: FormDefinitionFileUploadResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.CreateFormDefinitionFileRequest`: %v\n", resp) + //resp, r, err := apiClient.V2024.CustomFormsAPI.CreateFormDefinitionFileRequest(context.Background(), formDefinitionID).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.CreateFormDefinitionFileRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateFormDefinitionFileRequest`: FormDefinitionFileUploadResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.CreateFormDefinitionFileRequest`: %v\n", resp) } ``` @@ -390,7 +390,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -418,18 +418,18 @@ func main() { "ttl" : 1571827560 }`) // CreateFormInstanceRequest | Body is the request payload to create a form instance (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.CreateFormInstance(context.Background()).Execute() - //resp, r, err := apiClient.V2024.CustomFormsAPI.CreateFormInstance(context.Background()).Body(body).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.CreateFormInstance``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateFormInstance`: FormInstanceResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.CreateFormInstance`: %v\n", resp) + //resp, r, err := apiClient.V2024.CustomFormsAPI.CreateFormInstance(context.Background()).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.CreateFormInstance``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateFormInstance`: FormInstanceResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.CreateFormInstance`: %v\n", resp) } ``` @@ -476,7 +476,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -484,18 +484,18 @@ import ( func main() { formDefinitionID := `00000000-0000-0000-0000-000000000000` // string | Form definition ID # string | Form definition ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.DeleteFormDefinition(context.Background(), formDefinitionID).Execute() - //resp, r, err := apiClient.V2024.CustomFormsAPI.DeleteFormDefinition(context.Background(), formDefinitionID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.DeleteFormDefinition``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteFormDefinition`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.DeleteFormDefinition`: %v\n", resp) + //resp, r, err := apiClient.V2024.CustomFormsAPI.DeleteFormDefinition(context.Background(), formDefinitionID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.DeleteFormDefinition``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteFormDefinition`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.DeleteFormDefinition`: %v\n", resp) } ``` @@ -541,7 +541,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -552,18 +552,18 @@ func main() { filters := `name sw "my form"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *eq, gt, sw, in* **description**: *eq, gt, sw, in* **created**: *eq, gt, sw, in* **modified**: *eq, gt, sw, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *eq, gt, sw, in* **description**: *eq, gt, sw, in* **created**: *eq, gt, sw, in* **modified**: *eq, gt, sw, in* (optional) sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, description, created, modified** (optional) (default to "name") # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, description, created, modified** (optional) (default to "name") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.ExportFormDefinitionsByTenant(context.Background()).Execute() - //resp, r, err := apiClient.V2024.CustomFormsAPI.ExportFormDefinitionsByTenant(context.Background()).Offset(offset).Limit(limit).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.ExportFormDefinitionsByTenant``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExportFormDefinitionsByTenant`: []ExportFormDefinitionsByTenant200ResponseInner - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.ExportFormDefinitionsByTenant`: %v\n", resp) + //resp, r, err := apiClient.V2024.CustomFormsAPI.ExportFormDefinitionsByTenant(context.Background()).Offset(offset).Limit(limit).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.ExportFormDefinitionsByTenant``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExportFormDefinitionsByTenant`: []ExportFormDefinitionsByTenant200ResponseInner + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.ExportFormDefinitionsByTenant`: %v\n", resp) } ``` @@ -612,7 +612,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -621,18 +621,18 @@ func main() { formDefinitionID := `00000000-0000-0000-0000-000000000000` // string | FormDefinitionID Form definition ID # string | FormDefinitionID Form definition ID fileID := `00000031N0J7R2B57M8YG73J7M.png` // string | FileID String specifying the hashed name of the uploaded file we are retrieving. # string | FileID String specifying the hashed name of the uploaded file we are retrieving. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.GetFileFromS3(context.Background(), formDefinitionID, fileID).Execute() - //resp, r, err := apiClient.V2024.CustomFormsAPI.GetFileFromS3(context.Background(), formDefinitionID, fileID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.GetFileFromS3``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetFileFromS3`: *os.File - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.GetFileFromS3`: %v\n", resp) + //resp, r, err := apiClient.V2024.CustomFormsAPI.GetFileFromS3(context.Background(), formDefinitionID, fileID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.GetFileFromS3``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetFileFromS3`: *os.File + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.GetFileFromS3`: %v\n", resp) } ``` @@ -679,7 +679,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -687,18 +687,18 @@ import ( func main() { formDefinitionID := `00000000-0000-0000-0000-000000000000` // string | Form definition ID # string | Form definition ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.GetFormDefinitionByKey(context.Background(), formDefinitionID).Execute() - //resp, r, err := apiClient.V2024.CustomFormsAPI.GetFormDefinitionByKey(context.Background(), formDefinitionID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.GetFormDefinitionByKey``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetFormDefinitionByKey`: FormDefinitionResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.GetFormDefinitionByKey`: %v\n", resp) + //resp, r, err := apiClient.V2024.CustomFormsAPI.GetFormDefinitionByKey(context.Background(), formDefinitionID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.GetFormDefinitionByKey``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetFormDefinitionByKey`: FormDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.GetFormDefinitionByKey`: %v\n", resp) } ``` @@ -745,7 +745,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -753,18 +753,18 @@ import ( func main() { formInstanceID := `00000000-0000-0000-0000-000000000000` // string | Form instance ID # string | Form instance ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.GetFormInstanceByKey(context.Background(), formInstanceID).Execute() - //resp, r, err := apiClient.V2024.CustomFormsAPI.GetFormInstanceByKey(context.Background(), formInstanceID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.GetFormInstanceByKey``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetFormInstanceByKey`: FormInstanceResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.GetFormInstanceByKey`: %v\n", resp) + //resp, r, err := apiClient.V2024.CustomFormsAPI.GetFormInstanceByKey(context.Background(), formInstanceID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.GetFormInstanceByKey``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetFormInstanceByKey`: FormInstanceResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.GetFormInstanceByKey`: %v\n", resp) } ``` @@ -813,7 +813,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -822,18 +822,18 @@ func main() { formInstanceID := `00000000-0000-0000-0000-000000000000` // string | FormInstanceID Form instance ID # string | FormInstanceID Form instance ID fileID := `00000031N0J7R2B57M8YG73J7M.png` // string | FileID String specifying the hashed name of the uploaded file we are retrieving. # string | FileID String specifying the hashed name of the uploaded file we are retrieving. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.GetFormInstanceFile(context.Background(), formInstanceID, fileID).Execute() - //resp, r, err := apiClient.V2024.CustomFormsAPI.GetFormInstanceFile(context.Background(), formInstanceID, fileID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.GetFormInstanceFile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetFormInstanceFile`: *os.File - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.GetFormInstanceFile`: %v\n", resp) + //resp, r, err := apiClient.V2024.CustomFormsAPI.GetFormInstanceFile(context.Background(), formInstanceID, fileID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.GetFormInstanceFile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetFormInstanceFile`: *os.File + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.GetFormInstanceFile`: %v\n", resp) } ``` @@ -876,7 +876,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -884,18 +884,18 @@ import ( func main() { body := []byte(`[{version=1, self={name=All fields not required, id=05ed4edb-d0a9-41d9-ad0c-2f6e486ec4aa, type=FORM_DEFINITION}, object={id=05ed4edb-d0a9-41d9-ad0c-2f6e486ec4aa, name=All fields not required, description=description, owner={type=IDENTITY, id=3447d8ec2602455ab6f1e8408a0f0150}, usedBy=[{type=WORKFLOW, id=5008594c-dacc-4295-8fee-41df60477304}, {type=WORKFLOW, id=97e75a75-c179-4fbc-a2da-b5fa4aaa8743}], formInput=[{type=STRING, label=input1, description=A single dynamic scalar value (i.e. number, string, date, etc) that can be passed into the form for use in conditional logic}], formElements=[{id=3069272797630701, elementType=SECTION, config={label=First Section, formElements=[{id=3069272797630700, elementType=TEXT, key=firstName, config={label=First Name}}, {id=3498415402897539, elementType=TEXT, key=lastName, config={label=Last Name}}]}}], formConditions=[{ruleOperator=AND, rules=[{sourceType=INPUT, source=Department, operator=EQ, valueType=STRING, value=Sales}], effects=[{effectType=HIDE, config={element=2614088730489570}}]}], created=2022-10-04T19:27:04.456Z, modified=2022-11-16T20:45:02.172Z}}]`) // []ImportFormDefinitionsRequestInner | Body is the request payload to import form definitions (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.ImportFormDefinitions(context.Background()).Execute() - //resp, r, err := apiClient.V2024.CustomFormsAPI.ImportFormDefinitions(context.Background()).Body(body).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.ImportFormDefinitions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportFormDefinitions`: ImportFormDefinitions202Response - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.ImportFormDefinitions`: %v\n", resp) + //resp, r, err := apiClient.V2024.CustomFormsAPI.ImportFormDefinitions(context.Background()).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.ImportFormDefinitions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportFormDefinitions`: ImportFormDefinitions202Response + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.ImportFormDefinitions`: %v\n", resp) } ``` @@ -943,7 +943,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -952,18 +952,18 @@ func main() { formDefinitionID := `00000000-0000-0000-0000-000000000000` // string | Form definition ID # string | Form definition ID body := []byte(`[{op=replace, path=/description, value=test-description}]`) // []map[string]map[string]interface{} | Body is the request payload to patch a form definition, check: https://jsonpatch.com (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.PatchFormDefinition(context.Background(), formDefinitionID).Execute() - //resp, r, err := apiClient.V2024.CustomFormsAPI.PatchFormDefinition(context.Background(), formDefinitionID).Body(body).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.PatchFormDefinition``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchFormDefinition`: FormDefinitionResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.PatchFormDefinition`: %v\n", resp) + //resp, r, err := apiClient.V2024.CustomFormsAPI.PatchFormDefinition(context.Background(), formDefinitionID).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.PatchFormDefinition``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchFormDefinition`: FormDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.PatchFormDefinition`: %v\n", resp) } ``` @@ -1011,7 +1011,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1020,18 +1020,18 @@ func main() { formInstanceID := `00000000-0000-0000-0000-000000000000` // string | Form instance ID # string | Form instance ID body := []byte(`[{op=replace, path=/state, value=SUBMITTED}, {op=replace, path=/formData, value={a-key-1=a-value-1, a-key-2=true, a-key-3=1}}]`) // []map[string]map[string]interface{} | Body is the request payload to patch a form instance, check: https://jsonpatch.com (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.PatchFormInstance(context.Background(), formInstanceID).Execute() - //resp, r, err := apiClient.V2024.CustomFormsAPI.PatchFormInstance(context.Background(), formInstanceID).Body(body).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.PatchFormInstance``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchFormInstance`: FormInstanceResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.PatchFormInstance`: %v\n", resp) + //resp, r, err := apiClient.V2024.CustomFormsAPI.PatchFormInstance(context.Background(), formInstanceID).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.PatchFormInstance``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchFormInstance`: FormInstanceResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.PatchFormInstance`: %v\n", resp) } ``` @@ -1077,7 +1077,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1088,18 +1088,18 @@ func main() { filters := `name sw "my form"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *eq, gt, sw, in* **description**: *eq, gt, sw, in* **created**: *eq, gt, sw, in* **modified**: *eq, gt, sw, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *eq, gt, sw, in* **description**: *eq, gt, sw, in* **created**: *eq, gt, sw, in* **modified**: *eq, gt, sw, in* (optional) sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, description, created, modified** (optional) (default to "name") # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, description, created, modified** (optional) (default to "name") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.SearchFormDefinitionsByTenant(context.Background()).Execute() - //resp, r, err := apiClient.V2024.CustomFormsAPI.SearchFormDefinitionsByTenant(context.Background()).Offset(offset).Limit(limit).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.SearchFormDefinitionsByTenant``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SearchFormDefinitionsByTenant`: ListFormDefinitionsByTenantResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.SearchFormDefinitionsByTenant`: %v\n", resp) + //resp, r, err := apiClient.V2024.CustomFormsAPI.SearchFormDefinitionsByTenant(context.Background()).Offset(offset).Limit(limit).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.SearchFormDefinitionsByTenant``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchFormDefinitionsByTenant`: ListFormDefinitionsByTenantResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.SearchFormDefinitionsByTenant`: %v\n", resp) } ``` @@ -1152,7 +1152,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1164,18 +1164,18 @@ func main() { filters := `value eq "ID01"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **value**: *eq, ne, in* Supported composite operators: *not* Only a single *not* may be used, and it can only be used with the `in` operator. The `not` composite operator must be used in front of the field. For example, the following is valid: `not value in (\"ID01\")` (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **value**: *eq, ne, in* Supported composite operators: *not* Only a single *not* may be used, and it can only be used with the `in` operator. The `not` composite operator must be used in front of the field. For example, the following is valid: `not value in (\"ID01\")` (optional) query := `support` // string | String that is passed to the underlying API to filter other (non-ID) fields. For example, for access profile data sources, this string will be passed to the access profile api and used with a \"starts with\" filter against several fields. (optional) # string | String that is passed to the underlying API to filter other (non-ID) fields. For example, for access profile data sources, this string will be passed to the access profile api and used with a \"starts with\" filter against several fields. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.SearchFormElementDataByElementID(context.Background(), formInstanceID, formElementID).Execute() - //resp, r, err := apiClient.V2024.CustomFormsAPI.SearchFormElementDataByElementID(context.Background(), formInstanceID, formElementID).Limit(limit).Filters(filters).Query(query).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.SearchFormElementDataByElementID``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SearchFormElementDataByElementID`: ListFormElementDataByElementIDResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.SearchFormElementDataByElementID`: %v\n", resp) + //resp, r, err := apiClient.V2024.CustomFormsAPI.SearchFormElementDataByElementID(context.Background(), formInstanceID, formElementID).Limit(limit).Filters(filters).Query(query).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.SearchFormElementDataByElementID``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchFormElementDataByElementID`: ListFormElementDataByElementIDResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.SearchFormElementDataByElementID`: %v\n", resp) } ``` @@ -1214,25 +1214,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.SearchFormInstancesByTenant(context.Background()).Execute() - //resp, r, err := apiClient.V2024.CustomFormsAPI.SearchFormInstancesByTenant(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.SearchFormInstancesByTenant``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SearchFormInstancesByTenant`: []ListFormInstancesByTenantResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.SearchFormInstancesByTenant`: %v\n", resp) + //resp, r, err := apiClient.V2024.CustomFormsAPI.SearchFormInstancesByTenant(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.SearchFormInstancesByTenant``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchFormInstancesByTenant`: []ListFormInstancesByTenantResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.SearchFormInstancesByTenant`: %v\n", resp) } ``` @@ -1271,25 +1271,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.SearchPreDefinedSelectOptions(context.Background()).Execute() - //resp, r, err := apiClient.V2024.CustomFormsAPI.SearchPreDefinedSelectOptions(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.SearchPreDefinedSelectOptions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SearchPreDefinedSelectOptions`: ListPredefinedSelectOptionsResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.SearchPreDefinedSelectOptions`: %v\n", resp) + //resp, r, err := apiClient.V2024.CustomFormsAPI.SearchPreDefinedSelectOptions(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.SearchPreDefinedSelectOptions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchPreDefinedSelectOptions`: ListPredefinedSelectOptionsResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.SearchPreDefinedSelectOptions`: %v\n", resp) } ``` @@ -1340,7 +1340,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1362,18 +1362,18 @@ func main() { } }`) // FormElementPreviewRequest | Body is the request payload to create a form definition dynamic schema (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.ShowPreviewDataSource(context.Background(), formDefinitionID).Execute() - //resp, r, err := apiClient.V2024.CustomFormsAPI.ShowPreviewDataSource(context.Background(), formDefinitionID).Limit(limit).Filters(filters).Query(query).FormElementPreviewRequest(formElementPreviewRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.ShowPreviewDataSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ShowPreviewDataSource`: PreviewDataSourceResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.ShowPreviewDataSource`: %v\n", resp) + //resp, r, err := apiClient.V2024.CustomFormsAPI.ShowPreviewDataSource(context.Background(), formDefinitionID).Limit(limit).Filters(filters).Query(query).FormElementPreviewRequest(formElementPreviewRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.ShowPreviewDataSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ShowPreviewDataSource`: PreviewDataSourceResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.ShowPreviewDataSource`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/CustomPasswordInstructionsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/CustomPasswordInstructionsAPI.md index 529a8a592..53a0c5548 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/CustomPasswordInstructionsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/CustomPasswordInstructionsAPI.md @@ -80,7 +80,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -93,24 +93,23 @@ func main() { "locale" : "en" }`) // CustomPasswordInstruction | - - var customPasswordInstruction v2024.CustomPasswordInstruction - if err := json.Unmarshal(custompasswordinstruction, &customPasswordInstruction); err != nil { - fmt.Println("Error:", err) - return - } - + var customPasswordInstruction v2024.CustomPasswordInstruction + if err := json.Unmarshal(custompasswordinstruction, &customPasswordInstruction); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomPasswordInstructionsAPI.CreateCustomPasswordInstructions(context.Background()).XSailPointExperimental(xSailPointExperimental).CustomPasswordInstruction(customPasswordInstruction).Execute() - //resp, r, err := apiClient.V2024.CustomPasswordInstructionsAPI.CreateCustomPasswordInstructions(context.Background()).XSailPointExperimental(xSailPointExperimental).CustomPasswordInstruction(customPasswordInstruction).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomPasswordInstructionsAPI.CreateCustomPasswordInstructions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateCustomPasswordInstructions`: CustomPasswordInstruction - fmt.Fprintf(os.Stdout, "Response from `CustomPasswordInstructionsAPI.CreateCustomPasswordInstructions`: %v\n", resp) + //resp, r, err := apiClient.V2024.CustomPasswordInstructionsAPI.CreateCustomPasswordInstructions(context.Background()).XSailPointExperimental(xSailPointExperimental).CustomPasswordInstruction(customPasswordInstruction).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomPasswordInstructionsAPI.CreateCustomPasswordInstructions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCustomPasswordInstructions`: CustomPasswordInstruction + fmt.Fprintf(os.Stdout, "Response from `CustomPasswordInstructionsAPI.CreateCustomPasswordInstructions`: %v\n", resp) } ``` @@ -170,7 +169,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -180,16 +179,17 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") locale := `locale_example` // string | The locale for the custom instructions, a BCP47 language tag. The default value is \\\"default\\\". (optional) # string | The locale for the custom instructions, a BCP47 language tag. The default value is \\\"default\\\". (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.CustomPasswordInstructionsAPI.DeleteCustomPasswordInstructions(context.Background(), pageId).XSailPointExperimental(xSailPointExperimental).Execute() - //r, err := apiClient.V2024.CustomPasswordInstructionsAPI.DeleteCustomPasswordInstructions(context.Background(), pageId).XSailPointExperimental(xSailPointExperimental).Locale(locale).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomPasswordInstructionsAPI.DeleteCustomPasswordInstructions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.CustomPasswordInstructionsAPI.DeleteCustomPasswordInstructions(context.Background(), pageId).XSailPointExperimental(xSailPointExperimental).Locale(locale).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomPasswordInstructionsAPI.DeleteCustomPasswordInstructions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -249,7 +249,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -259,18 +259,18 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") locale := `locale_example` // string | The locale for the custom instructions, a BCP47 language tag. The default value is \\\"default\\\". (optional) # string | The locale for the custom instructions, a BCP47 language tag. The default value is \\\"default\\\". (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomPasswordInstructionsAPI.GetCustomPasswordInstructions(context.Background(), pageId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.CustomPasswordInstructionsAPI.GetCustomPasswordInstructions(context.Background(), pageId).XSailPointExperimental(xSailPointExperimental).Locale(locale).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomPasswordInstructionsAPI.GetCustomPasswordInstructions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCustomPasswordInstructions`: CustomPasswordInstruction - fmt.Fprintf(os.Stdout, "Response from `CustomPasswordInstructionsAPI.GetCustomPasswordInstructions`: %v\n", resp) + //resp, r, err := apiClient.V2024.CustomPasswordInstructionsAPI.GetCustomPasswordInstructions(context.Background(), pageId).XSailPointExperimental(xSailPointExperimental).Locale(locale).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomPasswordInstructionsAPI.GetCustomPasswordInstructions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCustomPasswordInstructions`: CustomPasswordInstruction + fmt.Fprintf(os.Stdout, "Response from `CustomPasswordInstructionsAPI.GetCustomPasswordInstructions`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/DataSegmentationAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/DataSegmentationAPI.md index 5fc6fb8c3..c2c1df9b1 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/DataSegmentationAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/DataSegmentationAPI.md @@ -65,7 +65,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -73,24 +73,23 @@ import ( func main() { datasegment := []byte(``) // DataSegment | - - var dataSegment v2024.DataSegment - if err := json.Unmarshal(datasegment, &dataSegment); err != nil { - fmt.Println("Error:", err) - return - } - + var dataSegment v2024.DataSegment + if err := json.Unmarshal(datasegment, &dataSegment); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.DataSegmentationAPI.CreateDataSegment(context.Background()).DataSegment(dataSegment).Execute() - //resp, r, err := apiClient.V2024.DataSegmentationAPI.CreateDataSegment(context.Background()).DataSegment(dataSegment).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DataSegmentationAPI.CreateDataSegment``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateDataSegment`: DataSegment - fmt.Fprintf(os.Stdout, "Response from `DataSegmentationAPI.CreateDataSegment`: %v\n", resp) + //resp, r, err := apiClient.V2024.DataSegmentationAPI.CreateDataSegment(context.Background()).DataSegment(dataSegment).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DataSegmentationAPI.CreateDataSegment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateDataSegment`: DataSegment + fmt.Fprintf(os.Stdout, "Response from `DataSegmentationAPI.CreateDataSegment`: %v\n", resp) } ``` @@ -150,7 +149,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -160,16 +159,17 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") published := false // bool | This determines which version of the segment to delete (optional) (default to false) # bool | This determines which version of the segment to delete (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.DataSegmentationAPI.DeleteDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //r, err := apiClient.V2024.DataSegmentationAPI.DeleteDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Published(published).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DataSegmentationAPI.DeleteDataSegment``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.DataSegmentationAPI.DeleteDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Published(published).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DataSegmentationAPI.DeleteDataSegment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -228,7 +228,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -237,18 +237,18 @@ func main() { id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The segment ID to retrieve. # string | The segment ID to retrieve. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.DataSegmentationAPI.GetDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.DataSegmentationAPI.GetDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DataSegmentationAPI.GetDataSegment``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetDataSegment`: DataSegment - fmt.Fprintf(os.Stdout, "Response from `DataSegmentationAPI.GetDataSegment`: %v\n", resp) + //resp, r, err := apiClient.V2024.DataSegmentationAPI.GetDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DataSegmentationAPI.GetDataSegment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDataSegment`: DataSegment + fmt.Fprintf(os.Stdout, "Response from `DataSegmentationAPI.GetDataSegment`: %v\n", resp) } ``` @@ -307,7 +307,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -316,18 +316,18 @@ func main() { identityId := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The identity ID to retrieve the segments they are in. # string | The identity ID to retrieve the segments they are in. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.DataSegmentationAPI.GetDataSegmentIdentityMembership(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.DataSegmentationAPI.GetDataSegmentIdentityMembership(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DataSegmentationAPI.GetDataSegmentIdentityMembership``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetDataSegmentIdentityMembership`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `DataSegmentationAPI.GetDataSegmentIdentityMembership`: %v\n", resp) + //resp, r, err := apiClient.V2024.DataSegmentationAPI.GetDataSegmentIdentityMembership(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DataSegmentationAPI.GetDataSegmentIdentityMembership``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDataSegmentIdentityMembership`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `DataSegmentationAPI.GetDataSegmentIdentityMembership`: %v\n", resp) } ``` @@ -386,7 +386,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -395,18 +395,18 @@ func main() { identityId := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The identity ID to retrieve if segmentation is enabled for the identity. # string | The identity ID to retrieve if segmentation is enabled for the identity. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.DataSegmentationAPI.GetDataSegmentationEnabledForUser(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.DataSegmentationAPI.GetDataSegmentationEnabledForUser(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DataSegmentationAPI.GetDataSegmentationEnabledForUser``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetDataSegmentationEnabledForUser`: bool - fmt.Fprintf(os.Stdout, "Response from `DataSegmentationAPI.GetDataSegmentationEnabledForUser`: %v\n", resp) + //resp, r, err := apiClient.V2024.DataSegmentationAPI.GetDataSegmentationEnabledForUser(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DataSegmentationAPI.GetDataSegmentationEnabledForUser``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDataSegmentationEnabledForUser`: bool + fmt.Fprintf(os.Stdout, "Response from `DataSegmentationAPI.GetDataSegmentationEnabledForUser`: %v\n", resp) } ``` @@ -467,7 +467,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -482,18 +482,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) filters := `name eq ""` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in, sw* **name**: *eq, in, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in, sw* **name**: *eq, in, sw* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.DataSegmentationAPI.ListDataSegments(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.DataSegmentationAPI.ListDataSegments(context.Background()).XSailPointExperimental(xSailPointExperimental).Enabled(enabled).Unique(unique).Published(published).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DataSegmentationAPI.ListDataSegments``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListDataSegments`: []DataSegment - fmt.Fprintf(os.Stdout, "Response from `DataSegmentationAPI.ListDataSegments`: %v\n", resp) + //resp, r, err := apiClient.V2024.DataSegmentationAPI.ListDataSegments(context.Background()).XSailPointExperimental(xSailPointExperimental).Enabled(enabled).Unique(unique).Published(published).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DataSegmentationAPI.ListDataSegments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListDataSegments`: []DataSegment + fmt.Fprintf(os.Stdout, "Response from `DataSegmentationAPI.ListDataSegments`: %v\n", resp) } ``` @@ -553,7 +553,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -563,24 +563,23 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") requestbody := []byte(`[{op=replace, path=/memberFilter, value={expression={operator=AND, children=[{operator=EQUALS, attribute=location, value={type=STRING, value=Philadelphia}}, {operator=EQUALS, attribute=department, value={type=STRING, value=HR}}]}}}]`) // []map[string]interface{} | A list of segment update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * membership * memberFilter * memberSelection * scopes * enabled - - var requestBody v2024.[]RequestBody - if err := json.Unmarshal(requestbody, &requestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var requestBody []v2024.RequestBody + if err := json.Unmarshal(requestbody, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.DataSegmentationAPI.PatchDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() - //resp, r, err := apiClient.V2024.DataSegmentationAPI.PatchDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DataSegmentationAPI.PatchDataSegment``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchDataSegment`: DataSegment - fmt.Fprintf(os.Stdout, "Response from `DataSegmentationAPI.PatchDataSegment`: %v\n", resp) + //resp, r, err := apiClient.V2024.DataSegmentationAPI.PatchDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DataSegmentationAPI.PatchDataSegment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchDataSegment`: DataSegment + fmt.Fprintf(os.Stdout, "Response from `DataSegmentationAPI.PatchDataSegment`: %v\n", resp) } ``` @@ -636,7 +635,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -646,22 +645,22 @@ func main() { requestbody := []byte(``) // []string | A list of segment ids that you wish to publish publishAll := true // bool | This flag decides whether you want to publish all unpublished or a list of specific segment ids (optional) (default to true) # bool | This flag decides whether you want to publish all unpublished or a list of specific segment ids (optional) (default to true) - - var requestBody v2024.[]RequestBody - if err := json.Unmarshal(requestbody, &requestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var requestBody []v2024.RequestBody + if err := json.Unmarshal(requestbody, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.DataSegmentationAPI.PublishDataSegment(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() - //r, err := apiClient.V2024.DataSegmentationAPI.PublishDataSegment(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).PublishAll(publishAll).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DataSegmentationAPI.PublishDataSegment``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.DataSegmentationAPI.PublishDataSegment(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).PublishAll(publishAll).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DataSegmentationAPI.PublishDataSegment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/DimensionsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/DimensionsAPI.md index b7019a5d9..99448558b 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/DimensionsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/DimensionsAPI.md @@ -71,7 +71,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -166,24 +166,23 @@ func main() { "parentId" : "2c918086749d78830174a1a40e121518" }`) // Dimension | - - var dimension v2024.Dimension - if err := json.Unmarshal(dimension, &dimension); err != nil { - fmt.Println("Error:", err) - return - } - + var dimension v2024.Dimension + if err := json.Unmarshal(dimension, &dimension); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.DimensionsAPI.CreateDimension(context.Background(), roleId).Dimension(dimension).Execute() - //resp, r, err := apiClient.V2024.DimensionsAPI.CreateDimension(context.Background(), roleId).Dimension(dimension).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DimensionsAPI.CreateDimension``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateDimension`: Dimension - fmt.Fprintf(os.Stdout, "Response from `DimensionsAPI.CreateDimension`: %v\n", resp) + //resp, r, err := apiClient.V2024.DimensionsAPI.CreateDimension(context.Background(), roleId).Dimension(dimension).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DimensionsAPI.CreateDimension``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateDimension`: Dimension + fmt.Fprintf(os.Stdout, "Response from `DimensionsAPI.CreateDimension`: %v\n", resp) } ``` @@ -234,7 +233,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -245,24 +244,23 @@ func main() { "dimensionIds" : [ "2c9180847812e0b1017817051919ecca", "2c9180887812e0b201781e129f151816" ] }`) // DimensionBulkDeleteRequest | - - var dimensionBulkDeleteRequest v2024.DimensionBulkDeleteRequest - if err := json.Unmarshal(dimensionbulkdeleterequest, &dimensionBulkDeleteRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var dimensionBulkDeleteRequest v2024.DimensionBulkDeleteRequest + if err := json.Unmarshal(dimensionbulkdeleterequest, &dimensionBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.DimensionsAPI.DeleteBulkDimensions(context.Background(), roleId).DimensionBulkDeleteRequest(dimensionBulkDeleteRequest).Execute() - //resp, r, err := apiClient.V2024.DimensionsAPI.DeleteBulkDimensions(context.Background(), roleId).DimensionBulkDeleteRequest(dimensionBulkDeleteRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DimensionsAPI.DeleteBulkDimensions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteBulkDimensions`: TaskResultDto - fmt.Fprintf(os.Stdout, "Response from `DimensionsAPI.DeleteBulkDimensions`: %v\n", resp) + //resp, r, err := apiClient.V2024.DimensionsAPI.DeleteBulkDimensions(context.Background(), roleId).DimensionBulkDeleteRequest(dimensionBulkDeleteRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DimensionsAPI.DeleteBulkDimensions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteBulkDimensions`: TaskResultDto + fmt.Fprintf(os.Stdout, "Response from `DimensionsAPI.DeleteBulkDimensions`: %v\n", resp) } ``` @@ -312,7 +310,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -321,16 +319,17 @@ func main() { roleId := `6603fba3004f43c687610a29195252ce` // string | Parent Role Id of the dimension. # string | Parent Role Id of the dimension. dimensionId := `2c9180835d191a86015d28455b4a2329` // string | Id of the Dimension # string | Id of the Dimension - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.DimensionsAPI.DeleteDimension(context.Background(), roleId, dimensionId).Execute() - //r, err := apiClient.V2024.DimensionsAPI.DeleteDimension(context.Background(), roleId, dimensionId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DimensionsAPI.DeleteDimension``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.DimensionsAPI.DeleteDimension(context.Background(), roleId, dimensionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DimensionsAPI.DeleteDimension``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -381,7 +380,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -390,18 +389,18 @@ func main() { roleId := `6603fba3004f43c687610a29195252ce` // string | Parent Role Id of the dimension. # string | Parent Role Id of the dimension. dimensionId := `2c9180835d191a86015d28455b4a2329` // string | Id of the Dimension # string | Id of the Dimension - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.DimensionsAPI.GetDimension(context.Background(), roleId, dimensionId).Execute() - //resp, r, err := apiClient.V2024.DimensionsAPI.GetDimension(context.Background(), roleId, dimensionId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DimensionsAPI.GetDimension``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetDimension`: Dimension - fmt.Fprintf(os.Stdout, "Response from `DimensionsAPI.GetDimension`: %v\n", resp) + //resp, r, err := apiClient.V2024.DimensionsAPI.GetDimension(context.Background(), roleId, dimensionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DimensionsAPI.GetDimension``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDimension`: Dimension + fmt.Fprintf(os.Stdout, "Response from `DimensionsAPI.GetDimension`: %v\n", resp) } ``` @@ -457,7 +456,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -471,18 +470,18 @@ func main() { filters := `attribute eq "memberOf"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* (optional) sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, attribute, value, created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, attribute, value, created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.DimensionsAPI.GetDimensionEntitlements(context.Background(), roleId, dimensionId).Execute() - //resp, r, err := apiClient.V2024.DimensionsAPI.GetDimensionEntitlements(context.Background(), roleId, dimensionId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DimensionsAPI.GetDimensionEntitlements``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetDimensionEntitlements`: []Entitlement - fmt.Fprintf(os.Stdout, "Response from `DimensionsAPI.GetDimensionEntitlements`: %v\n", resp) + //resp, r, err := apiClient.V2024.DimensionsAPI.GetDimensionEntitlements(context.Background(), roleId, dimensionId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DimensionsAPI.GetDimensionEntitlements``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDimensionEntitlements`: []Entitlement + fmt.Fprintf(os.Stdout, "Response from `DimensionsAPI.GetDimensionEntitlements`: %v\n", resp) } ``` @@ -538,7 +537,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -552,18 +551,18 @@ func main() { filters := `source.id eq "2c91808982f979270182f99e386d00fa"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* (optional) sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.DimensionsAPI.ListDimensionAccessProfiles(context.Background(), roleId, dimensionId).Execute() - //resp, r, err := apiClient.V2024.DimensionsAPI.ListDimensionAccessProfiles(context.Background(), roleId, dimensionId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DimensionsAPI.ListDimensionAccessProfiles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListDimensionAccessProfiles`: []AccessProfile - fmt.Fprintf(os.Stdout, "Response from `DimensionsAPI.ListDimensionAccessProfiles`: %v\n", resp) + //resp, r, err := apiClient.V2024.DimensionsAPI.ListDimensionAccessProfiles(context.Background(), roleId, dimensionId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DimensionsAPI.ListDimensionAccessProfiles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListDimensionAccessProfiles`: []AccessProfile + fmt.Fprintf(os.Stdout, "Response from `DimensionsAPI.ListDimensionAccessProfiles`: %v\n", resp) } ``` @@ -618,7 +617,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -632,18 +631,18 @@ func main() { filters := `id eq '2c918086749d78830174a1a40e121518'` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* (optional) sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.DimensionsAPI.ListDimensions(context.Background(), roleId).Execute() - //resp, r, err := apiClient.V2024.DimensionsAPI.ListDimensions(context.Background(), roleId).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DimensionsAPI.ListDimensions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListDimensions`: []Dimension - fmt.Fprintf(os.Stdout, "Response from `DimensionsAPI.ListDimensions`: %v\n", resp) + //resp, r, err := apiClient.V2024.DimensionsAPI.ListDimensions(context.Background(), roleId).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DimensionsAPI.ListDimensions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListDimensions`: []Dimension + fmt.Fprintf(os.Stdout, "Response from `DimensionsAPI.ListDimensions`: %v\n", resp) } ``` @@ -697,7 +696,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -707,24 +706,23 @@ func main() { dimensionId := `2c9180835d191a86015d28455b4a2329` // string | Id of the Dimension # string | Id of the Dimension jsonpatchoperation := []byte(`[{op=replace, path=/description, value=Test Description}, {op=replace, path=/name, value=new name}]`) // []JsonPatchOperation | - - var jsonPatchOperation v2024.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2024.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.DimensionsAPI.PatchDimension(context.Background(), roleId, dimensionId).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2024.DimensionsAPI.PatchDimension(context.Background(), roleId, dimensionId).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DimensionsAPI.PatchDimension``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchDimension`: Dimension - fmt.Fprintf(os.Stdout, "Response from `DimensionsAPI.PatchDimension`: %v\n", resp) + //resp, r, err := apiClient.V2024.DimensionsAPI.PatchDimension(context.Background(), roleId, dimensionId).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DimensionsAPI.PatchDimension``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchDimension`: Dimension + fmt.Fprintf(os.Stdout, "Response from `DimensionsAPI.PatchDimension`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/EntitlementsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/EntitlementsAPI.md index eec467b1f..6457190b9 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/EntitlementsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/EntitlementsAPI.md @@ -135,7 +135,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -146,18 +146,18 @@ func main() { attributeValue := `public` // string | Technical name of the Attribute Value. # string | Technical name of the Attribute Value. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.EntitlementsAPI.CreateAccessModelMetadataForEntitlement(context.Background(), id, attributeKey, attributeValue).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.EntitlementsAPI.CreateAccessModelMetadataForEntitlement(context.Background(), id, attributeKey, attributeValue).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.CreateAccessModelMetadataForEntitlement``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateAccessModelMetadataForEntitlement`: Entitlement - fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.CreateAccessModelMetadataForEntitlement`: %v\n", resp) + //resp, r, err := apiClient.V2024.EntitlementsAPI.CreateAccessModelMetadataForEntitlement(context.Background(), id, attributeKey, attributeValue).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.CreateAccessModelMetadataForEntitlement``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAccessModelMetadataForEntitlement`: Entitlement + fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.CreateAccessModelMetadataForEntitlement`: %v\n", resp) } ``` @@ -220,7 +220,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -231,16 +231,17 @@ func main() { attributeValue := `public` // string | Technical name of the Attribute Value. # string | Technical name of the Attribute Value. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.EntitlementsAPI.DeleteAccessModelMetadataFromEntitlement(context.Background(), id, attributeKey, attributeValue).XSailPointExperimental(xSailPointExperimental).Execute() - //r, err := apiClient.V2024.EntitlementsAPI.DeleteAccessModelMetadataFromEntitlement(context.Background(), id, attributeKey, attributeValue).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.DeleteAccessModelMetadataFromEntitlement``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.EntitlementsAPI.DeleteAccessModelMetadataFromEntitlement(context.Background(), id, attributeKey, attributeValue).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.DeleteAccessModelMetadataFromEntitlement``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -299,7 +300,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -308,18 +309,18 @@ func main() { id := `2c91808874ff91550175097daaec161c` // string | The entitlement ID # string | The entitlement ID xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.EntitlementsAPI.GetEntitlement(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.EntitlementsAPI.GetEntitlement(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.GetEntitlement``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetEntitlement`: Entitlement - fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.GetEntitlement`: %v\n", resp) + //resp, r, err := apiClient.V2024.EntitlementsAPI.GetEntitlement(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.GetEntitlement``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetEntitlement`: Entitlement + fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.GetEntitlement`: %v\n", resp) } ``` @@ -378,7 +379,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -387,18 +388,18 @@ func main() { id := `2c91808874ff91550175097daaec161c` // string | Entitlement Id # string | Entitlement Id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.EntitlementsAPI.GetEntitlementRequestConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.EntitlementsAPI.GetEntitlementRequestConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.GetEntitlementRequestConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetEntitlementRequestConfig`: EntitlementRequestConfig - fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.GetEntitlementRequestConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.EntitlementsAPI.GetEntitlementRequestConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.GetEntitlementRequestConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetEntitlementRequestConfig`: EntitlementRequestConfig + fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.GetEntitlementRequestConfig`: %v\n", resp) } ``` @@ -465,7 +466,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -475,18 +476,18 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") csvFile := BINARY_DATA_HERE // *os.File | The CSV file containing the source entitlements to aggregate. (optional) # *os.File | The CSV file containing the source entitlements to aggregate. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.EntitlementsAPI.ImportEntitlementsBySource(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.EntitlementsAPI.ImportEntitlementsBySource(context.Background(), id).XSailPointExperimental(xSailPointExperimental).CsvFile(csvFile).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.ImportEntitlementsBySource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportEntitlementsBySource`: LoadEntitlementTask - fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.ImportEntitlementsBySource`: %v\n", resp) + //resp, r, err := apiClient.V2024.EntitlementsAPI.ImportEntitlementsBySource(context.Background(), id).XSailPointExperimental(xSailPointExperimental).CsvFile(csvFile).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.ImportEntitlementsBySource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportEntitlementsBySource`: LoadEntitlementTask + fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.ImportEntitlementsBySource`: %v\n", resp) } ``` @@ -550,7 +551,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -564,18 +565,18 @@ func main() { sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, type, attribute, value, source.id** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, type, attribute, value, source.id** (optional) filters := `attribute eq "memberOf"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, sw* **type**: *eq, in* **attribute**: *eq, in* **value**: *eq, in, sw* **source.id**: *eq, in* **requestable**: *eq* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, sw* **type**: *eq, in* **attribute**: *eq, in* **value**: *eq, in, sw* **source.id**: *eq, in* **requestable**: *eq* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.EntitlementsAPI.ListEntitlementChildren(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.EntitlementsAPI.ListEntitlementChildren(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.ListEntitlementChildren``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListEntitlementChildren`: []Entitlement - fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.ListEntitlementChildren`: %v\n", resp) + //resp, r, err := apiClient.V2024.EntitlementsAPI.ListEntitlementChildren(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.ListEntitlementChildren``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListEntitlementChildren`: []Entitlement + fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.ListEntitlementChildren`: %v\n", resp) } ``` @@ -639,7 +640,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -653,18 +654,18 @@ func main() { sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, type, attribute, value, source.id** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, type, attribute, value, source.id** (optional) filters := `attribute eq "memberOf"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, sw* **type**: *eq, in* **attribute**: *eq, in* **value**: *eq, in, sw* **source.id**: *eq, in* **requestable**: *eq* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, sw* **type**: *eq, in* **attribute**: *eq, in* **value**: *eq, in, sw* **source.id**: *eq, in* **requestable**: *eq* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.EntitlementsAPI.ListEntitlementParents(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.EntitlementsAPI.ListEntitlementParents(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.ListEntitlementParents``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListEntitlementParents`: []Entitlement - fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.ListEntitlementParents`: %v\n", resp) + //resp, r, err := apiClient.V2024.EntitlementsAPI.ListEntitlementParents(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.ListEntitlementParents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListEntitlementParents`: []Entitlement + fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.ListEntitlementParents`: %v\n", resp) } ``` @@ -731,7 +732,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -748,18 +749,18 @@ func main() { sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, type, attribute, value, source.id, requestable** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, type, attribute, value, source.id, requestable** (optional) filters := `attribute eq "memberOf"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, sw* **type**: *eq, in* **attribute**: *eq, in* **value**: *eq, in, sw* **source.id**: *eq, in* **requestable**: *eq* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, sw* **type**: *eq, in* **attribute**: *eq, in* **value**: *eq, in, sw* **source.id**: *eq, in* **requestable**: *eq* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.EntitlementsAPI.ListEntitlements(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.EntitlementsAPI.ListEntitlements(context.Background()).XSailPointExperimental(xSailPointExperimental).AccountId(accountId).SegmentedForIdentity(segmentedForIdentity).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.ListEntitlements``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListEntitlements`: []Entitlement - fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.ListEntitlements`: %v\n", resp) + //resp, r, err := apiClient.V2024.EntitlementsAPI.ListEntitlements(context.Background()).XSailPointExperimental(xSailPointExperimental).AccountId(accountId).SegmentedForIdentity(segmentedForIdentity).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.ListEntitlements``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListEntitlements`: []Entitlement + fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.ListEntitlements`: %v\n", resp) } ``` @@ -823,7 +824,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -833,18 +834,18 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") jsonpatchoperation := []byte(`[{op=replace, path=/requestable, value=true}, {op=replace, path=/privileged, value=true}]`) // []JsonPatchOperation | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.EntitlementsAPI.PatchEntitlement(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.EntitlementsAPI.PatchEntitlement(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.PatchEntitlement``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchEntitlement`: Entitlement - fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.PatchEntitlement`: %v\n", resp) + //resp, r, err := apiClient.V2024.EntitlementsAPI.PatchEntitlement(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.PatchEntitlement``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchEntitlement`: Entitlement + fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.PatchEntitlement`: %v\n", resp) } ``` @@ -904,7 +905,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -922,28 +923,37 @@ func main() { "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", "approverType" : "GOVERNANCE_GROUP" } ], + "reauthorizationRequired" : false, "requestCommentRequired" : true + }, + "revocationRequestConfig" : { + "approvalSchemes" : [ { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + }, { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + } ] } }`) // EntitlementRequestConfig | - - var entitlementRequestConfig v2024.EntitlementRequestConfig - if err := json.Unmarshal(entitlementrequestconfig, &entitlementRequestConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var entitlementRequestConfig v2024.EntitlementRequestConfig + if err := json.Unmarshal(entitlementrequestconfig, &entitlementRequestConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.EntitlementsAPI.PutEntitlementRequestConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).EntitlementRequestConfig(entitlementRequestConfig).Execute() - //resp, r, err := apiClient.V2024.EntitlementsAPI.PutEntitlementRequestConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).EntitlementRequestConfig(entitlementRequestConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.PutEntitlementRequestConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutEntitlementRequestConfig`: EntitlementRequestConfig - fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.PutEntitlementRequestConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.EntitlementsAPI.PutEntitlementRequestConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).EntitlementRequestConfig(entitlementRequestConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.PutEntitlementRequestConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutEntitlementRequestConfig`: EntitlementRequestConfig + fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.PutEntitlementRequestConfig`: %v\n", resp) } ``` @@ -1003,7 +1013,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1012,18 +1022,18 @@ func main() { id := `2c91808a7813090a017814121919ecca` // string | ID of source for the entitlement reset # string | ID of source for the entitlement reset xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.EntitlementsAPI.ResetSourceEntitlements(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.EntitlementsAPI.ResetSourceEntitlements(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.ResetSourceEntitlements``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ResetSourceEntitlements`: EntitlementSourceResetBaseReferenceDto - fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.ResetSourceEntitlements`: %v\n", resp) + //resp, r, err := apiClient.V2024.EntitlementsAPI.ResetSourceEntitlements(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.ResetSourceEntitlements``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ResetSourceEntitlements`: EntitlementSourceResetBaseReferenceDto + fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.ResetSourceEntitlements`: %v\n", resp) } ``` @@ -1084,7 +1094,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1104,22 +1114,22 @@ func main() { } ] }`) // EntitlementBulkUpdateRequest | - - var entitlementBulkUpdateRequest v2024.EntitlementBulkUpdateRequest - if err := json.Unmarshal(entitlementbulkupdaterequest, &entitlementBulkUpdateRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var entitlementBulkUpdateRequest v2024.EntitlementBulkUpdateRequest + if err := json.Unmarshal(entitlementbulkupdaterequest, &entitlementBulkUpdateRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.EntitlementsAPI.UpdateEntitlementsInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).EntitlementBulkUpdateRequest(entitlementBulkUpdateRequest).Execute() - //r, err := apiClient.V2024.EntitlementsAPI.UpdateEntitlementsInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).EntitlementBulkUpdateRequest(entitlementBulkUpdateRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.UpdateEntitlementsInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.EntitlementsAPI.UpdateEntitlementsInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).EntitlementBulkUpdateRequest(entitlementBulkUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.UpdateEntitlementsInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/GlobalTenantSecuritySettingsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/GlobalTenantSecuritySettingsAPI.md index eed49bcd5..eb96171ad 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/GlobalTenantSecuritySettingsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/GlobalTenantSecuritySettingsAPI.md @@ -66,7 +66,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -78,24 +78,23 @@ func main() { "geolocation" : [ "CA", "FR", "HT" ] }`) // NetworkConfiguration | Network configuration creation request body. The following constraints ensure the request body conforms to certain logical guidelines, which are: 1. Each string element in the range array must be a valid ip address or ip subnet mask. 2. Each string element in the geolocation array must be 2 characters, and they can only be uppercase letters. - - var networkConfiguration v2024.NetworkConfiguration - if err := json.Unmarshal(networkconfiguration, &networkConfiguration); err != nil { - fmt.Println("Error:", err) - return - } - + var networkConfiguration v2024.NetworkConfiguration + if err := json.Unmarshal(networkconfiguration, &networkConfiguration); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.CreateAuthOrgNetworkConfig(context.Background()).NetworkConfiguration(networkConfiguration).Execute() - //resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.CreateAuthOrgNetworkConfig(context.Background()).NetworkConfiguration(networkConfiguration).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.CreateAuthOrgNetworkConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateAuthOrgNetworkConfig`: NetworkConfiguration - fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.CreateAuthOrgNetworkConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.CreateAuthOrgNetworkConfig(context.Background()).NetworkConfiguration(networkConfiguration).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.CreateAuthOrgNetworkConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAuthOrgNetworkConfig`: NetworkConfiguration + fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.CreateAuthOrgNetworkConfig`: %v\n", resp) } ``` @@ -134,25 +133,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.GetAuthOrgLockoutConfig(context.Background()).Execute() - //resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.GetAuthOrgLockoutConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.GetAuthOrgLockoutConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAuthOrgLockoutConfig`: LockoutConfiguration - fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.GetAuthOrgLockoutConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.GetAuthOrgLockoutConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.GetAuthOrgLockoutConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAuthOrgLockoutConfig`: LockoutConfiguration + fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.GetAuthOrgLockoutConfig`: %v\n", resp) } ``` @@ -191,25 +190,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.GetAuthOrgNetworkConfig(context.Background()).Execute() - //resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.GetAuthOrgNetworkConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.GetAuthOrgNetworkConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAuthOrgNetworkConfig`: NetworkConfiguration - fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.GetAuthOrgNetworkConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.GetAuthOrgNetworkConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.GetAuthOrgNetworkConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAuthOrgNetworkConfig`: NetworkConfiguration + fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.GetAuthOrgNetworkConfig`: %v\n", resp) } ``` @@ -248,25 +247,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.GetAuthOrgServiceProviderConfig(context.Background()).Execute() - //resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.GetAuthOrgServiceProviderConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.GetAuthOrgServiceProviderConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAuthOrgServiceProviderConfig`: ServiceProviderConfiguration - fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.GetAuthOrgServiceProviderConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.GetAuthOrgServiceProviderConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.GetAuthOrgServiceProviderConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAuthOrgServiceProviderConfig`: ServiceProviderConfiguration + fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.GetAuthOrgServiceProviderConfig`: %v\n", resp) } ``` @@ -305,25 +304,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.GetAuthOrgSessionConfig(context.Background()).Execute() - //resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.GetAuthOrgSessionConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.GetAuthOrgSessionConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAuthOrgSessionConfig`: SessionConfiguration - fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.GetAuthOrgSessionConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.GetAuthOrgSessionConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.GetAuthOrgSessionConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAuthOrgSessionConfig`: SessionConfiguration + fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.GetAuthOrgSessionConfig`: %v\n", resp) } ``` @@ -367,7 +366,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -375,24 +374,23 @@ import ( func main() { jsonpatchoperation := []byte(`[{op=replace, path=/maximumAttempts, value=7,}, {op=add, path=/lockoutDuration, value=35}]`) // []JsonPatchOperation | A list of auth org lockout configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Ensures that the patched Lockout Config conforms to certain logical guidelines, which are: `1. maximumAttempts >= 1 && maximumAttempts <= 15 2. lockoutDuration >= 5 && lockoutDuration <= 60 3. lockoutWindow >= 5 && lockoutDuration <= 60` - - var jsonPatchOperation v2024.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2024.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchAuthOrgLockoutConfig`: LockoutConfiguration - fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchAuthOrgLockoutConfig`: LockoutConfiguration + fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig`: %v\n", resp) } ``` @@ -436,7 +434,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -444,24 +442,23 @@ import ( func main() { jsonpatchoperation := []byte(`[{op=replace, path=/whitelisted, value=false,}, {op=add, path=/geolocation, value=[AF, HN, ES]}]`) // []JsonPatchOperation | A list of auth org network configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Ensures that the patched Network Config conforms to certain logical guidelines, which are: 1. Each string element in the range array must be a valid ip address or ip subnet mask. 2. Each string element in the geolocation array must be 2 characters, and they can only be uppercase letters. - - var jsonPatchOperation v2024.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2024.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchAuthOrgNetworkConfig`: NetworkConfiguration - fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchAuthOrgNetworkConfig`: NetworkConfiguration + fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig`: %v\n", resp) } ``` @@ -504,7 +501,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -512,24 +509,23 @@ import ( func main() { jsonpatchoperation := []byte(`[{op=replace, path=/enabled, value=true,}, {op=add, path=/federationProtocolDetails/0/jitConfiguration, value={enabled=true, sourceId=2c9180857377ed2901739c12a2da5ac8, sourceAttributeMappings={firstName=okta.firstName, lastName=okta.lastName, email=okta.email, employeeNumber=okta.employeeNumber}}}]`) // []JsonPatchOperation | A list of auth org service provider configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Note: /federationProtocolDetails/0 is IdpDetails /federationProtocolDetails/1 is SpDetails Ensures that the patched ServiceProviderConfig conforms to certain logical guidelines, which are: 1. Do not add or remove any elements in the federation protocol details in the service provider configuration. 2. Do not modify, add, or delete the service provider details element in the federation protocol details. 3. If this is the first time the patched ServiceProviderConfig enables Remote IDP sign-in, it must also include IDPDetails. 4. If the patch enables Remote IDP sign in, the entityID in the IDPDetails cannot be null. IDPDetails must include an entityID. 5. Any JIT configuration update must be valid. Just in time configuration update must be valid when enabled. This includes: - A Source ID - Source attribute mappings - Source attribute maps have all the required key values (firstName, lastName, email) - - var jsonPatchOperation v2024.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2024.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchAuthOrgServiceProviderConfig`: ServiceProviderConfiguration - fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchAuthOrgServiceProviderConfig`: ServiceProviderConfiguration + fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig`: %v\n", resp) } ``` @@ -572,7 +568,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -580,24 +576,23 @@ import ( func main() { jsonpatchoperation := []byte(`[{op=replace, path=/rememberMe, value=true,}, {op=add, path=/maxSessionTime, value=480}]`) // []JsonPatchOperation | A list of auth org session configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Ensures that the patched Session Config conforms to certain logical guidelines, which are: `1. maxSessionTime >= 1 && maxSessionTime <= 10080 (1 week) 2. maxIdleTime >= 1 && maxIdleTime <= 1440 (1 day) 3. maxSessionTime must have a greater duration than maxIdleTime.` - - var jsonPatchOperation v2024.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2024.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchAuthOrgSessionConfig`: SessionConfiguration - fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchAuthOrgSessionConfig`: SessionConfiguration + fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/GovernanceGroupsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/GovernanceGroupsAPI.md index ee1965d1c..c0793f69b 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/GovernanceGroupsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/GovernanceGroupsAPI.md @@ -81,7 +81,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -105,24 +105,23 @@ func main() { "id" : "2c91808568c529c60168cca6f90c1313" }`) // WorkgroupDto | - - var workgroupDto v2024.WorkgroupDto - if err := json.Unmarshal(workgroupdto, &workgroupDto); err != nil { - fmt.Println("Error:", err) - return - } - + var workgroupDto v2024.WorkgroupDto + if err := json.Unmarshal(workgroupdto, &workgroupDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GovernanceGroupsAPI.CreateWorkgroup(context.Background()).XSailPointExperimental(xSailPointExperimental).WorkgroupDto(workgroupDto).Execute() - //resp, r, err := apiClient.V2024.GovernanceGroupsAPI.CreateWorkgroup(context.Background()).XSailPointExperimental(xSailPointExperimental).WorkgroupDto(workgroupDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.CreateWorkgroup``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateWorkgroup`: WorkgroupDto - fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.CreateWorkgroup`: %v\n", resp) + //resp, r, err := apiClient.V2024.GovernanceGroupsAPI.CreateWorkgroup(context.Background()).XSailPointExperimental(xSailPointExperimental).WorkgroupDto(workgroupDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.CreateWorkgroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateWorkgroup`: WorkgroupDto + fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.CreateWorkgroup`: %v\n", resp) } ``` @@ -181,7 +180,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -190,16 +189,17 @@ func main() { id := `2c9180837ca6693d017ca8d097500149` // string | ID of the Governance Group # string | ID of the Governance Group xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.GovernanceGroupsAPI.DeleteWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //r, err := apiClient.V2024.GovernanceGroupsAPI.DeleteWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.DeleteWorkgroup``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.GovernanceGroupsAPI.DeleteWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.DeleteWorkgroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -262,7 +262,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -272,24 +272,23 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") identitypreviewresponseidentity := []byte(``) // []IdentityPreviewResponseIdentity | List of identities to be removed from a Governance Group members list. - - var identityPreviewResponseIdentity v2024.[]IdentityPreviewResponseIdentity - if err := json.Unmarshal(identitypreviewresponseidentity, &identityPreviewResponseIdentity); err != nil { - fmt.Println("Error:", err) - return - } - + var identityPreviewResponseIdentity []v2024.IdentityPreviewResponseIdentity + if err := json.Unmarshal(identitypreviewresponseidentity, &identityPreviewResponseIdentity); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GovernanceGroupsAPI.DeleteWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).IdentityPreviewResponseIdentity(identityPreviewResponseIdentity).Execute() - //resp, r, err := apiClient.V2024.GovernanceGroupsAPI.DeleteWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).IdentityPreviewResponseIdentity(identityPreviewResponseIdentity).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.DeleteWorkgroupMembers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteWorkgroupMembers`: []WorkgroupMemberDeleteItem - fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.DeleteWorkgroupMembers`: %v\n", resp) + //resp, r, err := apiClient.V2024.GovernanceGroupsAPI.DeleteWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).IdentityPreviewResponseIdentity(identityPreviewResponseIdentity).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.DeleteWorkgroupMembers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteWorkgroupMembers`: []WorkgroupMemberDeleteItem + fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.DeleteWorkgroupMembers`: %v\n", resp) } ``` @@ -355,7 +354,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -366,24 +365,23 @@ func main() { "ids" : [ "567a697e-885b-495a-afc5-d55e1c23a302", "c7b0f7b2-1e78-4063-b294-a555333dacd2" ] }`) // WorkgroupBulkDeleteRequest | - - var workgroupBulkDeleteRequest v2024.WorkgroupBulkDeleteRequest - if err := json.Unmarshal(workgroupbulkdeleterequest, &workgroupBulkDeleteRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var workgroupBulkDeleteRequest v2024.WorkgroupBulkDeleteRequest + if err := json.Unmarshal(workgroupbulkdeleterequest, &workgroupBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GovernanceGroupsAPI.DeleteWorkgroupsInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).WorkgroupBulkDeleteRequest(workgroupBulkDeleteRequest).Execute() - //resp, r, err := apiClient.V2024.GovernanceGroupsAPI.DeleteWorkgroupsInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).WorkgroupBulkDeleteRequest(workgroupBulkDeleteRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.DeleteWorkgroupsInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteWorkgroupsInBulk`: []WorkgroupDeleteItem - fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.DeleteWorkgroupsInBulk`: %v\n", resp) + //resp, r, err := apiClient.V2024.GovernanceGroupsAPI.DeleteWorkgroupsInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).WorkgroupBulkDeleteRequest(workgroupBulkDeleteRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.DeleteWorkgroupsInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteWorkgroupsInBulk`: []WorkgroupDeleteItem + fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.DeleteWorkgroupsInBulk`: %v\n", resp) } ``` @@ -442,7 +440,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -451,18 +449,18 @@ func main() { id := `2c9180837ca6693d017ca8d097500149` // string | ID of the Governance Group # string | ID of the Governance Group xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GovernanceGroupsAPI.GetWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.GovernanceGroupsAPI.GetWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.GetWorkgroup``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetWorkgroup`: WorkgroupDto - fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.GetWorkgroup`: %v\n", resp) + //resp, r, err := apiClient.V2024.GovernanceGroupsAPI.GetWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.GetWorkgroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkgroup`: WorkgroupDto + fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.GetWorkgroup`: %v\n", resp) } ``` @@ -525,7 +523,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -538,18 +536,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GovernanceGroupsAPI.ListConnections(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.GovernanceGroupsAPI.ListConnections(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.ListConnections``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListConnections`: []WorkgroupConnectionDto - fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.ListConnections`: %v\n", resp) + //resp, r, err := apiClient.V2024.GovernanceGroupsAPI.ListConnections(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.ListConnections``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListConnections`: []WorkgroupConnectionDto + fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.ListConnections`: %v\n", resp) } ``` @@ -612,7 +610,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -625,18 +623,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GovernanceGroupsAPI.ListWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.GovernanceGroupsAPI.ListWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.ListWorkgroupMembers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListWorkgroupMembers`: []ListWorkgroupMembers200ResponseInner - fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.ListWorkgroupMembers`: %v\n", resp) + //resp, r, err := apiClient.V2024.GovernanceGroupsAPI.ListWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.ListWorkgroupMembers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListWorkgroupMembers`: []ListWorkgroupMembers200ResponseInner + fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.ListWorkgroupMembers`: %v\n", resp) } ``` @@ -695,7 +693,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -708,18 +706,18 @@ func main() { filters := `name sw "Test"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in, sw* **name**: *eq, sw, in* **memberships.identityId**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in, sw* **name**: *eq, sw, in* **memberships.identityId**: *eq, in* (optional) sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, modified, id, description** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, modified, id, description** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GovernanceGroupsAPI.ListWorkgroups(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.GovernanceGroupsAPI.ListWorkgroups(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.ListWorkgroups``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListWorkgroups`: []WorkgroupDto - fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.ListWorkgroups`: %v\n", resp) + //resp, r, err := apiClient.V2024.GovernanceGroupsAPI.ListWorkgroups(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.ListWorkgroups``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListWorkgroups`: []WorkgroupDto + fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.ListWorkgroups`: %v\n", resp) } ``` @@ -782,7 +780,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -792,18 +790,18 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") jsonpatchoperation := []byte(`[{op=replace, path=/description, value=Governance Group new description.}]`) // []JsonPatchOperation | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GovernanceGroupsAPI.PatchWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.GovernanceGroupsAPI.PatchWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.PatchWorkgroup``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchWorkgroup`: WorkgroupDto - fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.PatchWorkgroup`: %v\n", resp) + //resp, r, err := apiClient.V2024.GovernanceGroupsAPI.PatchWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.PatchWorkgroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchWorkgroup`: WorkgroupDto + fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.PatchWorkgroup`: %v\n", resp) } ``` @@ -867,7 +865,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -877,24 +875,23 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") identitypreviewresponseidentity := []byte(``) // []IdentityPreviewResponseIdentity | List of identities to be added to a Governance Group members list. - - var identityPreviewResponseIdentity v2024.[]IdentityPreviewResponseIdentity - if err := json.Unmarshal(identitypreviewresponseidentity, &identityPreviewResponseIdentity); err != nil { - fmt.Println("Error:", err) - return - } - + var identityPreviewResponseIdentity []v2024.IdentityPreviewResponseIdentity + if err := json.Unmarshal(identitypreviewresponseidentity, &identityPreviewResponseIdentity); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GovernanceGroupsAPI.UpdateWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).IdentityPreviewResponseIdentity(identityPreviewResponseIdentity).Execute() - //resp, r, err := apiClient.V2024.GovernanceGroupsAPI.UpdateWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).IdentityPreviewResponseIdentity(identityPreviewResponseIdentity).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.UpdateWorkgroupMembers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateWorkgroupMembers`: []WorkgroupMemberAddItem - fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.UpdateWorkgroupMembers`: %v\n", resp) + //resp, r, err := apiClient.V2024.GovernanceGroupsAPI.UpdateWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).IdentityPreviewResponseIdentity(identityPreviewResponseIdentity).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.UpdateWorkgroupMembers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateWorkgroupMembers`: []WorkgroupMemberAddItem + fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.UpdateWorkgroupMembers`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/IAIAccessRequestRecommendationsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/IAIAccessRequestRecommendationsAPI.md index e4e13e61d..20f398147 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/IAIAccessRequestRecommendationsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/IAIAccessRequestRecommendationsAPI.md @@ -76,7 +76,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -91,24 +91,23 @@ func main() { "identityId" : "2c91808570313110017040b06f344ec9" }`) // AccessRequestRecommendationActionItemDto | The recommended access item to ignore for an identity. - - var accessRequestRecommendationActionItemDto v2024.AccessRequestRecommendationActionItemDto - if err := json.Unmarshal(accessrequestrecommendationactionitemdto, &accessRequestRecommendationActionItemDto); err != nil { - fmt.Println("Error:", err) - return - } - + var accessRequestRecommendationActionItemDto v2024.AccessRequestRecommendationActionItemDto + if err := json.Unmarshal(accessrequestrecommendationactionitemdto, &accessRequestRecommendationActionItemDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsIgnoredItem(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() - //resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsIgnoredItem(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsIgnoredItem``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `AddAccessRequestRecommendationsIgnoredItem`: AccessRequestRecommendationActionItemResponseDto - fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsIgnoredItem`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsIgnoredItem(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsIgnoredItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AddAccessRequestRecommendationsIgnoredItem`: AccessRequestRecommendationActionItemResponseDto + fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsIgnoredItem`: %v\n", resp) } ``` @@ -163,7 +162,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -178,24 +177,23 @@ func main() { "identityId" : "2c91808570313110017040b06f344ec9" }`) // AccessRequestRecommendationActionItemDto | The recommended access item that was requested for an identity. - - var accessRequestRecommendationActionItemDto v2024.AccessRequestRecommendationActionItemDto - if err := json.Unmarshal(accessrequestrecommendationactionitemdto, &accessRequestRecommendationActionItemDto); err != nil { - fmt.Println("Error:", err) - return - } - + var accessRequestRecommendationActionItemDto v2024.AccessRequestRecommendationActionItemDto + if err := json.Unmarshal(accessrequestrecommendationactionitemdto, &accessRequestRecommendationActionItemDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsRequestedItem(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() - //resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsRequestedItem(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsRequestedItem``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `AddAccessRequestRecommendationsRequestedItem`: AccessRequestRecommendationActionItemResponseDto - fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsRequestedItem`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsRequestedItem(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsRequestedItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AddAccessRequestRecommendationsRequestedItem`: AccessRequestRecommendationActionItemResponseDto + fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsRequestedItem`: %v\n", resp) } ``` @@ -250,7 +248,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -265,24 +263,23 @@ func main() { "identityId" : "2c91808570313110017040b06f344ec9" }`) // AccessRequestRecommendationActionItemDto | The recommended access that was viewed for an identity. - - var accessRequestRecommendationActionItemDto v2024.AccessRequestRecommendationActionItemDto - if err := json.Unmarshal(accessrequestrecommendationactionitemdto, &accessRequestRecommendationActionItemDto); err != nil { - fmt.Println("Error:", err) - return - } - + var accessRequestRecommendationActionItemDto v2024.AccessRequestRecommendationActionItemDto + if err := json.Unmarshal(accessrequestrecommendationactionitemdto, &accessRequestRecommendationActionItemDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItem(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() - //resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItem(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItem``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `AddAccessRequestRecommendationsViewedItem`: AccessRequestRecommendationActionItemResponseDto - fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItem`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItem(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AddAccessRequestRecommendationsViewedItem`: AccessRequestRecommendationActionItemResponseDto + fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItem`: %v\n", resp) } ``` @@ -337,7 +334,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -346,24 +343,23 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") accessrequestrecommendationactionitemdto := []byte(``) // []AccessRequestRecommendationActionItemDto | The recommended access items that were viewed for an identity. - - var accessRequestRecommendationActionItemDto v2024.[]AccessRequestRecommendationActionItemDto - if err := json.Unmarshal(accessrequestrecommendationactionitemdto, &accessRequestRecommendationActionItemDto); err != nil { - fmt.Println("Error:", err) - return - } - + var accessRequestRecommendationActionItemDto []v2024.AccessRequestRecommendationActionItemDto + if err := json.Unmarshal(accessrequestrecommendationactionitemdto, &accessRequestRecommendationActionItemDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() - //resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `AddAccessRequestRecommendationsViewedItems`: []AccessRequestRecommendationActionItemResponseDto - fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItems`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AddAccessRequestRecommendationsViewedItems`: []AccessRequestRecommendationActionItemResponseDto + fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItems`: %v\n", resp) } ``` @@ -424,7 +420,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -439,18 +435,18 @@ func main() { filters := `access.name co "admin"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **access.name**: *co* **access.type**: *eq, in* **access.description**: *co, eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **access.name**: *co* **access.type**: *eq, in* **access.description**: *co, eq, in* (optional) sorters := `access.name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.name, access.type** By default the recommendations are sorted by highest confidence first. (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.name, access.type** By default the recommendations are sorted by highest confidence first. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendations(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendations(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityId(identityId).Limit(limit).Offset(offset).Count(count).IncludeTranslationMessages(includeTranslationMessages).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendations``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessRequestRecommendations`: []AccessRequestRecommendationItemDetail - fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendations`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendations(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityId(identityId).Limit(limit).Offset(offset).Count(count).IncludeTranslationMessages(includeTranslationMessages).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessRequestRecommendations`: []AccessRequestRecommendationItemDetail + fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendations`: %v\n", resp) } ``` @@ -504,7 +500,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -512,18 +508,18 @@ import ( func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessRequestRecommendationsConfig`: AccessRequestRecommendationConfigDto - fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessRequestRecommendationsConfig`: AccessRequestRecommendationConfigDto + fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsConfig`: %v\n", resp) } ``` @@ -582,7 +578,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -595,18 +591,18 @@ func main() { filters := `identityId eq "2c9180846b0a0583016b299f210c1314"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (optional) sorters := `access.id` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.id, access.type, identityId, timestamp** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.id, access.type, identityId, timestamp** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsIgnoredItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsIgnoredItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsIgnoredItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessRequestRecommendationsIgnoredItems`: []AccessRequestRecommendationActionItemResponseDto - fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsIgnoredItems`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsIgnoredItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsIgnoredItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessRequestRecommendationsIgnoredItems`: []AccessRequestRecommendationActionItemResponseDto + fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsIgnoredItems`: %v\n", resp) } ``` @@ -665,7 +661,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -678,18 +674,18 @@ func main() { filters := `access.id eq "2c9180846b0a0583016b299f210c1314"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (optional) sorters := `access.id` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.id, access.type, identityId, timestamp** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.id, access.type, identityId, timestamp** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsRequestedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsRequestedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsRequestedItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessRequestRecommendationsRequestedItems`: []AccessRequestRecommendationActionItemResponseDto - fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsRequestedItems`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsRequestedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsRequestedItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessRequestRecommendationsRequestedItems`: []AccessRequestRecommendationActionItemResponseDto + fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsRequestedItems`: %v\n", resp) } ``` @@ -748,7 +744,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -761,18 +757,18 @@ func main() { filters := `access.id eq "2c9180846b0a0583016b299f210c1314"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (optional) sorters := `access.id` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.id, access.type, identityId, timestamp** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.id, access.type, identityId, timestamp** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsViewedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsViewedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsViewedItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessRequestRecommendationsViewedItems`: []AccessRequestRecommendationActionItemResponseDto - fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsViewedItems`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsViewedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsViewedItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessRequestRecommendationsViewedItems`: []AccessRequestRecommendationActionItemResponseDto + fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsViewedItems`: %v\n", resp) } ``` @@ -827,7 +823,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -843,24 +839,23 @@ func main() { "useRestrictionAttribute" : true }`) // AccessRequestRecommendationConfigDto | The desired configurations for Access Request Recommender for the tenant. - - var accessRequestRecommendationConfigDto v2024.AccessRequestRecommendationConfigDto - if err := json.Unmarshal(accessrequestrecommendationconfigdto, &accessRequestRecommendationConfigDto); err != nil { - fmt.Println("Error:", err) - return - } - + var accessRequestRecommendationConfigDto v2024.AccessRequestRecommendationConfigDto + if err := json.Unmarshal(accessrequestrecommendationconfigdto, &accessRequestRecommendationConfigDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.SetAccessRequestRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationConfigDto(accessRequestRecommendationConfigDto).Execute() - //resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.SetAccessRequestRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationConfigDto(accessRequestRecommendationConfigDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.SetAccessRequestRecommendationsConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetAccessRequestRecommendationsConfig`: AccessRequestRecommendationConfigDto - fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.SetAccessRequestRecommendationsConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.SetAccessRequestRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationConfigDto(accessRequestRecommendationConfigDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.SetAccessRequestRecommendationsConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetAccessRequestRecommendationsConfig`: AccessRequestRecommendationConfigDto + fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.SetAccessRequestRecommendationsConfig`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/IAICommonAccessAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/IAICommonAccessAPI.md index 828f859eb..1907fdeb4 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/IAICommonAccessAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/IAICommonAccessAPI.md @@ -69,7 +69,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -88,24 +88,23 @@ func main() { "status" : "CONFIRMED" }`) // CommonAccessItemRequest | - - var commonAccessItemRequest v2024.CommonAccessItemRequest - if err := json.Unmarshal(commonaccessitemrequest, &commonAccessItemRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var commonAccessItemRequest v2024.CommonAccessItemRequest + if err := json.Unmarshal(commonaccessitemrequest, &commonAccessItemRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAICommonAccessAPI.CreateCommonAccess(context.Background()).XSailPointExperimental(xSailPointExperimental).CommonAccessItemRequest(commonAccessItemRequest).Execute() - //resp, r, err := apiClient.V2024.IAICommonAccessAPI.CreateCommonAccess(context.Background()).XSailPointExperimental(xSailPointExperimental).CommonAccessItemRequest(commonAccessItemRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAICommonAccessAPI.CreateCommonAccess``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateCommonAccess`: CommonAccessItemResponse - fmt.Fprintf(os.Stdout, "Response from `IAICommonAccessAPI.CreateCommonAccess`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAICommonAccessAPI.CreateCommonAccess(context.Background()).XSailPointExperimental(xSailPointExperimental).CommonAccessItemRequest(commonAccessItemRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAICommonAccessAPI.CreateCommonAccess``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCommonAccess`: CommonAccessItemResponse + fmt.Fprintf(os.Stdout, "Response from `IAICommonAccessAPI.CreateCommonAccess`: %v\n", resp) } ``` @@ -164,7 +163,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -177,18 +176,18 @@ func main() { filters := `access.type eq "ROLE"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **status**: *eq, sw* **reviewedByUser** *eq* **access.id**: *eq, sw* **access.type**: *eq* **access.name**: *sw, eq* **access.description**: *sw, eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **status**: *eq, sw* **reviewedByUser** *eq* **access.id**: *eq, sw* **access.type**: *eq* **access.name**: *sw, eq* **access.description**: *sw, eq* (optional) sorters := `access.name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.name, status** By default the common access items are sorted by name, ascending. (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.name, status** By default the common access items are sorted by name, ascending. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAICommonAccessAPI.GetCommonAccess(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IAICommonAccessAPI.GetCommonAccess(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAICommonAccessAPI.GetCommonAccess``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCommonAccess`: []CommonAccessResponse - fmt.Fprintf(os.Stdout, "Response from `IAICommonAccessAPI.GetCommonAccess`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAICommonAccessAPI.GetCommonAccess(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAICommonAccessAPI.GetCommonAccess``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCommonAccess`: []CommonAccessResponse + fmt.Fprintf(os.Stdout, "Response from `IAICommonAccessAPI.GetCommonAccess`: %v\n", resp) } ``` @@ -243,7 +242,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -252,24 +251,23 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") commonaccessidstatus := []byte(``) // []CommonAccessIDStatus | Confirm or deny in bulk the common access ids that are (or aren't) common access - - var commonAccessIDStatus v2024.[]CommonAccessIDStatus - if err := json.Unmarshal(commonaccessidstatus, &commonAccessIDStatus); err != nil { - fmt.Println("Error:", err) - return - } - + var commonAccessIDStatus []v2024.CommonAccessIDStatus + if err := json.Unmarshal(commonaccessidstatus, &commonAccessIDStatus); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAICommonAccessAPI.UpdateCommonAccessStatusInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).CommonAccessIDStatus(commonAccessIDStatus).Execute() - //resp, r, err := apiClient.V2024.IAICommonAccessAPI.UpdateCommonAccessStatusInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).CommonAccessIDStatus(commonAccessIDStatus).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAICommonAccessAPI.UpdateCommonAccessStatusInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateCommonAccessStatusInBulk`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `IAICommonAccessAPI.UpdateCommonAccessStatusInBulk`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAICommonAccessAPI.UpdateCommonAccessStatusInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).CommonAccessIDStatus(commonAccessIDStatus).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAICommonAccessAPI.UpdateCommonAccessStatusInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateCommonAccessStatusInBulk`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `IAICommonAccessAPI.UpdateCommonAccessStatusInBulk`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/IAIOutliersAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/IAIOutliersAPI.md index c842b7f56..b7add5a1e 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/IAIOutliersAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/IAIOutliersAPI.md @@ -78,7 +78,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -87,18 +87,18 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") type_ := `LOW_SIMILARITY` // string | Type of the identity outliers snapshot to filter on (optional) # string | Type of the identity outliers snapshot to filter on (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIOutliersAPI.ExportOutliersZip(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IAIOutliersAPI.ExportOutliersZip(context.Background()).XSailPointExperimental(xSailPointExperimental).Type_(type_).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.ExportOutliersZip``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExportOutliersZip`: *os.File - fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.ExportOutliersZip`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIOutliersAPI.ExportOutliersZip(context.Background()).XSailPointExperimental(xSailPointExperimental).Type_(type_).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.ExportOutliersZip``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExportOutliersZip`: *os.File + fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.ExportOutliersZip`: %v\n", resp) } ``` @@ -157,7 +157,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -170,18 +170,18 @@ func main() { filters := `snapshotDate ge "2022-02-07T20:13:29.356648026Z"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **snapshotDate**: *ge, le* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **snapshotDate**: *ge, le* (optional) sorters := `snapshotDate` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **snapshotDate** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **snapshotDate** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIOutliersAPI.GetIdentityOutlierSnapshots(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IAIOutliersAPI.GetIdentityOutlierSnapshots(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Type_(type_).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.GetIdentityOutlierSnapshots``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentityOutlierSnapshots`: []OutlierSummary - fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.GetIdentityOutlierSnapshots`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIOutliersAPI.GetIdentityOutlierSnapshots(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Type_(type_).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.GetIdentityOutlierSnapshots``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityOutlierSnapshots`: []OutlierSummary + fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.GetIdentityOutlierSnapshots`: %v\n", resp) } ``` @@ -241,7 +241,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -255,18 +255,18 @@ func main() { filters := `attributes.displayName sw "John" and certStatus eq "false"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **attributes**: *eq, sw, co, in* **firstDetectionDate**: *ge, le* **certStatus**: *eq* **ignored**: *eq* **score**: *ge, le* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **attributes**: *eq, sw, co, in* **firstDetectionDate**: *ge, le* **certStatus**: *eq* **ignored**: *eq* **score**: *ge, le* (optional) sorters := `attributes.displayName,firstDetectionDate,-score` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **firstDetectionDate, attributes, score** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **firstDetectionDate, attributes, score** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIOutliersAPI.GetIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IAIOutliersAPI.GetIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Type_(type_).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.GetIdentityOutliers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentityOutliers`: []Outlier - fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.GetIdentityOutliers`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIOutliersAPI.GetIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Type_(type_).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.GetIdentityOutliers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityOutliers`: []Outlier + fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.GetIdentityOutliers`: %v\n", resp) } ``` @@ -321,7 +321,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -330,18 +330,18 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") type_ := `LOW_SIMILARITY` // string | Type of the identity outliers snapshot to filter on (optional) # string | Type of the identity outliers snapshot to filter on (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIOutliersAPI.GetLatestIdentityOutlierSnapshots(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IAIOutliersAPI.GetLatestIdentityOutlierSnapshots(context.Background()).XSailPointExperimental(xSailPointExperimental).Type_(type_).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.GetLatestIdentityOutlierSnapshots``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetLatestIdentityOutlierSnapshots`: []LatestOutlierSummary - fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.GetLatestIdentityOutlierSnapshots`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIOutliersAPI.GetLatestIdentityOutlierSnapshots(context.Background()).XSailPointExperimental(xSailPointExperimental).Type_(type_).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.GetLatestIdentityOutlierSnapshots``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetLatestIdentityOutlierSnapshots`: []LatestOutlierSummary + fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.GetLatestIdentityOutlierSnapshots`: %v\n", resp) } ``` @@ -403,7 +403,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -412,18 +412,18 @@ func main() { outlierFeatureId := `04654b66-7561-4090-94f9-abee0722a1af` // string | Contributing feature id # string | Contributing feature id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIOutliersAPI.GetOutlierContributingFeatureSummary(context.Background(), outlierFeatureId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IAIOutliersAPI.GetOutlierContributingFeatureSummary(context.Background(), outlierFeatureId).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.GetOutlierContributingFeatureSummary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetOutlierContributingFeatureSummary`: OutlierFeatureSummary - fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.GetOutlierContributingFeatureSummary`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIOutliersAPI.GetOutlierContributingFeatureSummary(context.Background(), outlierFeatureId).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.GetOutlierContributingFeatureSummary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetOutlierContributingFeatureSummary`: OutlierFeatureSummary + fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.GetOutlierContributingFeatureSummary`: %v\n", resp) } ``` @@ -490,7 +490,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -504,18 +504,18 @@ func main() { includeTranslationMessages := `include-translation-messages=` // string | Whether or not to include translation messages object in returned response (optional) # string | Whether or not to include translation messages object in returned response (optional) sorters := `importance` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **importance** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **importance** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIOutliersAPI.GetPeerGroupOutliersContributingFeatures(context.Background(), outlierId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IAIOutliersAPI.GetPeerGroupOutliersContributingFeatures(context.Background(), outlierId).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).IncludeTranslationMessages(includeTranslationMessages).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.GetPeerGroupOutliersContributingFeatures``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPeerGroupOutliersContributingFeatures`: []OutlierContributingFeature - fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.GetPeerGroupOutliersContributingFeatures`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIOutliersAPI.GetPeerGroupOutliersContributingFeatures(context.Background(), outlierId).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).IncludeTranslationMessages(includeTranslationMessages).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.GetPeerGroupOutliersContributingFeatures``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPeerGroupOutliersContributingFeatures`: []OutlierContributingFeature + fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.GetPeerGroupOutliersContributingFeatures`: %v\n", resp) } ``` @@ -570,7 +570,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -579,22 +579,22 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") requestbody := []byte(``) // []string | - - var requestBody v2024.[]RequestBody - if err := json.Unmarshal(requestbody, &requestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var requestBody []v2024.RequestBody + if err := json.Unmarshal(requestbody, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.IAIOutliersAPI.IgnoreIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() - //r, err := apiClient.V2024.IAIOutliersAPI.IgnoreIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.IgnoreIdentityOutliers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.IAIOutliersAPI.IgnoreIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.IgnoreIdentityOutliers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -663,7 +663,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -678,18 +678,18 @@ func main() { accessType := `ENTITLEMENT` // string | The type of access item for the identity outlier contributing feature. If not provided, it returns all. (optional) # string | The type of access item for the identity outlier contributing feature. If not provided, it returns all. (optional) sorters := `displayName` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **displayName** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **displayName** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIOutliersAPI.ListOutliersContributingFeatureAccessItems(context.Background(), outlierId, contributingFeatureName).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IAIOutliersAPI.ListOutliersContributingFeatureAccessItems(context.Background(), outlierId, contributingFeatureName).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).AccessType(accessType).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.ListOutliersContributingFeatureAccessItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListOutliersContributingFeatureAccessItems`: []OutliersContributingFeatureAccessItems - fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.ListOutliersContributingFeatureAccessItems`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIOutliersAPI.ListOutliersContributingFeatureAccessItems(context.Background(), outlierId, contributingFeatureName).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).AccessType(accessType).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.ListOutliersContributingFeatureAccessItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListOutliersContributingFeatureAccessItems`: []OutliersContributingFeatureAccessItems + fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.ListOutliersContributingFeatureAccessItems`: %v\n", resp) } ``` @@ -744,7 +744,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -753,22 +753,22 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") requestbody := []byte(``) // []string | - - var requestBody v2024.[]RequestBody - if err := json.Unmarshal(requestbody, &requestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var requestBody []v2024.RequestBody + if err := json.Unmarshal(requestbody, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.IAIOutliersAPI.UnIgnoreIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() - //r, err := apiClient.V2024.IAIOutliersAPI.UnIgnoreIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.UnIgnoreIdentityOutliers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.IAIOutliersAPI.UnIgnoreIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.UnIgnoreIdentityOutliers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/IAIPeerGroupStrategiesAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/IAIPeerGroupStrategiesAPI.md index 3530eba6c..1bab0deca 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/IAIPeerGroupStrategiesAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/IAIPeerGroupStrategiesAPI.md @@ -77,7 +77,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -89,18 +89,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIPeerGroupStrategiesAPI.GetPeerGroupOutliers(context.Background(), strategy).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IAIPeerGroupStrategiesAPI.GetPeerGroupOutliers(context.Background(), strategy).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIPeerGroupStrategiesAPI.GetPeerGroupOutliers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPeerGroupOutliers`: []PeerGroupMember - fmt.Fprintf(os.Stdout, "Response from `IAIPeerGroupStrategiesAPI.GetPeerGroupOutliers`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIPeerGroupStrategiesAPI.GetPeerGroupOutliers(context.Background(), strategy).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIPeerGroupStrategiesAPI.GetPeerGroupOutliers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPeerGroupOutliers`: []PeerGroupMember + fmt.Fprintf(os.Stdout, "Response from `IAIPeerGroupStrategiesAPI.GetPeerGroupOutliers`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/IAIRecommendationsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/IAIRecommendationsAPI.md index c0a3546b0..97e6f2c7b 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/IAIRecommendationsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/IAIRecommendationsAPI.md @@ -69,7 +69,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -96,24 +96,23 @@ func main() { "includeDebugInformation" : true }`) // RecommendationRequestDto | - - var recommendationRequestDto v2024.RecommendationRequestDto - if err := json.Unmarshal(recommendationrequestdto, &recommendationRequestDto); err != nil { - fmt.Println("Error:", err) - return - } - + var recommendationRequestDto v2024.RecommendationRequestDto + if err := json.Unmarshal(recommendationrequestdto, &recommendationRequestDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRecommendationsAPI.GetRecommendations(context.Background()).XSailPointExperimental(xSailPointExperimental).RecommendationRequestDto(recommendationRequestDto).Execute() - //resp, r, err := apiClient.V2024.IAIRecommendationsAPI.GetRecommendations(context.Background()).XSailPointExperimental(xSailPointExperimental).RecommendationRequestDto(recommendationRequestDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRecommendationsAPI.GetRecommendations``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRecommendations`: RecommendationResponseDto - fmt.Fprintf(os.Stdout, "Response from `IAIRecommendationsAPI.GetRecommendations`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIRecommendationsAPI.GetRecommendations(context.Background()).XSailPointExperimental(xSailPointExperimental).RecommendationRequestDto(recommendationRequestDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRecommendationsAPI.GetRecommendations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRecommendations`: RecommendationResponseDto + fmt.Fprintf(os.Stdout, "Response from `IAIRecommendationsAPI.GetRecommendations`: %v\n", resp) } ``` @@ -167,7 +166,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -175,18 +174,18 @@ import ( func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRecommendationsAPI.GetRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IAIRecommendationsAPI.GetRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRecommendationsAPI.GetRecommendationsConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRecommendationsConfig`: RecommendationConfigDto - fmt.Fprintf(os.Stdout, "Response from `IAIRecommendationsAPI.GetRecommendationsConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIRecommendationsAPI.GetRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRecommendationsAPI.GetRecommendationsConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRecommendationsConfig`: RecommendationConfigDto + fmt.Fprintf(os.Stdout, "Response from `IAIRecommendationsAPI.GetRecommendationsConfig`: %v\n", resp) } ``` @@ -241,7 +240,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -255,24 +254,23 @@ func main() { "onlyTuneThreshold" : false }`) // RecommendationConfigDto | - - var recommendationConfigDto v2024.RecommendationConfigDto - if err := json.Unmarshal(recommendationconfigdto, &recommendationConfigDto); err != nil { - fmt.Println("Error:", err) - return - } - + var recommendationConfigDto v2024.RecommendationConfigDto + if err := json.Unmarshal(recommendationconfigdto, &recommendationConfigDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRecommendationsAPI.UpdateRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).RecommendationConfigDto(recommendationConfigDto).Execute() - //resp, r, err := apiClient.V2024.IAIRecommendationsAPI.UpdateRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).RecommendationConfigDto(recommendationConfigDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRecommendationsAPI.UpdateRecommendationsConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateRecommendationsConfig`: RecommendationConfigDto - fmt.Fprintf(os.Stdout, "Response from `IAIRecommendationsAPI.UpdateRecommendationsConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIRecommendationsAPI.UpdateRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).RecommendationConfigDto(recommendationConfigDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRecommendationsAPI.UpdateRecommendationsConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateRecommendationsConfig`: RecommendationConfigDto + fmt.Fprintf(os.Stdout, "Response from `IAIRecommendationsAPI.UpdateRecommendationsConfig`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/IAIRoleMiningAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/IAIRoleMiningAPI.md index 9d1cbccf4..1328cdcd9 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/IAIRoleMiningAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/IAIRoleMiningAPI.md @@ -100,7 +100,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -119,18 +119,18 @@ func main() { "directlyAssignedEntitlements" : false }`) // RoleMiningPotentialRoleProvisionRequest | Required information to create a new role (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.CreatePotentialRoleProvisionRequest(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.CreatePotentialRoleProvisionRequest(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).MinEntitlementPopularity(minEntitlementPopularity).IncludeCommonAccess(includeCommonAccess).RoleMiningPotentialRoleProvisionRequest(roleMiningPotentialRoleProvisionRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.CreatePotentialRoleProvisionRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreatePotentialRoleProvisionRequest`: RoleMiningPotentialRoleSummary - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.CreatePotentialRoleProvisionRequest`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.CreatePotentialRoleProvisionRequest(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).MinEntitlementPopularity(minEntitlementPopularity).IncludeCommonAccess(includeCommonAccess).RoleMiningPotentialRoleProvisionRequest(roleMiningPotentialRoleProvisionRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.CreatePotentialRoleProvisionRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreatePotentialRoleProvisionRequest`: RoleMiningPotentialRoleSummary + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.CreatePotentialRoleProvisionRequest`: %v\n", resp) } ``` @@ -185,7 +185,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -225,24 +225,23 @@ func main() { "type" : "SPECIALIZED" }`) // RoleMiningSessionDto | Role mining session parameters - - var roleMiningSessionDto v2024.RoleMiningSessionDto - if err := json.Unmarshal(roleminingsessiondto, &roleMiningSessionDto); err != nil { - fmt.Println("Error:", err) - return - } - + var roleMiningSessionDto v2024.RoleMiningSessionDto + if err := json.Unmarshal(roleminingsessiondto, &roleMiningSessionDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.CreateRoleMiningSessions(context.Background()).XSailPointExperimental(xSailPointExperimental).RoleMiningSessionDto(roleMiningSessionDto).Execute() - //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.CreateRoleMiningSessions(context.Background()).XSailPointExperimental(xSailPointExperimental).RoleMiningSessionDto(roleMiningSessionDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.CreateRoleMiningSessions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateRoleMiningSessions`: RoleMiningSessionResponse - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.CreateRoleMiningSessions`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.CreateRoleMiningSessions(context.Background()).XSailPointExperimental(xSailPointExperimental).RoleMiningSessionDto(roleMiningSessionDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.CreateRoleMiningSessions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateRoleMiningSessions`: RoleMiningSessionResponse + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.CreateRoleMiningSessions`: %v\n", resp) } ``` @@ -305,7 +304,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -316,18 +315,18 @@ func main() { exportId := `4940ffd4-836f-48a3-b2b0-6d498c3fdf40` // string | The id of a previously run export job for this potential role # string | The id of a previously run export job for this potential role xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.DownloadRoleMiningPotentialRoleZip(context.Background(), sessionId, potentialRoleId, exportId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.DownloadRoleMiningPotentialRoleZip(context.Background(), sessionId, potentialRoleId, exportId).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.DownloadRoleMiningPotentialRoleZip``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DownloadRoleMiningPotentialRoleZip`: *os.File - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.DownloadRoleMiningPotentialRoleZip`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.DownloadRoleMiningPotentialRoleZip(context.Background(), sessionId, potentialRoleId, exportId).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.DownloadRoleMiningPotentialRoleZip``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DownloadRoleMiningPotentialRoleZip`: *os.File + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.DownloadRoleMiningPotentialRoleZip`: %v\n", resp) } ``` @@ -388,7 +387,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -398,18 +397,18 @@ func main() { potentialRoleId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | A potential role id in a role mining session # string | A potential role id in a role mining session xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.ExportRoleMiningPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.ExportRoleMiningPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.ExportRoleMiningPotentialRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExportRoleMiningPotentialRole`: *os.File - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.ExportRoleMiningPotentialRole`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.ExportRoleMiningPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.ExportRoleMiningPotentialRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExportRoleMiningPotentialRole`: *os.File + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.ExportRoleMiningPotentialRole`: %v\n", resp) } ``` @@ -471,7 +470,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -485,18 +484,18 @@ func main() { "includeCommonAccess" : true }`) // RoleMiningPotentialRoleExportRequest | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleAsync(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleAsync(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).RoleMiningPotentialRoleExportRequest(roleMiningPotentialRoleExportRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.ExportRoleMiningPotentialRoleAsync``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExportRoleMiningPotentialRoleAsync`: RoleMiningPotentialRoleExportResponse - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.ExportRoleMiningPotentialRoleAsync`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleAsync(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).RoleMiningPotentialRoleExportRequest(roleMiningPotentialRoleExportRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.ExportRoleMiningPotentialRoleAsync``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExportRoleMiningPotentialRoleAsync`: RoleMiningPotentialRoleExportResponse + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.ExportRoleMiningPotentialRoleAsync`: %v\n", resp) } ``` @@ -559,7 +558,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -570,18 +569,18 @@ func main() { exportId := `4940ffd4-836f-48a3-b2b0-6d498c3fdf40` // string | The id of a previously run export job for this potential role # string | The id of a previously run export job for this potential role xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleStatus(context.Background(), sessionId, potentialRoleId, exportId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleStatus(context.Background(), sessionId, potentialRoleId, exportId).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.ExportRoleMiningPotentialRoleStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExportRoleMiningPotentialRoleStatus`: RoleMiningPotentialRoleExportResponse - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.ExportRoleMiningPotentialRoleStatus`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleStatus(context.Background(), sessionId, potentialRoleId, exportId).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.ExportRoleMiningPotentialRoleStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExportRoleMiningPotentialRoleStatus`: RoleMiningPotentialRoleExportResponse + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.ExportRoleMiningPotentialRoleStatus`: %v\n", resp) } ``` @@ -640,7 +639,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -653,18 +652,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetAllPotentialRoleSummaries(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetAllPotentialRoleSummaries(context.Background()).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetAllPotentialRoleSummaries``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAllPotentialRoleSummaries`: []RoleMiningPotentialRoleSummary - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetAllPotentialRoleSummaries`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetAllPotentialRoleSummaries(context.Background()).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetAllPotentialRoleSummaries``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAllPotentialRoleSummaries`: []RoleMiningPotentialRoleSummary + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetAllPotentialRoleSummaries`: %v\n", resp) } ``` @@ -726,7 +725,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -737,18 +736,18 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") includeCommonAccess := true // bool | Boolean determining whether common access entitlements will be included or not (optional) # bool | Boolean determining whether common access entitlements will be included or not (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetEntitlementDistributionPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetEntitlementDistributionPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).IncludeCommonAccess(includeCommonAccess).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetEntitlementDistributionPotentialRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetEntitlementDistributionPotentialRole`: map[string]int32 - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetEntitlementDistributionPotentialRole`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetEntitlementDistributionPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).IncludeCommonAccess(includeCommonAccess).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetEntitlementDistributionPotentialRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetEntitlementDistributionPotentialRole`: map[string]int32 + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetEntitlementDistributionPotentialRole`: %v\n", resp) } ``` @@ -815,7 +814,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -831,18 +830,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).IncludeCommonAccess(includeCommonAccess).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetEntitlementsPotentialRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetEntitlementsPotentialRole`: []RoleMiningEntitlement - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetEntitlementsPotentialRole`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).IncludeCommonAccess(includeCommonAccess).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetEntitlementsPotentialRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetEntitlementsPotentialRole`: []RoleMiningEntitlement + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetEntitlementsPotentialRole`: %v\n", resp) } ``` @@ -908,7 +907,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -923,18 +922,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetExcludedEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetExcludedEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetExcludedEntitlementsPotentialRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetExcludedEntitlementsPotentialRole`: []RoleMiningEntitlement - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetExcludedEntitlementsPotentialRole`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetExcludedEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetExcludedEntitlementsPotentialRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetExcludedEntitlementsPotentialRole`: []RoleMiningEntitlement + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetExcludedEntitlementsPotentialRole`: %v\n", resp) } ``` @@ -1000,7 +999,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1015,18 +1014,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetIdentitiesPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetIdentitiesPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetIdentitiesPotentialRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentitiesPotentialRole`: []RoleMiningIdentity - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetIdentitiesPotentialRole`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetIdentitiesPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetIdentitiesPotentialRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentitiesPotentialRole`: []RoleMiningIdentity + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetIdentitiesPotentialRole`: %v\n", resp) } ``` @@ -1087,7 +1086,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1097,18 +1096,18 @@ func main() { potentialRoleId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | A potential role id in a role mining session # string | A potential role id in a role mining session xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetPotentialRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPotentialRole`: RoleMiningPotentialRole - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetPotentialRole`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetPotentialRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPotentialRole`: RoleMiningPotentialRole + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetPotentialRole`: %v\n", resp) } ``` @@ -1173,7 +1172,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1187,18 +1186,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetPotentialRoleApplications(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetPotentialRoleApplications(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetPotentialRoleApplications``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPotentialRoleApplications`: []RoleMiningPotentialRoleApplication - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetPotentialRoleApplications`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetPotentialRoleApplications(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetPotentialRoleApplications``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPotentialRoleApplications`: []RoleMiningPotentialRoleApplication + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetPotentialRoleApplications`: %v\n", resp) } ``` @@ -1263,7 +1262,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1277,18 +1276,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetPotentialRoleEntitlements(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetPotentialRoleEntitlements(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetPotentialRoleEntitlements``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPotentialRoleEntitlements`: []RoleMiningPotentialRoleEntitlements - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetPotentialRoleEntitlements`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetPotentialRoleEntitlements(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetPotentialRoleEntitlements``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPotentialRoleEntitlements`: []RoleMiningPotentialRoleEntitlements + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetPotentialRoleEntitlements`: %v\n", resp) } ``` @@ -1353,7 +1352,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1367,18 +1366,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetPotentialRoleSourceIdentityUsage(context.Background(), potentialRoleId, sourceId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetPotentialRoleSourceIdentityUsage(context.Background(), potentialRoleId, sourceId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetPotentialRoleSourceIdentityUsage``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPotentialRoleSourceIdentityUsage`: []RoleMiningPotentialRoleSourceUsage - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetPotentialRoleSourceIdentityUsage`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetPotentialRoleSourceIdentityUsage(context.Background(), potentialRoleId, sourceId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetPotentialRoleSourceIdentityUsage``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPotentialRoleSourceIdentityUsage`: []RoleMiningPotentialRoleSourceUsage + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetPotentialRoleSourceIdentityUsage`: %v\n", resp) } ``` @@ -1442,7 +1441,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1456,18 +1455,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetPotentialRoleSummaries(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetPotentialRoleSummaries(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetPotentialRoleSummaries``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPotentialRoleSummaries`: []RoleMiningPotentialRoleSummary - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetPotentialRoleSummaries`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetPotentialRoleSummaries(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetPotentialRoleSummaries``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPotentialRoleSummaries`: []RoleMiningPotentialRoleSummary + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetPotentialRoleSummaries`: %v\n", resp) } ``` @@ -1526,7 +1525,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1535,18 +1534,18 @@ func main() { potentialRoleId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | A potential role id # string | A potential role id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetRoleMiningPotentialRole(context.Background(), potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetRoleMiningPotentialRole(context.Background(), potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetRoleMiningPotentialRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleMiningPotentialRole`: RoleMiningPotentialRole - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetRoleMiningPotentialRole`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetRoleMiningPotentialRole(context.Background(), potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetRoleMiningPotentialRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleMiningPotentialRole`: RoleMiningPotentialRole + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetRoleMiningPotentialRole`: %v\n", resp) } ``` @@ -1605,7 +1604,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1614,18 +1613,18 @@ func main() { sessionId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role mining session id to be retrieved. # string | The role mining session id to be retrieved. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetRoleMiningSession(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetRoleMiningSession(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetRoleMiningSession``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleMiningSession`: RoleMiningSessionResponse - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetRoleMiningSession`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetRoleMiningSession(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetRoleMiningSession``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleMiningSession`: RoleMiningSessionResponse + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetRoleMiningSession`: %v\n", resp) } ``` @@ -1684,7 +1683,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1693,18 +1692,18 @@ func main() { sessionId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role mining session id # string | The role mining session id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetRoleMiningSessionStatus(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetRoleMiningSessionStatus(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetRoleMiningSessionStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleMiningSessionStatus`: RoleMiningSessionStatus - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetRoleMiningSessionStatus`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetRoleMiningSessionStatus(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetRoleMiningSessionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleMiningSessionStatus`: RoleMiningSessionStatus + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetRoleMiningSessionStatus`: %v\n", resp) } ``` @@ -1763,7 +1762,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1776,18 +1775,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetRoleMiningSessions(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetRoleMiningSessions(context.Background()).XSailPointExperimental(xSailPointExperimental).Filters(filters).Sorters(sorters).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetRoleMiningSessions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleMiningSessions`: []RoleMiningSessionDto - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetRoleMiningSessions`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetRoleMiningSessions(context.Background()).XSailPointExperimental(xSailPointExperimental).Filters(filters).Sorters(sorters).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetRoleMiningSessions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleMiningSessions`: []RoleMiningSessionDto + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetRoleMiningSessions`: %v\n", resp) } ``` @@ -1845,7 +1844,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1857,18 +1856,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetSavedPotentialRoles(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetSavedPotentialRoles(context.Background()).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetSavedPotentialRoles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSavedPotentialRoles`: []RoleMiningSessionDraftRoleDto - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetSavedPotentialRoles`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetSavedPotentialRoles(context.Background()).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetSavedPotentialRoles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSavedPotentialRoles`: []RoleMiningSessionDraftRoleDto + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetSavedPotentialRoles`: %v\n", resp) } ``` @@ -1942,7 +1941,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1953,24 +1952,23 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") patchpotentialrolerequestinner := []byte(`[{op=remove, path=/description}, {op=replace, path=/description, value=Acct I - Potential Role}, {op=remove, path=/saved}, {op=replace, path=/saved, value=false}, {op=remove, path=/name}, {op=replace, path=/name, value=Potential Role Accounting}]`) // []PatchPotentialRoleRequestInner | - - var patchPotentialRoleRequestInner v2024.[]PatchPotentialRoleRequestInner - if err := json.Unmarshal(patchpotentialrolerequestinner, &patchPotentialRoleRequestInner); err != nil { - fmt.Println("Error:", err) - return - } - + var patchPotentialRoleRequestInner []v2024.PatchPotentialRoleRequestInner + if err := json.Unmarshal(patchpotentialrolerequestinner, &patchPotentialRoleRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.PatchPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() - //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.PatchPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.PatchPotentialRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchPotentialRole`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.PatchPotentialRole`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.PatchPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.PatchPotentialRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchPotentialRole`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.PatchPotentialRole`: %v\n", resp) } ``` @@ -2044,7 +2042,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2055,24 +2053,23 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") patchpotentialrolerequestinner := []byte(`[{op=remove, path=/description}, {op=replace, path=/description, value=Acct I - Potential Role}, {op=remove, path=/saved}, {op=replace, path=/saved, value=false}, {op=remove, path=/name}, {op=replace, path=/name, value=Potential Role Accounting}]`) // []PatchPotentialRoleRequestInner | - - var patchPotentialRoleRequestInner v2024.[]PatchPotentialRoleRequestInner - if err := json.Unmarshal(patchpotentialrolerequestinner, &patchPotentialRoleRequestInner); err != nil { - fmt.Println("Error:", err) - return - } - + var patchPotentialRoleRequestInner []v2024.PatchPotentialRoleRequestInner + if err := json.Unmarshal(patchpotentialrolerequestinner, &patchPotentialRoleRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.PatchPotentialRole_0(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() - //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.PatchPotentialRole_0(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.PatchPotentialRole_0``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchPotentialRole_0`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.PatchPotentialRole_0`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.PatchPotentialRole_0(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.PatchPotentialRole_0``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchPotentialRole_0`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.PatchPotentialRole_0`: %v\n", resp) } ``` @@ -2132,7 +2129,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2142,24 +2139,23 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") jsonpatchoperation := []byte(`[{op=replace, path=/pruneThreshold, value=83}, {op=replace, path=/minNumIdentitiesInPotentialRole, value=10}, {op=replace, path=/saved, value=false}, {op=replace, path=/name, value=RM Session - 07/10/22}, {op=add, path=/name, value=RM Session - 07/10/22}]`) // []JsonPatchOperation | Replace pruneThreshold and/or minNumIdentitiesInPotentialRole in role mining session. Update saved status or saved name for a role mining session. - - var jsonPatchOperation v2024.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2024.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.PatchRoleMiningSession(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.PatchRoleMiningSession(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.PatchRoleMiningSession``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchRoleMiningSession`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.PatchRoleMiningSession`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.PatchRoleMiningSession(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.PatchRoleMiningSession``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchRoleMiningSession`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.PatchRoleMiningSession`: %v\n", resp) } ``` @@ -2221,7 +2217,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2235,24 +2231,23 @@ func main() { "exclude" : true }`) // RoleMiningPotentialRoleEditEntitlements | Role mining session parameters - - var roleMiningPotentialRoleEditEntitlements v2024.RoleMiningPotentialRoleEditEntitlements - if err := json.Unmarshal(roleminingpotentialroleeditentitlements, &roleMiningPotentialRoleEditEntitlements); err != nil { - fmt.Println("Error:", err) - return - } - + var roleMiningPotentialRoleEditEntitlements v2024.RoleMiningPotentialRoleEditEntitlements + if err := json.Unmarshal(roleminingpotentialroleeditentitlements, &roleMiningPotentialRoleEditEntitlements); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.UpdateEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).RoleMiningPotentialRoleEditEntitlements(roleMiningPotentialRoleEditEntitlements).Execute() - //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.UpdateEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).RoleMiningPotentialRoleEditEntitlements(roleMiningPotentialRoleEditEntitlements).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.UpdateEntitlementsPotentialRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateEntitlementsPotentialRole`: RoleMiningPotentialRole - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.UpdateEntitlementsPotentialRole`: %v\n", resp) + //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.UpdateEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).RoleMiningPotentialRoleEditEntitlements(roleMiningPotentialRoleEditEntitlements).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.UpdateEntitlementsPotentialRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateEntitlementsPotentialRole`: RoleMiningPotentialRole + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.UpdateEntitlementsPotentialRole`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/IconsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/IconsAPI.md index 8bd522d4a..08d3b66be 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/IconsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/IconsAPI.md @@ -76,7 +76,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -86,16 +86,17 @@ func main() { objectId := `a291e870-48c3-4953-b656-fb5ce2a93169` // string | Object id. # string | Object id. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.IconsAPI.DeleteIcon(context.Background(), objectType, objectId).XSailPointExperimental(xSailPointExperimental).Execute() - //r, err := apiClient.V2024.IconsAPI.DeleteIcon(context.Background(), objectType, objectId).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IconsAPI.DeleteIcon``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.IconsAPI.DeleteIcon(context.Background(), objectType, objectId).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IconsAPI.DeleteIcon``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -157,7 +158,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -168,18 +169,18 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") image := BINARY_DATA_HERE // *os.File | file with icon. Allowed mime-types ['image/png', 'image/jpeg'] # *os.File | file with icon. Allowed mime-types ['image/png', 'image/jpeg'] - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IconsAPI.SetIcon(context.Background(), objectType, objectId).XSailPointExperimental(xSailPointExperimental).Image(image).Execute() - //resp, r, err := apiClient.V2024.IconsAPI.SetIcon(context.Background(), objectType, objectId).XSailPointExperimental(xSailPointExperimental).Image(image).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IconsAPI.SetIcon``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetIcon`: SetIcon200Response - fmt.Fprintf(os.Stdout, "Response from `IconsAPI.SetIcon`: %v\n", resp) + //resp, r, err := apiClient.V2024.IconsAPI.SetIcon(context.Background(), objectType, objectId).XSailPointExperimental(xSailPointExperimental).Image(image).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IconsAPI.SetIcon``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetIcon`: SetIcon200Response + fmt.Fprintf(os.Stdout, "Response from `IconsAPI.SetIcon`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/IdentitiesAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/IdentitiesAPI.md index bc75251c3..4d615f421 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/IdentitiesAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/IdentitiesAPI.md @@ -96,7 +96,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -105,16 +105,17 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Identity Id # string | Identity Id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.IdentitiesAPI.DeleteIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //r, err := apiClient.V2024.IdentitiesAPI.DeleteIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.DeleteIdentity``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.IdentitiesAPI.DeleteIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.DeleteIdentity``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -173,7 +174,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -182,18 +183,18 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Identity Id # string | Identity Id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentitiesAPI.GetIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IdentitiesAPI.GetIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.GetIdentity``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentity`: Identity - fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.GetIdentity`: %v\n", resp) + //resp, r, err := apiClient.V2024.IdentitiesAPI.GetIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.GetIdentity``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentity`: Identity + fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.GetIdentity`: %v\n", resp) } ``` @@ -254,7 +255,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -263,18 +264,18 @@ func main() { identityId := `ff8081814d2a8036014d701f3fbf53fa` // string | Identity ID. # string | Identity ID. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentitiesAPI.GetIdentityOwnershipDetails(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IdentitiesAPI.GetIdentityOwnershipDetails(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.GetIdentityOwnershipDetails``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentityOwnershipDetails`: IdentityOwnershipAssociationDetails - fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.GetIdentityOwnershipDetails`: %v\n", resp) + //resp, r, err := apiClient.V2024.IdentitiesAPI.GetIdentityOwnershipDetails(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.GetIdentityOwnershipDetails``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityOwnershipDetails`: IdentityOwnershipAssociationDetails + fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.GetIdentityOwnershipDetails`: %v\n", resp) } ``` @@ -335,7 +336,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -345,18 +346,18 @@ func main() { assignmentId := `1cbb0705b38c4226b1334eadd8874086` // string | Assignment Id # string | Assignment Id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentitiesAPI.GetRoleAssignment(context.Background(), identityId, assignmentId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IdentitiesAPI.GetRoleAssignment(context.Background(), identityId, assignmentId).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.GetRoleAssignment``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleAssignment`: RoleAssignmentDto - fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.GetRoleAssignment`: %v\n", resp) + //resp, r, err := apiClient.V2024.IdentitiesAPI.GetRoleAssignment(context.Background(), identityId, assignmentId).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.GetRoleAssignment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleAssignment`: RoleAssignmentDto + fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.GetRoleAssignment`: %v\n", resp) } ``` @@ -417,7 +418,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -428,18 +429,18 @@ func main() { roleId := `e7697a1e96d04db1ac7b0f4544915d2c` // string | Role Id to filter the role assignments with (optional) # string | Role Id to filter the role assignments with (optional) roleName := `Engineer` // string | Role name to filter the role assignments with (optional) # string | Role name to filter the role assignments with (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentitiesAPI.GetRoleAssignments(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IdentitiesAPI.GetRoleAssignments(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).RoleId(roleId).RoleName(roleName).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.GetRoleAssignments``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleAssignments`: []GetRoleAssignments200ResponseInner - fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.GetRoleAssignments`: %v\n", resp) + //resp, r, err := apiClient.V2024.IdentitiesAPI.GetRoleAssignments(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).RoleId(roleId).RoleName(roleName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.GetRoleAssignments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleAssignments`: []GetRoleAssignments200ResponseInner + fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.GetRoleAssignments`: %v\n", resp) } ``` @@ -499,7 +500,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -513,18 +514,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentitiesAPI.ListIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IdentitiesAPI.ListIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).Filters(filters).Sorters(sorters).DefaultFilter(defaultFilter).Count(count).Limit(limit).Offset(offset).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.ListIdentities``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListIdentities`: []Identity - fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.ListIdentities`: %v\n", resp) + //resp, r, err := apiClient.V2024.IdentitiesAPI.ListIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).Filters(filters).Sorters(sorters).DefaultFilter(defaultFilter).Count(count).Limit(limit).Offset(offset).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.ListIdentities``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListIdentities`: []Identity + fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.ListIdentities`: %v\n", resp) } ``` @@ -583,7 +584,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -592,16 +593,17 @@ func main() { identityId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity Id # string | Identity Id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.IdentitiesAPI.ResetIdentity(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() - //r, err := apiClient.V2024.IdentitiesAPI.ResetIdentity(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.ResetIdentity``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.IdentitiesAPI.ResetIdentity(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.ResetIdentity``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -662,7 +664,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -675,22 +677,22 @@ func main() { "via" : "EMAIL_WORK" }`) // SendAccountVerificationRequest | - - var sendAccountVerificationRequest v2024.SendAccountVerificationRequest - if err := json.Unmarshal(sendaccountverificationrequest, &sendAccountVerificationRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var sendAccountVerificationRequest v2024.SendAccountVerificationRequest + if err := json.Unmarshal(sendaccountverificationrequest, &sendAccountVerificationRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.IdentitiesAPI.SendIdentityVerificationAccountToken(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SendAccountVerificationRequest(sendAccountVerificationRequest).Execute() - //r, err := apiClient.V2024.IdentitiesAPI.SendIdentityVerificationAccountToken(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SendAccountVerificationRequest(sendAccountVerificationRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.SendIdentityVerificationAccountToken``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.IdentitiesAPI.SendIdentityVerificationAccountToken(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SendAccountVerificationRequest(sendAccountVerificationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.SendIdentityVerificationAccountToken``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -750,7 +752,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -762,24 +764,23 @@ func main() { "uninvited" : false }`) // InviteIdentitiesRequest | - - var inviteIdentitiesRequest v2024.InviteIdentitiesRequest - if err := json.Unmarshal(inviteidentitiesrequest, &inviteIdentitiesRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var inviteIdentitiesRequest v2024.InviteIdentitiesRequest + if err := json.Unmarshal(inviteidentitiesrequest, &inviteIdentitiesRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentitiesAPI.StartIdentitiesInvite(context.Background()).XSailPointExperimental(xSailPointExperimental).InviteIdentitiesRequest(inviteIdentitiesRequest).Execute() - //resp, r, err := apiClient.V2024.IdentitiesAPI.StartIdentitiesInvite(context.Background()).XSailPointExperimental(xSailPointExperimental).InviteIdentitiesRequest(inviteIdentitiesRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.StartIdentitiesInvite``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartIdentitiesInvite`: TaskStatus - fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.StartIdentitiesInvite`: %v\n", resp) + //resp, r, err := apiClient.V2024.IdentitiesAPI.StartIdentitiesInvite(context.Background()).XSailPointExperimental(xSailPointExperimental).InviteIdentitiesRequest(inviteIdentitiesRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.StartIdentitiesInvite``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartIdentitiesInvite`: TaskStatus + fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.StartIdentitiesInvite`: %v\n", resp) } ``` @@ -841,7 +842,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -852,24 +853,23 @@ func main() { "identityIds" : [ "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8" ] }`) // ProcessIdentitiesRequest | - - var processIdentitiesRequest v2024.ProcessIdentitiesRequest - if err := json.Unmarshal(processidentitiesrequest, &processIdentitiesRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var processIdentitiesRequest v2024.ProcessIdentitiesRequest + if err := json.Unmarshal(processidentitiesrequest, &processIdentitiesRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentitiesAPI.StartIdentityProcessing(context.Background()).XSailPointExperimental(xSailPointExperimental).ProcessIdentitiesRequest(processIdentitiesRequest).Execute() - //resp, r, err := apiClient.V2024.IdentitiesAPI.StartIdentityProcessing(context.Background()).XSailPointExperimental(xSailPointExperimental).ProcessIdentitiesRequest(processIdentitiesRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.StartIdentityProcessing``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartIdentityProcessing`: TaskResultResponse - fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.StartIdentityProcessing`: %v\n", resp) + //resp, r, err := apiClient.V2024.IdentitiesAPI.StartIdentityProcessing(context.Background()).XSailPointExperimental(xSailPointExperimental).ProcessIdentitiesRequest(processIdentitiesRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.StartIdentityProcessing``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartIdentityProcessing`: TaskResultResponse + fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.StartIdentityProcessing`: %v\n", resp) } ``` @@ -928,7 +928,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -937,18 +937,18 @@ func main() { identityId := `identityId_example` // string | The Identity id # string | The Identity id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentitiesAPI.SynchronizeAttributesForIdentity(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IdentitiesAPI.SynchronizeAttributesForIdentity(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.SynchronizeAttributesForIdentity``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SynchronizeAttributesForIdentity`: IdentitySyncJob - fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.SynchronizeAttributesForIdentity`: %v\n", resp) + //resp, r, err := apiClient.V2024.IdentitiesAPI.SynchronizeAttributesForIdentity(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.SynchronizeAttributesForIdentity``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SynchronizeAttributesForIdentity`: IdentitySyncJob + fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.SynchronizeAttributesForIdentity`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/IdentityAttributesAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/IdentityAttributesAPI.md index 595ef27d5..0a51ed84d 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/IdentityAttributesAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/IdentityAttributesAPI.md @@ -72,7 +72,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -102,24 +102,23 @@ func main() { "multi" : false }`) // IdentityAttribute | - - var identityAttribute v2024.IdentityAttribute - if err := json.Unmarshal(identityattribute, &identityAttribute); err != nil { - fmt.Println("Error:", err) - return - } - + var identityAttribute v2024.IdentityAttribute + if err := json.Unmarshal(identityattribute, &identityAttribute); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityAttributesAPI.CreateIdentityAttribute(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityAttribute(identityAttribute).Execute() - //resp, r, err := apiClient.V2024.IdentityAttributesAPI.CreateIdentityAttribute(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityAttribute(identityAttribute).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityAttributesAPI.CreateIdentityAttribute``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateIdentityAttribute`: IdentityAttribute - fmt.Fprintf(os.Stdout, "Response from `IdentityAttributesAPI.CreateIdentityAttribute`: %v\n", resp) + //resp, r, err := apiClient.V2024.IdentityAttributesAPI.CreateIdentityAttribute(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityAttribute(identityAttribute).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityAttributesAPI.CreateIdentityAttribute``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateIdentityAttribute`: IdentityAttribute + fmt.Fprintf(os.Stdout, "Response from `IdentityAttributesAPI.CreateIdentityAttribute`: %v\n", resp) } ``` @@ -178,7 +177,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -187,16 +186,17 @@ func main() { name := `displayName` // string | The attribute's technical name. # string | The attribute's technical name. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.IdentityAttributesAPI.DeleteIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() - //r, err := apiClient.V2024.IdentityAttributesAPI.DeleteIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityAttributesAPI.DeleteIdentityAttribute``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.IdentityAttributesAPI.DeleteIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityAttributesAPI.DeleteIdentityAttribute``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -251,7 +251,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -262,22 +262,22 @@ func main() { "ids" : [ "name", "displayName" ] }`) // IdentityAttributeNames | - - var identityAttributeNames v2024.IdentityAttributeNames - if err := json.Unmarshal(identityattributenames, &identityAttributeNames); err != nil { - fmt.Println("Error:", err) - return - } - + var identityAttributeNames v2024.IdentityAttributeNames + if err := json.Unmarshal(identityattributenames, &identityAttributeNames); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.IdentityAttributesAPI.DeleteIdentityAttributesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityAttributeNames(identityAttributeNames).Execute() - //r, err := apiClient.V2024.IdentityAttributesAPI.DeleteIdentityAttributesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityAttributeNames(identityAttributeNames).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityAttributesAPI.DeleteIdentityAttributesInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.IdentityAttributesAPI.DeleteIdentityAttributesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityAttributeNames(identityAttributeNames).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityAttributesAPI.DeleteIdentityAttributesInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -336,7 +336,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -345,18 +345,18 @@ func main() { name := `displayName` // string | The attribute's technical name. # string | The attribute's technical name. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityAttributesAPI.GetIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IdentityAttributesAPI.GetIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityAttributesAPI.GetIdentityAttribute``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentityAttribute`: IdentityAttribute - fmt.Fprintf(os.Stdout, "Response from `IdentityAttributesAPI.GetIdentityAttribute`: %v\n", resp) + //resp, r, err := apiClient.V2024.IdentityAttributesAPI.GetIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityAttributesAPI.GetIdentityAttribute``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityAttribute`: IdentityAttribute + fmt.Fprintf(os.Stdout, "Response from `IdentityAttributesAPI.GetIdentityAttribute`: %v\n", resp) } ``` @@ -414,7 +414,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -426,18 +426,18 @@ func main() { searchableOnly := false // bool | Include only 'searchable' attributes in the response. (optional) (default to false) # bool | Include only 'searchable' attributes in the response. (optional) (default to false) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityAttributesAPI.ListIdentityAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IdentityAttributesAPI.ListIdentityAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).IncludeSystem(includeSystem).IncludeSilent(includeSilent).SearchableOnly(searchableOnly).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityAttributesAPI.ListIdentityAttributes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListIdentityAttributes`: []IdentityAttribute - fmt.Fprintf(os.Stdout, "Response from `IdentityAttributesAPI.ListIdentityAttributes`: %v\n", resp) + //resp, r, err := apiClient.V2024.IdentityAttributesAPI.ListIdentityAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).IncludeSystem(includeSystem).IncludeSilent(includeSilent).SearchableOnly(searchableOnly).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityAttributesAPI.ListIdentityAttributes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListIdentityAttributes`: []IdentityAttribute + fmt.Fprintf(os.Stdout, "Response from `IdentityAttributesAPI.ListIdentityAttributes`: %v\n", resp) } ``` @@ -497,7 +497,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -528,24 +528,23 @@ func main() { "multi" : false }`) // IdentityAttribute | - - var identityAttribute v2024.IdentityAttribute - if err := json.Unmarshal(identityattribute, &identityAttribute); err != nil { - fmt.Println("Error:", err) - return - } - + var identityAttribute v2024.IdentityAttribute + if err := json.Unmarshal(identityattribute, &identityAttribute); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityAttributesAPI.PutIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).IdentityAttribute(identityAttribute).Execute() - //resp, r, err := apiClient.V2024.IdentityAttributesAPI.PutIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).IdentityAttribute(identityAttribute).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityAttributesAPI.PutIdentityAttribute``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutIdentityAttribute`: IdentityAttribute - fmt.Fprintf(os.Stdout, "Response from `IdentityAttributesAPI.PutIdentityAttribute`: %v\n", resp) + //resp, r, err := apiClient.V2024.IdentityAttributesAPI.PutIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).IdentityAttribute(identityAttribute).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityAttributesAPI.PutIdentityAttribute``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutIdentityAttribute`: IdentityAttribute + fmt.Fprintf(os.Stdout, "Response from `IdentityAttributesAPI.PutIdentityAttribute`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/IdentityHistoryAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/IdentityHistoryAPI.md index 6743eafb1..763652ca1 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/IdentityHistoryAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/IdentityHistoryAPI.md @@ -87,7 +87,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -102,18 +102,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityHistoryAPI.CompareIdentitySnapshots(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IdentityHistoryAPI.CompareIdentitySnapshots(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Snapshot1(snapshot1).Snapshot2(snapshot2).AccessItemTypes(accessItemTypes).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.CompareIdentitySnapshots``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CompareIdentitySnapshots`: []IdentityCompareResponse - fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.CompareIdentitySnapshots`: %v\n", resp) + //resp, r, err := apiClient.V2024.IdentityHistoryAPI.CompareIdentitySnapshots(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Snapshot1(snapshot1).Snapshot2(snapshot2).AccessItemTypes(accessItemTypes).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.CompareIdentitySnapshots``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CompareIdentitySnapshots`: []IdentityCompareResponse + fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.CompareIdentitySnapshots`: %v\n", resp) } ``` @@ -180,7 +180,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -196,18 +196,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityHistoryAPI.CompareIdentitySnapshotsAccessType(context.Background(), id, accessType).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IdentityHistoryAPI.CompareIdentitySnapshotsAccessType(context.Background(), id, accessType).XSailPointExperimental(xSailPointExperimental).AccessAssociated(accessAssociated).Snapshot1(snapshot1).Snapshot2(snapshot2).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.CompareIdentitySnapshotsAccessType``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CompareIdentitySnapshotsAccessType`: []AccessItemDiff - fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.CompareIdentitySnapshotsAccessType`: %v\n", resp) + //resp, r, err := apiClient.V2024.IdentityHistoryAPI.CompareIdentitySnapshotsAccessType(context.Background(), id, accessType).XSailPointExperimental(xSailPointExperimental).AccessAssociated(accessAssociated).Snapshot1(snapshot1).Snapshot2(snapshot2).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.CompareIdentitySnapshotsAccessType``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CompareIdentitySnapshotsAccessType`: []AccessItemDiff + fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.CompareIdentitySnapshotsAccessType`: %v\n", resp) } ``` @@ -266,7 +266,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -275,18 +275,18 @@ func main() { id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The identity id # string | The identity id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityHistoryAPI.GetHistoricalIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IdentityHistoryAPI.GetHistoricalIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.GetHistoricalIdentity``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetHistoricalIdentity`: IdentityHistoryResponse - fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.GetHistoricalIdentity`: %v\n", resp) + //resp, r, err := apiClient.V2024.IdentityHistoryAPI.GetHistoricalIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.GetHistoricalIdentity``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetHistoricalIdentity`: IdentityHistoryResponse + fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.GetHistoricalIdentity`: %v\n", resp) } ``` @@ -351,7 +351,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -366,18 +366,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityHistoryAPI.GetHistoricalIdentityEvents(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IdentityHistoryAPI.GetHistoricalIdentityEvents(context.Background(), id).XSailPointExperimental(xSailPointExperimental).From(from).EventTypes(eventTypes).AccessItemTypes(accessItemTypes).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.GetHistoricalIdentityEvents``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetHistoricalIdentityEvents`: []GetHistoricalIdentityEvents200ResponseInner - fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.GetHistoricalIdentityEvents`: %v\n", resp) + //resp, r, err := apiClient.V2024.IdentityHistoryAPI.GetHistoricalIdentityEvents(context.Background(), id).XSailPointExperimental(xSailPointExperimental).From(from).EventTypes(eventTypes).AccessItemTypes(accessItemTypes).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.GetHistoricalIdentityEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetHistoricalIdentityEvents`: []GetHistoricalIdentityEvents200ResponseInner + fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.GetHistoricalIdentityEvents`: %v\n", resp) } ``` @@ -438,7 +438,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -448,18 +448,18 @@ func main() { date := `2007-03-01T13:00:00Z` // string | The specified date # string | The specified date xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityHistoryAPI.GetIdentitySnapshot(context.Background(), id, date).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IdentityHistoryAPI.GetIdentitySnapshot(context.Background(), id, date).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.GetIdentitySnapshot``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentitySnapshot`: IdentityHistoryResponse - fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.GetIdentitySnapshot`: %v\n", resp) + //resp, r, err := apiClient.V2024.IdentityHistoryAPI.GetIdentitySnapshot(context.Background(), id, date).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.GetIdentitySnapshot``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentitySnapshot`: IdentityHistoryResponse + fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.GetIdentitySnapshot`: %v\n", resp) } ``` @@ -524,7 +524,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -539,18 +539,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityHistoryAPI.GetIdentitySnapshotSummary(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IdentityHistoryAPI.GetIdentitySnapshotSummary(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Before(before).Interval(interval).TimeZone(timeZone).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.GetIdentitySnapshotSummary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentitySnapshotSummary`: []MetricResponse - fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.GetIdentitySnapshotSummary`: %v\n", resp) + //resp, r, err := apiClient.V2024.IdentityHistoryAPI.GetIdentitySnapshotSummary(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Before(before).Interval(interval).TimeZone(timeZone).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.GetIdentitySnapshotSummary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentitySnapshotSummary`: []MetricResponse + fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.GetIdentitySnapshotSummary`: %v\n", resp) } ``` @@ -609,7 +609,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -618,18 +618,18 @@ func main() { id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The identity id # string | The identity id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityHistoryAPI.GetIdentityStartDate(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IdentityHistoryAPI.GetIdentityStartDate(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.GetIdentityStartDate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentityStartDate`: string - fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.GetIdentityStartDate`: %v\n", resp) + //resp, r, err := apiClient.V2024.IdentityHistoryAPI.GetIdentityStartDate(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.GetIdentityStartDate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityStartDate`: string + fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.GetIdentityStartDate`: %v\n", resp) } ``` @@ -688,7 +688,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -701,18 +701,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityHistoryAPI.ListHistoricalIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IdentityHistoryAPI.ListHistoricalIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).StartsWithQuery(startsWithQuery).IsDeleted(isDeleted).IsActive(isActive).Limit(limit).Offset(offset).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.ListHistoricalIdentities``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListHistoricalIdentities`: []IdentityListItem - fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.ListHistoricalIdentities`: %v\n", resp) + //resp, r, err := apiClient.V2024.IdentityHistoryAPI.ListHistoricalIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).StartsWithQuery(startsWithQuery).IsDeleted(isDeleted).IsActive(isActive).Limit(limit).Offset(offset).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.ListHistoricalIdentities``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListHistoricalIdentities`: []IdentityListItem + fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.ListHistoricalIdentities`: %v\n", resp) } ``` @@ -776,7 +776,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -789,18 +789,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityHistoryAPI.ListIdentityAccessItems(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IdentityHistoryAPI.ListIdentityAccessItems(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Type_(type_).Limit(limit).Count(count).Offset(offset).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.ListIdentityAccessItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListIdentityAccessItems`: []ListIdentityAccessItems200ResponseInner - fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.ListIdentityAccessItems`: %v\n", resp) + //resp, r, err := apiClient.V2024.IdentityHistoryAPI.ListIdentityAccessItems(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Type_(type_).Limit(limit).Count(count).Offset(offset).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.ListIdentityAccessItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListIdentityAccessItems`: []ListIdentityAccessItems200ResponseInner + fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.ListIdentityAccessItems`: %v\n", resp) } ``` @@ -862,7 +862,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -873,18 +873,18 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") type_ := `account` // string | The access item type (optional) # string | The access item type (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityHistoryAPI.ListIdentitySnapshotAccessItems(context.Background(), id, date).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IdentityHistoryAPI.ListIdentitySnapshotAccessItems(context.Background(), id, date).XSailPointExperimental(xSailPointExperimental).Type_(type_).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.ListIdentitySnapshotAccessItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListIdentitySnapshotAccessItems`: []ListIdentityAccessItems200ResponseInner - fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.ListIdentitySnapshotAccessItems`: %v\n", resp) + //resp, r, err := apiClient.V2024.IdentityHistoryAPI.ListIdentitySnapshotAccessItems(context.Background(), id, date).XSailPointExperimental(xSailPointExperimental).Type_(type_).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.ListIdentitySnapshotAccessItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListIdentitySnapshotAccessItems`: []ListIdentityAccessItems200ResponseInner + fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.ListIdentitySnapshotAccessItems`: %v\n", resp) } ``` @@ -948,7 +948,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -962,18 +962,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityHistoryAPI.ListIdentitySnapshots(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.IdentityHistoryAPI.ListIdentitySnapshots(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Start(start).Interval(interval).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.ListIdentitySnapshots``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListIdentitySnapshots`: []IdentitySnapshotSummaryResponse - fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.ListIdentitySnapshots`: %v\n", resp) + //resp, r, err := apiClient.V2024.IdentityHistoryAPI.ListIdentitySnapshots(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Start(start).Interval(interval).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.ListIdentitySnapshots``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListIdentitySnapshots`: []IdentitySnapshotSummaryResponse + fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.ListIdentitySnapshots`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/IdentityProfilesAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/IdentityProfilesAPI.md index 5dccdd394..291107afa 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/IdentityProfilesAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/IdentityProfilesAPI.md @@ -75,7 +75,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -131,24 +131,23 @@ func main() { "id" : "id12345" }`) // IdentityProfile | - - var identityProfile v2024.IdentityProfile - if err := json.Unmarshal(identityprofile, &identityProfile); err != nil { - fmt.Println("Error:", err) - return - } - + var identityProfile v2024.IdentityProfile + if err := json.Unmarshal(identityprofile, &identityProfile); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityProfilesAPI.CreateIdentityProfile(context.Background()).IdentityProfile(identityProfile).Execute() - //resp, r, err := apiClient.V2024.IdentityProfilesAPI.CreateIdentityProfile(context.Background()).IdentityProfile(identityProfile).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.CreateIdentityProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateIdentityProfile`: IdentityProfile - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.CreateIdentityProfile`: %v\n", resp) + //resp, r, err := apiClient.V2024.IdentityProfilesAPI.CreateIdentityProfile(context.Background()).IdentityProfile(identityProfile).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.CreateIdentityProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateIdentityProfile`: IdentityProfile + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.CreateIdentityProfile`: %v\n", resp) } ``` @@ -196,7 +195,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -204,18 +203,18 @@ import ( func main() { identityProfileId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity profile ID. # string | Identity profile ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityProfilesAPI.DeleteIdentityProfile(context.Background(), identityProfileId).Execute() - //resp, r, err := apiClient.V2024.IdentityProfilesAPI.DeleteIdentityProfile(context.Background(), identityProfileId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.DeleteIdentityProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteIdentityProfile`: TaskResultSimplified - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.DeleteIdentityProfile`: %v\n", resp) + //resp, r, err := apiClient.V2024.IdentityProfilesAPI.DeleteIdentityProfile(context.Background(), identityProfileId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.DeleteIdentityProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteIdentityProfile`: TaskResultSimplified + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.DeleteIdentityProfile`: %v\n", resp) } ``` @@ -262,7 +261,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -270,24 +269,23 @@ import ( func main() { requestbody := []byte(``) // []string | Identity Profile bulk delete request body. - - var requestBody v2024.[]RequestBody - if err := json.Unmarshal(requestbody, &requestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var requestBody []v2024.RequestBody + if err := json.Unmarshal(requestbody, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityProfilesAPI.DeleteIdentityProfiles(context.Background()).RequestBody(requestBody).Execute() - //resp, r, err := apiClient.V2024.IdentityProfilesAPI.DeleteIdentityProfiles(context.Background()).RequestBody(requestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.DeleteIdentityProfiles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteIdentityProfiles`: TaskResultSimplified - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.DeleteIdentityProfiles`: %v\n", resp) + //resp, r, err := apiClient.V2024.IdentityProfilesAPI.DeleteIdentityProfiles(context.Background()).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.DeleteIdentityProfiles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteIdentityProfiles`: TaskResultSimplified + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.DeleteIdentityProfiles`: %v\n", resp) } ``` @@ -334,7 +332,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -346,18 +344,18 @@ func main() { filters := `id eq "ef38f94347e94562b5bb8424a56397d8"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, ne* **name**: *eq, ne* **priority**: *eq, ne* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, ne* **name**: *eq, ne* **priority**: *eq, ne* (optional) sorters := `id,name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, priority** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, priority** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityProfilesAPI.ExportIdentityProfiles(context.Background()).Execute() - //resp, r, err := apiClient.V2024.IdentityProfilesAPI.ExportIdentityProfiles(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.ExportIdentityProfiles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExportIdentityProfiles`: []IdentityProfileExportedObject - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.ExportIdentityProfiles`: %v\n", resp) + //resp, r, err := apiClient.V2024.IdentityProfilesAPI.ExportIdentityProfiles(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.ExportIdentityProfiles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExportIdentityProfiles`: []IdentityProfileExportedObject + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.ExportIdentityProfiles`: %v\n", resp) } ``` @@ -412,7 +410,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -447,24 +445,23 @@ func main() { } }`) // IdentityPreviewRequest | Identity Preview request body. - - var identityPreviewRequest v2024.IdentityPreviewRequest - if err := json.Unmarshal(identitypreviewrequest, &identityPreviewRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var identityPreviewRequest v2024.IdentityPreviewRequest + if err := json.Unmarshal(identitypreviewrequest, &identityPreviewRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityProfilesAPI.GenerateIdentityPreview(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityPreviewRequest(identityPreviewRequest).Execute() - //resp, r, err := apiClient.V2024.IdentityProfilesAPI.GenerateIdentityPreview(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityPreviewRequest(identityPreviewRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.GenerateIdentityPreview``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GenerateIdentityPreview`: IdentityPreviewResponse - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.GenerateIdentityPreview`: %v\n", resp) + //resp, r, err := apiClient.V2024.IdentityProfilesAPI.GenerateIdentityPreview(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityPreviewRequest(identityPreviewRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.GenerateIdentityPreview``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GenerateIdentityPreview`: IdentityPreviewResponse + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.GenerateIdentityPreview`: %v\n", resp) } ``` @@ -511,7 +508,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -519,18 +516,18 @@ import ( func main() { identityProfileId := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | The Identity Profile ID. # string | The Identity Profile ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityProfilesAPI.GetDefaultIdentityAttributeConfig(context.Background(), identityProfileId).Execute() - //resp, r, err := apiClient.V2024.IdentityProfilesAPI.GetDefaultIdentityAttributeConfig(context.Background(), identityProfileId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.GetDefaultIdentityAttributeConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetDefaultIdentityAttributeConfig`: IdentityAttributeConfig - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.GetDefaultIdentityAttributeConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.IdentityProfilesAPI.GetDefaultIdentityAttributeConfig(context.Background(), identityProfileId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.GetDefaultIdentityAttributeConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDefaultIdentityAttributeConfig`: IdentityAttributeConfig + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.GetDefaultIdentityAttributeConfig`: %v\n", resp) } ``` @@ -577,7 +574,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -585,18 +582,18 @@ import ( func main() { identityProfileId := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | Identity profile ID. # string | Identity profile ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityProfilesAPI.GetIdentityProfile(context.Background(), identityProfileId).Execute() - //resp, r, err := apiClient.V2024.IdentityProfilesAPI.GetIdentityProfile(context.Background(), identityProfileId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.GetIdentityProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentityProfile`: IdentityProfile - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.GetIdentityProfile`: %v\n", resp) + //resp, r, err := apiClient.V2024.IdentityProfilesAPI.GetIdentityProfile(context.Background(), identityProfileId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.GetIdentityProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityProfile`: IdentityProfile + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.GetIdentityProfile`: %v\n", resp) } ``` @@ -639,7 +636,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -647,24 +644,23 @@ import ( func main() { identityprofileexportedobject := []byte(``) // []IdentityProfileExportedObject | Previously exported Identity Profiles. - - var identityProfileExportedObject v2024.[]IdentityProfileExportedObject - if err := json.Unmarshal(identityprofileexportedobject, &identityProfileExportedObject); err != nil { - fmt.Println("Error:", err) - return - } - + var identityProfileExportedObject []v2024.IdentityProfileExportedObject + if err := json.Unmarshal(identityprofileexportedobject, &identityProfileExportedObject); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityProfilesAPI.ImportIdentityProfiles(context.Background()).IdentityProfileExportedObject(identityProfileExportedObject).Execute() - //resp, r, err := apiClient.V2024.IdentityProfilesAPI.ImportIdentityProfiles(context.Background()).IdentityProfileExportedObject(identityProfileExportedObject).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.ImportIdentityProfiles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportIdentityProfiles`: ObjectImportResult - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.ImportIdentityProfiles`: %v\n", resp) + //resp, r, err := apiClient.V2024.IdentityProfilesAPI.ImportIdentityProfiles(context.Background()).IdentityProfileExportedObject(identityProfileExportedObject).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.ImportIdentityProfiles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportIdentityProfiles`: ObjectImportResult + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.ImportIdentityProfiles`: %v\n", resp) } ``` @@ -711,7 +707,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -723,18 +719,18 @@ func main() { filters := `id eq "ef38f94347e94562b5bb8424a56397d8"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, ne, ge, gt, in, le, sw* **name**: *eq, ne, ge, gt, in, le, sw* **priority**: *eq, ne* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, ne, ge, gt, in, le, sw* **name**: *eq, ne, ge, gt, in, le, sw* **priority**: *eq, ne* (optional) sorters := `id,name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, priority, created, modified, owner.id, owner.name** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, priority, created, modified, owner.id, owner.name** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityProfilesAPI.ListIdentityProfiles(context.Background()).Execute() - //resp, r, err := apiClient.V2024.IdentityProfilesAPI.ListIdentityProfiles(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.ListIdentityProfiles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListIdentityProfiles`: []IdentityProfile - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.ListIdentityProfiles`: %v\n", resp) + //resp, r, err := apiClient.V2024.IdentityProfilesAPI.ListIdentityProfiles(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.ListIdentityProfiles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListIdentityProfiles`: []IdentityProfile + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.ListIdentityProfiles`: %v\n", resp) } ``` @@ -785,7 +781,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -793,18 +789,18 @@ import ( func main() { identityProfileId := `ef38f94347e94562b5bb8424a56397d8` // string | The Identity Profile ID to be processed # string | The Identity Profile ID to be processed - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityProfilesAPI.SyncIdentityProfile(context.Background(), identityProfileId).Execute() - //resp, r, err := apiClient.V2024.IdentityProfilesAPI.SyncIdentityProfile(context.Background(), identityProfileId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.SyncIdentityProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SyncIdentityProfile`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.SyncIdentityProfile`: %v\n", resp) + //resp, r, err := apiClient.V2024.IdentityProfilesAPI.SyncIdentityProfile(context.Background(), identityProfileId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.SyncIdentityProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SyncIdentityProfile`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.SyncIdentityProfile`: %v\n", resp) } ``` @@ -860,7 +856,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -869,24 +865,23 @@ func main() { identityProfileId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity profile ID. # string | Identity profile ID. jsonpatchoperation := []byte(`[{op=add, path=/identityAttributeConfig/attributeTransforms/0, value={identityAttributeName=location, transformDefinition={type=accountAttribute, attributes={sourceName=Employees, attributeName=location, sourceId=2c91808878b7d63b0178c66ffcdc4ce4}}}}]`) // []JsonPatchOperation | List of identity profile update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - - var jsonPatchOperation v2024.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2024.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityProfilesAPI.UpdateIdentityProfile(context.Background(), identityProfileId).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2024.IdentityProfilesAPI.UpdateIdentityProfile(context.Background(), identityProfileId).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.UpdateIdentityProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateIdentityProfile`: IdentityProfile - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.UpdateIdentityProfile`: %v\n", resp) + //resp, r, err := apiClient.V2024.IdentityProfilesAPI.UpdateIdentityProfile(context.Background(), identityProfileId).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.UpdateIdentityProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateIdentityProfile`: IdentityProfile + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.UpdateIdentityProfile`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/LifecycleStatesAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/LifecycleStatesAPI.md index 4a5b05403..6b920e1c4 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/LifecycleStatesAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/LifecycleStatesAPI.md @@ -103,7 +103,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -136,24 +136,23 @@ func main() { "enabled" : true }`) // LifecycleState | Lifecycle state to be created. - - var lifecycleState v2024.LifecycleState - if err := json.Unmarshal(lifecyclestate, &lifecycleState); err != nil { - fmt.Println("Error:", err) - return - } - + var lifecycleState v2024.LifecycleState + if err := json.Unmarshal(lifecyclestate, &lifecycleState); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.LifecycleStatesAPI.CreateLifecycleState(context.Background(), identityProfileId).LifecycleState(lifecycleState).Execute() - //resp, r, err := apiClient.V2024.LifecycleStatesAPI.CreateLifecycleState(context.Background(), identityProfileId).LifecycleState(lifecycleState).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.CreateLifecycleState``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateLifecycleState`: LifecycleState - fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.CreateLifecycleState`: %v\n", resp) + //resp, r, err := apiClient.V2024.LifecycleStatesAPI.CreateLifecycleState(context.Background(), identityProfileId).LifecycleState(lifecycleState).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.CreateLifecycleState``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateLifecycleState`: LifecycleState + fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.CreateLifecycleState`: %v\n", resp) } ``` @@ -202,7 +201,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -211,18 +210,18 @@ func main() { identityProfileId := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | Identity profile ID. # string | Identity profile ID. lifecycleStateId := `ef38f94347e94562b5bb8424a56397d8` // string | Lifecycle state ID. # string | Lifecycle state ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.LifecycleStatesAPI.DeleteLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() - //resp, r, err := apiClient.V2024.LifecycleStatesAPI.DeleteLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.DeleteLifecycleState``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteLifecycleState`: LifecyclestateDeleted - fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.DeleteLifecycleState`: %v\n", resp) + //resp, r, err := apiClient.V2024.LifecycleStatesAPI.DeleteLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.DeleteLifecycleState``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteLifecycleState`: LifecyclestateDeleted + fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.DeleteLifecycleState`: %v\n", resp) } ``` @@ -271,7 +270,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -280,18 +279,18 @@ func main() { identityProfileId := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | Identity profile ID. # string | Identity profile ID. lifecycleStateId := `ef38f94347e94562b5bb8424a56397d8` // string | Lifecycle state ID. # string | Lifecycle state ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.LifecycleStatesAPI.GetLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() - //resp, r, err := apiClient.V2024.LifecycleStatesAPI.GetLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.GetLifecycleState``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetLifecycleState`: LifecycleState - fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.GetLifecycleState`: %v\n", resp) + //resp, r, err := apiClient.V2024.LifecycleStatesAPI.GetLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.GetLifecycleState``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetLifecycleState`: LifecycleState + fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.GetLifecycleState`: %v\n", resp) } ``` @@ -342,7 +341,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -354,18 +353,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) sorters := `created,modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.LifecycleStatesAPI.GetLifecycleStates(context.Background(), identityProfileId).Execute() - //resp, r, err := apiClient.V2024.LifecycleStatesAPI.GetLifecycleStates(context.Background(), identityProfileId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.GetLifecycleStates``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetLifecycleStates`: []LifecycleState - fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.GetLifecycleStates`: %v\n", resp) + //resp, r, err := apiClient.V2024.LifecycleStatesAPI.GetLifecycleStates(context.Background(), identityProfileId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.GetLifecycleStates``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetLifecycleStates`: []LifecycleState + fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.GetLifecycleStates`: %v\n", resp) } ``` @@ -413,7 +412,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -422,24 +421,23 @@ func main() { identityId := `2c9180857893f1290178944561990364` // string | ID of the identity to update. # string | ID of the identity to update. setlifecyclestaterequest := []byte(``) // SetLifecycleStateRequest | - - var setLifecycleStateRequest v2024.SetLifecycleStateRequest - if err := json.Unmarshal(setlifecyclestaterequest, &setLifecycleStateRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var setLifecycleStateRequest v2024.SetLifecycleStateRequest + if err := json.Unmarshal(setlifecyclestaterequest, &setLifecycleStateRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.LifecycleStatesAPI.SetLifecycleState(context.Background(), identityId).SetLifecycleStateRequest(setLifecycleStateRequest).Execute() - //resp, r, err := apiClient.V2024.LifecycleStatesAPI.SetLifecycleState(context.Background(), identityId).SetLifecycleStateRequest(setLifecycleStateRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.SetLifecycleState``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetLifecycleState`: SetLifecycleState200Response - fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.SetLifecycleState`: %v\n", resp) + //resp, r, err := apiClient.V2024.LifecycleStatesAPI.SetLifecycleState(context.Background(), identityId).SetLifecycleStateRequest(setLifecycleStateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.SetLifecycleState``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetLifecycleState`: SetLifecycleState200Response + fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.SetLifecycleState`: %v\n", resp) } ``` @@ -489,7 +487,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -499,24 +497,23 @@ func main() { lifecycleStateId := `ef38f94347e94562b5bb8424a56397d8` // string | Lifecycle state ID. # string | Lifecycle state ID. jsonpatchoperation := []byte(`[{op=replace, path=/description, value=Updated description!}, {op=replace, path=/accessProfileIds, value=[2c918087742bab150174407a80f3125e, 2c918087742bab150174407a80f3124f]}, {op=replace, path=/accountActions, value=[{action=ENABLE, sourceIds=[2c9180846a2f82fb016a481c1b1560c5, 2c9180846a2f82fb016a481c1b1560cc]}, {action=DISABLE, sourceIds=[2c91808869a0c9980169a207258513fb]}]}, {op=replace, path=/emailNotificationOption, value={notifyManagers=true, notifyAllAdmins=false, notifySpecificUsers=false, emailAddressList=[]}}]`) // []JsonPatchOperation | A list of lifecycle state update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields can be updated: * enabled * description * accountActions * accessProfileIds * emailNotificationOption - - var jsonPatchOperation v2024.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2024.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.LifecycleStatesAPI.UpdateLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2024.LifecycleStatesAPI.UpdateLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.UpdateLifecycleStates``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateLifecycleStates`: LifecycleState - fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.UpdateLifecycleStates`: %v\n", resp) + //resp, r, err := apiClient.V2024.LifecycleStatesAPI.UpdateLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.UpdateLifecycleStates``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateLifecycleStates`: LifecycleState + fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.UpdateLifecycleStates`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/MFAConfigurationAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/MFAConfigurationAPI.md index cf8506921..cab085808 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/MFAConfigurationAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/MFAConfigurationAPI.md @@ -57,25 +57,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MFAConfigurationAPI.GetMFADuoConfig(context.Background()).Execute() - //resp, r, err := apiClient.V2024.MFAConfigurationAPI.GetMFADuoConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.GetMFADuoConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMFADuoConfig`: MfaDuoConfig - fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.GetMFADuoConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.MFAConfigurationAPI.GetMFADuoConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.GetMFADuoConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMFADuoConfig`: MfaDuoConfig + fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.GetMFADuoConfig`: %v\n", resp) } ``` @@ -118,7 +118,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -126,18 +126,18 @@ import ( func main() { allLanguages := allLanguages=true // bool | Indicator whether the question text should be returned in all configured languages * If true, the question text is returned in all languages that it is configured in. * If false, the question text is returned in the user locale if available, else for the default locale. * If not passed, it behaves the same way as passing this parameter as false (optional) # bool | Indicator whether the question text should be returned in all configured languages * If true, the question text is returned in all languages that it is configured in. * If false, the question text is returned in the user locale if available, else for the default locale. * If not passed, it behaves the same way as passing this parameter as false (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MFAConfigurationAPI.GetMFAKbaConfig(context.Background()).Execute() - //resp, r, err := apiClient.V2024.MFAConfigurationAPI.GetMFAKbaConfig(context.Background()).AllLanguages(allLanguages).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.GetMFAKbaConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMFAKbaConfig`: []KbaQuestion - fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.GetMFAKbaConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.MFAConfigurationAPI.GetMFAKbaConfig(context.Background()).AllLanguages(allLanguages).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.GetMFAKbaConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMFAKbaConfig`: []KbaQuestion + fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.GetMFAKbaConfig`: %v\n", resp) } ``` @@ -176,25 +176,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MFAConfigurationAPI.GetMFAOktaConfig(context.Background()).Execute() - //resp, r, err := apiClient.V2024.MFAConfigurationAPI.GetMFAOktaConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.GetMFAOktaConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMFAOktaConfig`: MfaOktaConfig - fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.GetMFAOktaConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.MFAConfigurationAPI.GetMFAOktaConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.GetMFAOktaConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMFAOktaConfig`: MfaOktaConfig + fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.GetMFAOktaConfig`: %v\n", resp) } ``` @@ -237,7 +237,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -255,24 +255,23 @@ func main() { "identityAttribute" : "email" }`) // MfaDuoConfig | - - var mfaDuoConfig v2024.MfaDuoConfig - if err := json.Unmarshal(mfaduoconfig, &mfaDuoConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var mfaDuoConfig v2024.MfaDuoConfig + if err := json.Unmarshal(mfaduoconfig, &mfaDuoConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MFAConfigurationAPI.SetMFADuoConfig(context.Background()).MfaDuoConfig(mfaDuoConfig).Execute() - //resp, r, err := apiClient.V2024.MFAConfigurationAPI.SetMFADuoConfig(context.Background()).MfaDuoConfig(mfaDuoConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.SetMFADuoConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetMFADuoConfig`: MfaDuoConfig - fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.SetMFADuoConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.MFAConfigurationAPI.SetMFADuoConfig(context.Background()).MfaDuoConfig(mfaDuoConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.SetMFADuoConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetMFADuoConfig`: MfaDuoConfig + fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.SetMFADuoConfig`: %v\n", resp) } ``` @@ -315,7 +314,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -323,24 +322,23 @@ import ( func main() { kbaanswerrequestitem := []byte(`[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]`) // []KbaAnswerRequestItem | - - var kbaAnswerRequestItem v2024.[]KbaAnswerRequestItem - if err := json.Unmarshal(kbaanswerrequestitem, &kbaAnswerRequestItem); err != nil { - fmt.Println("Error:", err) - return - } - + var kbaAnswerRequestItem []v2024.KbaAnswerRequestItem + if err := json.Unmarshal(kbaanswerrequestitem, &kbaAnswerRequestItem); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MFAConfigurationAPI.SetMFAKBAConfig(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() - //resp, r, err := apiClient.V2024.MFAConfigurationAPI.SetMFAKBAConfig(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.SetMFAKBAConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetMFAKBAConfig`: []KbaAnswerResponseItem - fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.SetMFAKBAConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.MFAConfigurationAPI.SetMFAKBAConfig(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.SetMFAKBAConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetMFAKBAConfig`: []KbaAnswerResponseItem + fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.SetMFAKBAConfig`: %v\n", resp) } ``` @@ -383,7 +381,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -397,24 +395,23 @@ func main() { "identityAttribute" : "email" }`) // MfaOktaConfig | - - var mfaOktaConfig v2024.MfaOktaConfig - if err := json.Unmarshal(mfaoktaconfig, &mfaOktaConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var mfaOktaConfig v2024.MfaOktaConfig + if err := json.Unmarshal(mfaoktaconfig, &mfaOktaConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MFAConfigurationAPI.SetMFAOktaConfig(context.Background()).MfaOktaConfig(mfaOktaConfig).Execute() - //resp, r, err := apiClient.V2024.MFAConfigurationAPI.SetMFAOktaConfig(context.Background()).MfaOktaConfig(mfaOktaConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.SetMFAOktaConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetMFAOktaConfig`: MfaOktaConfig - fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.SetMFAOktaConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.MFAConfigurationAPI.SetMFAOktaConfig(context.Background()).MfaOktaConfig(mfaOktaConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.SetMFAOktaConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetMFAOktaConfig`: MfaOktaConfig + fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.SetMFAOktaConfig`: %v\n", resp) } ``` @@ -461,7 +458,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -469,18 +466,18 @@ import ( func main() { method := `okta-verify` // string | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. # string | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MFAConfigurationAPI.TestMFAConfig(context.Background(), method).Execute() - //resp, r, err := apiClient.V2024.MFAConfigurationAPI.TestMFAConfig(context.Background(), method).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.TestMFAConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `TestMFAConfig`: MfaConfigTestResponse - fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.TestMFAConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.MFAConfigurationAPI.TestMFAConfig(context.Background(), method).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.TestMFAConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TestMFAConfig`: MfaConfigTestResponse + fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.TestMFAConfig`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/MachineAccountClassifyAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/MachineAccountClassifyAPI.md index 63db027a1..101f6bb98 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/MachineAccountClassifyAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/MachineAccountClassifyAPI.md @@ -61,7 +61,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -70,18 +70,18 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. classificationMode := `forceMachine` // string | Specifies how the accounts should be classified. default - uses criteria to classify account as machine or human, excludes accounts that were manually classified. ignoreManual - like default, but includes accounts that were manually classified. forceMachine - forces account to be classified as machine. forceHuman - forces account to be classified as human. (optional) (default to "default") # string | Specifies how the accounts should be classified. default - uses criteria to classify account as machine or human, excludes accounts that were manually classified. ignoreManual - like default, but includes accounts that were manually classified. forceMachine - forces account to be classified as machine. forceHuman - forces account to be classified as human. (optional) (default to "default") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MachineAccountClassifyAPI.SendClassifyMachineAccount(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.MachineAccountClassifyAPI.SendClassifyMachineAccount(context.Background(), id).ClassificationMode(classificationMode).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MachineAccountClassifyAPI.SendClassifyMachineAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SendClassifyMachineAccount`: SendClassifyMachineAccount200Response - fmt.Fprintf(os.Stdout, "Response from `MachineAccountClassifyAPI.SendClassifyMachineAccount`: %v\n", resp) + //resp, r, err := apiClient.V2024.MachineAccountClassifyAPI.SendClassifyMachineAccount(context.Background(), id).ClassificationMode(classificationMode).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MachineAccountClassifyAPI.SendClassifyMachineAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SendClassifyMachineAccount`: SendClassifyMachineAccount200Response + fmt.Fprintf(os.Stdout, "Response from `MachineAccountClassifyAPI.SendClassifyMachineAccount`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/MachineAccountMappingsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/MachineAccountMappingsAPI.md index 8d0035a2f..95ae9eb90 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/MachineAccountMappingsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/MachineAccountMappingsAPI.md @@ -64,7 +64,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -93,24 +93,23 @@ func main() { } }`) // AttributeMappings | - - var attributeMappings v2024.AttributeMappings - if err := json.Unmarshal(attributemappings, &attributeMappings); err != nil { - fmt.Println("Error:", err) - return - } - + var attributeMappings v2024.AttributeMappings + if err := json.Unmarshal(attributemappings, &attributeMappings); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MachineAccountMappingsAPI.CreateMachineAccountMappings(context.Background(), id).AttributeMappings(attributeMappings).Execute() - //resp, r, err := apiClient.V2024.MachineAccountMappingsAPI.CreateMachineAccountMappings(context.Background(), id).AttributeMappings(attributeMappings).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MachineAccountMappingsAPI.CreateMachineAccountMappings``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateMachineAccountMappings`: []AttributeMappings - fmt.Fprintf(os.Stdout, "Response from `MachineAccountMappingsAPI.CreateMachineAccountMappings`: %v\n", resp) + //resp, r, err := apiClient.V2024.MachineAccountMappingsAPI.CreateMachineAccountMappings(context.Background(), id).AttributeMappings(attributeMappings).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MachineAccountMappingsAPI.CreateMachineAccountMappings``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateMachineAccountMappings`: []AttributeMappings + fmt.Fprintf(os.Stdout, "Response from `MachineAccountMappingsAPI.CreateMachineAccountMappings`: %v\n", resp) } ``` @@ -158,7 +157,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -166,16 +165,17 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | source ID. # string | source ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.MachineAccountMappingsAPI.DeleteMachineAccountMappings(context.Background(), id).Execute() - //r, err := apiClient.V2024.MachineAccountMappingsAPI.DeleteMachineAccountMappings(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MachineAccountMappingsAPI.DeleteMachineAccountMappings``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.MachineAccountMappingsAPI.DeleteMachineAccountMappings(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MachineAccountMappingsAPI.DeleteMachineAccountMappings``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -224,7 +224,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -234,18 +234,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MachineAccountMappingsAPI.ListMachineAccountMappings(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.MachineAccountMappingsAPI.ListMachineAccountMappings(context.Background(), id).Limit(limit).Offset(offset).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MachineAccountMappingsAPI.ListMachineAccountMappings``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListMachineAccountMappings`: []AttributeMappings - fmt.Fprintf(os.Stdout, "Response from `MachineAccountMappingsAPI.ListMachineAccountMappings`: %v\n", resp) + //resp, r, err := apiClient.V2024.MachineAccountMappingsAPI.ListMachineAccountMappings(context.Background(), id).Limit(limit).Offset(offset).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MachineAccountMappingsAPI.ListMachineAccountMappings``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListMachineAccountMappings`: []AttributeMappings + fmt.Fprintf(os.Stdout, "Response from `MachineAccountMappingsAPI.ListMachineAccountMappings`: %v\n", resp) } ``` @@ -293,7 +293,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -322,24 +322,23 @@ func main() { } }`) // AttributeMappings | - - var attributeMappings v2024.AttributeMappings - if err := json.Unmarshal(attributemappings, &attributeMappings); err != nil { - fmt.Println("Error:", err) - return - } - + var attributeMappings v2024.AttributeMappings + if err := json.Unmarshal(attributemappings, &attributeMappings); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MachineAccountMappingsAPI.SetMachineAccountMappings(context.Background(), id).AttributeMappings(attributeMappings).Execute() - //resp, r, err := apiClient.V2024.MachineAccountMappingsAPI.SetMachineAccountMappings(context.Background(), id).AttributeMappings(attributeMappings).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MachineAccountMappingsAPI.SetMachineAccountMappings``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetMachineAccountMappings`: []AttributeMappings - fmt.Fprintf(os.Stdout, "Response from `MachineAccountMappingsAPI.SetMachineAccountMappings`: %v\n", resp) + //resp, r, err := apiClient.V2024.MachineAccountMappingsAPI.SetMachineAccountMappings(context.Background(), id).AttributeMappings(attributeMappings).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MachineAccountMappingsAPI.SetMachineAccountMappings``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetMachineAccountMappings`: []AttributeMappings + fmt.Fprintf(os.Stdout, "Response from `MachineAccountMappingsAPI.SetMachineAccountMappings`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/MachineAccountsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/MachineAccountsAPI.md index 4f91da0ea..65d1661a9 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/MachineAccountsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/MachineAccountsAPI.md @@ -73,7 +73,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -82,18 +82,18 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Machine Account ID. # string | Machine Account ID. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MachineAccountsAPI.GetMachineAccount(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.MachineAccountsAPI.GetMachineAccount(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MachineAccountsAPI.GetMachineAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMachineAccount`: MachineAccount - fmt.Fprintf(os.Stdout, "Response from `MachineAccountsAPI.GetMachineAccount`: %v\n", resp) + //resp, r, err := apiClient.V2024.MachineAccountsAPI.GetMachineAccount(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MachineAccountsAPI.GetMachineAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMachineAccount`: MachineAccount + fmt.Fprintf(os.Stdout, "Response from `MachineAccountsAPI.GetMachineAccount`: %v\n", resp) } ``` @@ -152,7 +152,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -165,18 +165,18 @@ func main() { filters := `identityId eq "2c9180858082150f0180893dbaf44201"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in, sw* **name**: *eq, in, sw* **nativeIdentity**: *eq, in, sw* **machineIdentity**: *eq, in, sw* **description**: *eq, in, sw* **ownerIdentity**: *eq, in, sw* **ownerIdentityId**: *eq, in, sw* **entitlements**: *eq* **accessType**: *eq, in, sw* **subType**: *eq, in, sw* **environment**: *eq, in, sw* **classificationMethod**: *eq, in, sw* **manuallyCorrelated**: *eq* **manuallyEdited**: *eq* **identity**: *eq, in, sw* **source**: *eq, in* **hasEntitlement**: *eq* **locked**: *eq* **connectorAttributes**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in, sw* **name**: *eq, in, sw* **nativeIdentity**: *eq, in, sw* **machineIdentity**: *eq, in, sw* **description**: *eq, in, sw* **ownerIdentity**: *eq, in, sw* **ownerIdentityId**: *eq, in, sw* **entitlements**: *eq* **accessType**: *eq, in, sw* **subType**: *eq, in, sw* **environment**: *eq, in, sw* **classificationMethod**: *eq, in, sw* **manuallyCorrelated**: *eq* **manuallyEdited**: *eq* **identity**: *eq, in, sw* **source**: *eq, in* **hasEntitlement**: *eq* **locked**: *eq* **connectorAttributes**: *eq* (optional) sorters := `id,name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, machineIdentity, identity.id, nativeIdentity, uuid, manuallyCorrelated, connectorAttributes, entitlements, identity.name, identity.type, source.id, source.name, source.type** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, machineIdentity, identity.id, nativeIdentity, uuid, manuallyCorrelated, connectorAttributes, entitlements, identity.name, identity.type, source.id, source.name, source.type** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MachineAccountsAPI.ListMachineAccounts(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.MachineAccountsAPI.ListMachineAccounts(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MachineAccountsAPI.ListMachineAccounts``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListMachineAccounts`: []MachineAccount - fmt.Fprintf(os.Stdout, "Response from `MachineAccountsAPI.ListMachineAccounts`: %v\n", resp) + //resp, r, err := apiClient.V2024.MachineAccountsAPI.ListMachineAccounts(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MachineAccountsAPI.ListMachineAccounts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListMachineAccounts`: []MachineAccount + fmt.Fprintf(os.Stdout, "Response from `MachineAccountsAPI.ListMachineAccounts`: %v\n", resp) } ``` @@ -237,7 +237,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -247,24 +247,23 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") requestbody := []byte(`[{op=add, path=/environment, value=test}]`) // []map[string]interface{} | A JSON of updated values [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * description * ownerIdentity * subType * accessType * environment * attributes * classificationMethod * manuallyEdited * nativeIdentity * uuid * source * manuallyCorrelated * enabled * locked * hasEntitlements * connectorAttributes - - var requestBody v2024.[]RequestBody - if err := json.Unmarshal(requestbody, &requestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var requestBody []v2024.RequestBody + if err := json.Unmarshal(requestbody, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MachineAccountsAPI.UpdateMachineAccount(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() - //resp, r, err := apiClient.V2024.MachineAccountsAPI.UpdateMachineAccount(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MachineAccountsAPI.UpdateMachineAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateMachineAccount`: MachineAccount - fmt.Fprintf(os.Stdout, "Response from `MachineAccountsAPI.UpdateMachineAccount`: %v\n", resp) + //resp, r, err := apiClient.V2024.MachineAccountsAPI.UpdateMachineAccount(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MachineAccountsAPI.UpdateMachineAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateMachineAccount`: MachineAccount + fmt.Fprintf(os.Stdout, "Response from `MachineAccountsAPI.UpdateMachineAccount`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/MachineClassificationConfigAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/MachineClassificationConfigAPI.md index fdc0c44e2..c8aa78cf1 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/MachineClassificationConfigAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/MachineClassificationConfigAPI.md @@ -62,7 +62,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -70,16 +70,17 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Source ID. # string | Source ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.MachineClassificationConfigAPI.DeleteMachineClassificationConfig(context.Background(), id).Execute() - //r, err := apiClient.V2024.MachineClassificationConfigAPI.DeleteMachineClassificationConfig(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MachineClassificationConfigAPI.DeleteMachineClassificationConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.MachineClassificationConfigAPI.DeleteMachineClassificationConfig(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MachineClassificationConfigAPI.DeleteMachineClassificationConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -126,7 +127,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -134,18 +135,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Source ID # string | Source ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MachineClassificationConfigAPI.GetMachineClassificationConfig(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.MachineClassificationConfigAPI.GetMachineClassificationConfig(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MachineClassificationConfigAPI.GetMachineClassificationConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMachineClassificationConfig`: MachineClassificationConfig - fmt.Fprintf(os.Stdout, "Response from `MachineClassificationConfigAPI.GetMachineClassificationConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.MachineClassificationConfigAPI.GetMachineClassificationConfig(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MachineClassificationConfigAPI.GetMachineClassificationConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMachineClassificationConfig`: MachineClassificationConfig + fmt.Fprintf(os.Stdout, "Response from `MachineClassificationConfigAPI.GetMachineClassificationConfig`: %v\n", resp) } ``` @@ -193,7 +194,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -208,24 +209,23 @@ func main() { "enabled" : true }`) // MachineClassificationConfig | - - var machineClassificationConfig v2024.MachineClassificationConfig - if err := json.Unmarshal(machineclassificationconfig, &machineClassificationConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var machineClassificationConfig v2024.MachineClassificationConfig + if err := json.Unmarshal(machineclassificationconfig, &machineClassificationConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MachineClassificationConfigAPI.SetMachineClassificationConfig(context.Background(), id).MachineClassificationConfig(machineClassificationConfig).Execute() - //resp, r, err := apiClient.V2024.MachineClassificationConfigAPI.SetMachineClassificationConfig(context.Background(), id).MachineClassificationConfig(machineClassificationConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MachineClassificationConfigAPI.SetMachineClassificationConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetMachineClassificationConfig`: MachineClassificationConfig - fmt.Fprintf(os.Stdout, "Response from `MachineClassificationConfigAPI.SetMachineClassificationConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.MachineClassificationConfigAPI.SetMachineClassificationConfig(context.Background(), id).MachineClassificationConfig(machineClassificationConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MachineClassificationConfigAPI.SetMachineClassificationConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetMachineClassificationConfig`: MachineClassificationConfig + fmt.Fprintf(os.Stdout, "Response from `MachineClassificationConfigAPI.SetMachineClassificationConfig`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/MachineIdentitiesAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/MachineIdentitiesAPI.md index e8dbf53a9..f35543a06 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/MachineIdentitiesAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/MachineIdentitiesAPI.md @@ -72,7 +72,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -90,24 +90,23 @@ func main() { "manuallyEdited" : true }`) // MachineIdentity | - - var machineIdentity v2024.MachineIdentity - if err := json.Unmarshal(machineidentity, &machineIdentity); err != nil { - fmt.Println("Error:", err) - return - } - + var machineIdentity v2024.MachineIdentity + if err := json.Unmarshal(machineidentity, &machineIdentity); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MachineIdentitiesAPI.CreateMachineIdentity(context.Background()).XSailPointExperimental(xSailPointExperimental).MachineIdentity(machineIdentity).Execute() - //resp, r, err := apiClient.V2024.MachineIdentitiesAPI.CreateMachineIdentity(context.Background()).XSailPointExperimental(xSailPointExperimental).MachineIdentity(machineIdentity).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MachineIdentitiesAPI.CreateMachineIdentity``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateMachineIdentity`: MachineIdentity - fmt.Fprintf(os.Stdout, "Response from `MachineIdentitiesAPI.CreateMachineIdentity`: %v\n", resp) + //resp, r, err := apiClient.V2024.MachineIdentitiesAPI.CreateMachineIdentity(context.Background()).XSailPointExperimental(xSailPointExperimental).MachineIdentity(machineIdentity).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MachineIdentitiesAPI.CreateMachineIdentity``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateMachineIdentity`: MachineIdentity + fmt.Fprintf(os.Stdout, "Response from `MachineIdentitiesAPI.CreateMachineIdentity`: %v\n", resp) } ``` @@ -166,7 +165,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -175,16 +174,17 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Machine Identity ID # string | Machine Identity ID xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.MachineIdentitiesAPI.DeleteMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //r, err := apiClient.V2024.MachineIdentitiesAPI.DeleteMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MachineIdentitiesAPI.DeleteMachineIdentity``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.MachineIdentitiesAPI.DeleteMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MachineIdentitiesAPI.DeleteMachineIdentity``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -243,7 +243,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -252,18 +252,18 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Machine Identity ID # string | Machine Identity ID xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MachineIdentitiesAPI.GetMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.MachineIdentitiesAPI.GetMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MachineIdentitiesAPI.GetMachineIdentity``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMachineIdentity`: MachineIdentity - fmt.Fprintf(os.Stdout, "Response from `MachineIdentitiesAPI.GetMachineIdentity`: %v\n", resp) + //resp, r, err := apiClient.V2024.MachineIdentitiesAPI.GetMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MachineIdentitiesAPI.GetMachineIdentity``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMachineIdentity`: MachineIdentity + fmt.Fprintf(os.Stdout, "Response from `MachineIdentitiesAPI.GetMachineIdentity`: %v\n", resp) } ``` @@ -322,7 +322,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -335,18 +335,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MachineIdentitiesAPI.ListMachineIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.MachineIdentitiesAPI.ListMachineIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).Filters(filters).Sorters(sorters).Count(count).Limit(limit).Offset(offset).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MachineIdentitiesAPI.ListMachineIdentities``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListMachineIdentities`: []MachineIdentity - fmt.Fprintf(os.Stdout, "Response from `MachineIdentitiesAPI.ListMachineIdentities`: %v\n", resp) + //resp, r, err := apiClient.V2024.MachineIdentitiesAPI.ListMachineIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).Filters(filters).Sorters(sorters).Count(count).Limit(limit).Offset(offset).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MachineIdentitiesAPI.ListMachineIdentities``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListMachineIdentities`: []MachineIdentity + fmt.Fprintf(os.Stdout, "Response from `MachineIdentitiesAPI.ListMachineIdentities`: %v\n", resp) } ``` @@ -407,7 +407,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -417,24 +417,23 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") requestbody := []byte(`[{op=add, path=/attributes/securityRisk, value=medium}]`) // []map[string]interface{} | A JSON of updated values [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - - var requestBody v2024.[]RequestBody - if err := json.Unmarshal(requestbody, &requestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var requestBody []v2024.RequestBody + if err := json.Unmarshal(requestbody, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MachineIdentitiesAPI.UpdateMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() - //resp, r, err := apiClient.V2024.MachineIdentitiesAPI.UpdateMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MachineIdentitiesAPI.UpdateMachineIdentity``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateMachineIdentity`: MachineIdentity - fmt.Fprintf(os.Stdout, "Response from `MachineIdentitiesAPI.UpdateMachineIdentity`: %v\n", resp) + //resp, r, err := apiClient.V2024.MachineIdentitiesAPI.UpdateMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MachineIdentitiesAPI.UpdateMachineIdentity``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateMachineIdentity`: MachineIdentity + fmt.Fprintf(os.Stdout, "Response from `MachineIdentitiesAPI.UpdateMachineIdentity`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/ManagedClientsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/ManagedClientsAPI.md index 833214a20..f90f12c33 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/ManagedClientsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/ManagedClientsAPI.md @@ -63,7 +63,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -76,24 +76,23 @@ func main() { "type" : "VA" }`) // ManagedClientRequest | - - var managedClientRequest v2024.ManagedClientRequest - if err := json.Unmarshal(managedclientrequest, &managedClientRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var managedClientRequest v2024.ManagedClientRequest + if err := json.Unmarshal(managedclientrequest, &managedClientRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ManagedClientsAPI.CreateManagedClient(context.Background()).ManagedClientRequest(managedClientRequest).Execute() - //resp, r, err := apiClient.V2024.ManagedClientsAPI.CreateManagedClient(context.Background()).ManagedClientRequest(managedClientRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.CreateManagedClient``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateManagedClient`: ManagedClient - fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.CreateManagedClient`: %v\n", resp) + //resp, r, err := apiClient.V2024.ManagedClientsAPI.CreateManagedClient(context.Background()).ManagedClientRequest(managedClientRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.CreateManagedClient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateManagedClient`: ManagedClient + fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.CreateManagedClient`: %v\n", resp) } ``` @@ -140,7 +139,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -148,16 +147,17 @@ import ( func main() { id := `4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7` // string | Managed client ID. # string | Managed client ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.ManagedClientsAPI.DeleteManagedClient(context.Background(), id).Execute() - //r, err := apiClient.V2024.ManagedClientsAPI.DeleteManagedClient(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.DeleteManagedClient``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.ManagedClientsAPI.DeleteManagedClient(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.DeleteManagedClient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -204,7 +204,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -212,18 +212,18 @@ import ( func main() { id := `4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7` // string | Managed client ID. # string | Managed client ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ManagedClientsAPI.GetManagedClient(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.ManagedClientsAPI.GetManagedClient(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.GetManagedClient``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetManagedClient`: ManagedClient - fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.GetManagedClient`: %v\n", resp) + //resp, r, err := apiClient.V2024.ManagedClientsAPI.GetManagedClient(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.GetManagedClient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetManagedClient`: ManagedClient + fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.GetManagedClient`: %v\n", resp) } ``` @@ -271,7 +271,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -280,18 +280,18 @@ func main() { id := `aClientId` // string | Managed client ID to get status for. # string | Managed client ID to get status for. type_ := // ManagedClientType | Managed client type to get status for. # ManagedClientType | Managed client type to get status for. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ManagedClientsAPI.GetManagedClientStatus(context.Background(), id).Type_(type_).Execute() - //resp, r, err := apiClient.V2024.ManagedClientsAPI.GetManagedClientStatus(context.Background(), id).Type_(type_).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.GetManagedClientStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetManagedClientStatus`: ManagedClientStatus - fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.GetManagedClientStatus`: %v\n", resp) + //resp, r, err := apiClient.V2024.ManagedClientsAPI.GetManagedClientStatus(context.Background(), id).Type_(type_).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.GetManagedClientStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetManagedClientStatus`: ManagedClientStatus + fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.GetManagedClientStatus`: %v\n", resp) } ``` @@ -337,7 +337,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -348,18 +348,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) filters := `name eq "client name"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* **name**: *eq* **clientId**: *eq* **clusterId**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* **name**: *eq* **clientId**: *eq* **clusterId**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ManagedClientsAPI.GetManagedClients(context.Background()).Execute() - //resp, r, err := apiClient.V2024.ManagedClientsAPI.GetManagedClients(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.GetManagedClients``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetManagedClients`: []ManagedClient - fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.GetManagedClients`: %v\n", resp) + //resp, r, err := apiClient.V2024.ManagedClientsAPI.GetManagedClients(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.GetManagedClients``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetManagedClients`: []ManagedClient + fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.GetManagedClients`: %v\n", resp) } ``` @@ -407,7 +407,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -416,24 +416,23 @@ func main() { id := `4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7` // string | Managed client ID. # string | Managed client ID. jsonpatchoperation := []byte(``) // []JsonPatchOperation | JSONPatch payload used to update the object. - - var jsonPatchOperation v2024.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2024.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ManagedClientsAPI.UpdateManagedClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2024.ManagedClientsAPI.UpdateManagedClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.UpdateManagedClient``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateManagedClient`: ManagedClient - fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.UpdateManagedClient`: %v\n", resp) + //resp, r, err := apiClient.V2024.ManagedClientsAPI.UpdateManagedClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.UpdateManagedClient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateManagedClient`: ManagedClient + fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.UpdateManagedClient`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/ManagedClusterTypesAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/ManagedClusterTypesAPI.md index 91b19bdd5..f8efe7fbd 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/ManagedClusterTypesAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/ManagedClusterTypesAPI.md @@ -63,7 +63,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -77,24 +77,23 @@ func main() { "type" : "idn" }`) // ManagedClusterType | - - var managedClusterType v2024.ManagedClusterType - if err := json.Unmarshal(managedclustertype, &managedClusterType); err != nil { - fmt.Println("Error:", err) - return - } - + var managedClusterType v2024.ManagedClusterType + if err := json.Unmarshal(managedclustertype, &managedClusterType); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ManagedClusterTypesAPI.CreateManagedClusterType(context.Background()).ManagedClusterType(managedClusterType).Execute() - //resp, r, err := apiClient.V2024.ManagedClusterTypesAPI.CreateManagedClusterType(context.Background()).ManagedClusterType(managedClusterType).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClusterTypesAPI.CreateManagedClusterType``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateManagedClusterType`: ManagedClusterType - fmt.Fprintf(os.Stdout, "Response from `ManagedClusterTypesAPI.CreateManagedClusterType`: %v\n", resp) + //resp, r, err := apiClient.V2024.ManagedClusterTypesAPI.CreateManagedClusterType(context.Background()).ManagedClusterType(managedClusterType).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClusterTypesAPI.CreateManagedClusterType``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateManagedClusterType`: ManagedClusterType + fmt.Fprintf(os.Stdout, "Response from `ManagedClusterTypesAPI.CreateManagedClusterType`: %v\n", resp) } ``` @@ -142,7 +141,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -150,16 +149,17 @@ import ( func main() { id := `aClusterTypeId` // string | The Managed Cluster Type ID # string | The Managed Cluster Type ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.ManagedClusterTypesAPI.DeleteManagedClusterType(context.Background(), id).Execute() - //r, err := apiClient.V2024.ManagedClusterTypesAPI.DeleteManagedClusterType(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClusterTypesAPI.DeleteManagedClusterType``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.ManagedClusterTypesAPI.DeleteManagedClusterType(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClusterTypesAPI.DeleteManagedClusterType``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -207,7 +207,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -215,18 +215,18 @@ import ( func main() { id := `aClusterTypeId` // string | The Managed Cluster Type ID # string | The Managed Cluster Type ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ManagedClusterTypesAPI.GetManagedClusterType(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.ManagedClusterTypesAPI.GetManagedClusterType(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClusterTypesAPI.GetManagedClusterType``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetManagedClusterType`: ManagedClusterType - fmt.Fprintf(os.Stdout, "Response from `ManagedClusterTypesAPI.GetManagedClusterType`: %v\n", resp) + //resp, r, err := apiClient.V2024.ManagedClusterTypesAPI.GetManagedClusterType(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClusterTypesAPI.GetManagedClusterType``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetManagedClusterType`: ManagedClusterType + fmt.Fprintf(os.Stdout, "Response from `ManagedClusterTypesAPI.GetManagedClusterType`: %v\n", resp) } ``` @@ -274,7 +274,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -286,18 +286,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ManagedClusterTypesAPI.GetManagedClusterTypes(context.Background()).Execute() - //resp, r, err := apiClient.V2024.ManagedClusterTypesAPI.GetManagedClusterTypes(context.Background()).Type_(type_).Pod(pod).Org(org).Offset(offset).Limit(limit).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClusterTypesAPI.GetManagedClusterTypes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetManagedClusterTypes`: []ManagedClusterType - fmt.Fprintf(os.Stdout, "Response from `ManagedClusterTypesAPI.GetManagedClusterTypes`: %v\n", resp) + //resp, r, err := apiClient.V2024.ManagedClusterTypesAPI.GetManagedClusterTypes(context.Background()).Type_(type_).Pod(pod).Org(org).Offset(offset).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClusterTypesAPI.GetManagedClusterTypes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetManagedClusterTypes`: []ManagedClusterType + fmt.Fprintf(os.Stdout, "Response from `ManagedClusterTypesAPI.GetManagedClusterTypes`: %v\n", resp) } ``` @@ -346,7 +346,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -365,24 +365,23 @@ func main() { } ] }`) // JsonPatch | The JSONPatch payload used to update the schema. - - var jsonPatch v2024.JsonPatch - if err := json.Unmarshal(jsonpatch, &jsonPatch); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatch v2024.JsonPatch + if err := json.Unmarshal(jsonpatch, &jsonPatch); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ManagedClusterTypesAPI.UpdateManagedClusterType(context.Background(), id).JsonPatch(jsonPatch).Execute() - //resp, r, err := apiClient.V2024.ManagedClusterTypesAPI.UpdateManagedClusterType(context.Background(), id).JsonPatch(jsonPatch).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClusterTypesAPI.UpdateManagedClusterType``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateManagedClusterType`: ManagedClusterType - fmt.Fprintf(os.Stdout, "Response from `ManagedClusterTypesAPI.UpdateManagedClusterType`: %v\n", resp) + //resp, r, err := apiClient.V2024.ManagedClusterTypesAPI.UpdateManagedClusterType(context.Background(), id).JsonPatch(jsonPatch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClusterTypesAPI.UpdateManagedClusterType``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateManagedClusterType`: ManagedClusterType + fmt.Fprintf(os.Stdout, "Response from `ManagedClusterTypesAPI.UpdateManagedClusterType`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/ManagedClustersAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/ManagedClustersAPI.md index 471e4505d..6a84edb78 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/ManagedClustersAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/ManagedClustersAPI.md @@ -65,7 +65,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -81,24 +81,23 @@ func main() { "type" : "idn" }`) // ManagedClusterRequest | - - var managedClusterRequest v2024.ManagedClusterRequest - if err := json.Unmarshal(managedclusterrequest, &managedClusterRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var managedClusterRequest v2024.ManagedClusterRequest + if err := json.Unmarshal(managedclusterrequest, &managedClusterRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ManagedClustersAPI.CreateManagedCluster(context.Background()).ManagedClusterRequest(managedClusterRequest).Execute() - //resp, r, err := apiClient.V2024.ManagedClustersAPI.CreateManagedCluster(context.Background()).ManagedClusterRequest(managedClusterRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.CreateManagedCluster``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateManagedCluster`: ManagedCluster - fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.CreateManagedCluster`: %v\n", resp) + //resp, r, err := apiClient.V2024.ManagedClustersAPI.CreateManagedCluster(context.Background()).ManagedClusterRequest(managedClusterRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.CreateManagedCluster``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateManagedCluster`: ManagedCluster + fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.CreateManagedCluster`: %v\n", resp) } ``` @@ -146,7 +145,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -155,16 +154,17 @@ func main() { id := `2c9180897de347a2017de8859e8c5039` // string | Managed cluster ID. # string | Managed cluster ID. removeClients := false // bool | Flag to determine the need to delete a cluster with clients. (optional) (default to false) # bool | Flag to determine the need to delete a cluster with clients. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.ManagedClustersAPI.DeleteManagedCluster(context.Background(), id).Execute() - //r, err := apiClient.V2024.ManagedClustersAPI.DeleteManagedCluster(context.Background(), id).RemoveClients(removeClients).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.DeleteManagedCluster``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.ManagedClustersAPI.DeleteManagedCluster(context.Background(), id).RemoveClients(removeClients).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.DeleteManagedCluster``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -211,7 +211,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -219,18 +219,18 @@ import ( func main() { id := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | ID of managed cluster to get log configuration for. # string | ID of managed cluster to get log configuration for. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ManagedClustersAPI.GetClientLogConfiguration(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.ManagedClustersAPI.GetClientLogConfiguration(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.GetClientLogConfiguration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetClientLogConfiguration`: ClientLogConfiguration - fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.GetClientLogConfiguration`: %v\n", resp) + //resp, r, err := apiClient.V2024.ManagedClustersAPI.GetClientLogConfiguration(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.GetClientLogConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetClientLogConfiguration`: ClientLogConfiguration + fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.GetClientLogConfiguration`: %v\n", resp) } ``` @@ -277,7 +277,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -285,18 +285,18 @@ import ( func main() { id := `2c9180897de347a2017de8859e8c5039` // string | Managed cluster ID. # string | Managed cluster ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ManagedClustersAPI.GetManagedCluster(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.ManagedClustersAPI.GetManagedCluster(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.GetManagedCluster``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetManagedCluster`: ManagedCluster - fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.GetManagedCluster`: %v\n", resp) + //resp, r, err := apiClient.V2024.ManagedClustersAPI.GetManagedCluster(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.GetManagedCluster``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetManagedCluster`: ManagedCluster + fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.GetManagedCluster`: %v\n", resp) } ``` @@ -342,7 +342,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -353,18 +353,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) filters := `operational eq "operation"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **operational**: *eq* **name**: *eq* **type**: *eq* **status**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **operational**: *eq* **name**: *eq* **type**: *eq* **status**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ManagedClustersAPI.GetManagedClusters(context.Background()).Execute() - //resp, r, err := apiClient.V2024.ManagedClustersAPI.GetManagedClusters(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.GetManagedClusters``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetManagedClusters`: []ManagedCluster - fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.GetManagedClusters`: %v\n", resp) + //resp, r, err := apiClient.V2024.ManagedClustersAPI.GetManagedClusters(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.GetManagedClusters``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetManagedClusters`: []ManagedCluster + fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.GetManagedClusters`: %v\n", resp) } ``` @@ -412,7 +412,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -421,24 +421,23 @@ func main() { id := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | ID of the managed cluster to update the log configuration for. # string | ID of the managed cluster to update the log configuration for. putclientlogconfigurationrequest := []byte(``) // PutClientLogConfigurationRequest | Client log configuration for the given managed cluster. - - var putClientLogConfigurationRequest v2024.PutClientLogConfigurationRequest - if err := json.Unmarshal(putclientlogconfigurationrequest, &putClientLogConfigurationRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var putClientLogConfigurationRequest v2024.PutClientLogConfigurationRequest + if err := json.Unmarshal(putclientlogconfigurationrequest, &putClientLogConfigurationRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ManagedClustersAPI.PutClientLogConfiguration(context.Background(), id).PutClientLogConfigurationRequest(putClientLogConfigurationRequest).Execute() - //resp, r, err := apiClient.V2024.ManagedClustersAPI.PutClientLogConfiguration(context.Background(), id).PutClientLogConfigurationRequest(putClientLogConfigurationRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.PutClientLogConfiguration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutClientLogConfiguration`: ClientLogConfiguration - fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.PutClientLogConfiguration`: %v\n", resp) + //resp, r, err := apiClient.V2024.ManagedClustersAPI.PutClientLogConfiguration(context.Background(), id).PutClientLogConfigurationRequest(putClientLogConfigurationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.PutClientLogConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutClientLogConfiguration`: ClientLogConfiguration + fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.PutClientLogConfiguration`: %v\n", resp) } ``` @@ -486,7 +485,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -494,18 +493,18 @@ import ( func main() { id := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | ID of managed cluster to trigger manual upgrade. # string | ID of managed cluster to trigger manual upgrade. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ManagedClustersAPI.Update(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.ManagedClustersAPI.Update(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.Update``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `Update`: ClusterManualUpgrade - fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.Update`: %v\n", resp) + //resp, r, err := apiClient.V2024.ManagedClustersAPI.Update(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.Update``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `Update`: ClusterManualUpgrade + fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.Update`: %v\n", resp) } ``` @@ -553,7 +552,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -562,24 +561,23 @@ func main() { id := `2c9180897de347a2017de8859e8c5039` // string | Managed cluster ID. # string | Managed cluster ID. jsonpatchoperation := []byte(``) // []JsonPatchOperation | JSONPatch payload used to update the object. - - var jsonPatchOperation v2024.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2024.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ManagedClustersAPI.UpdateManagedCluster(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2024.ManagedClustersAPI.UpdateManagedCluster(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.UpdateManagedCluster``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateManagedCluster`: ManagedCluster - fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.UpdateManagedCluster`: %v\n", resp) + //resp, r, err := apiClient.V2024.ManagedClustersAPI.UpdateManagedCluster(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.UpdateManagedCluster``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateManagedCluster`: ManagedCluster + fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.UpdateManagedCluster`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/MultiHostIntegrationAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/MultiHostIntegrationAPI.md index 0b50d6378..a75eb5f1b 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/MultiHostIntegrationAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/MultiHostIntegrationAPI.md @@ -72,7 +72,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -105,24 +105,23 @@ func main() { "modified" : "2024-01-23T18:08:50.897Z" }`) // MultiHostIntegrationsCreate | The specifics of the Multi-Host Integration to create - - var multiHostIntegrationsCreate v2024.MultiHostIntegrationsCreate - if err := json.Unmarshal(multihostintegrationscreate, &multiHostIntegrationsCreate); err != nil { - fmt.Println("Error:", err) - return - } - + var multiHostIntegrationsCreate v2024.MultiHostIntegrationsCreate + if err := json.Unmarshal(multihostintegrationscreate, &multiHostIntegrationsCreate); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.CreateMultiHostIntegration(context.Background()).MultiHostIntegrationsCreate(multiHostIntegrationsCreate).Execute() - //resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.CreateMultiHostIntegration(context.Background()).MultiHostIntegrationsCreate(multiHostIntegrationsCreate).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.CreateMultiHostIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateMultiHostIntegration`: MultiHostIntegrations - fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.CreateMultiHostIntegration`: %v\n", resp) + //resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.CreateMultiHostIntegration(context.Background()).MultiHostIntegrationsCreate(multiHostIntegrationsCreate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.CreateMultiHostIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateMultiHostIntegration`: MultiHostIntegrations + fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.CreateMultiHostIntegration`: %v\n", resp) } ``` @@ -172,7 +171,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -181,22 +180,22 @@ func main() { multihostId := `2c91808568c529c60168cca6f90c1326` // string | ID of the Multi-Host Integration. # string | ID of the Multi-Host Integration. multihostintegrationscreatesources := []byte(``) // []MultiHostIntegrationsCreateSources | The specifics of the sources to create within Multi-Host Integration. - - var multiHostIntegrationsCreateSources v2024.[]MultiHostIntegrationsCreateSources - if err := json.Unmarshal(multihostintegrationscreatesources, &multiHostIntegrationsCreateSources); err != nil { - fmt.Println("Error:", err) - return - } - + var multiHostIntegrationsCreateSources []v2024.MultiHostIntegrationsCreateSources + if err := json.Unmarshal(multihostintegrationscreatesources, &multiHostIntegrationsCreateSources); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.MultiHostIntegrationAPI.CreateSourcesWithinMultiHost(context.Background(), multihostId).MultiHostIntegrationsCreateSources(multiHostIntegrationsCreateSources).Execute() - //r, err := apiClient.V2024.MultiHostIntegrationAPI.CreateSourcesWithinMultiHost(context.Background(), multihostId).MultiHostIntegrationsCreateSources(multiHostIntegrationsCreateSources).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.CreateSourcesWithinMultiHost``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.MultiHostIntegrationAPI.CreateSourcesWithinMultiHost(context.Background(), multihostId).MultiHostIntegrationsCreateSources(multiHostIntegrationsCreateSources).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.CreateSourcesWithinMultiHost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -245,7 +244,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -253,16 +252,17 @@ import ( func main() { multihostId := `2c91808568c529c60168cca6f90c1326` // string | ID of Multi-Host Integration to delete. # string | ID of Multi-Host Integration to delete. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.MultiHostIntegrationAPI.DeleteMultiHost(context.Background(), multihostId).Execute() - //r, err := apiClient.V2024.MultiHostIntegrationAPI.DeleteMultiHost(context.Background(), multihostId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.DeleteMultiHost``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.MultiHostIntegrationAPI.DeleteMultiHost(context.Background(), multihostId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.DeleteMultiHost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -312,7 +312,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -322,18 +322,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetAcctAggregationGroups(context.Background(), multihostId).Execute() - //resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetAcctAggregationGroups(context.Background(), multihostId).Offset(offset).Limit(limit).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetAcctAggregationGroups``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAcctAggregationGroups`: []MultiHostIntegrationsAggScheduleUpdate - fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetAcctAggregationGroups`: %v\n", resp) + //resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetAcctAggregationGroups(context.Background(), multihostId).Offset(offset).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetAcctAggregationGroups``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAcctAggregationGroups`: []MultiHostIntegrationsAggScheduleUpdate + fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetAcctAggregationGroups`: %v\n", resp) } ``` @@ -384,7 +384,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -394,18 +394,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetEntitlementAggregationGroups(context.Background(), multiHostId).Execute() - //resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetEntitlementAggregationGroups(context.Background(), multiHostId).Offset(offset).Limit(limit).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetEntitlementAggregationGroups``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetEntitlementAggregationGroups`: []MultiHostIntegrationsAggScheduleUpdate - fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetEntitlementAggregationGroups`: %v\n", resp) + //resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetEntitlementAggregationGroups(context.Background(), multiHostId).Offset(offset).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetEntitlementAggregationGroups``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetEntitlementAggregationGroups`: []MultiHostIntegrationsAggScheduleUpdate + fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetEntitlementAggregationGroups`: %v\n", resp) } ``` @@ -454,7 +454,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -462,18 +462,18 @@ import ( func main() { multihostId := `2c91808568c529c60168cca6f90c1326` // string | ID of the Multi-Host Integration. # string | ID of the Multi-Host Integration. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetMultiHostIntegrations(context.Background(), multihostId).Execute() - //resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetMultiHostIntegrations(context.Background(), multihostId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetMultiHostIntegrations``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMultiHostIntegrations`: MultiHostIntegrations - fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetMultiHostIntegrations`: %v\n", resp) + //resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetMultiHostIntegrations(context.Background(), multihostId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetMultiHostIntegrations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMultiHostIntegrations`: MultiHostIntegrations + fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetMultiHostIntegrations`: %v\n", resp) } ``` @@ -523,7 +523,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -536,18 +536,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) forSubadmin := `5168015d32f890ca15812c9180835d2e` // string | If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity or SOURCE_SUBADMIN identity. The value of the parameter is either an Identity ID, or the special value **me**, which is shorthand for the calling Identity's ID. A 400 Bad Request error is returned if the **for-subadmin** parameter is specified for an Identity that is not a subadmin. (optional) # string | If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity or SOURCE_SUBADMIN identity. The value of the parameter is either an Identity ID, or the special value **me**, which is shorthand for the calling Identity's ID. A 400 Bad Request error is returned if the **for-subadmin** parameter is specified for an Identity that is not a subadmin. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetMultiHostIntegrationsList(context.Background()).Execute() - //resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetMultiHostIntegrationsList(context.Background()).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).ForSubadmin(forSubadmin).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetMultiHostIntegrationsList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMultiHostIntegrationsList`: []MultiHostIntegrations - fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetMultiHostIntegrationsList`: %v\n", resp) + //resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetMultiHostIntegrationsList(context.Background()).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).ForSubadmin(forSubadmin).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetMultiHostIntegrationsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMultiHostIntegrationsList`: []MultiHostIntegrations + fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetMultiHostIntegrationsList`: %v\n", resp) } ``` @@ -596,7 +596,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -604,18 +604,18 @@ import ( func main() { multiHostId := `004091cb79b04636b88662afa50a4440` // string | ID of the Multi-Host Integration # string | ID of the Multi-Host Integration - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetMultiHostSourceCreationErrors(context.Background(), multiHostId).Execute() - //resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetMultiHostSourceCreationErrors(context.Background(), multiHostId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetMultiHostSourceCreationErrors``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMultiHostSourceCreationErrors`: []SourceCreationErrors - fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetMultiHostSourceCreationErrors`: %v\n", resp) + //resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetMultiHostSourceCreationErrors(context.Background(), multiHostId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetMultiHostSourceCreationErrors``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMultiHostSourceCreationErrors`: []SourceCreationErrors + fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetMultiHostSourceCreationErrors`: %v\n", resp) } ``` @@ -656,25 +656,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetMultihostIntegrationTypes(context.Background()).Execute() - //resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetMultihostIntegrationTypes(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetMultihostIntegrationTypes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMultihostIntegrationTypes`: []MultiHostIntegrationTemplateType - fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetMultihostIntegrationTypes`: %v\n", resp) + //resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetMultihostIntegrationTypes(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetMultihostIntegrationTypes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMultihostIntegrationTypes`: []MultiHostIntegrationTemplateType + fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetMultihostIntegrationTypes`: %v\n", resp) } ``` @@ -728,7 +728,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -741,18 +741,18 @@ func main() { filters := `id eq 2c91808b6ef1d43e016efba0ce470904` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *in* (optional) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetSourcesWithinMultiHost(context.Background(), multihostId).Execute() - //resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetSourcesWithinMultiHost(context.Background(), multihostId).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetSourcesWithinMultiHost``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSourcesWithinMultiHost`: []MultiHostSources - fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetSourcesWithinMultiHost`: %v\n", resp) + //resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetSourcesWithinMultiHost(context.Background(), multihostId).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetSourcesWithinMultiHost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSourcesWithinMultiHost`: []MultiHostSources + fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetSourcesWithinMultiHost`: %v\n", resp) } ``` @@ -801,7 +801,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -809,16 +809,17 @@ import ( func main() { multihostId := `2c91808568c529c60168cca6f90c1324` // string | ID of the Multi-Host Integration # string | ID of the Multi-Host Integration - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.MultiHostIntegrationAPI.TestConnectionMultiHostSources(context.Background(), multihostId).Execute() - //r, err := apiClient.V2024.MultiHostIntegrationAPI.TestConnectionMultiHostSources(context.Background(), multihostId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.TestConnectionMultiHostSources``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.MultiHostIntegrationAPI.TestConnectionMultiHostSources(context.Background(), multihostId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.TestConnectionMultiHostSources``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -869,7 +870,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -878,18 +879,18 @@ func main() { multihostId := `2c91808568c529c60168cca6f90c1326` // string | ID of the Multi-Host Integration # string | ID of the Multi-Host Integration sourceId := `2c91808568c529f60168cca6f90c1324` // string | ID of the source within the Multi-Host Integration # string | ID of the source within the Multi-Host Integration - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.TestSourceConnectionMultihost(context.Background(), multihostId, sourceId).Execute() - //resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.TestSourceConnectionMultihost(context.Background(), multihostId, sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.TestSourceConnectionMultihost``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `TestSourceConnectionMultihost`: TestSourceConnectionMultihost200Response - fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.TestSourceConnectionMultihost`: %v\n", resp) + //resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.TestSourceConnectionMultihost(context.Background(), multihostId, sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.TestSourceConnectionMultihost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TestSourceConnectionMultihost`: TestSourceConnectionMultihost200Response + fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.TestSourceConnectionMultihost`: %v\n", resp) } ``` @@ -939,7 +940,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -948,22 +949,22 @@ func main() { multihostId := `anId` // string | ID of the Multi-Host Integration to update. # string | ID of the Multi-Host Integration to update. updatemultihostsourcesrequestinner := []byte(`[{op=add, path=/description, value=MDK Multi-Host Integration 222 description}]`) // []UpdateMultiHostSourcesRequestInner | This endpoint allows you to update a Multi-Host Integration. - - var updateMultiHostSourcesRequestInner v2024.[]UpdateMultiHostSourcesRequestInner - if err := json.Unmarshal(updatemultihostsourcesrequestinner, &updateMultiHostSourcesRequestInner); err != nil { - fmt.Println("Error:", err) - return - } - + var updateMultiHostSourcesRequestInner []v2024.UpdateMultiHostSourcesRequestInner + if err := json.Unmarshal(updatemultihostsourcesrequestinner, &updateMultiHostSourcesRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.MultiHostIntegrationAPI.UpdateMultiHostSources(context.Background(), multihostId).UpdateMultiHostSourcesRequestInner(updateMultiHostSourcesRequestInner).Execute() - //r, err := apiClient.V2024.MultiHostIntegrationAPI.UpdateMultiHostSources(context.Background(), multihostId).UpdateMultiHostSourcesRequestInner(updateMultiHostSourcesRequestInner).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.UpdateMultiHostSources``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.MultiHostIntegrationAPI.UpdateMultiHostSources(context.Background(), multihostId).UpdateMultiHostSourcesRequestInner(updateMultiHostSourcesRequestInner).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.UpdateMultiHostSources``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/NonEmployeeLifecycleManagementAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/NonEmployeeLifecycleManagementAPI.md index b2b5d91d9..e469f4efc 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/NonEmployeeLifecycleManagementAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/NonEmployeeLifecycleManagementAPI.md @@ -122,7 +122,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -133,24 +133,23 @@ func main() { "comment" : "Approved by manager" }`) // NonEmployeeApprovalDecision | - - var nonEmployeeApprovalDecision v2024.NonEmployeeApprovalDecision - if err := json.Unmarshal(nonemployeeapprovaldecision, &nonEmployeeApprovalDecision); err != nil { - fmt.Println("Error:", err) - return - } - + var nonEmployeeApprovalDecision v2024.NonEmployeeApprovalDecision + if err := json.Unmarshal(nonemployeeapprovaldecision, &nonEmployeeApprovalDecision); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest(context.Background(), id).NonEmployeeApprovalDecision(nonEmployeeApprovalDecision).Execute() - //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest(context.Background(), id).NonEmployeeApprovalDecision(nonEmployeeApprovalDecision).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ApproveNonEmployeeRequest`: NonEmployeeApprovalItem - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest`: %v\n", resp) + //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest(context.Background(), id).NonEmployeeApprovalDecision(nonEmployeeApprovalDecision).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApproveNonEmployeeRequest`: NonEmployeeApprovalItem + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest`: %v\n", resp) } ``` @@ -194,7 +193,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -216,24 +215,23 @@ func main() { "startDate" : "2020-03-24T00:00:00-05:00" }`) // NonEmployeeRequestBody | Non-Employee record creation request body. - - var nonEmployeeRequestBody v2024.NonEmployeeRequestBody - if err := json.Unmarshal(nonemployeerequestbody, &nonEmployeeRequestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var nonEmployeeRequestBody v2024.NonEmployeeRequestBody + if err := json.Unmarshal(nonemployeerequestbody, &nonEmployeeRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() - //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateNonEmployeeRecord`: NonEmployeeRecord - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord`: %v\n", resp) + //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateNonEmployeeRecord`: NonEmployeeRecord + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord`: %v\n", resp) } ``` @@ -276,7 +274,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -298,24 +296,23 @@ func main() { "startDate" : "2020-03-24T00:00:00-05:00" }`) // NonEmployeeRequestBody | Non-Employee creation request body - - var nonEmployeeRequestBody v2024.NonEmployeeRequestBody - if err := json.Unmarshal(nonemployeerequestbody, &nonEmployeeRequestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var nonEmployeeRequestBody v2024.NonEmployeeRequestBody + if err := json.Unmarshal(nonemployeerequestbody, &nonEmployeeRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() - //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateNonEmployeeRequest`: NonEmployeeRequest - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest`: %v\n", resp) + //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateNonEmployeeRequest`: NonEmployeeRequest + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest`: %v\n", resp) } ``` @@ -358,7 +355,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -391,24 +388,23 @@ func main() { } ] }`) // NonEmployeeSourceRequestBody | Non-Employee source creation request body. - - var nonEmployeeSourceRequestBody v2024.NonEmployeeSourceRequestBody - if err := json.Unmarshal(nonemployeesourcerequestbody, &nonEmployeeSourceRequestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var nonEmployeeSourceRequestBody v2024.NonEmployeeSourceRequestBody + if err := json.Unmarshal(nonemployeesourcerequestbody, &nonEmployeeSourceRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource(context.Background()).NonEmployeeSourceRequestBody(nonEmployeeSourceRequestBody).Execute() - //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource(context.Background()).NonEmployeeSourceRequestBody(nonEmployeeSourceRequestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateNonEmployeeSource`: NonEmployeeSourceWithCloudExternalId - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource`: %v\n", resp) + //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource(context.Background()).NonEmployeeSourceRequestBody(nonEmployeeSourceRequestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateNonEmployeeSource`: NonEmployeeSourceWithCloudExternalId + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource`: %v\n", resp) } ``` @@ -457,7 +453,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -473,24 +469,23 @@ func main() { "required" : true }`) // NonEmployeeSchemaAttributeBody | - - var nonEmployeeSchemaAttributeBody v2024.NonEmployeeSchemaAttributeBody - if err := json.Unmarshal(nonemployeeschemaattributebody, &nonEmployeeSchemaAttributeBody); err != nil { - fmt.Println("Error:", err) - return - } - + var nonEmployeeSchemaAttributeBody v2024.NonEmployeeSchemaAttributeBody + if err := json.Unmarshal(nonemployeeschemaattributebody, &nonEmployeeSchemaAttributeBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).NonEmployeeSchemaAttributeBody(nonEmployeeSchemaAttributeBody).Execute() - //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).NonEmployeeSchemaAttributeBody(nonEmployeeSchemaAttributeBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateNonEmployeeSourceSchemaAttributes`: NonEmployeeSchemaAttribute - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes`: %v\n", resp) + //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).NonEmployeeSchemaAttributeBody(nonEmployeeSchemaAttributeBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateNonEmployeeSourceSchemaAttributes`: NonEmployeeSchemaAttribute + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes`: %v\n", resp) } ``` @@ -538,7 +533,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -546,16 +541,17 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Non-Employee record id (UUID) # string | Non-Employee record id (UUID) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord(context.Background(), id).Execute() - //r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -598,7 +594,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -606,22 +602,22 @@ import ( func main() { deletenonemployeerecordsinbulkrequest := []byte(``) // DeleteNonEmployeeRecordsInBulkRequest | Non-Employee bulk delete request body. - - var deleteNonEmployeeRecordsInBulkRequest v2024.DeleteNonEmployeeRecordsInBulkRequest - if err := json.Unmarshal(deletenonemployeerecordsinbulkrequest, &deleteNonEmployeeRecordsInBulkRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var deleteNonEmployeeRecordsInBulkRequest v2024.DeleteNonEmployeeRecordsInBulkRequest + if err := json.Unmarshal(deletenonemployeerecordsinbulkrequest, &deleteNonEmployeeRecordsInBulkRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordsInBulk(context.Background()).DeleteNonEmployeeRecordsInBulkRequest(deleteNonEmployeeRecordsInBulkRequest).Execute() - //r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordsInBulk(context.Background()).DeleteNonEmployeeRecordsInBulkRequest(deleteNonEmployeeRecordsInBulkRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordsInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordsInBulk(context.Background()).DeleteNonEmployeeRecordsInBulkRequest(deleteNonEmployeeRecordsInBulkRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordsInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -669,7 +665,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -677,16 +673,17 @@ import ( func main() { id := `ac110005-7156-1150-8171-5b292e3e0084` // string | Non-Employee request id in the UUID format # string | Non-Employee request id in the UUID format - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest(context.Background(), id).Execute() - //r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -737,7 +734,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -746,16 +743,17 @@ func main() { attributeId := `ef38f94347e94562b5bb8424a56397d8` // string | The Schema Attribute Id (UUID) # string | The Schema Attribute Id (UUID) sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() - //r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -802,7 +800,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -810,16 +808,17 @@ import ( func main() { sourceId := `e136567de87e4d029e60b3c3c55db56d` // string | Source Id # string | Source Id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource(context.Background(), sourceId).Execute() - //r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -866,7 +865,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -874,16 +873,17 @@ import ( func main() { sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() - //r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -930,7 +930,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -938,16 +938,17 @@ import ( func main() { id := `e136567de87e4d029e60b3c3c55db56d` // string | Source Id (UUID) # string | Source Id (UUID) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords(context.Background(), id).Execute() - //r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -994,7 +995,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1002,16 +1003,17 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Source Id (UUID) # string | Source Id (UUID) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate(context.Background(), id).Execute() - //r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -1062,7 +1064,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1071,18 +1073,18 @@ func main() { id := `e136567de87e4d029e60b3c3c55db56d` // string | Non-Employee approval item id (UUID) # string | Non-Employee approval item id (UUID) includeDetail := true // bool | The object nonEmployeeRequest will not be included detail when set to false. *Default value is true* (optional) # bool | The object nonEmployeeRequest will not be included detail when set to false. *Default value is true* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval(context.Background(), id).IncludeDetail(includeDetail).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeApproval`: NonEmployeeApprovalItemDetail - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval`: %v\n", resp) + //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval(context.Background(), id).IncludeDetail(includeDetail).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeApproval`: NonEmployeeApprovalItemDetail + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval`: %v\n", resp) } ``` @@ -1133,7 +1135,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1141,18 +1143,18 @@ import ( func main() { requestedFor := `2c91808280430dfb0180431a59440460` // string | The identity (UUID) of the approver for whom for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. # string | The identity (UUID) of the approver for whom for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary(context.Background(), requestedFor).Execute() - //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary(context.Background(), requestedFor).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeApprovalSummary`: NonEmployeeApprovalSummary - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary`: %v\n", resp) + //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary(context.Background(), requestedFor).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeApprovalSummary`: NonEmployeeApprovalSummary + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary`: %v\n", resp) } ``` @@ -1201,7 +1203,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1209,18 +1211,18 @@ import ( func main() { id := `e136567de87e4d029e60b3c3c55db56d` // string | Source ID (UUID) # string | Source ID (UUID) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeBulkUploadStatus`: NonEmployeeBulkUploadStatus - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus`: %v\n", resp) + //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeBulkUploadStatus`: NonEmployeeBulkUploadStatus + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus`: %v\n", resp) } ``` @@ -1268,7 +1270,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1276,18 +1278,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Non-Employee record id (UUID) # string | Non-Employee record id (UUID) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeRecord`: NonEmployeeRecord - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord`: %v\n", resp) + //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeRecord`: NonEmployeeRecord + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord`: %v\n", resp) } ``` @@ -1338,7 +1340,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1346,18 +1348,18 @@ import ( func main() { id := `ac110005-7156-1150-8171-5b292e3e0084` // string | Non-Employee request id (UUID) # string | Non-Employee request id (UUID) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeRequest`: NonEmployeeRequest - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest`: %v\n", resp) + //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeRequest`: NonEmployeeRequest + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest`: %v\n", resp) } ``` @@ -1408,7 +1410,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1416,18 +1418,18 @@ import ( func main() { requestedFor := `2c91808280430dfb0180431a59440460` // string | The identity (UUID) of the non-employee account manager for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. # string | The identity (UUID) of the non-employee account manager for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary(context.Background(), requestedFor).Execute() - //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary(context.Background(), requestedFor).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeRequestSummary`: NonEmployeeRequestSummary - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary`: %v\n", resp) + //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary(context.Background(), requestedFor).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeRequestSummary`: NonEmployeeRequestSummary + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary`: %v\n", resp) } ``` @@ -1476,7 +1478,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1485,18 +1487,18 @@ func main() { attributeId := `ef38f94347e94562b5bb8424a56397d8` // string | The Schema Attribute Id (UUID) # string | The Schema Attribute Id (UUID) sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() - //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeSchemaAttribute`: NonEmployeeSchemaAttribute - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute`: %v\n", resp) + //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeSchemaAttribute`: NonEmployeeSchemaAttribute + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute`: %v\n", resp) } ``` @@ -1547,7 +1549,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1555,18 +1557,18 @@ import ( func main() { sourceId := `2c91808b7c28b350017c2a2ec5790aa1` // string | Source Id # string | Source Id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeSource`: NonEmployeeSource - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource`: %v\n", resp) + //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeSource`: NonEmployeeSource + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource`: %v\n", resp) } ``` @@ -1614,7 +1616,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1622,18 +1624,18 @@ import ( func main() { sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeSourceSchemaAttributes`: []NonEmployeeSchemaAttribute - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes`: %v\n", resp) + //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeSourceSchemaAttributes`: []NonEmployeeSchemaAttribute + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes`: %v\n", resp) } ``` @@ -1681,7 +1683,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1690,18 +1692,18 @@ func main() { id := `e136567de87e4d029e60b3c3c55db56d` // string | Source Id (UUID) # string | Source Id (UUID) data := BINARY_DATA_HERE // *os.File | # *os.File | - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk(context.Background(), id).Data(data).Execute() - //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk(context.Background(), id).Data(data).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportNonEmployeeRecordsInBulk`: NonEmployeeBulkUploadJob - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk`: %v\n", resp) + //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk(context.Background(), id).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportNonEmployeeRecordsInBulk`: NonEmployeeBulkUploadJob + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk`: %v\n", resp) } ``` @@ -1753,7 +1755,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1766,18 +1768,18 @@ func main() { filters := `approvalStatus eq "Pending"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **approvalStatus**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **approvalStatus**: *eq* (optional) sorters := `created` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals(context.Background()).Execute() - //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals(context.Background()).RequestedFor(requestedFor).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListNonEmployeeApprovals`: []NonEmployeeApprovalItem - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals`: %v\n", resp) + //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals(context.Background()).RequestedFor(requestedFor).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListNonEmployeeApprovals`: []NonEmployeeApprovalItem + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals`: %v\n", resp) } ``` @@ -1826,7 +1828,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1838,18 +1840,18 @@ func main() { sorters := `accountName,sourceId` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, accountName, sourceId, manager, firstName, lastName, email, phone, startDate, endDate, created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, accountName, sourceId, manager, firstName, lastName, email, phone, startDate, endDate, created, modified** (optional) filters := `sourceId eq "2c91808568c529c60168cca6f90c1313"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **sourceId**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **sourceId**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords(context.Background()).Execute() - //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords(context.Background()).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListNonEmployeeRecords`: []NonEmployeeRecord - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords`: %v\n", resp) + //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords(context.Background()).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListNonEmployeeRecords`: []NonEmployeeRecord + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords`: %v\n", resp) } ``` @@ -1901,7 +1903,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1914,18 +1916,18 @@ func main() { sorters := `created,approvalStatus` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, approvalStatus, firstName, lastName, email, phone, accountName, startDate, endDate** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, approvalStatus, firstName, lastName, email, phone, accountName, startDate, endDate** (optional) filters := `sourceId eq "2c91808568c529c60168cca6f90c1313"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **sourceId**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **sourceId**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests(context.Background()).RequestedFor(requestedFor).Execute() - //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests(context.Background()).RequestedFor(requestedFor).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListNonEmployeeRequests`: []NonEmployeeRequest - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests`: %v\n", resp) + //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests(context.Background()).RequestedFor(requestedFor).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListNonEmployeeRequests`: []NonEmployeeRequest + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests`: %v\n", resp) } ``` @@ -1975,7 +1977,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1988,18 +1990,18 @@ func main() { nonEmployeeCount := true // bool | Flag that determines whether the API will return a non-employee count associated with the source. (optional) (default to false) # bool | Flag that determines whether the API will return a non-employee count associated with the source. (optional) (default to false) sorters := `name,created` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, sourceId** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, sourceId** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources(context.Background()).Execute() - //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources(context.Background()).Limit(limit).Offset(offset).Count(count).RequestedFor(requestedFor).NonEmployeeCount(nonEmployeeCount).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListNonEmployeeSources`: []NonEmployeeSourceWithNECount - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources`: %v\n", resp) + //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources(context.Background()).Limit(limit).Offset(offset).Count(count).RequestedFor(requestedFor).NonEmployeeCount(nonEmployeeCount).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListNonEmployeeSources`: []NonEmployeeSourceWithNECount + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources`: %v\n", resp) } ``` @@ -2051,7 +2053,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2060,24 +2062,23 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Non-employee record id (UUID) # string | Non-employee record id (UUID) jsonpatchoperation := []byte(`[{op=replace, path=/endDate, value=2019-08-23T18:40:35.772Z}]`) // []JsonPatchOperation | A list of non-employee update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Attributes are restricted by user type. Owner of source can update end date. Organization admins can update all available fields. - - var jsonPatchOperation v2024.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2024.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchNonEmployeeRecord`: NonEmployeeRecord - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord`: %v\n", resp) + //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchNonEmployeeRecord`: NonEmployeeRecord + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord`: %v\n", resp) } ``` @@ -2129,7 +2130,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2139,24 +2140,23 @@ func main() { sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id jsonpatchoperation := []byte(`[{op=replace, path=/label, value={new attribute label=null}}]`) // []JsonPatchOperation | A list of schema attribute update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following properties are allowed for update ':' 'label', 'helpText', 'placeholder', 'required'. - - var jsonPatchOperation v2024.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2024.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchNonEmployeeSchemaAttribute`: NonEmployeeSchemaAttribute - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute`: %v\n", resp) + //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchNonEmployeeSchemaAttribute`: NonEmployeeSchemaAttribute + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute`: %v\n", resp) } ``` @@ -2204,7 +2204,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2213,24 +2213,23 @@ func main() { sourceId := `e136567de87e4d029e60b3c3c55db56d` // string | Source Id # string | Source Id jsonpatchoperation := []byte(`[{op=replace, path=/name, value={new name=null}}, {op=replace, path=/approvers, value=[2c91809f703bb37a017040a2fe8748c7, 48b1f463c9e8427db5a5071bd81914b8]}]`) // []JsonPatchOperation | A list of non-employee source update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - - var jsonPatchOperation v2024.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2024.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource(context.Background(), sourceId).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource(context.Background(), sourceId).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchNonEmployeeSource`: NonEmployeeSource - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource`: %v\n", resp) + //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource(context.Background(), sourceId).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchNonEmployeeSource`: NonEmployeeSource + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource`: %v\n", resp) } ``` @@ -2278,7 +2277,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2289,24 +2288,23 @@ func main() { "comment" : "approved" }`) // NonEmployeeRejectApprovalDecision | - - var nonEmployeeRejectApprovalDecision v2024.NonEmployeeRejectApprovalDecision - if err := json.Unmarshal(nonemployeerejectapprovaldecision, &nonEmployeeRejectApprovalDecision); err != nil { - fmt.Println("Error:", err) - return - } - + var nonEmployeeRejectApprovalDecision v2024.NonEmployeeRejectApprovalDecision + if err := json.Unmarshal(nonemployeerejectapprovaldecision, &nonEmployeeRejectApprovalDecision); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest(context.Background(), id).NonEmployeeRejectApprovalDecision(nonEmployeeRejectApprovalDecision).Execute() - //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest(context.Background(), id).NonEmployeeRejectApprovalDecision(nonEmployeeRejectApprovalDecision).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `RejectNonEmployeeRequest`: NonEmployeeApprovalItem - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest`: %v\n", resp) + //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest(context.Background(), id).NonEmployeeRejectApprovalDecision(nonEmployeeRejectApprovalDecision).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RejectNonEmployeeRequest`: NonEmployeeApprovalItem + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest`: %v\n", resp) } ``` @@ -2358,7 +2356,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -2381,24 +2379,23 @@ func main() { "startDate" : "2020-03-24T00:00:00-05:00" }`) // NonEmployeeRequestBody | Non-employee record creation request body. Attributes are restricted by user type. Owner of source can update end date. Organization admins can update all available fields. - - var nonEmployeeRequestBody v2024.NonEmployeeRequestBody - if err := json.Unmarshal(nonemployeerequestbody, &nonEmployeeRequestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var nonEmployeeRequestBody v2024.NonEmployeeRequestBody + if err := json.Unmarshal(nonemployeerequestbody, &nonEmployeeRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord(context.Background(), id).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() - //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord(context.Background(), id).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateNonEmployeeRecord`: NonEmployeeRecord - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord`: %v\n", resp) + //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord(context.Background(), id).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateNonEmployeeRecord`: NonEmployeeRecord + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/NotificationsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/NotificationsAPI.md index 725d415a9..fe6520c27 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/NotificationsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/NotificationsAPI.md @@ -81,7 +81,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -92,24 +92,23 @@ func main() { "domain" : "sailpoint.com" }`) // DomainAddress | - - var domainAddress v2024.DomainAddress - if err := json.Unmarshal(domainaddress, &domainAddress); err != nil { - fmt.Println("Error:", err) - return - } - + var domainAddress v2024.DomainAddress + if err := json.Unmarshal(domainaddress, &domainAddress); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NotificationsAPI.CreateDomainDkim(context.Background()).XSailPointExperimental(xSailPointExperimental).DomainAddress(domainAddress).Execute() - //resp, r, err := apiClient.V2024.NotificationsAPI.CreateDomainDkim(context.Background()).XSailPointExperimental(xSailPointExperimental).DomainAddress(domainAddress).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.CreateDomainDkim``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateDomainDkim`: DomainStatusDto - fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.CreateDomainDkim`: %v\n", resp) + //resp, r, err := apiClient.V2024.NotificationsAPI.CreateDomainDkim(context.Background()).XSailPointExperimental(xSailPointExperimental).DomainAddress(domainAddress).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.CreateDomainDkim``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateDomainDkim`: DomainStatusDto + fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.CreateDomainDkim`: %v\n", resp) } ``` @@ -166,7 +165,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -192,24 +191,23 @@ func main() { "key" : "cloud_manual_work_item_summary" }`) // TemplateDto | - - var templateDto v2024.TemplateDto - if err := json.Unmarshal(templatedto, &templateDto); err != nil { - fmt.Println("Error:", err) - return - } - + var templateDto v2024.TemplateDto + if err := json.Unmarshal(templatedto, &templateDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NotificationsAPI.CreateNotificationTemplate(context.Background()).XSailPointExperimental(xSailPointExperimental).TemplateDto(templateDto).Execute() - //resp, r, err := apiClient.V2024.NotificationsAPI.CreateNotificationTemplate(context.Background()).XSailPointExperimental(xSailPointExperimental).TemplateDto(templateDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.CreateNotificationTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateNotificationTemplate`: TemplateDto - fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.CreateNotificationTemplate`: %v\n", resp) + //resp, r, err := apiClient.V2024.NotificationsAPI.CreateNotificationTemplate(context.Background()).XSailPointExperimental(xSailPointExperimental).TemplateDto(templateDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.CreateNotificationTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateNotificationTemplate`: TemplateDto + fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.CreateNotificationTemplate`: %v\n", resp) } ``` @@ -264,7 +262,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -278,24 +276,23 @@ func main() { "email" : "sender@example.com" }`) // EmailStatusDto | - - var emailStatusDto v2024.EmailStatusDto - if err := json.Unmarshal(emailstatusdto, &emailStatusDto); err != nil { - fmt.Println("Error:", err) - return - } - + var emailStatusDto v2024.EmailStatusDto + if err := json.Unmarshal(emailstatusdto, &emailStatusDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NotificationsAPI.CreateVerifiedFromAddress(context.Background()).XSailPointExperimental(xSailPointExperimental).EmailStatusDto(emailStatusDto).Execute() - //resp, r, err := apiClient.V2024.NotificationsAPI.CreateVerifiedFromAddress(context.Background()).XSailPointExperimental(xSailPointExperimental).EmailStatusDto(emailStatusDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.CreateVerifiedFromAddress``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateVerifiedFromAddress`: EmailStatusDto - fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.CreateVerifiedFromAddress`: %v\n", resp) + //resp, r, err := apiClient.V2024.NotificationsAPI.CreateVerifiedFromAddress(context.Background()).XSailPointExperimental(xSailPointExperimental).EmailStatusDto(emailStatusDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.CreateVerifiedFromAddress``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateVerifiedFromAddress`: EmailStatusDto + fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.CreateVerifiedFromAddress`: %v\n", resp) } ``` @@ -350,7 +347,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -359,22 +356,22 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") templatebulkdeletedto := []byte(``) // []TemplateBulkDeleteDto | - - var templateBulkDeleteDto v2024.[]TemplateBulkDeleteDto - if err := json.Unmarshal(templatebulkdeletedto, &templateBulkDeleteDto); err != nil { - fmt.Println("Error:", err) - return - } - + var templateBulkDeleteDto []v2024.TemplateBulkDeleteDto + if err := json.Unmarshal(templatebulkdeletedto, &templateBulkDeleteDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.NotificationsAPI.DeleteNotificationTemplatesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).TemplateBulkDeleteDto(templateBulkDeleteDto).Execute() - //r, err := apiClient.V2024.NotificationsAPI.DeleteNotificationTemplatesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).TemplateBulkDeleteDto(templateBulkDeleteDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.DeleteNotificationTemplatesInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.NotificationsAPI.DeleteNotificationTemplatesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).TemplateBulkDeleteDto(templateBulkDeleteDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.DeleteNotificationTemplatesInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -433,7 +430,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -442,16 +439,17 @@ func main() { id := `id_example` // string | # string | xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.NotificationsAPI.DeleteVerifiedFromAddress(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //r, err := apiClient.V2024.NotificationsAPI.DeleteVerifiedFromAddress(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.DeleteVerifiedFromAddress``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.NotificationsAPI.DeleteVerifiedFromAddress(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.DeleteVerifiedFromAddress``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -505,7 +503,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -513,18 +511,18 @@ import ( func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NotificationsAPI.GetDkimAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.NotificationsAPI.GetDkimAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.GetDkimAttributes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetDkimAttributes`: []DkimAttributes - fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.GetDkimAttributes`: %v\n", resp) + //resp, r, err := apiClient.V2024.NotificationsAPI.GetDkimAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.GetDkimAttributes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDkimAttributes`: []DkimAttributes + fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.GetDkimAttributes`: %v\n", resp) } ``` @@ -579,7 +577,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -588,18 +586,18 @@ func main() { id := `bobsmith@sailpoint.com` // string | Returns the MX and TXT record to be put in your DNS, as well as the MAIL FROM domain status # string | Returns the MX and TXT record to be put in your DNS, as well as the MAIL FROM domain status xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NotificationsAPI.GetMailFromAttributes(context.Background()).Id(id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.NotificationsAPI.GetMailFromAttributes(context.Background()).Id(id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.GetMailFromAttributes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMailFromAttributes`: MailFromAttributes - fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.GetMailFromAttributes`: %v\n", resp) + //resp, r, err := apiClient.V2024.NotificationsAPI.GetMailFromAttributes(context.Background()).Id(id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.GetMailFromAttributes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMailFromAttributes`: MailFromAttributes + fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.GetMailFromAttributes`: %v\n", resp) } ``` @@ -658,7 +656,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -667,18 +665,18 @@ func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the Notification Template # string | Id of the Notification Template xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NotificationsAPI.GetNotificationTemplate(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.NotificationsAPI.GetNotificationTemplate(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.GetNotificationTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNotificationTemplate`: TemplateDto - fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.GetNotificationTemplate`: %v\n", resp) + //resp, r, err := apiClient.V2024.NotificationsAPI.GetNotificationTemplate(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.GetNotificationTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNotificationTemplate`: TemplateDto + fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.GetNotificationTemplate`: %v\n", resp) } ``` @@ -733,7 +731,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -741,18 +739,18 @@ import ( func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NotificationsAPI.GetNotificationsTemplateContext(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.NotificationsAPI.GetNotificationsTemplateContext(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.GetNotificationsTemplateContext``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNotificationsTemplateContext`: NotificationTemplateContext - fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.GetNotificationsTemplateContext`: %v\n", resp) + //resp, r, err := apiClient.V2024.NotificationsAPI.GetNotificationsTemplateContext(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.GetNotificationsTemplateContext``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNotificationsTemplateContext`: NotificationTemplateContext + fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.GetNotificationsTemplateContext`: %v\n", resp) } ``` @@ -811,7 +809,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -824,18 +822,18 @@ func main() { filters := `email eq "john.doe@company.com"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **email**: *eq, ge, le, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **email**: *eq, ge, le, sw* (optional) sorters := `email` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **email** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **email** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NotificationsAPI.ListFromAddresses(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.NotificationsAPI.ListFromAddresses(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.ListFromAddresses``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListFromAddresses`: []EmailStatusDto - fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.ListFromAddresses`: %v\n", resp) + //resp, r, err := apiClient.V2024.NotificationsAPI.ListFromAddresses(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.ListFromAddresses``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListFromAddresses`: []EmailStatusDto + fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.ListFromAddresses`: %v\n", resp) } ``` @@ -889,7 +887,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -897,18 +895,18 @@ import ( func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NotificationsAPI.ListNotificationPreferences(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.NotificationsAPI.ListNotificationPreferences(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.ListNotificationPreferences``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListNotificationPreferences`: PreferencesDto - fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.ListNotificationPreferences`: %v\n", resp) + //resp, r, err := apiClient.V2024.NotificationsAPI.ListNotificationPreferences(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.ListNotificationPreferences``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListNotificationPreferences`: PreferencesDto + fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.ListNotificationPreferences`: %v\n", resp) } ``` @@ -965,7 +963,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -976,18 +974,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) filters := `key eq "cloud_manual_work_item_summary"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **key**: *eq, in, sw* **medium**: *eq, sw* **locale**: *eq, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **key**: *eq, in, sw* **medium**: *eq, sw* **locale**: *eq, sw* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NotificationsAPI.ListNotificationTemplateDefaults(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.NotificationsAPI.ListNotificationTemplateDefaults(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.ListNotificationTemplateDefaults``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListNotificationTemplateDefaults`: []TemplateDtoDefault - fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.ListNotificationTemplateDefaults`: %v\n", resp) + //resp, r, err := apiClient.V2024.NotificationsAPI.ListNotificationTemplateDefaults(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.ListNotificationTemplateDefaults``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListNotificationTemplateDefaults`: []TemplateDtoDefault + fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.ListNotificationTemplateDefaults`: %v\n", resp) } ``` @@ -1044,7 +1042,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1055,18 +1053,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) filters := `medium eq "EMAIL"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **key**: *eq, in, sw* **medium**: *eq, sw* **locale**: *eq, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **key**: *eq, in, sw* **medium**: *eq, sw* **locale**: *eq, sw* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NotificationsAPI.ListNotificationTemplates(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.NotificationsAPI.ListNotificationTemplates(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.ListNotificationTemplates``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListNotificationTemplates`: []TemplateDto - fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.ListNotificationTemplates`: %v\n", resp) + //resp, r, err := apiClient.V2024.NotificationsAPI.ListNotificationTemplates(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.ListNotificationTemplates``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListNotificationTemplates`: []TemplateDto + fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.ListNotificationTemplates`: %v\n", resp) } ``` @@ -1121,7 +1119,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1133,24 +1131,23 @@ func main() { "mailFromDomain" : "example.sailpoint.com" }`) // MailFromAttributesDto | - - var mailFromAttributesDto v2024.MailFromAttributesDto - if err := json.Unmarshal(mailfromattributesdto, &mailFromAttributesDto); err != nil { - fmt.Println("Error:", err) - return - } - + var mailFromAttributesDto v2024.MailFromAttributesDto + if err := json.Unmarshal(mailfromattributesdto, &mailFromAttributesDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NotificationsAPI.PutMailFromAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).MailFromAttributesDto(mailFromAttributesDto).Execute() - //resp, r, err := apiClient.V2024.NotificationsAPI.PutMailFromAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).MailFromAttributesDto(mailFromAttributesDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.PutMailFromAttributes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutMailFromAttributes`: MailFromAttributes - fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.PutMailFromAttributes`: %v\n", resp) + //resp, r, err := apiClient.V2024.NotificationsAPI.PutMailFromAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).MailFromAttributesDto(mailFromAttributesDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.PutMailFromAttributes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutMailFromAttributes`: MailFromAttributes + fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.PutMailFromAttributes`: %v\n", resp) } ``` @@ -1205,7 +1202,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1218,22 +1215,22 @@ func main() { "key" : "cloud_manual_work_item_summary" }`) // SendTestNotificationRequestDto | - - var sendTestNotificationRequestDto v2024.SendTestNotificationRequestDto - if err := json.Unmarshal(sendtestnotificationrequestdto, &sendTestNotificationRequestDto); err != nil { - fmt.Println("Error:", err) - return - } - + var sendTestNotificationRequestDto v2024.SendTestNotificationRequestDto + if err := json.Unmarshal(sendtestnotificationrequestdto, &sendTestNotificationRequestDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.NotificationsAPI.SendTestNotification(context.Background()).XSailPointExperimental(xSailPointExperimental).SendTestNotificationRequestDto(sendTestNotificationRequestDto).Execute() - //r, err := apiClient.V2024.NotificationsAPI.SendTestNotification(context.Background()).XSailPointExperimental(xSailPointExperimental).SendTestNotificationRequestDto(sendTestNotificationRequestDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.SendTestNotification``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.NotificationsAPI.SendTestNotification(context.Background()).XSailPointExperimental(xSailPointExperimental).SendTestNotificationRequestDto(sendTestNotificationRequestDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.SendTestNotification``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/OAuthClientsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/OAuthClientsAPI.md index d862ae3a2..942e0f06c 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/OAuthClientsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/OAuthClientsAPI.md @@ -62,7 +62,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -86,24 +86,23 @@ func main() { "claimsSupported" : false }`) // CreateOAuthClientRequest | - - var createOAuthClientRequest v2024.CreateOAuthClientRequest - if err := json.Unmarshal(createoauthclientrequest, &createOAuthClientRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var createOAuthClientRequest v2024.CreateOAuthClientRequest + if err := json.Unmarshal(createoauthclientrequest, &createOAuthClientRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.OAuthClientsAPI.CreateOauthClient(context.Background()).CreateOAuthClientRequest(createOAuthClientRequest).Execute() - //resp, r, err := apiClient.V2024.OAuthClientsAPI.CreateOauthClient(context.Background()).CreateOAuthClientRequest(createOAuthClientRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.CreateOauthClient``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateOauthClient`: CreateOAuthClientResponse - fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.CreateOauthClient`: %v\n", resp) + //resp, r, err := apiClient.V2024.OAuthClientsAPI.CreateOauthClient(context.Background()).CreateOAuthClientRequest(createOAuthClientRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.CreateOauthClient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateOauthClient`: CreateOAuthClientResponse + fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.CreateOauthClient`: %v\n", resp) } ``` @@ -150,7 +149,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -158,16 +157,17 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The OAuth client id # string | The OAuth client id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.OAuthClientsAPI.DeleteOauthClient(context.Background(), id).Execute() - //r, err := apiClient.V2024.OAuthClientsAPI.DeleteOauthClient(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.DeleteOauthClient``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.OAuthClientsAPI.DeleteOauthClient(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.DeleteOauthClient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -214,7 +214,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -222,18 +222,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The OAuth client id # string | The OAuth client id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.OAuthClientsAPI.GetOauthClient(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.OAuthClientsAPI.GetOauthClient(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.GetOauthClient``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetOauthClient`: GetOAuthClientResponse - fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.GetOauthClient`: %v\n", resp) + //resp, r, err := apiClient.V2024.OAuthClientsAPI.GetOauthClient(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.GetOauthClient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetOauthClient`: GetOAuthClientResponse + fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.GetOauthClient`: %v\n", resp) } ``` @@ -276,7 +276,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -284,18 +284,18 @@ import ( func main() { filters := `lastUsed le 2023-02-05T10:59:27.214Z` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **lastUsed**: *le, isnull* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **lastUsed**: *le, isnull* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.OAuthClientsAPI.ListOauthClients(context.Background()).Execute() - //resp, r, err := apiClient.V2024.OAuthClientsAPI.ListOauthClients(context.Background()).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.ListOauthClients``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListOauthClients`: []GetOAuthClientResponse - fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.ListOauthClients`: %v\n", resp) + //resp, r, err := apiClient.V2024.OAuthClientsAPI.ListOauthClients(context.Background()).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.ListOauthClients``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListOauthClients`: []GetOAuthClientResponse + fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.ListOauthClients`: %v\n", resp) } ``` @@ -343,7 +343,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -352,24 +352,23 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The OAuth client id # string | The OAuth client id jsonpatchoperation := []byte(`[{op=replace, path=/strongAuthSupported, value=true}, {op=replace, path=/businessName, value=acme-solar}]`) // []JsonPatchOperation | A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * tenant * businessName * homepageUrl * name * description * accessTokenValiditySeconds * refreshTokenValiditySeconds * redirectUris * grantTypes * accessType * enabled * strongAuthSupported * claimsSupported - - var jsonPatchOperation v2024.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2024.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.OAuthClientsAPI.PatchOauthClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2024.OAuthClientsAPI.PatchOauthClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.PatchOauthClient``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchOauthClient`: GetOAuthClientResponse - fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.PatchOauthClient`: %v\n", resp) + //resp, r, err := apiClient.V2024.OAuthClientsAPI.PatchOauthClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.PatchOauthClient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchOauthClient`: GetOAuthClientResponse + fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.PatchOauthClient`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/OrgConfigAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/OrgConfigAPI.md index 19c0e87da..e507a0cf4 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/OrgConfigAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/OrgConfigAPI.md @@ -70,7 +70,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -78,18 +78,18 @@ import ( func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.OrgConfigAPI.GetOrgConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.OrgConfigAPI.GetOrgConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OrgConfigAPI.GetOrgConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetOrgConfig`: OrgConfig - fmt.Fprintf(os.Stdout, "Response from `OrgConfigAPI.GetOrgConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.OrgConfigAPI.GetOrgConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrgConfigAPI.GetOrgConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetOrgConfig`: OrgConfig + fmt.Fprintf(os.Stdout, "Response from `OrgConfigAPI.GetOrgConfig`: %v\n", resp) } ``` @@ -146,7 +146,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -157,18 +157,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.OrgConfigAPI.GetValidTimeZones(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.OrgConfigAPI.GetValidTimeZones(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OrgConfigAPI.GetValidTimeZones``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetValidTimeZones`: []string - fmt.Fprintf(os.Stdout, "Response from `OrgConfigAPI.GetValidTimeZones`: %v\n", resp) + //resp, r, err := apiClient.V2024.OrgConfigAPI.GetValidTimeZones(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrgConfigAPI.GetValidTimeZones``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetValidTimeZones`: []string + fmt.Fprintf(os.Stdout, "Response from `OrgConfigAPI.GetValidTimeZones`: %v\n", resp) } ``` @@ -223,7 +223,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -232,24 +232,23 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") jsonpatchoperation := []byte(`[{op=replace, path=/timeZone, value=America/Toronto}]`) // []JsonPatchOperation | A list of schema attribute update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - - var jsonPatchOperation v2024.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2024.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.OrgConfigAPI.PatchOrgConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2024.OrgConfigAPI.PatchOrgConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OrgConfigAPI.PatchOrgConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchOrgConfig`: OrgConfig - fmt.Fprintf(os.Stdout, "Response from `OrgConfigAPI.PatchOrgConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.OrgConfigAPI.PatchOrgConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrgConfigAPI.PatchOrgConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchOrgConfig`: OrgConfig + fmt.Fprintf(os.Stdout, "Response from `OrgConfigAPI.PatchOrgConfig`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/PasswordConfigurationAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/PasswordConfigurationAPI.md index 96d01e33d..4ceb02473 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/PasswordConfigurationAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/PasswordConfigurationAPI.md @@ -65,7 +65,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -78,24 +78,23 @@ func main() { "customInstructionsEnabled" : true }`) // PasswordOrgConfig | - - var passwordOrgConfig v2024.PasswordOrgConfig - if err := json.Unmarshal(passwordorgconfig, &passwordOrgConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var passwordOrgConfig v2024.PasswordOrgConfig + if err := json.Unmarshal(passwordorgconfig, &passwordOrgConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PasswordConfigurationAPI.CreatePasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() - //resp, r, err := apiClient.V2024.PasswordConfigurationAPI.CreatePasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordConfigurationAPI.CreatePasswordOrgConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreatePasswordOrgConfig`: PasswordOrgConfig - fmt.Fprintf(os.Stdout, "Response from `PasswordConfigurationAPI.CreatePasswordOrgConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.PasswordConfigurationAPI.CreatePasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordConfigurationAPI.CreatePasswordOrgConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreatePasswordOrgConfig`: PasswordOrgConfig + fmt.Fprintf(os.Stdout, "Response from `PasswordConfigurationAPI.CreatePasswordOrgConfig`: %v\n", resp) } ``` @@ -134,25 +133,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PasswordConfigurationAPI.GetPasswordOrgConfig(context.Background()).Execute() - //resp, r, err := apiClient.V2024.PasswordConfigurationAPI.GetPasswordOrgConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordConfigurationAPI.GetPasswordOrgConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPasswordOrgConfig`: PasswordOrgConfig - fmt.Fprintf(os.Stdout, "Response from `PasswordConfigurationAPI.GetPasswordOrgConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.PasswordConfigurationAPI.GetPasswordOrgConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordConfigurationAPI.GetPasswordOrgConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPasswordOrgConfig`: PasswordOrgConfig + fmt.Fprintf(os.Stdout, "Response from `PasswordConfigurationAPI.GetPasswordOrgConfig`: %v\n", resp) } ``` @@ -197,7 +196,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -210,24 +209,23 @@ func main() { "customInstructionsEnabled" : true }`) // PasswordOrgConfig | - - var passwordOrgConfig v2024.PasswordOrgConfig - if err := json.Unmarshal(passwordorgconfig, &passwordOrgConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var passwordOrgConfig v2024.PasswordOrgConfig + if err := json.Unmarshal(passwordorgconfig, &passwordOrgConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PasswordConfigurationAPI.PutPasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() - //resp, r, err := apiClient.V2024.PasswordConfigurationAPI.PutPasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordConfigurationAPI.PutPasswordOrgConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutPasswordOrgConfig`: PasswordOrgConfig - fmt.Fprintf(os.Stdout, "Response from `PasswordConfigurationAPI.PutPasswordOrgConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.PasswordConfigurationAPI.PutPasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordConfigurationAPI.PutPasswordOrgConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutPasswordOrgConfig`: PasswordOrgConfig + fmt.Fprintf(os.Stdout, "Response from `PasswordConfigurationAPI.PutPasswordOrgConfig`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/PasswordDictionaryAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/PasswordDictionaryAPI.md index 0cf2360c5..e82176416 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/PasswordDictionaryAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/PasswordDictionaryAPI.md @@ -127,25 +127,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PasswordDictionaryAPI.GetPasswordDictionary(context.Background()).Execute() - //resp, r, err := apiClient.V2024.PasswordDictionaryAPI.GetPasswordDictionary(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordDictionaryAPI.GetPasswordDictionary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPasswordDictionary`: string - fmt.Fprintf(os.Stdout, "Response from `PasswordDictionaryAPI.GetPasswordDictionary`: %v\n", resp) + //resp, r, err := apiClient.V2024.PasswordDictionaryAPI.GetPasswordDictionary(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordDictionaryAPI.GetPasswordDictionary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPasswordDictionary`: string + fmt.Fprintf(os.Stdout, "Response from `PasswordDictionaryAPI.GetPasswordDictionary`: %v\n", resp) } ``` @@ -216,7 +216,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -224,16 +224,17 @@ import ( func main() { file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.PasswordDictionaryAPI.PutPasswordDictionary(context.Background()).Execute() - //r, err := apiClient.V2024.PasswordDictionaryAPI.PutPasswordDictionary(context.Background()).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordDictionaryAPI.PutPasswordDictionary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.PasswordDictionaryAPI.PutPasswordDictionary(context.Background()).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordDictionaryAPI.PutPasswordDictionary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/PasswordManagementAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/PasswordManagementAPI.md index 3819669f5..f498c42b9 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/PasswordManagementAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/PasswordManagementAPI.md @@ -94,7 +94,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -107,24 +107,23 @@ func main() { "userId" : "Abby.Smith" }`) // PasswordDigitTokenReset | - - var passwordDigitTokenReset v2024.PasswordDigitTokenReset - if err := json.Unmarshal(passworddigittokenreset, &passwordDigitTokenReset); err != nil { - fmt.Println("Error:", err) - return - } - + var passwordDigitTokenReset v2024.PasswordDigitTokenReset + if err := json.Unmarshal(passworddigittokenreset, &passwordDigitTokenReset); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PasswordManagementAPI.CreateDigitToken(context.Background()).XSailPointExperimental(xSailPointExperimental).PasswordDigitTokenReset(passwordDigitTokenReset).Execute() - //resp, r, err := apiClient.V2024.PasswordManagementAPI.CreateDigitToken(context.Background()).XSailPointExperimental(xSailPointExperimental).PasswordDigitTokenReset(passwordDigitTokenReset).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordManagementAPI.CreateDigitToken``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateDigitToken`: PasswordDigitToken - fmt.Fprintf(os.Stdout, "Response from `PasswordManagementAPI.CreateDigitToken`: %v\n", resp) + //resp, r, err := apiClient.V2024.PasswordManagementAPI.CreateDigitToken(context.Background()).XSailPointExperimental(xSailPointExperimental).PasswordDigitTokenReset(passwordDigitTokenReset).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordManagementAPI.CreateDigitToken``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateDigitToken`: PasswordDigitToken + fmt.Fprintf(os.Stdout, "Response from `PasswordManagementAPI.CreateDigitToken`: %v\n", resp) } ``` @@ -171,7 +170,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -179,18 +178,18 @@ import ( func main() { id := `089899f13a8f4da7824996191587bab9` // string | Password change request ID # string | Password change request ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PasswordManagementAPI.GetPasswordChangeStatus(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.PasswordManagementAPI.GetPasswordChangeStatus(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordManagementAPI.GetPasswordChangeStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPasswordChangeStatus`: PasswordStatus - fmt.Fprintf(os.Stdout, "Response from `PasswordManagementAPI.GetPasswordChangeStatus`: %v\n", resp) + //resp, r, err := apiClient.V2024.PasswordManagementAPI.GetPasswordChangeStatus(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordManagementAPI.GetPasswordChangeStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPasswordChangeStatus`: PasswordStatus + fmt.Fprintf(os.Stdout, "Response from `PasswordManagementAPI.GetPasswordChangeStatus`: %v\n", resp) } ``` @@ -234,7 +233,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -245,24 +244,23 @@ func main() { "userName" : "Abby.Smith" }`) // PasswordInfoQueryDTO | - - var passwordInfoQueryDTO v2024.PasswordInfoQueryDTO - if err := json.Unmarshal(passwordinfoquerydto, &passwordInfoQueryDTO); err != nil { - fmt.Println("Error:", err) - return - } - + var passwordInfoQueryDTO v2024.PasswordInfoQueryDTO + if err := json.Unmarshal(passwordinfoquerydto, &passwordInfoQueryDTO); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PasswordManagementAPI.QueryPasswordInfo(context.Background()).PasswordInfoQueryDTO(passwordInfoQueryDTO).Execute() - //resp, r, err := apiClient.V2024.PasswordManagementAPI.QueryPasswordInfo(context.Background()).PasswordInfoQueryDTO(passwordInfoQueryDTO).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordManagementAPI.QueryPasswordInfo``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `QueryPasswordInfo`: PasswordInfo - fmt.Fprintf(os.Stdout, "Response from `PasswordManagementAPI.QueryPasswordInfo`: %v\n", resp) + //resp, r, err := apiClient.V2024.PasswordManagementAPI.QueryPasswordInfo(context.Background()).PasswordInfoQueryDTO(passwordInfoQueryDTO).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordManagementAPI.QueryPasswordInfo``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `QueryPasswordInfo`: PasswordInfo + fmt.Fprintf(os.Stdout, "Response from `PasswordManagementAPI.QueryPasswordInfo`: %v\n", resp) } ``` @@ -324,7 +322,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -338,24 +336,23 @@ func main() { "encryptedPassword" : "XzN+YwKgr2C+InkMYFMBG3UtjMEw5ZIql/XFlXo8cJNeslmkplx6vn4kd4/43IF9STBk5RnzR6XmjpEO+FwHDoiBwYZAkAZK/Iswxk4OdybG6Y4MStJCOCiK8osKr35IMMSV/mbO4wAeltoCk7daTWzTGLiI6UaT5tf+F2EgdjJZ7YqM8W8r7aUWsm3p2Xt01Y46ZRx0QaM91QruiIx2rECFT2pUO0wr+7oQ77jypATyGWRtADsu3YcvCk/6U5MqCnXMzKBcRas7NnZdSL/d5H1GglVGz3VLPMaivG4/oL4chOMmFCRl/zVsGxZ9RhN8rxsRGFFKn+rhExTi+bax3A==" }`) // PasswordChangeRequest | - - var passwordChangeRequest v2024.PasswordChangeRequest - if err := json.Unmarshal(passwordchangerequest, &passwordChangeRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var passwordChangeRequest v2024.PasswordChangeRequest + if err := json.Unmarshal(passwordchangerequest, &passwordChangeRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PasswordManagementAPI.SetPassword(context.Background()).PasswordChangeRequest(passwordChangeRequest).Execute() - //resp, r, err := apiClient.V2024.PasswordManagementAPI.SetPassword(context.Background()).PasswordChangeRequest(passwordChangeRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordManagementAPI.SetPassword``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetPassword`: PasswordChangeResponse - fmt.Fprintf(os.Stdout, "Response from `PasswordManagementAPI.SetPassword`: %v\n", resp) + //resp, r, err := apiClient.V2024.PasswordManagementAPI.SetPassword(context.Background()).PasswordChangeRequest(passwordChangeRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordManagementAPI.SetPassword``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetPassword`: PasswordChangeResponse + fmt.Fprintf(os.Stdout, "Response from `PasswordManagementAPI.SetPassword`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/PasswordPoliciesAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/PasswordPoliciesAPI.md index cfc4fa94d..52a30c6ab 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/PasswordPoliciesAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/PasswordPoliciesAPI.md @@ -67,7 +67,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -107,24 +107,23 @@ func main() { "maxLength" : 25 }`) // PasswordPolicyV3Dto | - - var passwordPolicyV3Dto v2024.PasswordPolicyV3Dto - if err := json.Unmarshal(passwordpolicyv3dto, &passwordPolicyV3Dto); err != nil { - fmt.Println("Error:", err) - return - } - + var passwordPolicyV3Dto v2024.PasswordPolicyV3Dto + if err := json.Unmarshal(passwordpolicyv3dto, &passwordPolicyV3Dto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PasswordPoliciesAPI.CreatePasswordPolicy(context.Background()).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() - //resp, r, err := apiClient.V2024.PasswordPoliciesAPI.CreatePasswordPolicy(context.Background()).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.CreatePasswordPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreatePasswordPolicy`: PasswordPolicyV3Dto - fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.CreatePasswordPolicy`: %v\n", resp) + //resp, r, err := apiClient.V2024.PasswordPoliciesAPI.CreatePasswordPolicy(context.Background()).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.CreatePasswordPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreatePasswordPolicy`: PasswordPolicyV3Dto + fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.CreatePasswordPolicy`: %v\n", resp) } ``` @@ -171,7 +170,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -179,16 +178,17 @@ import ( func main() { id := `ff808081838d9e9d01838da6a03e0002` // string | The ID of password policy to delete. # string | The ID of password policy to delete. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.PasswordPoliciesAPI.DeletePasswordPolicy(context.Background(), id).Execute() - //r, err := apiClient.V2024.PasswordPoliciesAPI.DeletePasswordPolicy(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.DeletePasswordPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.PasswordPoliciesAPI.DeletePasswordPolicy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.DeletePasswordPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -235,7 +235,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -243,18 +243,18 @@ import ( func main() { id := `ff808081838d9e9d01838da6a03e0005` // string | The ID of password policy to retrieve. # string | The ID of password policy to retrieve. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PasswordPoliciesAPI.GetPasswordPolicyById(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.PasswordPoliciesAPI.GetPasswordPolicyById(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.GetPasswordPolicyById``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPasswordPolicyById`: PasswordPolicyV3Dto - fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.GetPasswordPolicyById`: %v\n", resp) + //resp, r, err := apiClient.V2024.PasswordPoliciesAPI.GetPasswordPolicyById(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.GetPasswordPolicyById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPasswordPolicyById`: PasswordPolicyV3Dto + fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.GetPasswordPolicyById`: %v\n", resp) } ``` @@ -300,7 +300,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -310,18 +310,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PasswordPoliciesAPI.ListPasswordPolicies(context.Background()).Execute() - //resp, r, err := apiClient.V2024.PasswordPoliciesAPI.ListPasswordPolicies(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.ListPasswordPolicies``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListPasswordPolicies`: []PasswordPolicyV3Dto - fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.ListPasswordPolicies`: %v\n", resp) + //resp, r, err := apiClient.V2024.PasswordPoliciesAPI.ListPasswordPolicies(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.ListPasswordPolicies``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListPasswordPolicies`: []PasswordPolicyV3Dto + fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.ListPasswordPolicies`: %v\n", resp) } ``` @@ -369,7 +369,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -410,24 +410,23 @@ func main() { "maxLength" : 25 }`) // PasswordPolicyV3Dto | - - var passwordPolicyV3Dto v2024.PasswordPolicyV3Dto - if err := json.Unmarshal(passwordpolicyv3dto, &passwordPolicyV3Dto); err != nil { - fmt.Println("Error:", err) - return - } - + var passwordPolicyV3Dto v2024.PasswordPolicyV3Dto + if err := json.Unmarshal(passwordpolicyv3dto, &passwordPolicyV3Dto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PasswordPoliciesAPI.SetPasswordPolicy(context.Background(), id).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() - //resp, r, err := apiClient.V2024.PasswordPoliciesAPI.SetPasswordPolicy(context.Background(), id).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.SetPasswordPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetPasswordPolicy`: PasswordPolicyV3Dto - fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.SetPasswordPolicy`: %v\n", resp) + //resp, r, err := apiClient.V2024.PasswordPoliciesAPI.SetPasswordPolicy(context.Background(), id).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.SetPasswordPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetPasswordPolicy`: PasswordPolicyV3Dto + fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.SetPasswordPolicy`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/PasswordSyncGroupsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/PasswordSyncGroupsAPI.md index 06c02ca70..c36c85ffa 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/PasswordSyncGroupsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/PasswordSyncGroupsAPI.md @@ -91,7 +91,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -106,24 +106,23 @@ func main() { "sourceIds" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210500" ] }`) // PasswordSyncGroup | - - var passwordSyncGroup v2024.PasswordSyncGroup - if err := json.Unmarshal(passwordsyncgroup, &passwordSyncGroup); err != nil { - fmt.Println("Error:", err) - return - } - + var passwordSyncGroup v2024.PasswordSyncGroup + if err := json.Unmarshal(passwordsyncgroup, &passwordSyncGroup); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PasswordSyncGroupsAPI.CreatePasswordSyncGroup(context.Background()).PasswordSyncGroup(passwordSyncGroup).Execute() - //resp, r, err := apiClient.V2024.PasswordSyncGroupsAPI.CreatePasswordSyncGroup(context.Background()).PasswordSyncGroup(passwordSyncGroup).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.CreatePasswordSyncGroup``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreatePasswordSyncGroup`: PasswordSyncGroup - fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.CreatePasswordSyncGroup`: %v\n", resp) + //resp, r, err := apiClient.V2024.PasswordSyncGroupsAPI.CreatePasswordSyncGroup(context.Background()).PasswordSyncGroup(passwordSyncGroup).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.CreatePasswordSyncGroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreatePasswordSyncGroup`: PasswordSyncGroup + fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.CreatePasswordSyncGroup`: %v\n", resp) } ``` @@ -170,7 +169,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -178,16 +177,17 @@ import ( func main() { id := `6881f631-3bd5-4213-9c75-8e05cc3e35dd` // string | The ID of password sync group to delete. # string | The ID of password sync group to delete. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.PasswordSyncGroupsAPI.DeletePasswordSyncGroup(context.Background(), id).Execute() - //r, err := apiClient.V2024.PasswordSyncGroupsAPI.DeletePasswordSyncGroup(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.DeletePasswordSyncGroup``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.PasswordSyncGroupsAPI.DeletePasswordSyncGroup(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.DeletePasswordSyncGroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -234,7 +234,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -242,18 +242,18 @@ import ( func main() { id := `6881f631-3bd5-4213-9c75-8e05cc3e35dd` // string | The ID of password sync group to retrieve. # string | The ID of password sync group to retrieve. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PasswordSyncGroupsAPI.GetPasswordSyncGroup(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.PasswordSyncGroupsAPI.GetPasswordSyncGroup(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.GetPasswordSyncGroup``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPasswordSyncGroup`: PasswordSyncGroup - fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.GetPasswordSyncGroup`: %v\n", resp) + //resp, r, err := apiClient.V2024.PasswordSyncGroupsAPI.GetPasswordSyncGroup(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.GetPasswordSyncGroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPasswordSyncGroup`: PasswordSyncGroup + fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.GetPasswordSyncGroup`: %v\n", resp) } ``` @@ -298,7 +298,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -308,18 +308,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PasswordSyncGroupsAPI.GetPasswordSyncGroups(context.Background()).Execute() - //resp, r, err := apiClient.V2024.PasswordSyncGroupsAPI.GetPasswordSyncGroups(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.GetPasswordSyncGroups``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPasswordSyncGroups`: []PasswordSyncGroup - fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.GetPasswordSyncGroups`: %v\n", resp) + //resp, r, err := apiClient.V2024.PasswordSyncGroupsAPI.GetPasswordSyncGroups(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.GetPasswordSyncGroups``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPasswordSyncGroups`: []PasswordSyncGroup + fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.GetPasswordSyncGroups`: %v\n", resp) } ``` @@ -367,7 +367,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -383,24 +383,23 @@ func main() { "sourceIds" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210500" ] }`) // PasswordSyncGroup | - - var passwordSyncGroup v2024.PasswordSyncGroup - if err := json.Unmarshal(passwordsyncgroup, &passwordSyncGroup); err != nil { - fmt.Println("Error:", err) - return - } - + var passwordSyncGroup v2024.PasswordSyncGroup + if err := json.Unmarshal(passwordsyncgroup, &passwordSyncGroup); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PasswordSyncGroupsAPI.UpdatePasswordSyncGroup(context.Background(), id).PasswordSyncGroup(passwordSyncGroup).Execute() - //resp, r, err := apiClient.V2024.PasswordSyncGroupsAPI.UpdatePasswordSyncGroup(context.Background(), id).PasswordSyncGroup(passwordSyncGroup).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.UpdatePasswordSyncGroup``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdatePasswordSyncGroup`: PasswordSyncGroup - fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.UpdatePasswordSyncGroup`: %v\n", resp) + //resp, r, err := apiClient.V2024.PasswordSyncGroupsAPI.UpdatePasswordSyncGroup(context.Background(), id).PasswordSyncGroup(passwordSyncGroup).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.UpdatePasswordSyncGroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdatePasswordSyncGroup`: PasswordSyncGroup + fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.UpdatePasswordSyncGroup`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/PersonalAccessTokensAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/PersonalAccessTokensAPI.md index 66283d879..9ac93bfc4 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/PersonalAccessTokensAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/PersonalAccessTokensAPI.md @@ -69,7 +69,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -81,24 +81,23 @@ func main() { "name" : "NodeJS Integration" }`) // CreatePersonalAccessTokenRequest | Name and scope of personal access token. - - var createPersonalAccessTokenRequest v2024.CreatePersonalAccessTokenRequest - if err := json.Unmarshal(createpersonalaccesstokenrequest, &createPersonalAccessTokenRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var createPersonalAccessTokenRequest v2024.CreatePersonalAccessTokenRequest + if err := json.Unmarshal(createpersonalaccesstokenrequest, &createPersonalAccessTokenRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PersonalAccessTokensAPI.CreatePersonalAccessToken(context.Background()).CreatePersonalAccessTokenRequest(createPersonalAccessTokenRequest).Execute() - //resp, r, err := apiClient.V2024.PersonalAccessTokensAPI.CreatePersonalAccessToken(context.Background()).CreatePersonalAccessTokenRequest(createPersonalAccessTokenRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.CreatePersonalAccessToken``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreatePersonalAccessToken`: CreatePersonalAccessTokenResponse - fmt.Fprintf(os.Stdout, "Response from `PersonalAccessTokensAPI.CreatePersonalAccessToken`: %v\n", resp) + //resp, r, err := apiClient.V2024.PersonalAccessTokensAPI.CreatePersonalAccessToken(context.Background()).CreatePersonalAccessTokenRequest(createPersonalAccessTokenRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.CreatePersonalAccessToken``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreatePersonalAccessToken`: CreatePersonalAccessTokenResponse + fmt.Fprintf(os.Stdout, "Response from `PersonalAccessTokensAPI.CreatePersonalAccessToken`: %v\n", resp) } ``` @@ -145,7 +144,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -153,16 +152,17 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The personal access token id # string | The personal access token id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.PersonalAccessTokensAPI.DeletePersonalAccessToken(context.Background(), id).Execute() - //r, err := apiClient.V2024.PersonalAccessTokensAPI.DeletePersonalAccessToken(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.DeletePersonalAccessToken``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.PersonalAccessTokensAPI.DeletePersonalAccessToken(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.DeletePersonalAccessToken``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -206,7 +206,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -215,18 +215,18 @@ func main() { ownerId := `2c9180867b50d088017b554662fb281e` // string | The identity ID of the owner whose personal access tokens should be listed. If \"me\", the caller should have the following right: 'idn:my-personal-access-tokens:read' If an actual owner ID or if the `owner-id` parameter is omitted in the request, the caller should have the following right: 'idn:all-personal-access-tokens:read'. If the caller has the following right, then managed personal access tokens associated with `owner-id` will be retrieved: 'idn:managed-personal-access-tokens:read' (optional) # string | The identity ID of the owner whose personal access tokens should be listed. If \"me\", the caller should have the following right: 'idn:my-personal-access-tokens:read' If an actual owner ID or if the `owner-id` parameter is omitted in the request, the caller should have the following right: 'idn:all-personal-access-tokens:read'. If the caller has the following right, then managed personal access tokens associated with `owner-id` will be retrieved: 'idn:managed-personal-access-tokens:read' (optional) filters := `lastUsed le 2023-02-05T10:59:27.214Z` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **lastUsed**: *le, isnull* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **lastUsed**: *le, isnull* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PersonalAccessTokensAPI.ListPersonalAccessTokens(context.Background()).Execute() - //resp, r, err := apiClient.V2024.PersonalAccessTokensAPI.ListPersonalAccessTokens(context.Background()).OwnerId(ownerId).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.ListPersonalAccessTokens``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListPersonalAccessTokens`: []GetPersonalAccessTokenResponse - fmt.Fprintf(os.Stdout, "Response from `PersonalAccessTokensAPI.ListPersonalAccessTokens`: %v\n", resp) + //resp, r, err := apiClient.V2024.PersonalAccessTokensAPI.ListPersonalAccessTokens(context.Background()).OwnerId(ownerId).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.ListPersonalAccessTokens``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListPersonalAccessTokens`: []GetPersonalAccessTokenResponse + fmt.Fprintf(os.Stdout, "Response from `PersonalAccessTokensAPI.ListPersonalAccessTokens`: %v\n", resp) } ``` @@ -275,7 +275,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -284,24 +284,23 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The Personal Access Token id # string | The Personal Access Token id jsonpatchoperation := []byte(`[{op=replace, path=/name, value=New name}, {op=replace, path=/scope, value=[sp:scopes:all]}]`) // []JsonPatchOperation | A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * scope - - var jsonPatchOperation v2024.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2024.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PersonalAccessTokensAPI.PatchPersonalAccessToken(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2024.PersonalAccessTokensAPI.PatchPersonalAccessToken(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.PatchPersonalAccessToken``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchPersonalAccessToken`: GetPersonalAccessTokenResponse - fmt.Fprintf(os.Stdout, "Response from `PersonalAccessTokensAPI.PatchPersonalAccessToken`: %v\n", resp) + //resp, r, err := apiClient.V2024.PersonalAccessTokensAPI.PatchPersonalAccessToken(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.PatchPersonalAccessToken``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchPersonalAccessToken`: GetPersonalAccessTokenResponse + fmt.Fprintf(os.Stdout, "Response from `PersonalAccessTokensAPI.PatchPersonalAccessToken`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/PublicIdentitiesAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/PublicIdentitiesAPI.md index 045fa35dd..ec4c03db3 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/PublicIdentitiesAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/PublicIdentitiesAPI.md @@ -63,7 +63,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -76,18 +76,18 @@ func main() { addCoreFilters := false // bool | If *true*, only get identities which satisfy ALL the following criteria in addition to any criteria specified by *filters*: - Should be either correlated or protected. - Should not be \"spadmin\" or \"cloudadmin\". - uid should not be null. - lastname should not be null. - email should not be null. (optional) (default to false) # bool | If *true*, only get identities which satisfy ALL the following criteria in addition to any criteria specified by *filters*: - Should be either correlated or protected. - Should not be \"spadmin\" or \"cloudadmin\". - uid should not be null. - lastname should not be null. - email should not be null. (optional) (default to false) sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PublicIdentitiesAPI.GetPublicIdentities(context.Background()).Execute() - //resp, r, err := apiClient.V2024.PublicIdentitiesAPI.GetPublicIdentities(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).AddCoreFilters(addCoreFilters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PublicIdentitiesAPI.GetPublicIdentities``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPublicIdentities`: []PublicIdentity - fmt.Fprintf(os.Stdout, "Response from `PublicIdentitiesAPI.GetPublicIdentities`: %v\n", resp) + //resp, r, err := apiClient.V2024.PublicIdentitiesAPI.GetPublicIdentities(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).AddCoreFilters(addCoreFilters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PublicIdentitiesAPI.GetPublicIdentities``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPublicIdentities`: []PublicIdentity + fmt.Fprintf(os.Stdout, "Response from `PublicIdentitiesAPI.GetPublicIdentities`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/PublicIdentitiesConfigAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/PublicIdentitiesConfigAPI.md index 98eb1f056..9826c29fb 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/PublicIdentitiesConfigAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/PublicIdentitiesConfigAPI.md @@ -62,25 +62,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PublicIdentitiesConfigAPI.GetPublicIdentityConfig(context.Background()).Execute() - //resp, r, err := apiClient.V2024.PublicIdentitiesConfigAPI.GetPublicIdentityConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PublicIdentitiesConfigAPI.GetPublicIdentityConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPublicIdentityConfig`: PublicIdentityConfig - fmt.Fprintf(os.Stdout, "Response from `PublicIdentitiesConfigAPI.GetPublicIdentityConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.PublicIdentitiesConfigAPI.GetPublicIdentityConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PublicIdentitiesConfigAPI.GetPublicIdentityConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPublicIdentityConfig`: PublicIdentityConfig + fmt.Fprintf(os.Stdout, "Response from `PublicIdentitiesConfigAPI.GetPublicIdentityConfig`: %v\n", resp) } ``` @@ -123,7 +123,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -145,24 +145,23 @@ func main() { } }`) // PublicIdentityConfig | - - var publicIdentityConfig v2024.PublicIdentityConfig - if err := json.Unmarshal(publicidentityconfig, &publicIdentityConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var publicIdentityConfig v2024.PublicIdentityConfig + if err := json.Unmarshal(publicidentityconfig, &publicIdentityConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig(context.Background()).PublicIdentityConfig(publicIdentityConfig).Execute() - //resp, r, err := apiClient.V2024.PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig(context.Background()).PublicIdentityConfig(publicIdentityConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdatePublicIdentityConfig`: PublicIdentityConfig - fmt.Fprintf(os.Stdout, "Response from `PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig(context.Background()).PublicIdentityConfig(publicIdentityConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdatePublicIdentityConfig`: PublicIdentityConfig + fmt.Fprintf(os.Stdout, "Response from `PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/ReportsDataExtractionAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/ReportsDataExtractionAPI.md index e171865ac..952e9c5f3 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/ReportsDataExtractionAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/ReportsDataExtractionAPI.md @@ -65,7 +65,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -73,16 +73,17 @@ import ( func main() { id := `a1ed223247144cc29d23c632624b4767` // string | ID of the running Report to cancel # string | ID of the running Report to cancel - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.ReportsDataExtractionAPI.CancelReport(context.Background(), id).Execute() - //r, err := apiClient.V2024.ReportsDataExtractionAPI.CancelReport(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReportsDataExtractionAPI.CancelReport``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.ReportsDataExtractionAPI.CancelReport(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsDataExtractionAPI.CancelReport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -132,7 +133,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -143,18 +144,18 @@ func main() { name := `Identities Details Report` // string | preferred Report file name, by default will be used report name from task result. (optional) # string | preferred Report file name, by default will be used report name from task result. (optional) auditable := true // bool | Enables auditing for current report download. Will create an audit event and sent it to the REPORT cloud-audit kafka topic. Event will be created if there is any result present by requested taskResultId. (optional) (default to false) # bool | Enables auditing for current report download. Will create an audit event and sent it to the REPORT cloud-audit kafka topic. Event will be created if there is any result present by requested taskResultId. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ReportsDataExtractionAPI.GetReport(context.Background(), taskResultId).FileFormat(fileFormat).Execute() - //resp, r, err := apiClient.V2024.ReportsDataExtractionAPI.GetReport(context.Background(), taskResultId).FileFormat(fileFormat).Name(name).Auditable(auditable).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReportsDataExtractionAPI.GetReport``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetReport`: *os.File - fmt.Fprintf(os.Stdout, "Response from `ReportsDataExtractionAPI.GetReport`: %v\n", resp) + //resp, r, err := apiClient.V2024.ReportsDataExtractionAPI.GetReport(context.Background(), taskResultId).FileFormat(fileFormat).Name(name).Auditable(auditable).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsDataExtractionAPI.GetReport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetReport`: *os.File + fmt.Fprintf(os.Stdout, "Response from `ReportsDataExtractionAPI.GetReport`: %v\n", resp) } ``` @@ -202,7 +203,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -211,18 +212,18 @@ func main() { taskResultId := `ef38f94347e94562b5bb8424a56397d8` // string | Unique identifier of the task result which handled report # string | Unique identifier of the task result which handled report completed := true // bool | state of task result to apply ordering when results are fetching from the DB (optional) (default to false) # bool | state of task result to apply ordering when results are fetching from the DB (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ReportsDataExtractionAPI.GetReportResult(context.Background(), taskResultId).Execute() - //resp, r, err := apiClient.V2024.ReportsDataExtractionAPI.GetReportResult(context.Background(), taskResultId).Completed(completed).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReportsDataExtractionAPI.GetReportResult``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetReportResult`: ReportResults - fmt.Fprintf(os.Stdout, "Response from `ReportsDataExtractionAPI.GetReportResult`: %v\n", resp) + //resp, r, err := apiClient.V2024.ReportsDataExtractionAPI.GetReportResult(context.Background(), taskResultId).Completed(completed).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsDataExtractionAPI.GetReportResult``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetReportResult`: ReportResults + fmt.Fprintf(os.Stdout, "Response from `ReportsDataExtractionAPI.GetReportResult`: %v\n", resp) } ``` @@ -265,7 +266,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -279,24 +280,23 @@ func main() { } }`) // ReportDetails | - - var reportDetails v2024.ReportDetails - if err := json.Unmarshal(reportdetails, &reportDetails); err != nil { - fmt.Println("Error:", err) - return - } - + var reportDetails v2024.ReportDetails + if err := json.Unmarshal(reportdetails, &reportDetails); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ReportsDataExtractionAPI.StartReport(context.Background()).ReportDetails(reportDetails).Execute() - //resp, r, err := apiClient.V2024.ReportsDataExtractionAPI.StartReport(context.Background()).ReportDetails(reportDetails).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReportsDataExtractionAPI.StartReport``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartReport`: TaskResultDetails - fmt.Fprintf(os.Stdout, "Response from `ReportsDataExtractionAPI.StartReport`: %v\n", resp) + //resp, r, err := apiClient.V2024.ReportsDataExtractionAPI.StartReport(context.Background()).ReportDetails(reportDetails).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsDataExtractionAPI.StartReport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartReport`: TaskResultDetails + fmt.Fprintf(os.Stdout, "Response from `ReportsDataExtractionAPI.StartReport`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/RequestableObjectsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/RequestableObjectsAPI.md index 69597c03e..4e3065a25 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/RequestableObjectsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/RequestableObjectsAPI.md @@ -67,7 +67,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -83,18 +83,18 @@ func main() { filters := `name sw "bob"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, sw* (optional) sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RequestableObjectsAPI.ListRequestableObjects(context.Background()).Execute() - //resp, r, err := apiClient.V2024.RequestableObjectsAPI.ListRequestableObjects(context.Background()).IdentityId(identityId).Types(types).Term(term).Statuses(statuses).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RequestableObjectsAPI.ListRequestableObjects``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListRequestableObjects`: []RequestableObject - fmt.Fprintf(os.Stdout, "Response from `RequestableObjectsAPI.ListRequestableObjects`: %v\n", resp) + //resp, r, err := apiClient.V2024.RequestableObjectsAPI.ListRequestableObjects(context.Background()).IdentityId(identityId).Types(types).Term(term).Statuses(statuses).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RequestableObjectsAPI.ListRequestableObjects``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListRequestableObjects`: []RequestableObject + fmt.Fprintf(os.Stdout, "Response from `RequestableObjectsAPI.ListRequestableObjects`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/RoleInsightsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/RoleInsightsAPI.md index ab36b3739..054292702 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/RoleInsightsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/RoleInsightsAPI.md @@ -77,7 +77,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -85,18 +85,18 @@ import ( func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RoleInsightsAPI.CreateRoleInsightRequests(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.RoleInsightsAPI.CreateRoleInsightRequests(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.CreateRoleInsightRequests``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateRoleInsightRequests`: RoleInsightsResponse - fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.CreateRoleInsightRequests`: %v\n", resp) + //resp, r, err := apiClient.V2024.RoleInsightsAPI.CreateRoleInsightRequests(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.CreateRoleInsightRequests``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateRoleInsightRequests`: RoleInsightsResponse + fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.CreateRoleInsightRequests`: %v\n", resp) } ``` @@ -157,7 +157,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -168,18 +168,18 @@ func main() { sorters := `identitiesWithAccess` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **identitiesWithAccess** The default sort is **identitiesWithAccess** in descending order. (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **identitiesWithAccess** The default sort is **identitiesWithAccess** in descending order. (optional) filters := `name sw "r"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *sw* **description**: *sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *sw* **description**: *sw* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RoleInsightsAPI.DownloadRoleInsightsEntitlementsChanges(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.RoleInsightsAPI.DownloadRoleInsightsEntitlementsChanges(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.DownloadRoleInsightsEntitlementsChanges``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DownloadRoleInsightsEntitlementsChanges`: string - fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.DownloadRoleInsightsEntitlementsChanges`: %v\n", resp) + //resp, r, err := apiClient.V2024.RoleInsightsAPI.DownloadRoleInsightsEntitlementsChanges(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.DownloadRoleInsightsEntitlementsChanges``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DownloadRoleInsightsEntitlementsChanges`: string + fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.DownloadRoleInsightsEntitlementsChanges`: %v\n", resp) } ``` @@ -246,7 +246,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -262,18 +262,18 @@ func main() { sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name** (optional) filters := `name sw "Jan"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *sw* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RoleInsightsAPI.GetEntitlementChangesIdentities(context.Background(), insightId, entitlementId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.RoleInsightsAPI.GetEntitlementChangesIdentities(context.Background(), insightId, entitlementId).XSailPointExperimental(xSailPointExperimental).HasEntitlement(hasEntitlement).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetEntitlementChangesIdentities``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetEntitlementChangesIdentities`: []RoleInsightsIdentities - fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetEntitlementChangesIdentities`: %v\n", resp) + //resp, r, err := apiClient.V2024.RoleInsightsAPI.GetEntitlementChangesIdentities(context.Background(), insightId, entitlementId).XSailPointExperimental(xSailPointExperimental).HasEntitlement(hasEntitlement).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetEntitlementChangesIdentities``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetEntitlementChangesIdentities`: []RoleInsightsIdentities + fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetEntitlementChangesIdentities`: %v\n", resp) } ``` @@ -332,7 +332,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -341,18 +341,18 @@ func main() { insightId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role insight id # string | The role insight id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsight(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsight(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetRoleInsight``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleInsight`: RoleInsight - fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetRoleInsight`: %v\n", resp) + //resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsight(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetRoleInsight``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleInsight`: RoleInsight + fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetRoleInsight`: %v\n", resp) } ``` @@ -411,7 +411,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -424,18 +424,18 @@ func main() { sorters := `numberOfUpdates` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **numberOfUpdates, identitiesWithAccess, totalNumberOfIdentities** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **numberOfUpdates, identitiesWithAccess, totalNumberOfIdentities** (optional) filters := `name sw "John"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *sw* **ownerName**: *sw* **description**: *sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *sw* **ownerName**: *sw* **description**: *sw* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsights(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsights(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetRoleInsights``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleInsights`: []RoleInsight - fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetRoleInsights`: %v\n", resp) + //resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsights(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetRoleInsights``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleInsights`: []RoleInsight + fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetRoleInsights`: %v\n", resp) } ``` @@ -495,7 +495,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -505,18 +505,18 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") filters := `name sw "r"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *sw* **description**: *sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *sw* **description**: *sw* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsightsCurrentEntitlements(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsightsCurrentEntitlements(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetRoleInsightsCurrentEntitlements``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleInsightsCurrentEntitlements`: []RoleInsightsEntitlement - fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetRoleInsightsCurrentEntitlements`: %v\n", resp) + //resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsightsCurrentEntitlements(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetRoleInsightsCurrentEntitlements``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleInsightsCurrentEntitlements`: []RoleInsightsEntitlement + fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetRoleInsightsCurrentEntitlements`: %v\n", resp) } ``` @@ -577,7 +577,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -588,18 +588,18 @@ func main() { sorters := `sorters_example` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **identitiesWithAccess, name** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **identitiesWithAccess, name** (optional) filters := `name sw "Admin"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *sw* **description**: *sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *sw* **description**: *sw* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsightsEntitlementsChanges(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsightsEntitlementsChanges(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetRoleInsightsEntitlementsChanges``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleInsightsEntitlementsChanges`: []RoleInsightsEntitlementChanges - fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetRoleInsightsEntitlementsChanges`: %v\n", resp) + //resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsightsEntitlementsChanges(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetRoleInsightsEntitlementsChanges``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleInsightsEntitlementsChanges`: []RoleInsightsEntitlementChanges + fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetRoleInsightsEntitlementsChanges`: %v\n", resp) } ``` @@ -661,7 +661,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -670,18 +670,18 @@ func main() { id := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role insights request id # string | The role insights request id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsightsRequests(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsightsRequests(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetRoleInsightsRequests``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleInsightsRequests`: RoleInsightsResponse - fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetRoleInsightsRequests`: %v\n", resp) + //resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsightsRequests(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetRoleInsightsRequests``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleInsightsRequests`: RoleInsightsResponse + fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetRoleInsightsRequests`: %v\n", resp) } ``` @@ -735,7 +735,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -743,18 +743,18 @@ import ( func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsightsSummary(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsightsSummary(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetRoleInsightsSummary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleInsightsSummary`: RoleInsightsSummary - fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetRoleInsightsSummary`: %v\n", resp) + //resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsightsSummary(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetRoleInsightsSummary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleInsightsSummary`: RoleInsightsSummary + fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetRoleInsightsSummary`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/RolesAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/RolesAPI.md index da2f4a0e3..0ba0d2072 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/RolesAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/RolesAPI.md @@ -113,7 +113,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -279,24 +279,23 @@ func main() { "requestable" : true }`) // Role | - - var role v2024.Role - if err := json.Unmarshal(role, &role); err != nil { - fmt.Println("Error:", err) - return - } - + var role v2024.Role + if err := json.Unmarshal(role, &role); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RolesAPI.CreateRole(context.Background()).Role(role).Execute() - //resp, r, err := apiClient.V2024.RolesAPI.CreateRole(context.Background()).Role(role).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.CreateRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateRole`: Role - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.CreateRole`: %v\n", resp) + //resp, r, err := apiClient.V2024.RolesAPI.CreateRole(context.Background()).Role(role).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.CreateRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateRole`: Role + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.CreateRole`: %v\n", resp) } ``` @@ -342,7 +341,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -352,24 +351,23 @@ func main() { "roleIds" : [ "2c9180847812e0b1017817051919ecca", "2c9180887812e0b201781e129f151816" ] }`) // RoleBulkDeleteRequest | - - var roleBulkDeleteRequest v2024.RoleBulkDeleteRequest - if err := json.Unmarshal(rolebulkdeleterequest, &roleBulkDeleteRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var roleBulkDeleteRequest v2024.RoleBulkDeleteRequest + if err := json.Unmarshal(rolebulkdeleterequest, &roleBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RolesAPI.DeleteBulkRoles(context.Background()).RoleBulkDeleteRequest(roleBulkDeleteRequest).Execute() - //resp, r, err := apiClient.V2024.RolesAPI.DeleteBulkRoles(context.Background()).RoleBulkDeleteRequest(roleBulkDeleteRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.DeleteBulkRoles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteBulkRoles`: TaskResultDto - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.DeleteBulkRoles`: %v\n", resp) + //resp, r, err := apiClient.V2024.RolesAPI.DeleteBulkRoles(context.Background()).RoleBulkDeleteRequest(roleBulkDeleteRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.DeleteBulkRoles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteBulkRoles`: TaskResultDto + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.DeleteBulkRoles`: %v\n", resp) } ``` @@ -420,7 +418,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -430,16 +428,17 @@ func main() { attributeKey := `iscPrivacy` // string | Technical name of the Attribute. # string | Technical name of the Attribute. attributeValue := `public` // string | Technical name of the Attribute Value. # string | Technical name of the Attribute Value. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.RolesAPI.DeleteMetadataFromRoleByKeyAndValue(context.Background(), id, attributeKey, attributeValue).Execute() - //r, err := apiClient.V2024.RolesAPI.DeleteMetadataFromRoleByKeyAndValue(context.Background(), id, attributeKey, attributeValue).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.DeleteMetadataFromRoleByKeyAndValue``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.RolesAPI.DeleteMetadataFromRoleByKeyAndValue(context.Background(), id, attributeKey, attributeValue).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.DeleteMetadataFromRoleByKeyAndValue``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -488,7 +487,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -496,16 +495,17 @@ import ( func main() { id := `2c91808a7813090a017814121e121518` // string | ID of the Role # string | ID of the Role - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.RolesAPI.DeleteRole(context.Background(), id).Execute() - //r, err := apiClient.V2024.RolesAPI.DeleteRole(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.DeleteRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.RolesAPI.DeleteRole(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.DeleteRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -544,25 +544,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RolesAPI.GetBulkUpdateStatus(context.Background()).Execute() - //resp, r, err := apiClient.V2024.RolesAPI.GetBulkUpdateStatus(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.GetBulkUpdateStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetBulkUpdateStatus`: []RoleGetAllBulkUpdateResponse - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.GetBulkUpdateStatus`: %v\n", resp) + //resp, r, err := apiClient.V2024.RolesAPI.GetBulkUpdateStatus(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.GetBulkUpdateStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetBulkUpdateStatus`: []RoleGetAllBulkUpdateResponse + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.GetBulkUpdateStatus`: %v\n", resp) } ``` @@ -611,7 +611,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -619,18 +619,18 @@ import ( func main() { id := `c24359c389374d0fb8585698a2189e3d` // string | The Id of the bulk update task. # string | The Id of the bulk update task. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RolesAPI.GetBulkUpdateStatusById(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.RolesAPI.GetBulkUpdateStatusById(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.GetBulkUpdateStatusById``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetBulkUpdateStatusById`: RoleBulkUpdateResponse - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.GetBulkUpdateStatusById`: %v\n", resp) + //resp, r, err := apiClient.V2024.RolesAPI.GetBulkUpdateStatusById(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.GetBulkUpdateStatusById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetBulkUpdateStatusById`: RoleBulkUpdateResponse + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.GetBulkUpdateStatusById`: %v\n", resp) } ``` @@ -678,7 +678,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -686,18 +686,18 @@ import ( func main() { id := `2c91808a7813090a017814121e121518` // string | ID of the Role # string | ID of the Role - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RolesAPI.GetRole(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.RolesAPI.GetRole(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.GetRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRole`: Role - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.GetRole`: %v\n", resp) + //resp, r, err := apiClient.V2024.RolesAPI.GetRole(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.GetRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRole`: Role + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.GetRole`: %v\n", resp) } ``` @@ -749,7 +749,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -762,18 +762,18 @@ func main() { filters := `name sw Joe` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **aliasName**: *eq, sw* **email**: *eq, sw* **name**: *eq, sw, co* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **aliasName**: *eq, sw* **email**: *eq, sw* **name**: *eq, sw, co* (optional) sorters := `aliasName,name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, aliasName, email** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, aliasName, email** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RolesAPI.GetRoleAssignedIdentities(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.RolesAPI.GetRoleAssignedIdentities(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.GetRoleAssignedIdentities``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleAssignedIdentities`: []RoleIdentity - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.GetRoleAssignedIdentities`: %v\n", resp) + //resp, r, err := apiClient.V2024.RolesAPI.GetRoleAssignedIdentities(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.GetRoleAssignedIdentities``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleAssignedIdentities`: []RoleIdentity + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.GetRoleAssignedIdentities`: %v\n", resp) } ``` @@ -837,7 +837,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -851,18 +851,18 @@ func main() { filters := `attribute eq "memberOf"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* (optional) sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, attribute, value, created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, attribute, value, created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RolesAPI.GetRoleEntitlements(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.RolesAPI.GetRoleEntitlements(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.GetRoleEntitlements``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleEntitlements`: []Entitlement - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.GetRoleEntitlements`: %v\n", resp) + //resp, r, err := apiClient.V2024.RolesAPI.GetRoleEntitlements(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.GetRoleEntitlements``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleEntitlements`: []Entitlement + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.GetRoleEntitlements`: %v\n", resp) } ``` @@ -914,7 +914,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -929,18 +929,18 @@ func main() { forSegmentIds := `0b5c9f25-83c6-4762-9073-e38f7bb2ae26,2e8d8180-24bc-4d21-91c6-7affdb473b0d` // string | If present and not empty, additionally filters Roles to those which are assigned to the Segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) # string | If present and not empty, additionally filters Roles to those which are assigned to the Segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) includeUnsegmented := false // bool | Whether or not the response list should contain unsegmented Roles. If *for-segment-ids* is absent or empty, specifying *include-unsegmented* as false results in an error. (optional) (default to true) # bool | Whether or not the response list should contain unsegmented Roles. If *for-segment-ids* is absent or empty, specifying *include-unsegmented* as false results in an error. (optional) (default to true) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RolesAPI.ListRoles(context.Background()).Execute() - //resp, r, err := apiClient.V2024.RolesAPI.ListRoles(context.Background()).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.ListRoles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListRoles`: []Role - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.ListRoles`: %v\n", resp) + //resp, r, err := apiClient.V2024.RolesAPI.ListRoles(context.Background()).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.ListRoles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListRoles`: []Role + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.ListRoles`: %v\n", resp) } ``` @@ -1008,7 +1008,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1017,24 +1017,23 @@ func main() { id := `2c91808a7813090a017814121e121518` // string | ID of the Role to patch # string | ID of the Role to patch jsonpatchoperation := []byte(`[{op=replace, path=/requestable, value=true}, {op=replace, path=/enabled, value=true}]`) // []JsonPatchOperation | - - var jsonPatchOperation v2024.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2024.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RolesAPI.PatchRole(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2024.RolesAPI.PatchRole(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.PatchRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchRole`: Role - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.PatchRole`: %v\n", resp) + //resp, r, err := apiClient.V2024.RolesAPI.PatchRole(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.PatchRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchRole`: Role + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.PatchRole`: %v\n", resp) } ``` @@ -1085,7 +1084,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1106,18 +1105,18 @@ func main() { "filters" : "dimensional eq false" }`) // RoleListFilterDTO | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RolesAPI.SearchRolesByFilter(context.Background()).Execute() - //resp, r, err := apiClient.V2024.RolesAPI.SearchRolesByFilter(context.Background()).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Sorters(sorters).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).RoleListFilterDTO(roleListFilterDTO).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.SearchRolesByFilter``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SearchRolesByFilter`: Role - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.SearchRolesByFilter`: %v\n", resp) + //resp, r, err := apiClient.V2024.RolesAPI.SearchRolesByFilter(context.Background()).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Sorters(sorters).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).RoleListFilterDTO(roleListFilterDTO).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.SearchRolesByFilter``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchRolesByFilter`: Role + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.SearchRolesByFilter`: %v\n", resp) } ``` @@ -1168,7 +1167,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1178,18 +1177,18 @@ func main() { attributeKey := `iscPrivacy` // string | Technical name of the Attribute. # string | Technical name of the Attribute. attributeValue := `public` // string | Technical name of the Attribute Value. # string | Technical name of the Attribute Value. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RolesAPI.UpdateAttributeKeyAndValueToRole(context.Background(), id, attributeKey, attributeValue).Execute() - //resp, r, err := apiClient.V2024.RolesAPI.UpdateAttributeKeyAndValueToRole(context.Background(), id, attributeKey, attributeValue).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.UpdateAttributeKeyAndValueToRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateAttributeKeyAndValueToRole`: Role - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.UpdateAttributeKeyAndValueToRole`: %v\n", resp) + //resp, r, err := apiClient.V2024.RolesAPI.UpdateAttributeKeyAndValueToRole(context.Background(), id, attributeKey, attributeValue).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.UpdateAttributeKeyAndValueToRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateAttributeKeyAndValueToRole`: Role + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.UpdateAttributeKeyAndValueToRole`: %v\n", resp) } ``` @@ -1235,7 +1234,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1251,24 +1250,23 @@ func main() { "operation" : "REPLACE" }`) // RoleMetadataBulkUpdateByFilterRequest | - - var roleMetadataBulkUpdateByFilterRequest v2024.RoleMetadataBulkUpdateByFilterRequest - if err := json.Unmarshal(rolemetadatabulkupdatebyfilterrequest, &roleMetadataBulkUpdateByFilterRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var roleMetadataBulkUpdateByFilterRequest v2024.RoleMetadataBulkUpdateByFilterRequest + if err := json.Unmarshal(rolemetadatabulkupdatebyfilterrequest, &roleMetadataBulkUpdateByFilterRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RolesAPI.UpdateRolesMetadataByFilter(context.Background()).RoleMetadataBulkUpdateByFilterRequest(roleMetadataBulkUpdateByFilterRequest).Execute() - //resp, r, err := apiClient.V2024.RolesAPI.UpdateRolesMetadataByFilter(context.Background()).RoleMetadataBulkUpdateByFilterRequest(roleMetadataBulkUpdateByFilterRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.UpdateRolesMetadataByFilter``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateRolesMetadataByFilter`: RoleBulkUpdateResponse - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.UpdateRolesMetadataByFilter`: %v\n", resp) + //resp, r, err := apiClient.V2024.RolesAPI.UpdateRolesMetadataByFilter(context.Background()).RoleMetadataBulkUpdateByFilterRequest(roleMetadataBulkUpdateByFilterRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.UpdateRolesMetadataByFilter``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateRolesMetadataByFilter`: RoleBulkUpdateResponse + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.UpdateRolesMetadataByFilter`: %v\n", resp) } ``` @@ -1314,7 +1312,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1330,24 +1328,23 @@ func main() { "operation" : "REPLACE" }`) // RoleMetadataBulkUpdateByIdRequest | - - var roleMetadataBulkUpdateByIdRequest v2024.RoleMetadataBulkUpdateByIdRequest - if err := json.Unmarshal(rolemetadatabulkupdatebyidrequest, &roleMetadataBulkUpdateByIdRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var roleMetadataBulkUpdateByIdRequest v2024.RoleMetadataBulkUpdateByIdRequest + if err := json.Unmarshal(rolemetadatabulkupdatebyidrequest, &roleMetadataBulkUpdateByIdRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RolesAPI.UpdateRolesMetadataByIds(context.Background()).RoleMetadataBulkUpdateByIdRequest(roleMetadataBulkUpdateByIdRequest).Execute() - //resp, r, err := apiClient.V2024.RolesAPI.UpdateRolesMetadataByIds(context.Background()).RoleMetadataBulkUpdateByIdRequest(roleMetadataBulkUpdateByIdRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.UpdateRolesMetadataByIds``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateRolesMetadataByIds`: RoleBulkUpdateResponse - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.UpdateRolesMetadataByIds`: %v\n", resp) + //resp, r, err := apiClient.V2024.RolesAPI.UpdateRolesMetadataByIds(context.Background()).RoleMetadataBulkUpdateByIdRequest(roleMetadataBulkUpdateByIdRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.UpdateRolesMetadataByIds``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateRolesMetadataByIds`: RoleBulkUpdateResponse + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.UpdateRolesMetadataByIds`: %v\n", resp) } ``` @@ -1393,7 +1390,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1424,24 +1421,23 @@ func main() { "operation" : "REPLACE" }`) // RoleMetadataBulkUpdateByQueryRequest | - - var roleMetadataBulkUpdateByQueryRequest v2024.RoleMetadataBulkUpdateByQueryRequest - if err := json.Unmarshal(rolemetadatabulkupdatebyqueryrequest, &roleMetadataBulkUpdateByQueryRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var roleMetadataBulkUpdateByQueryRequest v2024.RoleMetadataBulkUpdateByQueryRequest + if err := json.Unmarshal(rolemetadatabulkupdatebyqueryrequest, &roleMetadataBulkUpdateByQueryRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RolesAPI.UpdateRolesMetadataByQuery(context.Background()).RoleMetadataBulkUpdateByQueryRequest(roleMetadataBulkUpdateByQueryRequest).Execute() - //resp, r, err := apiClient.V2024.RolesAPI.UpdateRolesMetadataByQuery(context.Background()).RoleMetadataBulkUpdateByQueryRequest(roleMetadataBulkUpdateByQueryRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.UpdateRolesMetadataByQuery``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateRolesMetadataByQuery`: RoleBulkUpdateResponse - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.UpdateRolesMetadataByQuery`: %v\n", resp) + //resp, r, err := apiClient.V2024.RolesAPI.UpdateRolesMetadataByQuery(context.Background()).RoleMetadataBulkUpdateByQueryRequest(roleMetadataBulkUpdateByQueryRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.UpdateRolesMetadataByQuery``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateRolesMetadataByQuery`: RoleBulkUpdateResponse + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.UpdateRolesMetadataByQuery`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/SIMIntegrationsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/SIMIntegrationsAPI.md index a3501afe4..84c9b85f1 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/SIMIntegrationsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/SIMIntegrationsAPI.md @@ -80,7 +80,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -106,24 +106,23 @@ func main() { } }`) // SimIntegrationDetails | DTO containing the details of the SIM integration - - var simIntegrationDetails v2024.SimIntegrationDetails - if err := json.Unmarshal(simintegrationdetails, &simIntegrationDetails); err != nil { - fmt.Println("Error:", err) - return - } - + var simIntegrationDetails v2024.SimIntegrationDetails + if err := json.Unmarshal(simintegrationdetails, &simIntegrationDetails); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SIMIntegrationsAPI.CreateSIMIntegration(context.Background()).XSailPointExperimental(xSailPointExperimental).SimIntegrationDetails(simIntegrationDetails).Execute() - //resp, r, err := apiClient.V2024.SIMIntegrationsAPI.CreateSIMIntegration(context.Background()).XSailPointExperimental(xSailPointExperimental).SimIntegrationDetails(simIntegrationDetails).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.CreateSIMIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSIMIntegration`: ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `SIMIntegrationsAPI.CreateSIMIntegration`: %v\n", resp) + //resp, r, err := apiClient.V2024.SIMIntegrationsAPI.CreateSIMIntegration(context.Background()).XSailPointExperimental(xSailPointExperimental).SimIntegrationDetails(simIntegrationDetails).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.CreateSIMIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSIMIntegration`: ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `SIMIntegrationsAPI.CreateSIMIntegration`: %v\n", resp) } ``` @@ -182,7 +181,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -191,16 +190,17 @@ func main() { id := `12345` // string | The id of the integration to delete. # string | The id of the integration to delete. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.SIMIntegrationsAPI.DeleteSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //r, err := apiClient.V2024.SIMIntegrationsAPI.DeleteSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.DeleteSIMIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.SIMIntegrationsAPI.DeleteSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.DeleteSIMIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -259,7 +259,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -268,18 +268,18 @@ func main() { id := `12345` // string | The id of the integration. # string | The id of the integration. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SIMIntegrationsAPI.GetSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.SIMIntegrationsAPI.GetSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.GetSIMIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSIMIntegration`: ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `SIMIntegrationsAPI.GetSIMIntegration`: %v\n", resp) + //resp, r, err := apiClient.V2024.SIMIntegrationsAPI.GetSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.GetSIMIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSIMIntegration`: ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `SIMIntegrationsAPI.GetSIMIntegration`: %v\n", resp) } ``` @@ -333,7 +333,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -341,18 +341,18 @@ import ( func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SIMIntegrationsAPI.GetSIMIntegrations(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.SIMIntegrationsAPI.GetSIMIntegrations(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.GetSIMIntegrations``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSIMIntegrations`: []ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `SIMIntegrationsAPI.GetSIMIntegrations`: %v\n", resp) + //resp, r, err := apiClient.V2024.SIMIntegrationsAPI.GetSIMIntegrations(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.GetSIMIntegrations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSIMIntegrations`: []ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `SIMIntegrationsAPI.GetSIMIntegrations`: %v\n", resp) } ``` @@ -412,7 +412,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -432,24 +432,23 @@ func main() { } ] }`) // JsonPatch | The JsonPatch object that describes the changes of SIM beforeProvisioningRule. - - var jsonPatch v2024.JsonPatch - if err := json.Unmarshal(jsonpatch, &jsonPatch); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatch v2024.JsonPatch + if err := json.Unmarshal(jsonpatch, &jsonPatch); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SIMIntegrationsAPI.PatchBeforeProvisioningRule(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatch(jsonPatch).Execute() - //resp, r, err := apiClient.V2024.SIMIntegrationsAPI.PatchBeforeProvisioningRule(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatch(jsonPatch).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.PatchBeforeProvisioningRule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchBeforeProvisioningRule`: ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `SIMIntegrationsAPI.PatchBeforeProvisioningRule`: %v\n", resp) + //resp, r, err := apiClient.V2024.SIMIntegrationsAPI.PatchBeforeProvisioningRule(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatch(jsonPatch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.PatchBeforeProvisioningRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchBeforeProvisioningRule`: ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `SIMIntegrationsAPI.PatchBeforeProvisioningRule`: %v\n", resp) } ``` @@ -509,7 +508,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -529,24 +528,23 @@ func main() { } ] }`) // JsonPatch | The JsonPatch object that describes the changes of SIM - - var jsonPatch v2024.JsonPatch - if err := json.Unmarshal(jsonpatch, &jsonPatch); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatch v2024.JsonPatch + if err := json.Unmarshal(jsonpatch, &jsonPatch); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SIMIntegrationsAPI.PatchSIMAttributes(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatch(jsonPatch).Execute() - //resp, r, err := apiClient.V2024.SIMIntegrationsAPI.PatchSIMAttributes(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatch(jsonPatch).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.PatchSIMAttributes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchSIMAttributes`: ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `SIMIntegrationsAPI.PatchSIMAttributes`: %v\n", resp) + //resp, r, err := apiClient.V2024.SIMIntegrationsAPI.PatchSIMAttributes(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatch(jsonPatch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.PatchSIMAttributes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchSIMAttributes`: ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `SIMIntegrationsAPI.PatchSIMAttributes`: %v\n", resp) } ``` @@ -606,7 +604,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -633,24 +631,23 @@ func main() { } }`) // SimIntegrationDetails | The full DTO of the integration containing the updated model - - var simIntegrationDetails v2024.SimIntegrationDetails - if err := json.Unmarshal(simintegrationdetails, &simIntegrationDetails); err != nil { - fmt.Println("Error:", err) - return - } - + var simIntegrationDetails v2024.SimIntegrationDetails + if err := json.Unmarshal(simintegrationdetails, &simIntegrationDetails); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SIMIntegrationsAPI.PutSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SimIntegrationDetails(simIntegrationDetails).Execute() - //resp, r, err := apiClient.V2024.SIMIntegrationsAPI.PutSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SimIntegrationDetails(simIntegrationDetails).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.PutSIMIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutSIMIntegration`: ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `SIMIntegrationsAPI.PutSIMIntegration`: %v\n", resp) + //resp, r, err := apiClient.V2024.SIMIntegrationsAPI.PutSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SimIntegrationDetails(simIntegrationDetails).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.PutSIMIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutSIMIntegration`: ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `SIMIntegrationsAPI.PutSIMIntegration`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/SODPoliciesAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/SODPoliciesAPI.md index 22853fc4f..c750c6737 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/SODPoliciesAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/SODPoliciesAPI.md @@ -98,7 +98,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -161,24 +161,23 @@ func main() { "externalPolicyReference" : "XYZ policy" }`) // SodPolicy | - - var sodPolicy v2024.SodPolicy - if err := json.Unmarshal(sodpolicy, &sodPolicy); err != nil { - fmt.Println("Error:", err) - return - } - + var sodPolicy v2024.SodPolicy + if err := json.Unmarshal(sodpolicy, &sodPolicy); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SODPoliciesAPI.CreateSodPolicy(context.Background()).SodPolicy(sodPolicy).Execute() - //resp, r, err := apiClient.V2024.SODPoliciesAPI.CreateSodPolicy(context.Background()).SodPolicy(sodPolicy).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.CreateSodPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSodPolicy`: SodPolicy - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.CreateSodPolicy`: %v\n", resp) + //resp, r, err := apiClient.V2024.SODPoliciesAPI.CreateSodPolicy(context.Background()).SodPolicy(sodPolicy).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.CreateSodPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSodPolicy`: SodPolicy + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.CreateSodPolicy`: %v\n", resp) } ``` @@ -227,7 +226,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -236,16 +235,17 @@ func main() { id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The ID of the SOD Policy to delete. # string | The ID of the SOD Policy to delete. logical := true // bool | Indicates whether this is a soft delete (logical true) or a hard delete. Soft delete marks the policy as deleted and just save it with this status. It could be fully deleted or recovered further. Hard delete vise versa permanently delete SOD request during this call. (optional) (default to true) # bool | Indicates whether this is a soft delete (logical true) or a hard delete. Soft delete marks the policy as deleted and just save it with this status. It could be fully deleted or recovered further. Hard delete vise versa permanently delete SOD request during this call. (optional) (default to true) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.SODPoliciesAPI.DeleteSodPolicy(context.Background(), id).Execute() - //r, err := apiClient.V2024.SODPoliciesAPI.DeleteSodPolicy(context.Background(), id).Logical(logical).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.DeleteSodPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.SODPoliciesAPI.DeleteSodPolicy(context.Background(), id).Logical(logical).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.DeleteSodPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -292,7 +292,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -300,16 +300,17 @@ import ( func main() { id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The ID of the SOD policy the schedule must be deleted for. # string | The ID of the SOD policy the schedule must be deleted for. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.SODPoliciesAPI.DeleteSodPolicySchedule(context.Background(), id).Execute() - //r, err := apiClient.V2024.SODPoliciesAPI.DeleteSodPolicySchedule(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.DeleteSodPolicySchedule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.SODPoliciesAPI.DeleteSodPolicySchedule(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.DeleteSodPolicySchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -358,7 +359,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -367,18 +368,18 @@ func main() { reportResultId := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the report reference to download. # string | The ID of the report reference to download. fileName := `custom-name` // string | Custom Name for the file. # string | Custom Name for the file. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SODPoliciesAPI.GetCustomViolationReport(context.Background(), reportResultId, fileName).Execute() - //resp, r, err := apiClient.V2024.SODPoliciesAPI.GetCustomViolationReport(context.Background(), reportResultId, fileName).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetCustomViolationReport``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCustomViolationReport`: *os.File - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetCustomViolationReport`: %v\n", resp) + //resp, r, err := apiClient.V2024.SODPoliciesAPI.GetCustomViolationReport(context.Background(), reportResultId, fileName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetCustomViolationReport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCustomViolationReport`: *os.File + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetCustomViolationReport`: %v\n", resp) } ``` @@ -425,7 +426,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -433,18 +434,18 @@ import ( func main() { reportResultId := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the report reference to download. # string | The ID of the report reference to download. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SODPoliciesAPI.GetDefaultViolationReport(context.Background(), reportResultId).Execute() - //resp, r, err := apiClient.V2024.SODPoliciesAPI.GetDefaultViolationReport(context.Background(), reportResultId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetDefaultViolationReport``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetDefaultViolationReport`: *os.File - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetDefaultViolationReport`: %v\n", resp) + //resp, r, err := apiClient.V2024.SODPoliciesAPI.GetDefaultViolationReport(context.Background(), reportResultId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetDefaultViolationReport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDefaultViolationReport`: *os.File + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetDefaultViolationReport`: %v\n", resp) } ``` @@ -483,25 +484,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SODPoliciesAPI.GetSodAllReportRunStatus(context.Background()).Execute() - //resp, r, err := apiClient.V2024.SODPoliciesAPI.GetSodAllReportRunStatus(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodAllReportRunStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSodAllReportRunStatus`: ReportResultReference - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodAllReportRunStatus`: %v\n", resp) + //resp, r, err := apiClient.V2024.SODPoliciesAPI.GetSodAllReportRunStatus(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodAllReportRunStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSodAllReportRunStatus`: ReportResultReference + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodAllReportRunStatus`: %v\n", resp) } ``` @@ -549,7 +550,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -557,18 +558,18 @@ import ( func main() { id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The ID of the SOD Policy to retrieve. # string | The ID of the SOD Policy to retrieve. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SODPoliciesAPI.GetSodPolicy(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.SODPoliciesAPI.GetSodPolicy(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSodPolicy`: SodPolicy - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodPolicy`: %v\n", resp) + //resp, r, err := apiClient.V2024.SODPoliciesAPI.GetSodPolicy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSodPolicy`: SodPolicy + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodPolicy`: %v\n", resp) } ``` @@ -615,7 +616,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -623,18 +624,18 @@ import ( func main() { id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The ID of the SOD policy schedule to retrieve. # string | The ID of the SOD policy schedule to retrieve. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SODPoliciesAPI.GetSodPolicySchedule(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.SODPoliciesAPI.GetSodPolicySchedule(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodPolicySchedule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSodPolicySchedule`: SodPolicySchedule - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodPolicySchedule`: %v\n", resp) + //resp, r, err := apiClient.V2024.SODPoliciesAPI.GetSodPolicySchedule(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodPolicySchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSodPolicySchedule`: SodPolicySchedule + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodPolicySchedule`: %v\n", resp) } ``` @@ -681,7 +682,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -689,18 +690,18 @@ import ( func main() { reportResultId := `2e8d8180-24bc-4d21-91c6-7affdb473b0d` // string | The ID of the report reference to retrieve. # string | The ID of the report reference to retrieve. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SODPoliciesAPI.GetSodViolationReportRunStatus(context.Background(), reportResultId).Execute() - //resp, r, err := apiClient.V2024.SODPoliciesAPI.GetSodViolationReportRunStatus(context.Background(), reportResultId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodViolationReportRunStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSodViolationReportRunStatus`: ReportResultReference - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodViolationReportRunStatus`: %v\n", resp) + //resp, r, err := apiClient.V2024.SODPoliciesAPI.GetSodViolationReportRunStatus(context.Background(), reportResultId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodViolationReportRunStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSodViolationReportRunStatus`: ReportResultReference + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodViolationReportRunStatus`: %v\n", resp) } ``` @@ -747,7 +748,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -755,18 +756,18 @@ import ( func main() { id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The ID of the violation report to retrieve status for. # string | The ID of the violation report to retrieve status for. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SODPoliciesAPI.GetSodViolationReportStatus(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.SODPoliciesAPI.GetSodViolationReportStatus(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodViolationReportStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSodViolationReportStatus`: ReportResultReference - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodViolationReportStatus`: %v\n", resp) + //resp, r, err := apiClient.V2024.SODPoliciesAPI.GetSodViolationReportStatus(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodViolationReportStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSodViolationReportStatus`: ReportResultReference + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodViolationReportStatus`: %v\n", resp) } ``` @@ -814,7 +815,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -826,18 +827,18 @@ func main() { filters := `id eq "bc693f07e7b645539626c25954c58554"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in* **state**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in* **state**: *eq, in* (optional) sorters := `id,name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, description** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, description** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SODPoliciesAPI.ListSodPolicies(context.Background()).Execute() - //resp, r, err := apiClient.V2024.SODPoliciesAPI.ListSodPolicies(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.ListSodPolicies``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListSodPolicies`: []SodPolicy - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.ListSodPolicies`: %v\n", resp) + //resp, r, err := apiClient.V2024.SODPoliciesAPI.ListSodPolicies(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.ListSodPolicies``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListSodPolicies`: []SodPolicy + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.ListSodPolicies`: %v\n", resp) } ``` @@ -887,7 +888,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -896,24 +897,23 @@ func main() { id := `2c918083-5d19-1a86-015d-28455b4a2329` // string | The ID of the SOD policy being modified. # string | The ID of the SOD policy being modified. jsonpatchoperation := []byte(`[{op=replace, path=/description, value=Modified description}, {op=replace, path=/conflictingAccessCriteria/leftCriteria/name, value=money-in-modified}, {op=replace, path=/conflictingAccessCriteria/rightCriteria, value={name=money-out-modified, criteriaList=[{type=ENTITLEMENT, id=2c918087682f9a86016839c0509c1ab2}]}}]`) // []JsonPatchOperation | A list of SOD Policy update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * ownerRef * externalPolicyReference * compensatingControls * correctionAdvice * state * tags * violationOwnerAssignmentConfig * scheduled * conflictingAccessCriteria - - var jsonPatchOperation v2024.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2024.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SODPoliciesAPI.PatchSodPolicy(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2024.SODPoliciesAPI.PatchSodPolicy(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.PatchSodPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchSodPolicy`: SodPolicy - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.PatchSodPolicy`: %v\n", resp) + //resp, r, err := apiClient.V2024.SODPoliciesAPI.PatchSodPolicy(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.PatchSodPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchSodPolicy`: SodPolicy + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.PatchSodPolicy`: %v\n", resp) } ``` @@ -961,7 +961,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1055,24 +1055,23 @@ func main() { "emailEmptyResults" : false }`) // SodPolicySchedule | - - var sodPolicySchedule v2024.SodPolicySchedule - if err := json.Unmarshal(sodpolicyschedule, &sodPolicySchedule); err != nil { - fmt.Println("Error:", err) - return - } - + var sodPolicySchedule v2024.SodPolicySchedule + if err := json.Unmarshal(sodpolicyschedule, &sodPolicySchedule); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SODPoliciesAPI.PutPolicySchedule(context.Background(), id).SodPolicySchedule(sodPolicySchedule).Execute() - //resp, r, err := apiClient.V2024.SODPoliciesAPI.PutPolicySchedule(context.Background(), id).SodPolicySchedule(sodPolicySchedule).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.PutPolicySchedule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutPolicySchedule`: SodPolicySchedule - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.PutPolicySchedule`: %v\n", resp) + //resp, r, err := apiClient.V2024.SODPoliciesAPI.PutPolicySchedule(context.Background(), id).SodPolicySchedule(sodPolicySchedule).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.PutPolicySchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutPolicySchedule`: SodPolicySchedule + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.PutPolicySchedule`: %v\n", resp) } ``` @@ -1121,7 +1120,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1185,24 +1184,23 @@ func main() { "externalPolicyReference" : "XYZ policy" }`) // SodPolicy | - - var sodPolicy v2024.SodPolicy - if err := json.Unmarshal(sodpolicy, &sodPolicy); err != nil { - fmt.Println("Error:", err) - return - } - + var sodPolicy v2024.SodPolicy + if err := json.Unmarshal(sodpolicy, &sodPolicy); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SODPoliciesAPI.PutSodPolicy(context.Background(), id).SodPolicy(sodPolicy).Execute() - //resp, r, err := apiClient.V2024.SODPoliciesAPI.PutSodPolicy(context.Background(), id).SodPolicy(sodPolicy).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.PutSodPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutSodPolicy`: SodPolicy - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.PutSodPolicy`: %v\n", resp) + //resp, r, err := apiClient.V2024.SODPoliciesAPI.PutSodPolicy(context.Background(), id).SodPolicy(sodPolicy).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.PutSodPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutSodPolicy`: SodPolicy + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.PutSodPolicy`: %v\n", resp) } ``` @@ -1249,7 +1247,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1257,18 +1255,18 @@ import ( func main() { id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The SOD policy ID to run. # string | The SOD policy ID to run. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SODPoliciesAPI.StartEvaluateSodPolicy(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.SODPoliciesAPI.StartEvaluateSodPolicy(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.StartEvaluateSodPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartEvaluateSodPolicy`: ReportResultReference - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.StartEvaluateSodPolicy`: %v\n", resp) + //resp, r, err := apiClient.V2024.SODPoliciesAPI.StartEvaluateSodPolicy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.StartEvaluateSodPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartEvaluateSodPolicy`: ReportResultReference + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.StartEvaluateSodPolicy`: %v\n", resp) } ``` @@ -1311,7 +1309,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1321,18 +1319,18 @@ func main() { "filteredPolicyList" : [ "[b868cd40-ffa4-4337-9c07-1a51846cfa94, 63a07a7b-39a4-48aa-956d-50c827deba2a]", "[b868cd40-ffa4-4337-9c07-1a51846cfa94, 63a07a7b-39a4-48aa-956d-50c827deba2a]" ] }`) // MultiPolicyRequest | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SODPoliciesAPI.StartSodAllPoliciesForOrg(context.Background()).Execute() - //resp, r, err := apiClient.V2024.SODPoliciesAPI.StartSodAllPoliciesForOrg(context.Background()).MultiPolicyRequest(multiPolicyRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.StartSodAllPoliciesForOrg``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartSodAllPoliciesForOrg`: ReportResultReference - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.StartSodAllPoliciesForOrg`: %v\n", resp) + //resp, r, err := apiClient.V2024.SODPoliciesAPI.StartSodAllPoliciesForOrg(context.Background()).MultiPolicyRequest(multiPolicyRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.StartSodAllPoliciesForOrg``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartSodAllPoliciesForOrg`: ReportResultReference + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.StartSodAllPoliciesForOrg`: %v\n", resp) } ``` @@ -1379,7 +1377,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1387,18 +1385,18 @@ import ( func main() { id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The SOD policy ID to run. # string | The SOD policy ID to run. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SODPoliciesAPI.StartSodPolicy(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.SODPoliciesAPI.StartSodPolicy(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.StartSodPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartSodPolicy`: ReportResultReference - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.StartSodPolicy`: %v\n", resp) + //resp, r, err := apiClient.V2024.SODPoliciesAPI.StartSodPolicy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.StartSodPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartSodPolicy`: ReportResultReference + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.StartSodPolicy`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/SODViolationsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/SODViolationsAPI.md index 4cc87a6c0..592c3686d 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/SODViolationsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/SODViolationsAPI.md @@ -74,7 +74,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -93,24 +93,23 @@ func main() { } ] }`) // IdentityWithNewAccess | - - var identityWithNewAccess v2024.IdentityWithNewAccess - if err := json.Unmarshal(identitywithnewaccess, &identityWithNewAccess); err != nil { - fmt.Println("Error:", err) - return - } - + var identityWithNewAccess v2024.IdentityWithNewAccess + if err := json.Unmarshal(identitywithnewaccess, &identityWithNewAccess); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SODViolationsAPI.StartPredictSodViolations(context.Background()).IdentityWithNewAccess(identityWithNewAccess).Execute() - //resp, r, err := apiClient.V2024.SODViolationsAPI.StartPredictSodViolations(context.Background()).IdentityWithNewAccess(identityWithNewAccess).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODViolationsAPI.StartPredictSodViolations``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartPredictSodViolations`: ViolationPrediction - fmt.Fprintf(os.Stdout, "Response from `SODViolationsAPI.StartPredictSodViolations`: %v\n", resp) + //resp, r, err := apiClient.V2024.SODViolationsAPI.StartPredictSodViolations(context.Background()).IdentityWithNewAccess(identityWithNewAccess).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODViolationsAPI.StartPredictSodViolations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartPredictSodViolations`: ViolationPrediction + fmt.Fprintf(os.Stdout, "Response from `SODViolationsAPI.StartPredictSodViolations`: %v\n", resp) } ``` @@ -153,7 +152,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -161,24 +160,23 @@ import ( func main() { identitywithnewaccess1 := []byte(`{identityId=2c91808568c529c60168cca6f90c1313, accessRefs=[{type=ENTITLEMENT, id=2c918087682f9a86016839c050861ab1, name=CN=Information Access,OU=test,OU=test-service,DC=TestAD,DC=local}, {type=ENTITLEMENT, id=2c918087682f9a86016839c0509c1ab2, name=CN=Information Technology,OU=test,OU=test-service,DC=TestAD,DC=local}], clientMetadata={additionalProp1=string, additionalProp2=string, additionalProp3=string}}`) // IdentityWithNewAccess1 | - - var identityWithNewAccess1 v2024.IdentityWithNewAccess1 - if err := json.Unmarshal(identitywithnewaccess1, &identityWithNewAccess1); err != nil { - fmt.Println("Error:", err) - return - } - + var identityWithNewAccess1 v2024.IdentityWithNewAccess1 + if err := json.Unmarshal(identitywithnewaccess1, &identityWithNewAccess1); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SODViolationsAPI.StartViolationCheck(context.Background()).IdentityWithNewAccess1(identityWithNewAccess1).Execute() - //resp, r, err := apiClient.V2024.SODViolationsAPI.StartViolationCheck(context.Background()).IdentityWithNewAccess1(identityWithNewAccess1).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODViolationsAPI.StartViolationCheck``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartViolationCheck`: SodViolationCheck - fmt.Fprintf(os.Stdout, "Response from `SODViolationsAPI.StartViolationCheck`: %v\n", resp) + //resp, r, err := apiClient.V2024.SODViolationsAPI.StartViolationCheck(context.Background()).IdentityWithNewAccess1(identityWithNewAccess1).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODViolationsAPI.StartViolationCheck``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartViolationCheck`: SodViolationCheck + fmt.Fprintf(os.Stdout, "Response from `SODViolationsAPI.StartViolationCheck`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/SPConfigAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/SPConfigAPI.md index 22b301c59..2562fe8b5 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/SPConfigAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/SPConfigAPI.md @@ -62,7 +62,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -72,24 +72,23 @@ func main() { "description" : "Export Job 1 Test" }`) // ExportPayload | Export options control what will be included in the export. - - var exportPayload v2024.ExportPayload - if err := json.Unmarshal(exportpayload, &exportPayload); err != nil { - fmt.Println("Error:", err) - return - } - + var exportPayload v2024.ExportPayload + if err := json.Unmarshal(exportpayload, &exportPayload); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SPConfigAPI.ExportSpConfig(context.Background()).ExportPayload(exportPayload).Execute() - //resp, r, err := apiClient.V2024.SPConfigAPI.ExportSpConfig(context.Background()).ExportPayload(exportPayload).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.ExportSpConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExportSpConfig`: SpConfigExportJob - fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.ExportSpConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.SPConfigAPI.ExportSpConfig(context.Background()).ExportPayload(exportPayload).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.ExportSpConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExportSpConfig`: SpConfigExportJob + fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.ExportSpConfig`: %v\n", resp) } ``` @@ -138,7 +137,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -146,18 +145,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the export job whose results will be downloaded. # string | The ID of the export job whose results will be downloaded. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SPConfigAPI.GetSpConfigExport(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.SPConfigAPI.GetSpConfigExport(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.GetSpConfigExport``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSpConfigExport`: SpConfigExportResults - fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.GetSpConfigExport`: %v\n", resp) + //resp, r, err := apiClient.V2024.SPConfigAPI.GetSpConfigExport(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.GetSpConfigExport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSpConfigExport`: SpConfigExportResults + fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.GetSpConfigExport`: %v\n", resp) } ``` @@ -206,7 +205,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -214,18 +213,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the export job whose status will be returned. # string | The ID of the export job whose status will be returned. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SPConfigAPI.GetSpConfigExportStatus(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.SPConfigAPI.GetSpConfigExportStatus(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.GetSpConfigExportStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSpConfigExportStatus`: SpConfigExportJobStatus - fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.GetSpConfigExportStatus`: %v\n", resp) + //resp, r, err := apiClient.V2024.SPConfigAPI.GetSpConfigExportStatus(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.GetSpConfigExportStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSpConfigExportStatus`: SpConfigExportJobStatus + fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.GetSpConfigExportStatus`: %v\n", resp) } ``` @@ -274,7 +273,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -282,18 +281,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the import job whose results will be downloaded. # string | The ID of the import job whose results will be downloaded. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SPConfigAPI.GetSpConfigImport(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.SPConfigAPI.GetSpConfigImport(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.GetSpConfigImport``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSpConfigImport`: SpConfigImportResults - fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.GetSpConfigImport`: %v\n", resp) + //resp, r, err := apiClient.V2024.SPConfigAPI.GetSpConfigImport(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.GetSpConfigImport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSpConfigImport`: SpConfigImportResults + fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.GetSpConfigImport`: %v\n", resp) } ``` @@ -344,7 +343,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -352,18 +351,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the import job whose status will be returned. # string | The ID of the import job whose status will be returned. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SPConfigAPI.GetSpConfigImportStatus(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.SPConfigAPI.GetSpConfigImportStatus(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.GetSpConfigImportStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSpConfigImportStatus`: SpConfigImportJobStatus - fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.GetSpConfigImportStatus`: %v\n", resp) + //resp, r, err := apiClient.V2024.SPConfigAPI.GetSpConfigImportStatus(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.GetSpConfigImportStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSpConfigImportStatus`: SpConfigImportJobStatus + fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.GetSpConfigImportStatus`: %v\n", resp) } ``` @@ -418,7 +417,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -428,18 +427,18 @@ func main() { preview := true // bool | This option is intended to give the user information about how an import operation would proceed, without having any effect on the target tenant. If this parameter is \"true\", no objects will be imported. Instead, the import process will pre-process the import file and attempt to resolve references within imported objects. The import result file will contain messages pertaining to how specific references were resolved, any errors associated with the preprocessing, and messages indicating which objects would be imported. (optional) (default to false) # bool | This option is intended to give the user information about how an import operation would proceed, without having any effect on the target tenant. If this parameter is \"true\", no objects will be imported. Instead, the import process will pre-process the import file and attempt to resolve references within imported objects. The import result file will contain messages pertaining to how specific references were resolved, any errors associated with the preprocessing, and messages indicating which objects would be imported. (optional) (default to false) options := []byte(``) // ImportOptions | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SPConfigAPI.ImportSpConfig(context.Background()).Data(data).Execute() - //resp, r, err := apiClient.V2024.SPConfigAPI.ImportSpConfig(context.Background()).Data(data).Preview(preview).Options(options).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.ImportSpConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportSpConfig`: SpConfigJob - fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.ImportSpConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.SPConfigAPI.ImportSpConfig(context.Background()).Data(data).Preview(preview).Options(options).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.ImportSpConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportSpConfig`: SpConfigJob + fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.ImportSpConfig`: %v\n", resp) } ``` @@ -478,25 +477,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SPConfigAPI.ListSpConfigObjects(context.Background()).Execute() - //resp, r, err := apiClient.V2024.SPConfigAPI.ListSpConfigObjects(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.ListSpConfigObjects``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListSpConfigObjects`: []SpConfigObject - fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.ListSpConfigObjects`: %v\n", resp) + //resp, r, err := apiClient.V2024.SPConfigAPI.ListSpConfigObjects(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.ListSpConfigObjects``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListSpConfigObjects`: []SpConfigObject + fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.ListSpConfigObjects`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/SavedSearchAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/SavedSearchAPI.md index a768c53a0..464aa3c30 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/SavedSearchAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/SavedSearchAPI.md @@ -71,7 +71,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -79,24 +79,23 @@ import ( func main() { createsavedsearchrequest := []byte(``) // CreateSavedSearchRequest | The saved search to persist. - - var createSavedSearchRequest v2024.CreateSavedSearchRequest - if err := json.Unmarshal(createsavedsearchrequest, &createSavedSearchRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var createSavedSearchRequest v2024.CreateSavedSearchRequest + if err := json.Unmarshal(createsavedsearchrequest, &createSavedSearchRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SavedSearchAPI.CreateSavedSearch(context.Background()).CreateSavedSearchRequest(createSavedSearchRequest).Execute() - //resp, r, err := apiClient.V2024.SavedSearchAPI.CreateSavedSearch(context.Background()).CreateSavedSearchRequest(createSavedSearchRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.CreateSavedSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSavedSearch`: SavedSearch - fmt.Fprintf(os.Stdout, "Response from `SavedSearchAPI.CreateSavedSearch`: %v\n", resp) + //resp, r, err := apiClient.V2024.SavedSearchAPI.CreateSavedSearch(context.Background()).CreateSavedSearchRequest(createSavedSearchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.CreateSavedSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSavedSearch`: SavedSearch + fmt.Fprintf(os.Stdout, "Response from `SavedSearchAPI.CreateSavedSearch`: %v\n", resp) } ``` @@ -144,7 +143,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -152,16 +151,17 @@ import ( func main() { id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.SavedSearchAPI.DeleteSavedSearch(context.Background(), id).Execute() - //r, err := apiClient.V2024.SavedSearchAPI.DeleteSavedSearch(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.DeleteSavedSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.SavedSearchAPI.DeleteSavedSearch(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.DeleteSavedSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -210,7 +210,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -229,22 +229,22 @@ func main() { "scheduleId" : "7a724640-0c17-4ce9-a8c3-4a89738459c8" }`) // SearchArguments | When saved search execution is triggered by a scheduled search, *scheduleId* will specify the ID of the triggering scheduled search. If *scheduleId* is not specified (when execution is triggered by a UI test), the *owner* and *recipients* arguments must be provided. - - var searchArguments v2024.SearchArguments - if err := json.Unmarshal(searcharguments, &searchArguments); err != nil { - fmt.Println("Error:", err) - return - } - + var searchArguments v2024.SearchArguments + if err := json.Unmarshal(searcharguments, &searchArguments); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.SavedSearchAPI.ExecuteSavedSearch(context.Background(), id).SearchArguments(searchArguments).Execute() - //r, err := apiClient.V2024.SavedSearchAPI.ExecuteSavedSearch(context.Background(), id).SearchArguments(searchArguments).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.ExecuteSavedSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.SavedSearchAPI.ExecuteSavedSearch(context.Background(), id).SearchArguments(searchArguments).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.ExecuteSavedSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -292,7 +292,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -300,18 +300,18 @@ import ( func main() { id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SavedSearchAPI.GetSavedSearch(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.SavedSearchAPI.GetSavedSearch(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.GetSavedSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSavedSearch`: SavedSearch - fmt.Fprintf(os.Stdout, "Response from `SavedSearchAPI.GetSavedSearch`: %v\n", resp) + //resp, r, err := apiClient.V2024.SavedSearchAPI.GetSavedSearch(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.GetSavedSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSavedSearch`: SavedSearch + fmt.Fprintf(os.Stdout, "Response from `SavedSearchAPI.GetSavedSearch`: %v\n", resp) } ``` @@ -358,7 +358,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -369,18 +369,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) filters := `owner.id eq "7a724640-0c17-4ce9-a8c3-4a89738459c8"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **owner.id**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **owner.id**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SavedSearchAPI.ListSavedSearches(context.Background()).Execute() - //resp, r, err := apiClient.V2024.SavedSearchAPI.ListSavedSearches(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.ListSavedSearches``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListSavedSearches`: []SavedSearch - fmt.Fprintf(os.Stdout, "Response from `SavedSearchAPI.ListSavedSearches`: %v\n", resp) + //resp, r, err := apiClient.V2024.SavedSearchAPI.ListSavedSearches(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.ListSavedSearches``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListSavedSearches`: []SavedSearch + fmt.Fprintf(os.Stdout, "Response from `SavedSearchAPI.ListSavedSearches`: %v\n", resp) } ``` @@ -431,7 +431,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -484,24 +484,23 @@ func main() { "fields" : [ "disabled" ] }`) // SavedSearch | The saved search to persist. - - var savedSearch v2024.SavedSearch - if err := json.Unmarshal(savedsearch, &savedSearch); err != nil { - fmt.Println("Error:", err) - return - } - + var savedSearch v2024.SavedSearch + if err := json.Unmarshal(savedsearch, &savedSearch); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SavedSearchAPI.PutSavedSearch(context.Background(), id).SavedSearch(savedSearch).Execute() - //resp, r, err := apiClient.V2024.SavedSearchAPI.PutSavedSearch(context.Background(), id).SavedSearch(savedSearch).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.PutSavedSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutSavedSearch`: SavedSearch - fmt.Fprintf(os.Stdout, "Response from `SavedSearchAPI.PutSavedSearch`: %v\n", resp) + //resp, r, err := apiClient.V2024.SavedSearchAPI.PutSavedSearch(context.Background(), id).SavedSearch(savedSearch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.PutSavedSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutSavedSearch`: SavedSearch + fmt.Fprintf(os.Stdout, "Response from `SavedSearchAPI.PutSavedSearch`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/ScheduledSearchAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/ScheduledSearchAPI.md index fa5c1cecd..dbf134af7 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/ScheduledSearchAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/ScheduledSearchAPI.md @@ -87,7 +87,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -95,24 +95,23 @@ import ( func main() { createscheduledsearchrequest := []byte(`{savedSearchId=9c620e13-cd33-4804-a13d-403bd7bcdbad, schedule={type=DAILY, hours={type=LIST, values=[9]}}, recipients=[{type=IDENTITY, id=2c9180867624cbd7017642d8c8c81f67}]}`) // CreateScheduledSearchRequest | The scheduled search to persist. - - var createScheduledSearchRequest v2024.CreateScheduledSearchRequest - if err := json.Unmarshal(createscheduledsearchrequest, &createScheduledSearchRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var createScheduledSearchRequest v2024.CreateScheduledSearchRequest + if err := json.Unmarshal(createscheduledsearchrequest, &createScheduledSearchRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ScheduledSearchAPI.CreateScheduledSearch(context.Background()).CreateScheduledSearchRequest(createScheduledSearchRequest).Execute() - //resp, r, err := apiClient.V2024.ScheduledSearchAPI.CreateScheduledSearch(context.Background()).CreateScheduledSearchRequest(createScheduledSearchRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.CreateScheduledSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateScheduledSearch`: ScheduledSearch - fmt.Fprintf(os.Stdout, "Response from `ScheduledSearchAPI.CreateScheduledSearch`: %v\n", resp) + //resp, r, err := apiClient.V2024.ScheduledSearchAPI.CreateScheduledSearch(context.Background()).CreateScheduledSearchRequest(createScheduledSearchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.CreateScheduledSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateScheduledSearch`: ScheduledSearch + fmt.Fprintf(os.Stdout, "Response from `ScheduledSearchAPI.CreateScheduledSearch`: %v\n", resp) } ``` @@ -160,7 +159,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -168,16 +167,17 @@ import ( func main() { id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.ScheduledSearchAPI.DeleteScheduledSearch(context.Background(), id).Execute() - //r, err := apiClient.V2024.ScheduledSearchAPI.DeleteScheduledSearch(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.DeleteScheduledSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.ScheduledSearchAPI.DeleteScheduledSearch(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.DeleteScheduledSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -224,7 +224,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -232,18 +232,18 @@ import ( func main() { id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ScheduledSearchAPI.GetScheduledSearch(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.ScheduledSearchAPI.GetScheduledSearch(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.GetScheduledSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetScheduledSearch`: ScheduledSearch - fmt.Fprintf(os.Stdout, "Response from `ScheduledSearchAPI.GetScheduledSearch`: %v\n", resp) + //resp, r, err := apiClient.V2024.ScheduledSearchAPI.GetScheduledSearch(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.GetScheduledSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetScheduledSearch`: ScheduledSearch + fmt.Fprintf(os.Stdout, "Response from `ScheduledSearchAPI.GetScheduledSearch`: %v\n", resp) } ``` @@ -290,7 +290,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -301,18 +301,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) filters := `savedSearchId eq "6cc0945d-9eeb-4948-9033-72d066e1153e"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **owner.id**: *eq* **savedSearchId**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **owner.id**: *eq* **savedSearchId**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ScheduledSearchAPI.ListScheduledSearch(context.Background()).Execute() - //resp, r, err := apiClient.V2024.ScheduledSearchAPI.ListScheduledSearch(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.ListScheduledSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListScheduledSearch`: []ScheduledSearch - fmt.Fprintf(os.Stdout, "Response from `ScheduledSearchAPI.ListScheduledSearch`: %v\n", resp) + //resp, r, err := apiClient.V2024.ScheduledSearchAPI.ListScheduledSearch(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.ListScheduledSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListScheduledSearch`: []ScheduledSearch + fmt.Fprintf(os.Stdout, "Response from `ScheduledSearchAPI.ListScheduledSearch`: %v\n", resp) } ``` @@ -361,7 +361,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -373,22 +373,22 @@ func main() { "type" : "IDENTITY" }`) // TypedReference | The recipient to be removed from the scheduled search. - - var typedReference v2024.TypedReference - if err := json.Unmarshal(typedreference, &typedReference); err != nil { - fmt.Println("Error:", err) - return - } - + var typedReference v2024.TypedReference + if err := json.Unmarshal(typedreference, &typedReference); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.ScheduledSearchAPI.UnsubscribeScheduledSearch(context.Background(), id).TypedReference(typedReference).Execute() - //r, err := apiClient.V2024.ScheduledSearchAPI.UnsubscribeScheduledSearch(context.Background(), id).TypedReference(typedReference).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.UnsubscribeScheduledSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.ScheduledSearchAPI.UnsubscribeScheduledSearch(context.Background(), id).TypedReference(typedReference).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.UnsubscribeScheduledSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -437,7 +437,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -536,24 +536,23 @@ func main() { "emailEmptyResults" : false }`) // ScheduledSearch | The scheduled search to persist. - - var scheduledSearch v2024.ScheduledSearch - if err := json.Unmarshal(scheduledsearch, &scheduledSearch); err != nil { - fmt.Println("Error:", err) - return - } - + var scheduledSearch v2024.ScheduledSearch + if err := json.Unmarshal(scheduledsearch, &scheduledSearch); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ScheduledSearchAPI.UpdateScheduledSearch(context.Background(), id).ScheduledSearch(scheduledSearch).Execute() - //resp, r, err := apiClient.V2024.ScheduledSearchAPI.UpdateScheduledSearch(context.Background(), id).ScheduledSearch(scheduledSearch).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.UpdateScheduledSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateScheduledSearch`: ScheduledSearch - fmt.Fprintf(os.Stdout, "Response from `ScheduledSearchAPI.UpdateScheduledSearch`: %v\n", resp) + //resp, r, err := apiClient.V2024.ScheduledSearchAPI.UpdateScheduledSearch(context.Background(), id).ScheduledSearch(scheduledSearch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.UpdateScheduledSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateScheduledSearch`: ScheduledSearch + fmt.Fprintf(os.Stdout, "Response from `ScheduledSearchAPI.UpdateScheduledSearch`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/SearchAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/SearchAPI.md index 0e86d09f7..699ebb31f 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/SearchAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/SearchAPI.md @@ -84,7 +84,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -211,24 +211,23 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - - var search v2024.Search - if err := json.Unmarshal(search, &search); err != nil { - fmt.Println("Error:", err) - return - } - + var search v2024.Search + if err := json.Unmarshal(search, &search); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SearchAPI.SearchAggregate(context.Background()).Search(search).Execute() - //resp, r, err := apiClient.V2024.SearchAPI.SearchAggregate(context.Background()).Search(search).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.SearchAggregate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SearchAggregate`: AggregationResult - fmt.Fprintf(os.Stdout, "Response from `SearchAPI.SearchAggregate`: %v\n", resp) + //resp, r, err := apiClient.V2024.SearchAPI.SearchAggregate(context.Background()).Search(search).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.SearchAggregate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchAggregate`: AggregationResult + fmt.Fprintf(os.Stdout, "Response from `SearchAPI.SearchAggregate`: %v\n", resp) } ``` @@ -271,7 +270,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -395,22 +394,22 @@ func main() { } }`) // Search | - - var search v2024.Search - if err := json.Unmarshal(search, &search); err != nil { - fmt.Println("Error:", err) - return - } - + var search v2024.Search + if err := json.Unmarshal(search, &search); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.SearchAPI.SearchCount(context.Background()).Search(search).Execute() - //r, err := apiClient.V2024.SearchAPI.SearchCount(context.Background()).Search(search).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.SearchCount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.SearchAPI.SearchCount(context.Background()).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.SearchCount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -459,7 +458,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -468,18 +467,18 @@ func main() { index := `identities` // string | The index from which to fetch the specified document. The currently supported index names are: *accessprofiles*, *accountactivities*, *entitlements*, *events*, *identities*, and *roles*. # string | The index from which to fetch the specified document. The currently supported index names are: *accessprofiles*, *accountactivities*, *entitlements*, *events*, *identities*, and *roles*. id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SearchAPI.SearchGet(context.Background(), index, id).Execute() - //resp, r, err := apiClient.V2024.SearchAPI.SearchGet(context.Background(), index, id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.SearchGet``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SearchGet`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `SearchAPI.SearchGet`: %v\n", resp) + //resp, r, err := apiClient.V2024.SearchAPI.SearchGet(context.Background(), index, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.SearchGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchGet`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `SearchAPI.SearchGet`: %v\n", resp) } ``` @@ -525,7 +524,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -652,24 +651,23 @@ func main() { limit := 10000 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - - var search v2024.Search - if err := json.Unmarshal(search, &search); err != nil { - fmt.Println("Error:", err) - return - } - + var search v2024.Search + if err := json.Unmarshal(search, &search); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SearchAPI.SearchPost(context.Background()).Search(search).Execute() - //resp, r, err := apiClient.V2024.SearchAPI.SearchPost(context.Background()).Search(search).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.SearchPost``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SearchPost`: []map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `SearchAPI.SearchPost`: %v\n", resp) + //resp, r, err := apiClient.V2024.SearchAPI.SearchPost(context.Background()).Search(search).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.SearchPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchPost`: []map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `SearchAPI.SearchPost`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/SearchAttributeConfigurationAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/SearchAttributeConfigurationAPI.md index 9cc3b0b47..878ba2c65 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/SearchAttributeConfigurationAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/SearchAttributeConfigurationAPI.md @@ -90,7 +90,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -106,24 +106,23 @@ func main() { } }`) // SearchAttributeConfig | - - var searchAttributeConfig v2024.SearchAttributeConfig - if err := json.Unmarshal(searchattributeconfig, &searchAttributeConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var searchAttributeConfig v2024.SearchAttributeConfig + if err := json.Unmarshal(searchattributeconfig, &searchAttributeConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SearchAttributeConfigurationAPI.CreateSearchAttributeConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).SearchAttributeConfig(searchAttributeConfig).Execute() - //resp, r, err := apiClient.V2024.SearchAttributeConfigurationAPI.CreateSearchAttributeConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).SearchAttributeConfig(searchAttributeConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.CreateSearchAttributeConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSearchAttributeConfig`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.CreateSearchAttributeConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.SearchAttributeConfigurationAPI.CreateSearchAttributeConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).SearchAttributeConfig(searchAttributeConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.CreateSearchAttributeConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSearchAttributeConfig`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.CreateSearchAttributeConfig`: %v\n", resp) } ``` @@ -182,7 +181,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -191,16 +190,17 @@ func main() { name := `newMailAttribute` // string | Name of the extended search attribute configuration to delete. # string | Name of the extended search attribute configuration to delete. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() - //r, err := apiClient.V2024.SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -256,7 +256,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -266,18 +266,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SearchAttributeConfigurationAPI.GetSearchAttributeConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.SearchAttributeConfigurationAPI.GetSearchAttributeConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.GetSearchAttributeConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSearchAttributeConfig`: []SearchAttributeConfig - fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.GetSearchAttributeConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.SearchAttributeConfigurationAPI.GetSearchAttributeConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.GetSearchAttributeConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSearchAttributeConfig`: []SearchAttributeConfig + fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.GetSearchAttributeConfig`: %v\n", resp) } ``` @@ -336,7 +336,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -345,18 +345,18 @@ func main() { name := `newMailAttribute` // string | Name of the extended search attribute configuration to get. # string | Name of the extended search attribute configuration to get. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSingleSearchAttributeConfig`: SearchAttributeConfig - fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSingleSearchAttributeConfig`: SearchAttributeConfig + fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig`: %v\n", resp) } ``` @@ -418,7 +418,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -428,24 +428,23 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") jsonpatchoperation := []byte(`[{op=replace, path=/name, value=newAttributeName}, {op=replace, path=/displayName, value=new attribute display name}, {op=add, path=/applicationAttributes, value={2c91808b79fd2422017a0b35d30f3968=employeeNumber}}]`) // []JsonPatchOperation | - - var jsonPatchOperation v2024.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2024.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SearchAttributeConfigurationAPI.PatchSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2024.SearchAttributeConfigurationAPI.PatchSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.PatchSearchAttributeConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchSearchAttributeConfig`: SearchAttributeConfig - fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.PatchSearchAttributeConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.SearchAttributeConfigurationAPI.PatchSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.PatchSearchAttributeConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchSearchAttributeConfig`: SearchAttributeConfig + fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.PatchSearchAttributeConfig`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/SegmentsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/SegmentsAPI.md index 13995029d..3e6a749b9 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/SegmentsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/SegmentsAPI.md @@ -77,7 +77,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -108,24 +108,23 @@ func main() { "id" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde" }`) // Segment | - - var segment v2024.Segment - if err := json.Unmarshal(segment, &segment); err != nil { - fmt.Println("Error:", err) - return - } - + var segment v2024.Segment + if err := json.Unmarshal(segment, &segment); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SegmentsAPI.CreateSegment(context.Background()).Segment(segment).Execute() - //resp, r, err := apiClient.V2024.SegmentsAPI.CreateSegment(context.Background()).Segment(segment).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.CreateSegment``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSegment`: Segment - fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.CreateSegment`: %v\n", resp) + //resp, r, err := apiClient.V2024.SegmentsAPI.CreateSegment(context.Background()).Segment(segment).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.CreateSegment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSegment`: Segment + fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.CreateSegment`: %v\n", resp) } ``` @@ -173,7 +172,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -181,16 +180,17 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The segment ID to delete. # string | The segment ID to delete. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.SegmentsAPI.DeleteSegment(context.Background(), id).Execute() - //r, err := apiClient.V2024.SegmentsAPI.DeleteSegment(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.DeleteSegment``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.SegmentsAPI.DeleteSegment(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.DeleteSegment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -237,7 +237,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -245,18 +245,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The segment ID to retrieve. # string | The segment ID to retrieve. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SegmentsAPI.GetSegment(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.SegmentsAPI.GetSegment(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.GetSegment``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSegment`: Segment - fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.GetSegment`: %v\n", resp) + //resp, r, err := apiClient.V2024.SegmentsAPI.GetSegment(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.GetSegment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSegment`: Segment + fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.GetSegment`: %v\n", resp) } ``` @@ -301,7 +301,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -311,18 +311,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SegmentsAPI.ListSegments(context.Background()).Execute() - //resp, r, err := apiClient.V2024.SegmentsAPI.ListSegments(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.ListSegments``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListSegments`: []Segment - fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.ListSegments`: %v\n", resp) + //resp, r, err := apiClient.V2024.SegmentsAPI.ListSegments(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.ListSegments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListSegments`: []Segment + fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.ListSegments`: %v\n", resp) } ``` @@ -371,7 +371,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -380,24 +380,23 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The segment ID to modify. # string | The segment ID to modify. requestbody := []byte(`[{op=replace, path=/visibilityCriteria, value={expression={operator=AND, children=[{operator=EQUALS, attribute=location, value={type=STRING, value=Philadelphia}}, {operator=EQUALS, attribute=department, value={type=STRING, value=HR}}]}}}]`) // []map[string]interface{} | A list of segment update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * owner * visibilityCriteria * active - - var requestBody v2024.[]RequestBody - if err := json.Unmarshal(requestbody, &requestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var requestBody []v2024.RequestBody + if err := json.Unmarshal(requestbody, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SegmentsAPI.PatchSegment(context.Background(), id).RequestBody(requestBody).Execute() - //resp, r, err := apiClient.V2024.SegmentsAPI.PatchSegment(context.Background(), id).RequestBody(requestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.PatchSegment``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchSegment`: Segment - fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.PatchSegment`: %v\n", resp) + //resp, r, err := apiClient.V2024.SegmentsAPI.PatchSegment(context.Background(), id).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.PatchSegment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchSegment`: Segment + fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.PatchSegment`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/ServiceDeskIntegrationAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/ServiceDeskIntegrationAPI.md index 709520e7f..10c1bb5c3 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/ServiceDeskIntegrationAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/ServiceDeskIntegrationAPI.md @@ -88,7 +88,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -129,24 +129,23 @@ func main() { "beforeProvisioningRule" : "" }`) // ServiceDeskIntegrationDto | The specifics of a new integration to create - - var serviceDeskIntegrationDto v2024.ServiceDeskIntegrationDto - if err := json.Unmarshal(servicedeskintegrationdto, &serviceDeskIntegrationDto); err != nil { - fmt.Println("Error:", err) - return - } - + var serviceDeskIntegrationDto v2024.ServiceDeskIntegrationDto + if err := json.Unmarshal(servicedeskintegrationdto, &serviceDeskIntegrationDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.CreateServiceDeskIntegration(context.Background()).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() - //resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.CreateServiceDeskIntegration(context.Background()).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.CreateServiceDeskIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateServiceDeskIntegration`: ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.CreateServiceDeskIntegration`: %v\n", resp) + //resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.CreateServiceDeskIntegration(context.Background()).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.CreateServiceDeskIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateServiceDeskIntegration`: ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.CreateServiceDeskIntegration`: %v\n", resp) } ``` @@ -193,7 +192,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -201,16 +200,17 @@ import ( func main() { id := `anId` // string | ID of Service Desk integration to delete # string | ID of Service Desk integration to delete - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration(context.Background(), id).Execute() - //r, err := apiClient.V2024.ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -257,7 +257,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -265,18 +265,18 @@ import ( func main() { id := `anId` // string | ID of the Service Desk integration to get # string | ID of the Service Desk integration to get - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.GetServiceDeskIntegration(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.GetServiceDeskIntegration(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetServiceDeskIntegration`: ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegration`: %v\n", resp) + //resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.GetServiceDeskIntegration(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetServiceDeskIntegration`: ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegration`: %v\n", resp) } ``` @@ -323,7 +323,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -331,18 +331,18 @@ import ( func main() { scriptName := `aScriptName` // string | The scriptName value of the Service Desk integration template to get # string | The scriptName value of the Service Desk integration template to get - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate(context.Background(), scriptName).Execute() - //resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate(context.Background(), scriptName).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetServiceDeskIntegrationTemplate`: ServiceDeskIntegrationTemplateDto - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate`: %v\n", resp) + //resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate(context.Background(), scriptName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetServiceDeskIntegrationTemplate`: ServiceDeskIntegrationTemplateDto + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate`: %v\n", resp) } ``` @@ -381,25 +381,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes(context.Background()).Execute() - //resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetServiceDeskIntegrationTypes`: []ServiceDeskIntegrationTemplateType - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes`: %v\n", resp) + //resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetServiceDeskIntegrationTypes`: []ServiceDeskIntegrationTemplateType + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes`: %v\n", resp) } ``` @@ -446,7 +446,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -458,18 +458,18 @@ func main() { filters := `name eq "John Doe"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq* **type**: *eq, in* **cluster**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq* **type**: *eq, in* **cluster**: *eq, in* (optional) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.GetServiceDeskIntegrations(context.Background()).Execute() - //resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.GetServiceDeskIntegrations(context.Background()).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegrations``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetServiceDeskIntegrations`: []ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegrations`: %v\n", resp) + //resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.GetServiceDeskIntegrations(context.Background()).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegrations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetServiceDeskIntegrations`: []ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegrations`: %v\n", resp) } ``` @@ -508,25 +508,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.GetStatusCheckDetails(context.Background()).Execute() - //resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.GetStatusCheckDetails(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetStatusCheckDetails``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetStatusCheckDetails`: QueuedCheckConfigDetails - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetStatusCheckDetails`: %v\n", resp) + //resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.GetStatusCheckDetails(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetStatusCheckDetails``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetStatusCheckDetails`: QueuedCheckConfigDetails + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetStatusCheckDetails`: %v\n", resp) } ``` @@ -574,7 +574,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -583,24 +583,23 @@ func main() { id := `anId` // string | ID of the Service Desk integration to update # string | ID of the Service Desk integration to update jsonpatchoperation := []byte(``) // []JsonPatchOperation | A list of SDIM update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Only `replace` operations are accepted by this endpoint. A 403 Forbidden Error indicates that a PATCH operation was attempted that is not allowed. - - var jsonPatchOperation v2024.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2024.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.PatchServiceDeskIntegration(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.PatchServiceDeskIntegration(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.PatchServiceDeskIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchServiceDeskIntegration`: ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.PatchServiceDeskIntegration`: %v\n", resp) + //resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.PatchServiceDeskIntegration(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.PatchServiceDeskIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchServiceDeskIntegration`: ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.PatchServiceDeskIntegration`: %v\n", resp) } ``` @@ -648,7 +647,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -690,24 +689,23 @@ func main() { "beforeProvisioningRule" : "" }`) // ServiceDeskIntegrationDto | The specifics of the integration to update - - var serviceDeskIntegrationDto v2024.ServiceDeskIntegrationDto - if err := json.Unmarshal(servicedeskintegrationdto, &serviceDeskIntegrationDto); err != nil { - fmt.Println("Error:", err) - return - } - + var serviceDeskIntegrationDto v2024.ServiceDeskIntegrationDto + if err := json.Unmarshal(servicedeskintegrationdto, &serviceDeskIntegrationDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.PutServiceDeskIntegration(context.Background(), id).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() - //resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.PutServiceDeskIntegration(context.Background(), id).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.PutServiceDeskIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutServiceDeskIntegration`: ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.PutServiceDeskIntegration`: %v\n", resp) + //resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.PutServiceDeskIntegration(context.Background(), id).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.PutServiceDeskIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutServiceDeskIntegration`: ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.PutServiceDeskIntegration`: %v\n", resp) } ``` @@ -750,7 +748,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -761,24 +759,23 @@ func main() { "provisioningMaxStatusCheckDays" : "2" }`) // QueuedCheckConfigDetails | The modified time check configuration - - var queuedCheckConfigDetails v2024.QueuedCheckConfigDetails - if err := json.Unmarshal(queuedcheckconfigdetails, &queuedCheckConfigDetails); err != nil { - fmt.Println("Error:", err) - return - } - + var queuedCheckConfigDetails v2024.QueuedCheckConfigDetails + if err := json.Unmarshal(queuedcheckconfigdetails, &queuedCheckConfigDetails); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.UpdateStatusCheckDetails(context.Background()).QueuedCheckConfigDetails(queuedCheckConfigDetails).Execute() - //resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.UpdateStatusCheckDetails(context.Background()).QueuedCheckConfigDetails(queuedCheckConfigDetails).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.UpdateStatusCheckDetails``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateStatusCheckDetails`: QueuedCheckConfigDetails - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.UpdateStatusCheckDetails`: %v\n", resp) + //resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.UpdateStatusCheckDetails(context.Background()).QueuedCheckConfigDetails(queuedCheckConfigDetails).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.UpdateStatusCheckDetails``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateStatusCheckDetails`: QueuedCheckConfigDetails + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.UpdateStatusCheckDetails`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/SourceUsagesAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/SourceUsagesAPI.md index 77b81323c..91108d1b9 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/SourceUsagesAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/SourceUsagesAPI.md @@ -63,7 +63,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -71,18 +71,18 @@ import ( func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | ID of IDN source # string | ID of IDN source - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourceUsagesAPI.GetStatusBySourceId(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.V2024.SourceUsagesAPI.GetStatusBySourceId(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourceUsagesAPI.GetStatusBySourceId``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetStatusBySourceId`: SourceUsageStatus - fmt.Fprintf(os.Stdout, "Response from `SourceUsagesAPI.GetStatusBySourceId`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourceUsagesAPI.GetStatusBySourceId(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourceUsagesAPI.GetStatusBySourceId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetStatusBySourceId`: SourceUsageStatus + fmt.Fprintf(os.Stdout, "Response from `SourceUsagesAPI.GetStatusBySourceId`: %v\n", resp) } ``` @@ -133,7 +133,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -145,18 +145,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) sorters := `-date` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **date** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **date** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourceUsagesAPI.GetUsagesBySourceId(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.V2024.SourceUsagesAPI.GetUsagesBySourceId(context.Background(), sourceId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourceUsagesAPI.GetUsagesBySourceId``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetUsagesBySourceId`: []SourceUsage - fmt.Fprintf(os.Stdout, "Response from `SourceUsagesAPI.GetUsagesBySourceId`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourceUsagesAPI.GetUsagesBySourceId(context.Background(), sourceId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourceUsagesAPI.GetUsagesBySourceId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetUsagesBySourceId`: []SourceUsage + fmt.Fprintf(os.Stdout, "Response from `SourceUsagesAPI.GetUsagesBySourceId`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/SourcesAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/SourcesAPI.md index cc9fcfb52..dda9db26e 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/SourcesAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/SourcesAPI.md @@ -168,7 +168,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -216,24 +216,23 @@ func main() { "usageType" : "CREATE" }`) // ProvisioningPolicyDto | - - var provisioningPolicyDto v2024.ProvisioningPolicyDto - if err := json.Unmarshal(provisioningpolicydto, &provisioningPolicyDto); err != nil { - fmt.Println("Error:", err) - return - } - + var provisioningPolicyDto v2024.ProvisioningPolicyDto + if err := json.Unmarshal(provisioningpolicydto, &provisioningPolicyDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.CreateProvisioningPolicy(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.CreateProvisioningPolicy(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.CreateProvisioningPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateProvisioningPolicy`: ProvisioningPolicyDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.CreateProvisioningPolicy`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.CreateProvisioningPolicy(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.CreateProvisioningPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateProvisioningPolicy`: ProvisioningPolicyDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.CreateProvisioningPolicy`: %v\n", resp) } ``` @@ -277,7 +276,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -368,24 +367,23 @@ func main() { }`) // Source | provisionAsCsv := false // bool | If this parameter is `true`, it configures the source as a Delimited File (CSV) source. Setting this to `true` will automatically set the `type` of the source to `DelimitedFile`. You must use this query parameter to create a Delimited File source as you would in the UI. If you don't set this query parameter and you attempt to set the `type` attribute directly, the request won't correctly generate the source. (optional) # bool | If this parameter is `true`, it configures the source as a Delimited File (CSV) source. Setting this to `true` will automatically set the `type` of the source to `DelimitedFile`. You must use this query parameter to create a Delimited File source as you would in the UI. If you don't set this query parameter and you attempt to set the `type` attribute directly, the request won't correctly generate the source. (optional) - - var source v2024.Source - if err := json.Unmarshal(source, &source); err != nil { - fmt.Println("Error:", err) - return - } - + var source v2024.Source + if err := json.Unmarshal(source, &source); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.CreateSource(context.Background()).Source(source).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.CreateSource(context.Background()).Source(source).ProvisionAsCsv(provisionAsCsv).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.CreateSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSource`: Source - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.CreateSource`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.CreateSource(context.Background()).Source(source).ProvisionAsCsv(provisionAsCsv).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.CreateSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSource`: Source + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.CreateSource`: %v\n", resp) } ``` @@ -434,7 +432,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -443,24 +441,23 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. schedule1 := []byte(``) // Schedule1 | - - var schedule1 v2024.Schedule1 - if err := json.Unmarshal(schedule1, &schedule1); err != nil { - fmt.Println("Error:", err) - return - } - + var schedule1 v2024.Schedule1 + if err := json.Unmarshal(schedule1, &schedule1); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.CreateSourceSchedule(context.Background(), sourceId).Schedule1(schedule1).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.CreateSourceSchedule(context.Background(), sourceId).Schedule1(schedule1).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.CreateSourceSchedule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSourceSchedule`: Schedule1 - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.CreateSourceSchedule`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.CreateSourceSchedule(context.Background(), sourceId).Schedule1(schedule1).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.CreateSourceSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSourceSchedule`: Schedule1 + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.CreateSourceSchedule`: %v\n", resp) } ``` @@ -509,7 +506,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -551,24 +548,23 @@ func main() { "identityAttribute" : "sAMAccountName" }`) // Schema | - - var schema v2024.Schema - if err := json.Unmarshal(schema, &schema); err != nil { - fmt.Println("Error:", err) - return - } - + var schema v2024.Schema + if err := json.Unmarshal(schema, &schema); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.CreateSourceSchema(context.Background(), sourceId).Schema(schema).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.CreateSourceSchema(context.Background(), sourceId).Schema(schema).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.CreateSourceSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSourceSchema`: Schema - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.CreateSourceSchema`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.CreateSourceSchema(context.Background(), sourceId).Schema(schema).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.CreateSourceSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSourceSchema`: Schema + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.CreateSourceSchema`: %v\n", resp) } ``` @@ -633,7 +629,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -642,18 +638,18 @@ func main() { id := `ebbf35756e1140699ce52b233121384a` // string | The source id # string | The source id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.DeleteAccountsAsync(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.DeleteAccountsAsync(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteAccountsAsync``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteAccountsAsync`: TaskResultDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.DeleteAccountsAsync`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.DeleteAccountsAsync(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteAccountsAsync``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteAccountsAsync`: TaskResultDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.DeleteAccountsAsync`: %v\n", resp) } ``` @@ -712,7 +708,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -721,16 +717,17 @@ func main() { id := `2c9180835d191a86015d28455b4a2329` // string | The source id # string | The source id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.SourcesAPI.DeleteNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //r, err := apiClient.V2024.SourcesAPI.DeleteNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteNativeChangeDetectionConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.SourcesAPI.DeleteNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteNativeChangeDetectionConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -779,7 +776,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -788,16 +785,17 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source ID. # string | The Source ID. usageType := CREATE // UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.SourcesAPI.DeleteProvisioningPolicy(context.Background(), sourceId, usageType).Execute() - //r, err := apiClient.V2024.SourcesAPI.DeleteProvisioningPolicy(context.Background(), sourceId, usageType).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteProvisioningPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.SourcesAPI.DeleteProvisioningPolicy(context.Background(), sourceId, usageType).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteProvisioningPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -845,7 +843,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -853,18 +851,18 @@ import ( func main() { id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.DeleteSource(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.DeleteSource(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteSource`: DeleteSource202Response - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.DeleteSource`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.DeleteSource(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteSource`: DeleteSource202Response + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.DeleteSource`: %v\n", resp) } ``` @@ -913,7 +911,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -922,16 +920,17 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. scheduleType := `ACCOUNT_AGGREGATION` // string | The Schedule type. # string | The Schedule type. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.SourcesAPI.DeleteSourceSchedule(context.Background(), sourceId, scheduleType).Execute() - //r, err := apiClient.V2024.SourcesAPI.DeleteSourceSchedule(context.Background(), sourceId, scheduleType).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteSourceSchedule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.SourcesAPI.DeleteSourceSchedule(context.Background(), sourceId, scheduleType).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteSourceSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -980,7 +979,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -989,16 +988,17 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. schemaId := `2c9180835d191a86015d28455b4a2329` // string | The Schema id. # string | The Schema id. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.SourcesAPI.DeleteSourceSchema(context.Background(), sourceId, schemaId).Execute() - //r, err := apiClient.V2024.SourcesAPI.DeleteSourceSchema(context.Background(), sourceId, schemaId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteSourceSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.SourcesAPI.DeleteSourceSchema(context.Background(), sourceId, schemaId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteSourceSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -1046,7 +1046,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1054,16 +1054,17 @@ import ( func main() { id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The Source id # string | The Source id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.SourcesAPI.GetAccountsSchema(context.Background(), id).Execute() - //r, err := apiClient.V2024.SourcesAPI.GetAccountsSchema(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetAccountsSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.SourcesAPI.GetAccountsSchema(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetAccountsSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -1110,7 +1111,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1118,18 +1119,18 @@ import ( func main() { id := `2c9180835d191a86015d28455b4a2329` // string | The source id # string | The source id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.GetCorrelationConfig(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.GetCorrelationConfig(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetCorrelationConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCorrelationConfig`: CorrelationConfig - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetCorrelationConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.GetCorrelationConfig(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetCorrelationConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCorrelationConfig`: CorrelationConfig + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetCorrelationConfig`: %v\n", resp) } ``` @@ -1179,7 +1180,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1188,16 +1189,17 @@ func main() { id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The Source id # string | The Source id schemaName := `?schemaName=group` // string | Name of entitlement schema (optional) # string | Name of entitlement schema (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.SourcesAPI.GetEntitlementsSchema(context.Background(), id).Execute() - //r, err := apiClient.V2024.SourcesAPI.GetEntitlementsSchema(context.Background(), id).SchemaName(schemaName).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetEntitlementsSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.SourcesAPI.GetEntitlementsSchema(context.Background(), id).SchemaName(schemaName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetEntitlementsSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -1256,7 +1258,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1265,18 +1267,18 @@ func main() { id := `2c9180835d191a86015d28455b4a2329` // string | The source id # string | The source id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.GetNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.GetNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetNativeChangeDetectionConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNativeChangeDetectionConfig`: NativeChangeDetectionConfig - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetNativeChangeDetectionConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.GetNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetNativeChangeDetectionConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNativeChangeDetectionConfig`: NativeChangeDetectionConfig + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetNativeChangeDetectionConfig`: %v\n", resp) } ``` @@ -1325,7 +1327,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1334,18 +1336,18 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source ID. # string | The Source ID. usageType := CREATE // UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.GetProvisioningPolicy(context.Background(), sourceId, usageType).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.GetProvisioningPolicy(context.Background(), sourceId, usageType).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetProvisioningPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetProvisioningPolicy`: ProvisioningPolicyDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetProvisioningPolicy`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.GetProvisioningPolicy(context.Background(), sourceId, usageType).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetProvisioningPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetProvisioningPolicy`: ProvisioningPolicyDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetProvisioningPolicy`: %v\n", resp) } ``` @@ -1392,7 +1394,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1400,18 +1402,18 @@ import ( func main() { id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.GetSource(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.GetSource(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSource`: Source - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSource`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.GetSource(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSource`: Source + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSource`: %v\n", resp) } ``` @@ -1470,7 +1472,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1479,18 +1481,18 @@ func main() { id := `2c9180835d191a86015d28455b4a2329` // string | The source id # string | The source id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.GetSourceAttrSyncConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.GetSourceAttrSyncConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceAttrSyncConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSourceAttrSyncConfig`: AttrSyncSourceConfig - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceAttrSyncConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.GetSourceAttrSyncConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceAttrSyncConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSourceAttrSyncConfig`: AttrSyncSourceConfig + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceAttrSyncConfig`: %v\n", resp) } ``` @@ -1538,7 +1540,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1547,18 +1549,18 @@ func main() { id := `cef3ee201db947c5912551015ba0c679` // string | The Source id # string | The Source id locale := `en` // string | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) # string | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.GetSourceConfig(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.GetSourceConfig(context.Background(), id).Locale(locale).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSourceConfig`: ConnectorDetail - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.GetSourceConfig(context.Background(), id).Locale(locale).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSourceConfig`: ConnectorDetail + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceConfig`: %v\n", resp) } ``` @@ -1605,7 +1607,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1613,18 +1615,18 @@ import ( func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.GetSourceConnections(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.GetSourceConnections(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceConnections``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSourceConnections`: SourceConnectionsDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceConnections`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.GetSourceConnections(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceConnections``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSourceConnections`: SourceConnectionsDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceConnections`: %v\n", resp) } ``` @@ -1682,7 +1684,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1690,18 +1692,18 @@ import ( func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.GetSourceEntitlementRequestConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.GetSourceEntitlementRequestConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceEntitlementRequestConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSourceEntitlementRequestConfig`: SourceEntitlementRequestConfig - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceEntitlementRequestConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.GetSourceEntitlementRequestConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceEntitlementRequestConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSourceEntitlementRequestConfig`: SourceEntitlementRequestConfig + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceEntitlementRequestConfig`: %v\n", resp) } ``` @@ -1748,7 +1750,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1756,18 +1758,18 @@ import ( func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.GetSourceHealth(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.GetSourceHealth(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceHealth``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSourceHealth`: SourceHealthDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceHealth`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.GetSourceHealth(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceHealth``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSourceHealth`: SourceHealthDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceHealth`: %v\n", resp) } ``` @@ -1817,7 +1819,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1826,18 +1828,18 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. scheduleType := `ACCOUNT_AGGREGATION` // string | The Schedule type. # string | The Schedule type. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.GetSourceSchedule(context.Background(), sourceId, scheduleType).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.GetSourceSchedule(context.Background(), sourceId, scheduleType).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceSchedule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSourceSchedule`: Schedule1 - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceSchedule`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.GetSourceSchedule(context.Background(), sourceId, scheduleType).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSourceSchedule`: Schedule1 + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceSchedule`: %v\n", resp) } ``` @@ -1892,7 +1894,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1900,18 +1902,18 @@ import ( func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.GetSourceSchedules(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.GetSourceSchedules(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceSchedules``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSourceSchedules`: []Schedule1 - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceSchedules`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.GetSourceSchedules(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceSchedules``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSourceSchedules`: []Schedule1 + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceSchedules`: %v\n", resp) } ``` @@ -1961,7 +1963,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1970,18 +1972,18 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. schemaId := `2c9180835d191a86015d28455b4a2329` // string | The Schema id. # string | The Schema id. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.GetSourceSchema(context.Background(), sourceId, schemaId).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.GetSourceSchema(context.Background(), sourceId, schemaId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSourceSchema`: Schema - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceSchema`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.GetSourceSchema(context.Background(), sourceId, schemaId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSourceSchema`: Schema + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceSchema`: %v\n", resp) } ``` @@ -2030,7 +2032,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2040,18 +2042,18 @@ func main() { includeTypes := `group` // string | If set to 'group', then the account schema is filtered and only group schemas are returned. Only a value of 'group' is recognized presently. Note: The API will check whether include-types is group or not, if not, it will list schemas based on include-names, if include-names is not provided, it will list all schemas. (optional) # string | If set to 'group', then the account schema is filtered and only group schemas are returned. Only a value of 'group' is recognized presently. Note: The API will check whether include-types is group or not, if not, it will list schemas based on include-names, if include-names is not provided, it will list all schemas. (optional) includeNames := `account` // string | A comma-separated list of schema names to filter result. (optional) # string | A comma-separated list of schema names to filter result. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.GetSourceSchemas(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.GetSourceSchemas(context.Background(), sourceId).IncludeTypes(includeTypes).IncludeNames(includeNames).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceSchemas``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSourceSchemas`: []Schema - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceSchemas`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.GetSourceSchemas(context.Background(), sourceId).IncludeTypes(includeTypes).IncludeNames(includeNames).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceSchemas``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSourceSchemas`: []Schema + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceSchemas`: %v\n", resp) } ``` @@ -2114,7 +2116,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2125,18 +2127,18 @@ func main() { file := BINARY_DATA_HERE // *os.File | The CSV file containing the source accounts to aggregate. (optional) # *os.File | The CSV file containing the source accounts to aggregate. (optional) disableOptimization := `disableOptimization_example` // string | Use this flag to reprocess every account whether or not the data has changed. (optional) # string | Use this flag to reprocess every account whether or not the data has changed. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.ImportAccounts(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.ImportAccounts(context.Background(), id).XSailPointExperimental(xSailPointExperimental).File(file).DisableOptimization(disableOptimization).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportAccounts``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportAccounts`: LoadAccountsTask - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportAccounts`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.ImportAccounts(context.Background(), id).XSailPointExperimental(xSailPointExperimental).File(file).DisableOptimization(disableOptimization).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportAccounts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportAccounts`: LoadAccountsTask + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportAccounts`: %v\n", resp) } ``` @@ -2190,7 +2192,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2199,18 +2201,18 @@ func main() { id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The Source id # string | The Source id file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.ImportAccountsSchema(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.ImportAccountsSchema(context.Background(), id).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportAccountsSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportAccountsSchema`: Schema - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportAccountsSchema`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.ImportAccountsSchema(context.Background(), id).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportAccountsSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportAccountsSchema`: Schema + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportAccountsSchema`: %v\n", resp) } ``` @@ -2258,7 +2260,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2267,18 +2269,18 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.ImportConnectorFile(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.ImportConnectorFile(context.Background(), sourceId).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportConnectorFile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportConnectorFile`: Source - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportConnectorFile`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.ImportConnectorFile(context.Background(), sourceId).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportConnectorFile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportConnectorFile`: Source + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportConnectorFile`: %v\n", resp) } ``` @@ -2333,7 +2335,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2343,18 +2345,18 @@ func main() { schemaName := `?schemaName=group` // string | Name of entitlement schema (optional) # string | Name of entitlement schema (optional) file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.ImportEntitlementsSchema(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.ImportEntitlementsSchema(context.Background(), id).SchemaName(schemaName).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportEntitlementsSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportEntitlementsSchema`: Schema - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportEntitlementsSchema`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.ImportEntitlementsSchema(context.Background(), id).SchemaName(schemaName).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportEntitlementsSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportEntitlementsSchema`: Schema + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportEntitlementsSchema`: %v\n", resp) } ``` @@ -2414,7 +2416,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2424,18 +2426,18 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.ImportUncorrelatedAccounts(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.ImportUncorrelatedAccounts(context.Background(), id).XSailPointExperimental(xSailPointExperimental).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportUncorrelatedAccounts``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportUncorrelatedAccounts`: LoadUncorrelatedAccountsTask - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportUncorrelatedAccounts`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.ImportUncorrelatedAccounts(context.Background(), id).XSailPointExperimental(xSailPointExperimental).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportUncorrelatedAccounts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportUncorrelatedAccounts`: LoadUncorrelatedAccountsTask + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportUncorrelatedAccounts`: %v\n", resp) } ``` @@ -2482,7 +2484,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2490,18 +2492,18 @@ import ( func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id # string | The Source id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.ListProvisioningPolicies(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.ListProvisioningPolicies(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ListProvisioningPolicies``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListProvisioningPolicies`: []ProvisioningPolicyDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ListProvisioningPolicies`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.ListProvisioningPolicies(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ListProvisioningPolicies``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListProvisioningPolicies`: []ProvisioningPolicyDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ListProvisioningPolicies`: %v\n", resp) } ``` @@ -2550,7 +2552,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2564,18 +2566,18 @@ func main() { forSubadmin := `name` // string | Filter the returned list of sources for the identity specified by the parameter, which is the id of an identity with the role SOURCE_SUBADMIN. By convention, the value **me** indicates the identity id of the current user. Subadmins may only view Sources which they are able to administer; all other Sources will be filtered out when this parameter is set. If the current user is a SOURCE_SUBADMIN but fails to pass a valid value for this parameter, a 403 Forbidden is returned. (optional) # string | Filter the returned list of sources for the identity specified by the parameter, which is the id of an identity with the role SOURCE_SUBADMIN. By convention, the value **me** indicates the identity id of the current user. Subadmins may only view Sources which they are able to administer; all other Sources will be filtered out when this parameter is set. If the current user is a SOURCE_SUBADMIN but fails to pass a valid value for this parameter, a 403 Forbidden is returned. (optional) includeIDNSource := true // bool | Include the IdentityNow source in the response. (optional) (default to false) # bool | Include the IdentityNow source in the response. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.ListSources(context.Background()).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.ListSources(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSubadmin(forSubadmin).IncludeIDNSource(includeIDNSource).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ListSources``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListSources`: []Source - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ListSources`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.ListSources(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSubadmin(forSubadmin).IncludeIDNSource(includeIDNSource).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ListSources``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListSources`: []Source + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ListSources`: %v\n", resp) } ``` @@ -2622,7 +2624,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2630,18 +2632,18 @@ import ( func main() { sourceId := `cef3ee201db947c5912551015ba0c679` // string | The ID of the Source # string | The ID of the Source - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.PingCluster(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.PingCluster(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PingCluster``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PingCluster`: StatusResponse - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PingCluster`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.PingCluster(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PingCluster``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PingCluster`: StatusResponse + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PingCluster`: %v\n", resp) } ``` @@ -2689,7 +2691,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2718,24 +2720,23 @@ func main() { "id" : "2c9180835d191a86015d28455b4a2329" }`) // CorrelationConfig | - - var correlationConfig v2024.CorrelationConfig - if err := json.Unmarshal(correlationconfig, &correlationConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var correlationConfig v2024.CorrelationConfig + if err := json.Unmarshal(correlationconfig, &correlationConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.PutCorrelationConfig(context.Background(), id).CorrelationConfig(correlationConfig).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.PutCorrelationConfig(context.Background(), id).CorrelationConfig(correlationConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutCorrelationConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutCorrelationConfig`: CorrelationConfig - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutCorrelationConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.PutCorrelationConfig(context.Background(), id).CorrelationConfig(correlationConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutCorrelationConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutCorrelationConfig`: CorrelationConfig + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutCorrelationConfig`: %v\n", resp) } ``` @@ -2795,7 +2796,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2812,24 +2813,23 @@ func main() { "enabled" : true }`) // NativeChangeDetectionConfig | - - var nativeChangeDetectionConfig v2024.NativeChangeDetectionConfig - if err := json.Unmarshal(nativechangedetectionconfig, &nativeChangeDetectionConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var nativeChangeDetectionConfig v2024.NativeChangeDetectionConfig + if err := json.Unmarshal(nativechangedetectionconfig, &nativeChangeDetectionConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.PutNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).NativeChangeDetectionConfig(nativeChangeDetectionConfig).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.PutNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).NativeChangeDetectionConfig(nativeChangeDetectionConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutNativeChangeDetectionConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutNativeChangeDetectionConfig`: NativeChangeDetectionConfig - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutNativeChangeDetectionConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.PutNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).NativeChangeDetectionConfig(nativeChangeDetectionConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutNativeChangeDetectionConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutNativeChangeDetectionConfig`: NativeChangeDetectionConfig + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutNativeChangeDetectionConfig`: %v\n", resp) } ``` @@ -2881,7 +2881,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2930,24 +2930,23 @@ func main() { "usageType" : "CREATE" }`) // ProvisioningPolicyDto | - - var provisioningPolicyDto v2024.ProvisioningPolicyDto - if err := json.Unmarshal(provisioningpolicydto, &provisioningPolicyDto); err != nil { - fmt.Println("Error:", err) - return - } - + var provisioningPolicyDto v2024.ProvisioningPolicyDto + if err := json.Unmarshal(provisioningpolicydto, &provisioningPolicyDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.PutProvisioningPolicy(context.Background(), sourceId, usageType).ProvisioningPolicyDto(provisioningPolicyDto).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.PutProvisioningPolicy(context.Background(), sourceId, usageType).ProvisioningPolicyDto(provisioningPolicyDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutProvisioningPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutProvisioningPolicy`: ProvisioningPolicyDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutProvisioningPolicy`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.PutProvisioningPolicy(context.Background(), sourceId, usageType).ProvisioningPolicyDto(provisioningPolicyDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutProvisioningPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutProvisioningPolicy`: ProvisioningPolicyDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutProvisioningPolicy`: %v\n", resp) } ``` @@ -3007,7 +3006,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3098,24 +3097,23 @@ func main() { "since" : "2021-09-28T15:48:29.3801666300Z" }`) // Source | - - var source v2024.Source - if err := json.Unmarshal(source, &source); err != nil { - fmt.Println("Error:", err) - return - } - + var source v2024.Source + if err := json.Unmarshal(source, &source); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.PutSource(context.Background(), id).Source(source).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.PutSource(context.Background(), id).Source(source).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutSource`: Source - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutSource`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.PutSource(context.Background(), id).Source(source).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutSource`: Source + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutSource`: %v\n", resp) } ``` @@ -3176,7 +3174,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3203,24 +3201,23 @@ func main() { } }`) // AttrSyncSourceConfig | - - var attrSyncSourceConfig v2024.AttrSyncSourceConfig - if err := json.Unmarshal(attrsyncsourceconfig, &attrSyncSourceConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var attrSyncSourceConfig v2024.AttrSyncSourceConfig + if err := json.Unmarshal(attrsyncsourceconfig, &attrSyncSourceConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.PutSourceAttrSyncConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).AttrSyncSourceConfig(attrSyncSourceConfig).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.PutSourceAttrSyncConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).AttrSyncSourceConfig(attrSyncSourceConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutSourceAttrSyncConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutSourceAttrSyncConfig`: AttrSyncSourceConfig - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutSourceAttrSyncConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.PutSourceAttrSyncConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).AttrSyncSourceConfig(attrSyncSourceConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutSourceAttrSyncConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutSourceAttrSyncConfig`: AttrSyncSourceConfig + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutSourceAttrSyncConfig`: %v\n", resp) } ``` @@ -3280,7 +3277,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3323,24 +3320,23 @@ func main() { "identityAttribute" : "sAMAccountName" }`) // Schema | - - var schema v2024.Schema - if err := json.Unmarshal(schema, &schema); err != nil { - fmt.Println("Error:", err) - return - } - + var schema v2024.Schema + if err := json.Unmarshal(schema, &schema); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.PutSourceSchema(context.Background(), sourceId, schemaId).Schema(schema).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.PutSourceSchema(context.Background(), sourceId, schemaId).Schema(schema).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutSourceSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutSourceSchema`: Schema - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutSourceSchema`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.PutSourceSchema(context.Background(), sourceId, schemaId).Schema(schema).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutSourceSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutSourceSchema`: Schema + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutSourceSchema`: %v\n", resp) } ``` @@ -3388,7 +3384,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3400,24 +3396,23 @@ func main() { "objectType" : "group" }`) // ResourceObjectsRequest | - - var resourceObjectsRequest v2024.ResourceObjectsRequest - if err := json.Unmarshal(resourceobjectsrequest, &resourceObjectsRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var resourceObjectsRequest v2024.ResourceObjectsRequest + if err := json.Unmarshal(resourceobjectsrequest, &resourceObjectsRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.SearchResourceObjects(context.Background(), sourceId).ResourceObjectsRequest(resourceObjectsRequest).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.SearchResourceObjects(context.Background(), sourceId).ResourceObjectsRequest(resourceObjectsRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.SearchResourceObjects``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SearchResourceObjects`: ResourceObjectsResponse - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.SearchResourceObjects`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.SearchResourceObjects(context.Background(), sourceId).ResourceObjectsRequest(resourceObjectsRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.SearchResourceObjects``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchResourceObjects`: ResourceObjectsResponse + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.SearchResourceObjects`: %v\n", resp) } ``` @@ -3476,7 +3471,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3485,18 +3480,18 @@ func main() { id := `id_example` // string | The Source id # string | The Source id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.SyncAttributesForSource(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.SyncAttributesForSource(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.SyncAttributesForSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SyncAttributesForSource`: SourceSyncJob - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.SyncAttributesForSource`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.SyncAttributesForSource(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.SyncAttributesForSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SyncAttributesForSource`: SourceSyncJob + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.SyncAttributesForSource`: %v\n", resp) } ``` @@ -3543,7 +3538,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3551,18 +3546,18 @@ import ( func main() { sourceId := `cef3ee201db947c5912551015ba0c679` // string | The ID of the Source # string | The ID of the Source - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.TestSourceConfiguration(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.TestSourceConfiguration(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.TestSourceConfiguration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `TestSourceConfiguration`: StatusResponse - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.TestSourceConfiguration`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.TestSourceConfiguration(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.TestSourceConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TestSourceConfiguration`: StatusResponse + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.TestSourceConfiguration`: %v\n", resp) } ``` @@ -3609,7 +3604,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3617,18 +3612,18 @@ import ( func main() { sourceId := `cef3ee201db947c5912551015ba0c679` // string | The ID of the Source. # string | The ID of the Source. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.TestSourceConnection(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.TestSourceConnection(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.TestSourceConnection``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `TestSourceConnection`: StatusResponse - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.TestSourceConnection`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.TestSourceConnection(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.TestSourceConnection``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TestSourceConnection`: StatusResponse + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.TestSourceConnection`: %v\n", resp) } ``` @@ -3678,7 +3673,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3687,24 +3682,23 @@ func main() { sourceId := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The Source id # string | The Source id passwordpolicyholdersdtoinner := []byte(``) // []PasswordPolicyHoldersDtoInner | - - var passwordPolicyHoldersDtoInner v2024.[]PasswordPolicyHoldersDtoInner - if err := json.Unmarshal(passwordpolicyholdersdtoinner, &passwordPolicyHoldersDtoInner); err != nil { - fmt.Println("Error:", err) - return - } - + var passwordPolicyHoldersDtoInner []v2024.PasswordPolicyHoldersDtoInner + if err := json.Unmarshal(passwordpolicyholdersdtoinner, &passwordPolicyHoldersDtoInner); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.UpdatePasswordPolicyHolders(context.Background(), sourceId).PasswordPolicyHoldersDtoInner(passwordPolicyHoldersDtoInner).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.UpdatePasswordPolicyHolders(context.Background(), sourceId).PasswordPolicyHoldersDtoInner(passwordPolicyHoldersDtoInner).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdatePasswordPolicyHolders``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdatePasswordPolicyHolders`: []PasswordPolicyHoldersDtoInner - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdatePasswordPolicyHolders`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.UpdatePasswordPolicyHolders(context.Background(), sourceId).PasswordPolicyHoldersDtoInner(passwordPolicyHoldersDtoInner).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdatePasswordPolicyHolders``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdatePasswordPolicyHolders`: []PasswordPolicyHoldersDtoInner + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdatePasswordPolicyHolders`: %v\n", resp) } ``` @@ -3752,7 +3746,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3761,24 +3755,23 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. provisioningpolicydto := []byte(``) // []ProvisioningPolicyDto | - - var provisioningPolicyDto v2024.[]ProvisioningPolicyDto - if err := json.Unmarshal(provisioningpolicydto, &provisioningPolicyDto); err != nil { - fmt.Println("Error:", err) - return - } - + var provisioningPolicyDto []v2024.ProvisioningPolicyDto + if err := json.Unmarshal(provisioningpolicydto, &provisioningPolicyDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.UpdateProvisioningPoliciesInBulk(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.UpdateProvisioningPoliciesInBulk(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateProvisioningPoliciesInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateProvisioningPoliciesInBulk`: []ProvisioningPolicyDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateProvisioningPoliciesInBulk`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.UpdateProvisioningPoliciesInBulk(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateProvisioningPoliciesInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateProvisioningPoliciesInBulk`: []ProvisioningPolicyDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateProvisioningPoliciesInBulk`: %v\n", resp) } ``` @@ -3830,7 +3823,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3840,24 +3833,23 @@ func main() { usageType := CREATE // UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. jsonpatchoperation := []byte(`[{op=add, path=/fields/0, value={name=email, transform={type=identityAttribute, attributes={name=email}}, attributes={}, isRequired=false, type=string, isMultiValued=false}}]`) // []JsonPatchOperation | The JSONPatch payload used to update the schema. - - var jsonPatchOperation v2024.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2024.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.UpdateProvisioningPolicy(context.Background(), sourceId, usageType).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.UpdateProvisioningPolicy(context.Background(), sourceId, usageType).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateProvisioningPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateProvisioningPolicy`: ProvisioningPolicyDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateProvisioningPolicy`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.UpdateProvisioningPolicy(context.Background(), sourceId, usageType).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateProvisioningPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateProvisioningPolicy`: ProvisioningPolicyDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateProvisioningPolicy`: %v\n", resp) } ``` @@ -3920,7 +3912,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3929,24 +3921,23 @@ func main() { id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. jsonpatchoperation := []byte(`[{op=replace, path=/description, value=new description}]`) // []JsonPatchOperation | A list of account update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Any password changes are submitted as plain-text and encrypted upon receipt in Identity Security Cloud (ISC). - - var jsonPatchOperation v2024.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2024.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.UpdateSource(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.UpdateSource(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateSource`: Source - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateSource`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.UpdateSource(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateSource`: Source + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateSource`: %v\n", resp) } ``` @@ -4005,7 +3996,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4022,28 +4013,37 @@ func main() { "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", "approverType" : "GOVERNANCE_GROUP" } ], + "reauthorizationRequired" : false, "requestCommentRequired" : true + }, + "revocationRequestConfig" : { + "approvalSchemes" : [ { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + }, { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + } ] } }`) // SourceEntitlementRequestConfig | - - var sourceEntitlementRequestConfig v2024.SourceEntitlementRequestConfig - if err := json.Unmarshal(sourceentitlementrequestconfig, &sourceEntitlementRequestConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var sourceEntitlementRequestConfig v2024.SourceEntitlementRequestConfig + if err := json.Unmarshal(sourceentitlementrequestconfig, &sourceEntitlementRequestConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.UpdateSourceEntitlementRequestConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).SourceEntitlementRequestConfig(sourceEntitlementRequestConfig).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.UpdateSourceEntitlementRequestConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).SourceEntitlementRequestConfig(sourceEntitlementRequestConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateSourceEntitlementRequestConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateSourceEntitlementRequestConfig`: SourceEntitlementRequestConfig - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateSourceEntitlementRequestConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.UpdateSourceEntitlementRequestConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).SourceEntitlementRequestConfig(sourceEntitlementRequestConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateSourceEntitlementRequestConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateSourceEntitlementRequestConfig`: SourceEntitlementRequestConfig + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateSourceEntitlementRequestConfig`: %v\n", resp) } ``` @@ -4098,7 +4098,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4108,24 +4108,23 @@ func main() { scheduleType := `ACCOUNT_AGGREGATION` // string | The Schedule type. # string | The Schedule type. jsonpatchoperation := []byte(`[{op=replace, path=/cronExpression, value=0 0 6 * * ?}]`) // []JsonPatchOperation | The JSONPatch payload used to update the schedule. - - var jsonPatchOperation v2024.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2024.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.UpdateSourceSchedule(context.Background(), sourceId, scheduleType).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.UpdateSourceSchedule(context.Background(), sourceId, scheduleType).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateSourceSchedule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateSourceSchedule`: Schedule1 - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateSourceSchedule`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.UpdateSourceSchedule(context.Background(), sourceId, scheduleType).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateSourceSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateSourceSchedule`: Schedule1 + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateSourceSchedule`: %v\n", resp) } ``` @@ -4204,7 +4203,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4214,24 +4213,23 @@ func main() { schemaId := `2c9180835d191a86015d28455b4a2329` // string | The Schema id. # string | The Schema id. jsonpatchoperation := []byte(`[{op=add, path=/attributes/-, value={name=location, type=STRING, schema=null, description=Employee location, isMulti=false, isEntitlement=false, isGroup=false}}]`) // []JsonPatchOperation | The JSONPatch payload used to update the schema. - - var jsonPatchOperation v2024.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2024.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.UpdateSourceSchema(context.Background(), sourceId, schemaId).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2024.SourcesAPI.UpdateSourceSchema(context.Background(), sourceId, schemaId).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateSourceSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateSourceSchema`: Schema - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateSourceSchema`: %v\n", resp) + //resp, r, err := apiClient.V2024.SourcesAPI.UpdateSourceSchema(context.Background(), sourceId, schemaId).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateSourceSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateSourceSchema`: Schema + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateSourceSchema`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/SuggestedEntitlementDescriptionAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/SuggestedEntitlementDescriptionAPI.md index e96e6e74c..83e2f530d 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/SuggestedEntitlementDescriptionAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/SuggestedEntitlementDescriptionAPI.md @@ -72,7 +72,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -80,18 +80,18 @@ import ( func main() { batchId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | Batch Id # string | Batch Id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.GetSedBatchStats(context.Background(), batchId).Execute() - //resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.GetSedBatchStats(context.Background(), batchId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.GetSedBatchStats``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSedBatchStats`: SedBatchStats - fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.GetSedBatchStats`: %v\n", resp) + //resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.GetSedBatchStats(context.Background(), batchId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.GetSedBatchStats``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSedBatchStats`: SedBatchStats + fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.GetSedBatchStats`: %v\n", resp) } ``` @@ -131,25 +131,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.GetSedBatches(context.Background()).Execute() - //resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.GetSedBatches(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.GetSedBatches``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSedBatches`: SedBatchStatus - fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.GetSedBatches`: %v\n", resp) + //resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.GetSedBatches(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.GetSedBatches``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSedBatches`: SedBatchStatus + fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.GetSedBatches`: %v\n", resp) } ``` @@ -213,7 +213,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -228,18 +228,18 @@ func main() { requestedByAnyone := requested-by-anyone=true // bool | By default, the ListSeds API will only return items that you have requested to be generated. This option will allow you to see all items that have been requested (optional) (default to false) # bool | By default, the ListSeds API will only return items that you have requested to be generated. This option will allow you to see all items that have been requested (optional) (default to false) showPendingStatusOnly := show-pending-status-only=true // bool | Will limit records to items that are in \"suggested\" or \"approved\" status (optional) (default to false) # bool | Will limit records to items that are in \"suggested\" or \"approved\" status (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.ListSeds(context.Background()).Execute() - //resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.ListSeds(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).CountOnly(countOnly).RequestedByAnyone(requestedByAnyone).ShowPendingStatusOnly(showPendingStatusOnly).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.ListSeds``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListSeds`: []Sed - fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.ListSeds`: %v\n", resp) + //resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.ListSeds(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).CountOnly(countOnly).RequestedByAnyone(requestedByAnyone).ShowPendingStatusOnly(showPendingStatusOnly).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.ListSeds``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListSeds`: []Sed + fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.ListSeds`: %v\n", resp) } ``` @@ -287,7 +287,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -296,24 +296,23 @@ func main() { id := `ebab396f-0af1-4050-89b7-dafc63ec70e7` // string | id is sed id # string | id is sed id sedpatch := []byte(``) // []SedPatch | Sed Patch Request - - var sedPatch v2024.[]SedPatch - if err := json.Unmarshal(sedpatch, &sedPatch); err != nil { - fmt.Println("Error:", err) - return - } - + var sedPatch []v2024.SedPatch + if err := json.Unmarshal(sedpatch, &sedPatch); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.PatchSed(context.Background(), id).SedPatch(sedPatch).Execute() - //resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.PatchSed(context.Background(), id).SedPatch(sedPatch).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.PatchSed``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchSed`: Sed - fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.PatchSed`: %v\n", resp) + //resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.PatchSed(context.Background(), id).SedPatch(sedPatch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.PatchSed``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchSed`: Sed + fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.PatchSed`: %v\n", resp) } ``` @@ -357,7 +356,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -365,24 +364,23 @@ import ( func main() { sedapproval := []byte(``) // []SedApproval | Sed Approval - - var sedApproval v2024.[]SedApproval - if err := json.Unmarshal(sedapproval, &sedApproval); err != nil { - fmt.Println("Error:", err) - return - } - + var sedApproval []v2024.SedApproval + if err := json.Unmarshal(sedapproval, &sedApproval); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.SubmitSedApproval(context.Background()).SedApproval(sedApproval).Execute() - //resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.SubmitSedApproval(context.Background()).SedApproval(sedApproval).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.SubmitSedApproval``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SubmitSedApproval`: []SedApprovalStatus - fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.SubmitSedApproval`: %v\n", resp) + //resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.SubmitSedApproval(context.Background()).SedApproval(sedApproval).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.SubmitSedApproval``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SubmitSedApproval`: []SedApprovalStatus + fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.SubmitSedApproval`: %v\n", resp) } ``` @@ -426,7 +424,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -440,24 +438,23 @@ func main() { "items" : [ "016629d1-1d25-463f-97f3-0c6686846650", "016629d1-1d25-463f-97f3-0c6686846650" ] }`) // SedAssignment | Sed Assignment Request - - var sedAssignment v2024.SedAssignment - if err := json.Unmarshal(sedassignment, &sedAssignment); err != nil { - fmt.Println("Error:", err) - return - } - + var sedAssignment v2024.SedAssignment + if err := json.Unmarshal(sedassignment, &sedAssignment); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.SubmitSedAssignment(context.Background()).SedAssignment(sedAssignment).Execute() - //resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.SubmitSedAssignment(context.Background()).SedAssignment(sedAssignment).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.SubmitSedAssignment``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SubmitSedAssignment`: SedAssignmentResponse - fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.SubmitSedAssignment`: %v\n", resp) + //resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.SubmitSedAssignment(context.Background()).SedAssignment(sedAssignment).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.SubmitSedAssignment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SubmitSedAssignment`: SedAssignmentResponse + fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.SubmitSedAssignment`: %v\n", resp) } ``` @@ -501,7 +498,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -512,18 +509,18 @@ func main() { "seds" : [ "016629d1-1d25-463f-97f3-c6686846650", "016629d1-1d25-463f-97f3-c6686846650" ] }`) // SedBatchRequest | Sed Batch Request (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.SubmitSedBatchRequest(context.Background()).Execute() - //resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.SubmitSedBatchRequest(context.Background()).SedBatchRequest(sedBatchRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.SubmitSedBatchRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SubmitSedBatchRequest`: SedBatchResponse - fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.SubmitSedBatchRequest`: %v\n", resp) + //resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.SubmitSedBatchRequest(context.Background()).SedBatchRequest(sedBatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.SubmitSedBatchRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SubmitSedBatchRequest`: SedBatchResponse + fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.SubmitSedBatchRequest`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/TaggedObjectsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/TaggedObjectsAPI.md index 7872bee0f..d9983eb1d 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/TaggedObjectsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/TaggedObjectsAPI.md @@ -121,7 +121,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -130,16 +130,17 @@ func main() { type_ := `ROLE` // string | The type of object to delete tags from. # string | The type of object to delete tags from. id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the object to delete tags from. # string | The ID of the object to delete tags from. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.TaggedObjectsAPI.DeleteTaggedObject(context.Background(), type_, id).Execute() - //r, err := apiClient.V2024.TaggedObjectsAPI.DeleteTaggedObject(context.Background(), type_, id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.DeleteTaggedObject``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.TaggedObjectsAPI.DeleteTaggedObject(context.Background(), type_, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.DeleteTaggedObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -182,7 +183,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -201,22 +202,22 @@ func main() { "tags" : [ "BU_FINANCE", "PCI" ] }`) // BulkRemoveTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. - - var bulkRemoveTaggedObject v2024.BulkRemoveTaggedObject - if err := json.Unmarshal(bulkremovetaggedobject, &bulkRemoveTaggedObject); err != nil { - fmt.Println("Error:", err) - return - } - + var bulkRemoveTaggedObject v2024.BulkRemoveTaggedObject + if err := json.Unmarshal(bulkremovetaggedobject, &bulkRemoveTaggedObject); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.TaggedObjectsAPI.DeleteTagsToManyObject(context.Background()).BulkRemoveTaggedObject(bulkRemoveTaggedObject).Execute() - //r, err := apiClient.V2024.TaggedObjectsAPI.DeleteTagsToManyObject(context.Background()).BulkRemoveTaggedObject(bulkRemoveTaggedObject).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.DeleteTagsToManyObject``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.TaggedObjectsAPI.DeleteTagsToManyObject(context.Background()).BulkRemoveTaggedObject(bulkRemoveTaggedObject).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.DeleteTagsToManyObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -265,7 +266,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -274,18 +275,18 @@ func main() { type_ := `ROLE` // string | The type of tagged object to retrieve. # string | The type of tagged object to retrieve. id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the object reference to retrieve. # string | The ID of the object reference to retrieve. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TaggedObjectsAPI.GetTaggedObject(context.Background(), type_, id).Execute() - //resp, r, err := apiClient.V2024.TaggedObjectsAPI.GetTaggedObject(context.Background(), type_, id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.GetTaggedObject``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetTaggedObject`: TaggedObject - fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.GetTaggedObject`: %v\n", resp) + //resp, r, err := apiClient.V2024.TaggedObjectsAPI.GetTaggedObject(context.Background(), type_, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.GetTaggedObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTaggedObject`: TaggedObject + fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.GetTaggedObject`: %v\n", resp) } ``` @@ -333,7 +334,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -344,18 +345,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) filters := `tagName eq "BU_FINANCE"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **objectRef.id**: *eq, in* **objectRef.type**: *eq, in* **tagName**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **objectRef.id**: *eq, in* **objectRef.type**: *eq, in* **tagName**: *eq, in* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TaggedObjectsAPI.ListTaggedObjects(context.Background()).Execute() - //resp, r, err := apiClient.V2024.TaggedObjectsAPI.ListTaggedObjects(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.ListTaggedObjects``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListTaggedObjects`: []TaggedObject - fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.ListTaggedObjects`: %v\n", resp) + //resp, r, err := apiClient.V2024.TaggedObjectsAPI.ListTaggedObjects(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.ListTaggedObjects``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListTaggedObjects`: []TaggedObject + fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.ListTaggedObjects`: %v\n", resp) } ``` @@ -408,7 +409,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -420,18 +421,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) filters := `objectRef.id eq "2c91808568c529c60168cca6f90c1313"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **objectRef.id**: *eq* **objectRef.type**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **objectRef.id**: *eq* **objectRef.type**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TaggedObjectsAPI.ListTaggedObjectsByType(context.Background(), type_).Execute() - //resp, r, err := apiClient.V2024.TaggedObjectsAPI.ListTaggedObjectsByType(context.Background(), type_).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.ListTaggedObjectsByType``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListTaggedObjectsByType`: []TaggedObject - fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.ListTaggedObjectsByType`: %v\n", resp) + //resp, r, err := apiClient.V2024.TaggedObjectsAPI.ListTaggedObjectsByType(context.Background(), type_).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.ListTaggedObjectsByType``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListTaggedObjectsByType`: []TaggedObject + fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.ListTaggedObjectsByType`: %v\n", resp) } ``` @@ -481,7 +482,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -498,24 +499,23 @@ func main() { "tags" : [ "BU_FINANCE", "PCI" ] }`) // TaggedObject | - - var taggedObject v2024.TaggedObject - if err := json.Unmarshal(taggedobject, &taggedObject); err != nil { - fmt.Println("Error:", err) - return - } - + var taggedObject v2024.TaggedObject + if err := json.Unmarshal(taggedobject, &taggedObject); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TaggedObjectsAPI.PutTaggedObject(context.Background(), type_, id).TaggedObject(taggedObject).Execute() - //resp, r, err := apiClient.V2024.TaggedObjectsAPI.PutTaggedObject(context.Background(), type_, id).TaggedObject(taggedObject).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.PutTaggedObject``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutTaggedObject`: TaggedObject - fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.PutTaggedObject`: %v\n", resp) + //resp, r, err := apiClient.V2024.TaggedObjectsAPI.PutTaggedObject(context.Background(), type_, id).TaggedObject(taggedObject).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.PutTaggedObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutTaggedObject`: TaggedObject + fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.PutTaggedObject`: %v\n", resp) } ``` @@ -560,7 +560,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -575,22 +575,22 @@ func main() { "tags" : [ "BU_FINANCE", "PCI" ] }`) // TaggedObject | - - var taggedObject v2024.TaggedObject - if err := json.Unmarshal(taggedobject, &taggedObject); err != nil { - fmt.Println("Error:", err) - return - } - + var taggedObject v2024.TaggedObject + if err := json.Unmarshal(taggedobject, &taggedObject); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.TaggedObjectsAPI.SetTagToObject(context.Background()).TaggedObject(taggedObject).Execute() - //r, err := apiClient.V2024.TaggedObjectsAPI.SetTagToObject(context.Background()).TaggedObject(taggedObject).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.SetTagToObject``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.TaggedObjectsAPI.SetTagToObject(context.Background()).TaggedObject(taggedObject).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.SetTagToObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -633,7 +633,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -653,24 +653,23 @@ func main() { "tags" : [ "BU_FINANCE", "PCI" ] }`) // BulkAddTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. - - var bulkAddTaggedObject v2024.BulkAddTaggedObject - if err := json.Unmarshal(bulkaddtaggedobject, &bulkAddTaggedObject); err != nil { - fmt.Println("Error:", err) - return - } - + var bulkAddTaggedObject v2024.BulkAddTaggedObject + if err := json.Unmarshal(bulkaddtaggedobject, &bulkAddTaggedObject); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TaggedObjectsAPI.SetTagsToManyObjects(context.Background()).BulkAddTaggedObject(bulkAddTaggedObject).Execute() - //resp, r, err := apiClient.V2024.TaggedObjectsAPI.SetTagsToManyObjects(context.Background()).BulkAddTaggedObject(bulkAddTaggedObject).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.SetTagsToManyObjects``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetTagsToManyObjects`: []BulkTaggedObjectResponse - fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.SetTagsToManyObjects`: %v\n", resp) + //resp, r, err := apiClient.V2024.TaggedObjectsAPI.SetTagsToManyObjects(context.Background()).BulkAddTaggedObject(bulkAddTaggedObject).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.SetTagsToManyObjects``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetTagsToManyObjects`: []BulkTaggedObjectResponse + fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.SetTagsToManyObjects`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/TaskManagementAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/TaskManagementAPI.md index 9957adcb4..1c7b89e27 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/TaskManagementAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/TaskManagementAPI.md @@ -73,7 +73,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -84,16 +84,17 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.TaskManagementAPI.GetPendingTaskHeaders(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //r, err := apiClient.V2024.TaskManagementAPI.GetPendingTaskHeaders(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaskManagementAPI.GetPendingTaskHeaders``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.TaskManagementAPI.GetPendingTaskHeaders(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaskManagementAPI.GetPendingTaskHeaders``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -150,7 +151,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -161,18 +162,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TaskManagementAPI.GetPendingTasks(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.TaskManagementAPI.GetPendingTasks(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaskManagementAPI.GetPendingTasks``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPendingTasks`: []TaskStatus - fmt.Fprintf(os.Stdout, "Response from `TaskManagementAPI.GetPendingTasks`: %v\n", resp) + //resp, r, err := apiClient.V2024.TaskManagementAPI.GetPendingTasks(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaskManagementAPI.GetPendingTasks``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPendingTasks`: []TaskStatus + fmt.Fprintf(os.Stdout, "Response from `TaskManagementAPI.GetPendingTasks`: %v\n", resp) } ``` @@ -231,7 +232,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -240,18 +241,18 @@ func main() { id := `00eebcf881994e419d72e757fd30dc0e` // string | Task ID. # string | Task ID. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TaskManagementAPI.GetTaskStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.TaskManagementAPI.GetTaskStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaskManagementAPI.GetTaskStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetTaskStatus`: TaskStatus - fmt.Fprintf(os.Stdout, "Response from `TaskManagementAPI.GetTaskStatus`: %v\n", resp) + //resp, r, err := apiClient.V2024.TaskManagementAPI.GetTaskStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaskManagementAPI.GetTaskStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTaskStatus`: TaskStatus + fmt.Fprintf(os.Stdout, "Response from `TaskManagementAPI.GetTaskStatus`: %v\n", resp) } ``` @@ -311,7 +312,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -324,18 +325,18 @@ func main() { filters := `completionStatus eq "Success"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **sourceId**: *eq, in* **completionStatus**: *eq, in* **type**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **sourceId**: *eq, in* **completionStatus**: *eq, in* **type**: *eq, in* (optional) sorters := `-created` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TaskManagementAPI.GetTaskStatusList(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.TaskManagementAPI.GetTaskStatusList(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaskManagementAPI.GetTaskStatusList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetTaskStatusList`: []TaskStatus - fmt.Fprintf(os.Stdout, "Response from `TaskManagementAPI.GetTaskStatusList`: %v\n", resp) + //resp, r, err := apiClient.V2024.TaskManagementAPI.GetTaskStatusList(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaskManagementAPI.GetTaskStatusList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTaskStatusList`: []TaskStatus + fmt.Fprintf(os.Stdout, "Response from `TaskManagementAPI.GetTaskStatusList`: %v\n", resp) } ``` @@ -395,7 +396,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -405,24 +406,23 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") jsonpatchoperation := []byte(``) // []JsonPatchOperation | The JSONPatch payload used to update the object. - - var jsonPatchOperation v2024.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2024.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TaskManagementAPI.UpdateTaskStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2024.TaskManagementAPI.UpdateTaskStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaskManagementAPI.UpdateTaskStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateTaskStatus`: TaskStatus - fmt.Fprintf(os.Stdout, "Response from `TaskManagementAPI.UpdateTaskStatus`: %v\n", resp) + //resp, r, err := apiClient.V2024.TaskManagementAPI.UpdateTaskStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaskManagementAPI.UpdateTaskStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateTaskStatus`: TaskStatus + fmt.Fprintf(os.Stdout, "Response from `TaskManagementAPI.UpdateTaskStatus`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/TenantAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/TenantAPI.md index a6a31bdfb..874107068 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/TenantAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/TenantAPI.md @@ -51,25 +51,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TenantAPI.GetTenant(context.Background()).Execute() - //resp, r, err := apiClient.V2024.TenantAPI.GetTenant(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenantAPI.GetTenant``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetTenant`: Tenant - fmt.Fprintf(os.Stdout, "Response from `TenantAPI.GetTenant`: %v\n", resp) + //resp, r, err := apiClient.V2024.TenantAPI.GetTenant(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TenantAPI.GetTenant``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTenant`: Tenant + fmt.Fprintf(os.Stdout, "Response from `TenantAPI.GetTenant`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/TenantContextAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/TenantContextAPI.md index 74036b57a..d1a072fe5 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/TenantContextAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/TenantContextAPI.md @@ -70,7 +70,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -78,18 +78,18 @@ import ( func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TenantContextAPI.GetTenantContext(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.TenantContextAPI.GetTenantContext(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenantContextAPI.GetTenantContext``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetTenantContext`: []GetTenantContext200ResponseInner - fmt.Fprintf(os.Stdout, "Response from `TenantContextAPI.GetTenantContext`: %v\n", resp) + //resp, r, err := apiClient.V2024.TenantContextAPI.GetTenantContext(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TenantContextAPI.GetTenantContext``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTenantContext`: []GetTenantContext200ResponseInner + fmt.Fprintf(os.Stdout, "Response from `TenantContextAPI.GetTenantContext`: %v\n", resp) } ``` @@ -149,7 +149,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -162,22 +162,22 @@ func main() { "value" : "New description" }`) // JsonPatchOperation | - - var jsonPatchOperation v2024.JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation v2024.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.TenantContextAPI.PatchTenantContext(context.Background()).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() - //r, err := apiClient.V2024.TenantContextAPI.PatchTenantContext(context.Background()).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenantContextAPI.PatchTenantContext``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.TenantContextAPI.PatchTenantContext(context.Background()).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TenantContextAPI.PatchTenantContext``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/TransformsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/TransformsAPI.md index 74b47f151..8ac25d56a 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/TransformsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/TransformsAPI.md @@ -64,7 +64,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -76,24 +76,23 @@ func main() { "type" : "dateFormat" }`) // Transform | The transform to be created. - - var transform v2024.Transform - if err := json.Unmarshal(transform, &transform); err != nil { - fmt.Println("Error:", err) - return - } - + var transform v2024.Transform + if err := json.Unmarshal(transform, &transform); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TransformsAPI.CreateTransform(context.Background()).Transform(transform).Execute() - //resp, r, err := apiClient.V2024.TransformsAPI.CreateTransform(context.Background()).Transform(transform).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.CreateTransform``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateTransform`: TransformRead - fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.CreateTransform`: %v\n", resp) + //resp, r, err := apiClient.V2024.TransformsAPI.CreateTransform(context.Background()).Transform(transform).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.CreateTransform``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateTransform`: TransformRead + fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.CreateTransform`: %v\n", resp) } ``` @@ -140,7 +139,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -148,16 +147,17 @@ import ( func main() { id := `2cd78adghjkja34jh2b1hkjhasuecd` // string | ID of the transform to delete # string | ID of the transform to delete - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.TransformsAPI.DeleteTransform(context.Background(), id).Execute() - //r, err := apiClient.V2024.TransformsAPI.DeleteTransform(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.DeleteTransform``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.TransformsAPI.DeleteTransform(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.DeleteTransform``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -204,7 +204,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -212,18 +212,18 @@ import ( func main() { id := `2cd78adghjkja34jh2b1hkjhasuecd` // string | ID of the transform to retrieve # string | ID of the transform to retrieve - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TransformsAPI.GetTransform(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.TransformsAPI.GetTransform(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.GetTransform``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetTransform`: TransformRead - fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.GetTransform`: %v\n", resp) + //resp, r, err := apiClient.V2024.TransformsAPI.GetTransform(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.GetTransform``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTransform`: TransformRead + fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.GetTransform`: %v\n", resp) } ``` @@ -270,7 +270,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -282,18 +282,18 @@ func main() { name := `ExampleTransformName123` // string | Name of the transform to retrieve from the list. (optional) # string | Name of the transform to retrieve from the list. (optional) filters := `name eq "Uppercase"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **internal**: *eq* **name**: *eq, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **internal**: *eq* **name**: *eq, sw* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TransformsAPI.ListTransforms(context.Background()).Execute() - //resp, r, err := apiClient.V2024.TransformsAPI.ListTransforms(context.Background()).Offset(offset).Limit(limit).Count(count).Name(name).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.ListTransforms``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListTransforms`: []TransformRead - fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.ListTransforms`: %v\n", resp) + //resp, r, err := apiClient.V2024.TransformsAPI.ListTransforms(context.Background()).Offset(offset).Limit(limit).Count(count).Name(name).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.ListTransforms``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListTransforms`: []TransformRead + fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.ListTransforms`: %v\n", resp) } ``` @@ -341,7 +341,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -354,18 +354,18 @@ func main() { "type" : "dateFormat" }`) // Transform | The updated transform object. Must include \"name\", \"type\", and \"attributes\" fields, but \"name\" and \"type\" must not be modified. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TransformsAPI.UpdateTransform(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.TransformsAPI.UpdateTransform(context.Background(), id).Transform(transform).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.UpdateTransform``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateTransform`: TransformRead - fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.UpdateTransform`: %v\n", resp) + //resp, r, err := apiClient.V2024.TransformsAPI.UpdateTransform(context.Background(), id).Transform(transform).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.UpdateTransform``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateTransform`: TransformRead + fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.UpdateTransform`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/TriggersAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/TriggersAPI.md index 4b5e9d8d8..d8a7f2ef6 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/TriggersAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/TriggersAPI.md @@ -122,7 +122,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -138,22 +138,22 @@ func main() { "error" : "Access request is denied." }`) // CompleteInvocation | - - var completeInvocation v2024.CompleteInvocation - if err := json.Unmarshal(completeinvocation, &completeInvocation); err != nil { - fmt.Println("Error:", err) - return - } - + var completeInvocation v2024.CompleteInvocation + if err := json.Unmarshal(completeinvocation, &completeInvocation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.TriggersAPI.CompleteTriggerInvocation(context.Background(), id).XSailPointExperimental(xSailPointExperimental).CompleteInvocation(completeInvocation).Execute() - //r, err := apiClient.V2024.TriggersAPI.CompleteTriggerInvocation(context.Background(), id).XSailPointExperimental(xSailPointExperimental).CompleteInvocation(completeInvocation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.CompleteTriggerInvocation``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.TriggersAPI.CompleteTriggerInvocation(context.Background(), id).XSailPointExperimental(xSailPointExperimental).CompleteInvocation(completeInvocation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.CompleteTriggerInvocation``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -210,7 +210,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -243,24 +243,23 @@ func main() { "enabled" : true }`) // SubscriptionPostRequest | - - var subscriptionPostRequest v2024.SubscriptionPostRequest - if err := json.Unmarshal(subscriptionpostrequest, &subscriptionPostRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var subscriptionPostRequest v2024.SubscriptionPostRequest + if err := json.Unmarshal(subscriptionpostrequest, &subscriptionPostRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TriggersAPI.CreateSubscription(context.Background()).XSailPointExperimental(xSailPointExperimental).SubscriptionPostRequest(subscriptionPostRequest).Execute() - //resp, r, err := apiClient.V2024.TriggersAPI.CreateSubscription(context.Background()).XSailPointExperimental(xSailPointExperimental).SubscriptionPostRequest(subscriptionPostRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.CreateSubscription``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSubscription`: Subscription - fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.CreateSubscription`: %v\n", resp) + //resp, r, err := apiClient.V2024.TriggersAPI.CreateSubscription(context.Background()).XSailPointExperimental(xSailPointExperimental).SubscriptionPostRequest(subscriptionPostRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.CreateSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSubscription`: Subscription + fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.CreateSubscription`: %v\n", resp) } ``` @@ -319,7 +318,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -328,16 +327,17 @@ func main() { id := `0f11f2a4-7c94-4bf3-a2bd-742580fe3bde` // string | Subscription ID # string | Subscription ID xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.TriggersAPI.DeleteSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //r, err := apiClient.V2024.TriggersAPI.DeleteSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.DeleteSubscription``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.TriggersAPI.DeleteSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.DeleteSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -396,7 +396,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -409,18 +409,18 @@ func main() { filters := `id eq "12cff757-c0c0-413b-8ad7-2a47956d1e89"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* **triggerId**: *eq* **type**: *eq, le* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* **triggerId**: *eq* **type**: *eq, le* (optional) sorters := `triggerName` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **triggerId, triggerName** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **triggerId, triggerName** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TriggersAPI.ListSubscriptions(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.TriggersAPI.ListSubscriptions(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.ListSubscriptions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListSubscriptions`: []Subscription - fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.ListSubscriptions`: %v\n", resp) + //resp, r, err := apiClient.V2024.TriggersAPI.ListSubscriptions(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.ListSubscriptions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListSubscriptions`: []Subscription + fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.ListSubscriptions`: %v\n", resp) } ``` @@ -481,7 +481,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -494,18 +494,18 @@ func main() { filters := `triggerId eq "idn:access-request-dynamic-approver"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **triggerId**: *eq* **subscriptionId**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **triggerId**: *eq* **subscriptionId**: *eq* (optional) sorters := `created` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **triggerId, subscriptionName, created, completed** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **triggerId, subscriptionName, created, completed** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TriggersAPI.ListTriggerInvocationStatus(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.TriggersAPI.ListTriggerInvocationStatus(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.ListTriggerInvocationStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListTriggerInvocationStatus`: []InvocationStatus - fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.ListTriggerInvocationStatus`: %v\n", resp) + //resp, r, err := apiClient.V2024.TriggersAPI.ListTriggerInvocationStatus(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.ListTriggerInvocationStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListTriggerInvocationStatus`: []InvocationStatus + fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.ListTriggerInvocationStatus`: %v\n", resp) } ``` @@ -564,7 +564,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -577,18 +577,18 @@ func main() { filters := `id eq "idn:access-request-post-approval"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, ge, le* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, ge, le* (optional) sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TriggersAPI.ListTriggers(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.TriggersAPI.ListTriggers(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.ListTriggers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListTriggers`: []Trigger - fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.ListTriggers`: %v\n", resp) + //resp, r, err := apiClient.V2024.TriggersAPI.ListTriggers(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.ListTriggers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListTriggers`: []Trigger + fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.ListTriggers`: %v\n", resp) } ``` @@ -650,7 +650,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -660,24 +660,23 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") subscriptionpatchrequestinner := []byte(``) // []SubscriptionPatchRequestInner | - - var subscriptionPatchRequestInner v2024.[]SubscriptionPatchRequestInner - if err := json.Unmarshal(subscriptionpatchrequestinner, &subscriptionPatchRequestInner); err != nil { - fmt.Println("Error:", err) - return - } - + var subscriptionPatchRequestInner []v2024.SubscriptionPatchRequestInner + if err := json.Unmarshal(subscriptionpatchrequestinner, &subscriptionPatchRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TriggersAPI.PatchSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SubscriptionPatchRequestInner(subscriptionPatchRequestInner).Execute() - //resp, r, err := apiClient.V2024.TriggersAPI.PatchSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SubscriptionPatchRequestInner(subscriptionPatchRequestInner).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.PatchSubscription``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchSubscription`: Subscription - fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.PatchSubscription`: %v\n", resp) + //resp, r, err := apiClient.V2024.TriggersAPI.PatchSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SubscriptionPatchRequestInner(subscriptionPatchRequestInner).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.PatchSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchSubscription`: Subscription + fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.PatchSubscription`: %v\n", resp) } ``` @@ -732,7 +731,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -750,24 +749,23 @@ func main() { } }`) // TestInvocation | - - var testInvocation v2024.TestInvocation - if err := json.Unmarshal(testinvocation, &testInvocation); err != nil { - fmt.Println("Error:", err) - return - } - + var testInvocation v2024.TestInvocation + if err := json.Unmarshal(testinvocation, &testInvocation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TriggersAPI.StartTestTriggerInvocation(context.Background()).XSailPointExperimental(xSailPointExperimental).TestInvocation(testInvocation).Execute() - //resp, r, err := apiClient.V2024.TriggersAPI.StartTestTriggerInvocation(context.Background()).XSailPointExperimental(xSailPointExperimental).TestInvocation(testInvocation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.StartTestTriggerInvocation``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartTestTriggerInvocation`: []Invocation - fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.StartTestTriggerInvocation`: %v\n", resp) + //resp, r, err := apiClient.V2024.TriggersAPI.StartTestTriggerInvocation(context.Background()).XSailPointExperimental(xSailPointExperimental).TestInvocation(testInvocation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.StartTestTriggerInvocation``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartTestTriggerInvocation`: []Invocation + fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.StartTestTriggerInvocation`: %v\n", resp) } ``` @@ -823,7 +821,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -837,24 +835,23 @@ func main() { } }`) // ValidateFilterInputDto | - - var validateFilterInputDto v2024.ValidateFilterInputDto - if err := json.Unmarshal(validatefilterinputdto, &validateFilterInputDto); err != nil { - fmt.Println("Error:", err) - return - } - + var validateFilterInputDto v2024.ValidateFilterInputDto + if err := json.Unmarshal(validatefilterinputdto, &validateFilterInputDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TriggersAPI.TestSubscriptionFilter(context.Background()).XSailPointExperimental(xSailPointExperimental).ValidateFilterInputDto(validateFilterInputDto).Execute() - //resp, r, err := apiClient.V2024.TriggersAPI.TestSubscriptionFilter(context.Background()).XSailPointExperimental(xSailPointExperimental).ValidateFilterInputDto(validateFilterInputDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.TestSubscriptionFilter``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `TestSubscriptionFilter`: ValidateFilterOutputDto - fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.TestSubscriptionFilter`: %v\n", resp) + //resp, r, err := apiClient.V2024.TriggersAPI.TestSubscriptionFilter(context.Background()).XSailPointExperimental(xSailPointExperimental).ValidateFilterInputDto(validateFilterInputDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.TestSubscriptionFilter``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TestSubscriptionFilter`: ValidateFilterOutputDto + fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.TestSubscriptionFilter`: %v\n", resp) } ``` @@ -923,7 +920,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -956,24 +953,23 @@ func main() { "enabled" : true }`) // SubscriptionPutRequest | - - var subscriptionPutRequest v2024.SubscriptionPutRequest - if err := json.Unmarshal(subscriptionputrequest, &subscriptionPutRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var subscriptionPutRequest v2024.SubscriptionPutRequest + if err := json.Unmarshal(subscriptionputrequest, &subscriptionPutRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TriggersAPI.UpdateSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SubscriptionPutRequest(subscriptionPutRequest).Execute() - //resp, r, err := apiClient.V2024.TriggersAPI.UpdateSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SubscriptionPutRequest(subscriptionPutRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.UpdateSubscription``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateSubscription`: Subscription - fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.UpdateSubscription`: %v\n", resp) + //resp, r, err := apiClient.V2024.TriggersAPI.UpdateSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SubscriptionPutRequest(subscriptionPutRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.UpdateSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateSubscription`: Subscription + fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.UpdateSubscription`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/UIMetadataAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/UIMetadataAPI.md index deb0480a6..f384065b6 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/UIMetadataAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/UIMetadataAPI.md @@ -68,7 +68,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -76,18 +76,18 @@ import ( func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.UIMetadataAPI.GetTenantUiMetadata(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.UIMetadataAPI.GetTenantUiMetadata(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UIMetadataAPI.GetTenantUiMetadata``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetTenantUiMetadata`: TenantUiMetadataItemResponse - fmt.Fprintf(os.Stdout, "Response from `UIMetadataAPI.GetTenantUiMetadata`: %v\n", resp) + //resp, r, err := apiClient.V2024.UIMetadataAPI.GetTenantUiMetadata(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UIMetadataAPI.GetTenantUiMetadata``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTenantUiMetadata`: TenantUiMetadataItemResponse + fmt.Fprintf(os.Stdout, "Response from `UIMetadataAPI.GetTenantUiMetadata`: %v\n", resp) } ``` @@ -142,7 +142,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -155,24 +155,23 @@ func main() { "iframeWhiteList" : "http://example.com http://example2.com" }`) // TenantUiMetadataItemUpdateRequest | - - var tenantUiMetadataItemUpdateRequest v2024.TenantUiMetadataItemUpdateRequest - if err := json.Unmarshal(tenantuimetadataitemupdaterequest, &tenantUiMetadataItemUpdateRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var tenantUiMetadataItemUpdateRequest v2024.TenantUiMetadataItemUpdateRequest + if err := json.Unmarshal(tenantuimetadataitemupdaterequest, &tenantUiMetadataItemUpdateRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.UIMetadataAPI.SetTenantUiMetadata(context.Background()).XSailPointExperimental(xSailPointExperimental).TenantUiMetadataItemUpdateRequest(tenantUiMetadataItemUpdateRequest).Execute() - //resp, r, err := apiClient.V2024.UIMetadataAPI.SetTenantUiMetadata(context.Background()).XSailPointExperimental(xSailPointExperimental).TenantUiMetadataItemUpdateRequest(tenantUiMetadataItemUpdateRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UIMetadataAPI.SetTenantUiMetadata``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetTenantUiMetadata`: TenantUiMetadataItemResponse - fmt.Fprintf(os.Stdout, "Response from `UIMetadataAPI.SetTenantUiMetadata`: %v\n", resp) + //resp, r, err := apiClient.V2024.UIMetadataAPI.SetTenantUiMetadata(context.Background()).XSailPointExperimental(xSailPointExperimental).TenantUiMetadataItemUpdateRequest(tenantUiMetadataItemUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UIMetadataAPI.SetTenantUiMetadata``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetTenantUiMetadata`: TenantUiMetadataItemResponse + fmt.Fprintf(os.Stdout, "Response from `UIMetadataAPI.SetTenantUiMetadata`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/VendorConnectorMappingsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/VendorConnectorMappingsAPI.md index 3ecdff766..cd4fa5654 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/VendorConnectorMappingsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/VendorConnectorMappingsAPI.md @@ -62,7 +62,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -92,24 +92,23 @@ func main() { } }`) // VendorConnectorMapping | - - var vendorConnectorMapping v2024.VendorConnectorMapping - if err := json.Unmarshal(vendorconnectormapping, &vendorConnectorMapping); err != nil { - fmt.Println("Error:", err) - return - } - + var vendorConnectorMapping v2024.VendorConnectorMapping + if err := json.Unmarshal(vendorconnectormapping, &vendorConnectorMapping); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.VendorConnectorMappingsAPI.CreateVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() - //resp, r, err := apiClient.V2024.VendorConnectorMappingsAPI.CreateVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VendorConnectorMappingsAPI.CreateVendorConnectorMapping``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateVendorConnectorMapping`: VendorConnectorMapping - fmt.Fprintf(os.Stdout, "Response from `VendorConnectorMappingsAPI.CreateVendorConnectorMapping`: %v\n", resp) + //resp, r, err := apiClient.V2024.VendorConnectorMappingsAPI.CreateVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VendorConnectorMappingsAPI.CreateVendorConnectorMapping``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateVendorConnectorMapping`: VendorConnectorMapping + fmt.Fprintf(os.Stdout, "Response from `VendorConnectorMappingsAPI.CreateVendorConnectorMapping`: %v\n", resp) } ``` @@ -153,7 +152,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -183,24 +182,23 @@ func main() { } }`) // VendorConnectorMapping | - - var vendorConnectorMapping v2024.VendorConnectorMapping - if err := json.Unmarshal(vendorconnectormapping, &vendorConnectorMapping); err != nil { - fmt.Println("Error:", err) - return - } - + var vendorConnectorMapping v2024.VendorConnectorMapping + if err := json.Unmarshal(vendorconnectormapping, &vendorConnectorMapping); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.VendorConnectorMappingsAPI.DeleteVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() - //resp, r, err := apiClient.V2024.VendorConnectorMappingsAPI.DeleteVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VendorConnectorMappingsAPI.DeleteVendorConnectorMapping``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteVendorConnectorMapping`: DeleteVendorConnectorMapping200Response - fmt.Fprintf(os.Stdout, "Response from `VendorConnectorMappingsAPI.DeleteVendorConnectorMapping`: %v\n", resp) + //resp, r, err := apiClient.V2024.VendorConnectorMappingsAPI.DeleteVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VendorConnectorMappingsAPI.DeleteVendorConnectorMapping``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteVendorConnectorMapping`: DeleteVendorConnectorMapping200Response + fmt.Fprintf(os.Stdout, "Response from `VendorConnectorMappingsAPI.DeleteVendorConnectorMapping`: %v\n", resp) } ``` @@ -240,25 +238,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.VendorConnectorMappingsAPI.GetVendorConnectorMappings(context.Background()).Execute() - //resp, r, err := apiClient.V2024.VendorConnectorMappingsAPI.GetVendorConnectorMappings(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VendorConnectorMappingsAPI.GetVendorConnectorMappings``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetVendorConnectorMappings`: []VendorConnectorMapping - fmt.Fprintf(os.Stdout, "Response from `VendorConnectorMappingsAPI.GetVendorConnectorMappings`: %v\n", resp) + //resp, r, err := apiClient.V2024.VendorConnectorMappingsAPI.GetVendorConnectorMappings(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VendorConnectorMappingsAPI.GetVendorConnectorMappings``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetVendorConnectorMappings`: []VendorConnectorMapping + fmt.Fprintf(os.Stdout, "Response from `VendorConnectorMappingsAPI.GetVendorConnectorMappings`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/WorkItemsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/WorkItemsAPI.md index c0cd262a8..38e7c335f 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/WorkItemsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/WorkItemsAPI.md @@ -87,7 +87,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -96,18 +96,18 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item approvalItemId := `1211bcaa32112bcef6122adb21cef1ac` // string | The ID of the approval item. # string | The ID of the approval item. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkItemsAPI.ApproveApprovalItem(context.Background(), id, approvalItemId).Execute() - //resp, r, err := apiClient.V2024.WorkItemsAPI.ApproveApprovalItem(context.Background(), id, approvalItemId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.ApproveApprovalItem``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ApproveApprovalItem`: WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.ApproveApprovalItem`: %v\n", resp) + //resp, r, err := apiClient.V2024.WorkItemsAPI.ApproveApprovalItem(context.Background(), id, approvalItemId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.ApproveApprovalItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApproveApprovalItem`: WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.ApproveApprovalItem`: %v\n", resp) } ``` @@ -154,7 +154,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -162,18 +162,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkItemsAPI.ApproveApprovalItemsInBulk(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.WorkItemsAPI.ApproveApprovalItemsInBulk(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.ApproveApprovalItemsInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ApproveApprovalItemsInBulk`: WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.ApproveApprovalItemsInBulk`: %v\n", resp) + //resp, r, err := apiClient.V2024.WorkItemsAPI.ApproveApprovalItemsInBulk(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.ApproveApprovalItemsInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApproveApprovalItemsInBulk`: WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.ApproveApprovalItemsInBulk`: %v\n", resp) } ``` @@ -221,7 +221,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -230,18 +230,18 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item body := `body_example` // string | Body is the request payload to create form definition request (optional) # string | Body is the request payload to create form definition request (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkItemsAPI.CompleteWorkItem(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.WorkItemsAPI.CompleteWorkItem(context.Background(), id).Body(body).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.CompleteWorkItem``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CompleteWorkItem`: WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.CompleteWorkItem`: %v\n", resp) + //resp, r, err := apiClient.V2024.WorkItemsAPI.CompleteWorkItem(context.Background(), id).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.CompleteWorkItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CompleteWorkItem`: WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.CompleteWorkItem`: %v\n", resp) } ``` @@ -301,7 +301,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -315,22 +315,22 @@ func main() { "sendNotifications" : true }`) // WorkItemForward | - - var workItemForward v2024.WorkItemForward - if err := json.Unmarshal(workitemforward, &workItemForward); err != nil { - fmt.Println("Error:", err) - return - } - + var workItemForward v2024.WorkItemForward + if err := json.Unmarshal(workitemforward, &workItemForward); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.WorkItemsAPI.ForwardWorkItem(context.Background(), id).XSailPointExperimental(xSailPointExperimental).WorkItemForward(workItemForward).Execute() - //r, err := apiClient.V2024.WorkItemsAPI.ForwardWorkItem(context.Background(), id).XSailPointExperimental(xSailPointExperimental).WorkItemForward(workItemForward).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.ForwardWorkItem``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.WorkItemsAPI.ForwardWorkItem(context.Background(), id).XSailPointExperimental(xSailPointExperimental).WorkItemForward(workItemForward).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.ForwardWorkItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -376,7 +376,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -387,18 +387,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkItemsAPI.GetCompletedWorkItems(context.Background()).Execute() - //resp, r, err := apiClient.V2024.WorkItemsAPI.GetCompletedWorkItems(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetCompletedWorkItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCompletedWorkItems`: []WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetCompletedWorkItems`: %v\n", resp) + //resp, r, err := apiClient.V2024.WorkItemsAPI.GetCompletedWorkItems(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetCompletedWorkItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCompletedWorkItems`: []WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetCompletedWorkItems`: %v\n", resp) } ``` @@ -453,7 +453,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -462,18 +462,18 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") ownerId := `ownerId_example` // string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkItemsAPI.GetCountCompletedWorkItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.WorkItemsAPI.GetCountCompletedWorkItems(context.Background()).XSailPointExperimental(xSailPointExperimental).OwnerId(ownerId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetCountCompletedWorkItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCountCompletedWorkItems`: WorkItemsCount - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetCountCompletedWorkItems`: %v\n", resp) + //resp, r, err := apiClient.V2024.WorkItemsAPI.GetCountCompletedWorkItems(context.Background()).XSailPointExperimental(xSailPointExperimental).OwnerId(ownerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetCountCompletedWorkItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCountCompletedWorkItems`: WorkItemsCount + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetCountCompletedWorkItems`: %v\n", resp) } ``` @@ -516,7 +516,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -524,18 +524,18 @@ import ( func main() { ownerId := `ef38f94347e94562b5bb8424a56397d8` // string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkItemsAPI.GetCountWorkItems(context.Background()).Execute() - //resp, r, err := apiClient.V2024.WorkItemsAPI.GetCountWorkItems(context.Background()).OwnerId(ownerId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetCountWorkItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCountWorkItems`: WorkItemsCount - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetCountWorkItems`: %v\n", resp) + //resp, r, err := apiClient.V2024.WorkItemsAPI.GetCountWorkItems(context.Background()).OwnerId(ownerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetCountWorkItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCountWorkItems`: WorkItemsCount + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetCountWorkItems`: %v\n", resp) } ``` @@ -582,7 +582,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -590,18 +590,18 @@ import ( func main() { id := `2c9180835d191a86015d28455b4a2329` // string | ID of the work item. # string | ID of the work item. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkItemsAPI.GetWorkItem(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.WorkItemsAPI.GetWorkItem(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetWorkItem``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetWorkItem`: WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetWorkItem`: %v\n", resp) + //resp, r, err := apiClient.V2024.WorkItemsAPI.GetWorkItem(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetWorkItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkItem`: WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetWorkItem`: %v\n", resp) } ``` @@ -644,7 +644,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -652,18 +652,18 @@ import ( func main() { ownerId := `1211bcaa32112bcef6122adb21cef1ac` // string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkItemsAPI.GetWorkItemsSummary(context.Background()).Execute() - //resp, r, err := apiClient.V2024.WorkItemsAPI.GetWorkItemsSummary(context.Background()).OwnerId(ownerId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetWorkItemsSummary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetWorkItemsSummary`: WorkItemsSummary - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetWorkItemsSummary`: %v\n", resp) + //resp, r, err := apiClient.V2024.WorkItemsAPI.GetWorkItemsSummary(context.Background()).OwnerId(ownerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetWorkItemsSummary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkItemsSummary`: WorkItemsSummary + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetWorkItemsSummary`: %v\n", resp) } ``` @@ -709,7 +709,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -720,18 +720,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) ownerId := `1211bcaa32112bcef6122adb21cef1ac` // string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkItemsAPI.ListWorkItems(context.Background()).Execute() - //resp, r, err := apiClient.V2024.WorkItemsAPI.ListWorkItems(context.Background()).Limit(limit).Offset(offset).Count(count).OwnerId(ownerId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.ListWorkItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListWorkItems`: []WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.ListWorkItems`: %v\n", resp) + //resp, r, err := apiClient.V2024.WorkItemsAPI.ListWorkItems(context.Background()).Limit(limit).Offset(offset).Count(count).OwnerId(ownerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.ListWorkItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListWorkItems`: []WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.ListWorkItems`: %v\n", resp) } ``` @@ -780,7 +780,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -789,18 +789,18 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item approvalItemId := `1211bcaa32112bcef6122adb21cef1ac` // string | The ID of the approval item. # string | The ID of the approval item. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkItemsAPI.RejectApprovalItem(context.Background(), id, approvalItemId).Execute() - //resp, r, err := apiClient.V2024.WorkItemsAPI.RejectApprovalItem(context.Background(), id, approvalItemId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.RejectApprovalItem``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `RejectApprovalItem`: WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.RejectApprovalItem`: %v\n", resp) + //resp, r, err := apiClient.V2024.WorkItemsAPI.RejectApprovalItem(context.Background(), id, approvalItemId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.RejectApprovalItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RejectApprovalItem`: WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.RejectApprovalItem`: %v\n", resp) } ``` @@ -847,7 +847,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -855,18 +855,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkItemsAPI.RejectApprovalItemsInBulk(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.WorkItemsAPI.RejectApprovalItemsInBulk(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.RejectApprovalItemsInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `RejectApprovalItemsInBulk`: WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.RejectApprovalItemsInBulk`: %v\n", resp) + //resp, r, err := apiClient.V2024.WorkItemsAPI.RejectApprovalItemsInBulk(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.RejectApprovalItemsInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RejectApprovalItemsInBulk`: WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.RejectApprovalItemsInBulk`: %v\n", resp) } ``` @@ -914,7 +914,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -923,24 +923,23 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item requestBody := {fieldName=fieldValue} // map[string]interface{} | Account Selection Data map, keyed on fieldName # map[string]interface{} | Account Selection Data map, keyed on fieldName - - var requestBody v2024.RequestBody - if err := json.Unmarshal(requestbody, &requestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var requestBody v2024.RequestBody + if err := json.Unmarshal(requestbody, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkItemsAPI.SubmitAccountSelection(context.Background(), id).RequestBody(requestBody).Execute() - //resp, r, err := apiClient.V2024.WorkItemsAPI.SubmitAccountSelection(context.Background(), id).RequestBody(requestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.SubmitAccountSelection``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SubmitAccountSelection`: WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.SubmitAccountSelection`: %v\n", resp) + //resp, r, err := apiClient.V2024.WorkItemsAPI.SubmitAccountSelection(context.Background(), id).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.SubmitAccountSelection``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SubmitAccountSelection`: WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.SubmitAccountSelection`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/WorkReassignmentAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/WorkReassignmentAPI.md index efeba7e34..7684ac1bc 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/WorkReassignmentAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/WorkReassignmentAPI.md @@ -85,7 +85,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -100,24 +100,23 @@ func main() { "startDate" : "2022-07-21T11:13:12.345Z" }`) // ConfigurationItemRequest | - - var configurationItemRequest v2024.ConfigurationItemRequest - if err := json.Unmarshal(configurationitemrequest, &configurationItemRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var configurationItemRequest v2024.ConfigurationItemRequest + if err := json.Unmarshal(configurationitemrequest, &configurationItemRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkReassignmentAPI.CreateReassignmentConfiguration(context.Background()).XSailPointExperimental(xSailPointExperimental).ConfigurationItemRequest(configurationItemRequest).Execute() - //resp, r, err := apiClient.V2024.WorkReassignmentAPI.CreateReassignmentConfiguration(context.Background()).XSailPointExperimental(xSailPointExperimental).ConfigurationItemRequest(configurationItemRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.CreateReassignmentConfiguration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateReassignmentConfiguration`: ConfigurationItemResponse - fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.CreateReassignmentConfiguration`: %v\n", resp) + //resp, r, err := apiClient.V2024.WorkReassignmentAPI.CreateReassignmentConfiguration(context.Background()).XSailPointExperimental(xSailPointExperimental).ConfigurationItemRequest(configurationItemRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.CreateReassignmentConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateReassignmentConfiguration`: ConfigurationItemResponse + fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.CreateReassignmentConfiguration`: %v\n", resp) } ``` @@ -178,7 +177,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -188,16 +187,17 @@ func main() { configType := // ConfigTypeEnum | # ConfigTypeEnum | xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.WorkReassignmentAPI.DeleteReassignmentConfiguration(context.Background(), identityId, configType).XSailPointExperimental(xSailPointExperimental).Execute() - //r, err := apiClient.V2024.WorkReassignmentAPI.DeleteReassignmentConfiguration(context.Background(), identityId, configType).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.DeleteReassignmentConfiguration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.WorkReassignmentAPI.DeleteReassignmentConfiguration(context.Background(), identityId, configType).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.DeleteReassignmentConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -259,7 +259,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -270,18 +270,18 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") exclusionfilters := []byte(`SELF_REVIEW_DELEGATION`) // []string | Exclusion filters that disable parts of the reassignment evaluation. Possible values are listed below: - `SELF_REVIEW_DELEGATION`: This will exclude delegations of self-review reassignments (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkReassignmentAPI.GetEvaluateReassignmentConfiguration(context.Background(), identityId, configType).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.WorkReassignmentAPI.GetEvaluateReassignmentConfiguration(context.Background(), identityId, configType).XSailPointExperimental(xSailPointExperimental).ExclusionFilters(exclusionFilters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.GetEvaluateReassignmentConfiguration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetEvaluateReassignmentConfiguration`: []EvaluateResponse - fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.GetEvaluateReassignmentConfiguration`: %v\n", resp) + //resp, r, err := apiClient.V2024.WorkReassignmentAPI.GetEvaluateReassignmentConfiguration(context.Background(), identityId, configType).XSailPointExperimental(xSailPointExperimental).ExclusionFilters(exclusionFilters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.GetEvaluateReassignmentConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetEvaluateReassignmentConfiguration`: []EvaluateResponse + fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.GetEvaluateReassignmentConfiguration`: %v\n", resp) } ``` @@ -335,7 +335,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -343,18 +343,18 @@ import ( func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkReassignmentAPI.GetReassignmentConfigTypes(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.WorkReassignmentAPI.GetReassignmentConfigTypes(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.GetReassignmentConfigTypes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetReassignmentConfigTypes`: []ConfigType - fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.GetReassignmentConfigTypes`: %v\n", resp) + //resp, r, err := apiClient.V2024.WorkReassignmentAPI.GetReassignmentConfigTypes(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.GetReassignmentConfigTypes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetReassignmentConfigTypes`: []ConfigType + fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.GetReassignmentConfigTypes`: %v\n", resp) } ``` @@ -413,7 +413,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -422,18 +422,18 @@ func main() { identityId := `2c91808781a71ddb0181b9090b5c504f` // string | unique identity id # string | unique identity id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkReassignmentAPI.GetReassignmentConfiguration(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.WorkReassignmentAPI.GetReassignmentConfiguration(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.GetReassignmentConfiguration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetReassignmentConfiguration`: ConfigurationResponse - fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.GetReassignmentConfiguration`: %v\n", resp) + //resp, r, err := apiClient.V2024.WorkReassignmentAPI.GetReassignmentConfiguration(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.GetReassignmentConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetReassignmentConfiguration`: ConfigurationResponse + fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.GetReassignmentConfiguration`: %v\n", resp) } ``` @@ -487,7 +487,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -495,18 +495,18 @@ import ( func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkReassignmentAPI.GetTenantConfigConfiguration(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.WorkReassignmentAPI.GetTenantConfigConfiguration(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.GetTenantConfigConfiguration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetTenantConfigConfiguration`: TenantConfigurationResponse - fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.GetTenantConfigConfiguration`: %v\n", resp) + //resp, r, err := apiClient.V2024.WorkReassignmentAPI.GetTenantConfigConfiguration(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.GetTenantConfigConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTenantConfigConfiguration`: TenantConfigurationResponse + fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.GetTenantConfigConfiguration`: %v\n", resp) } ``` @@ -560,7 +560,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -568,18 +568,18 @@ import ( func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkReassignmentAPI.ListReassignmentConfigurations(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2024.WorkReassignmentAPI.ListReassignmentConfigurations(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.ListReassignmentConfigurations``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListReassignmentConfigurations`: []ConfigurationResponse - fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.ListReassignmentConfigurations`: %v\n", resp) + //resp, r, err := apiClient.V2024.WorkReassignmentAPI.ListReassignmentConfigurations(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.ListReassignmentConfigurations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListReassignmentConfigurations`: []ConfigurationResponse + fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.ListReassignmentConfigurations`: %v\n", resp) } ``` @@ -639,7 +639,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -655,24 +655,23 @@ func main() { "startDate" : "2022-07-21T11:13:12.345Z" }`) // ConfigurationItemRequest | - - var configurationItemRequest v2024.ConfigurationItemRequest - if err := json.Unmarshal(configurationitemrequest, &configurationItemRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var configurationItemRequest v2024.ConfigurationItemRequest + if err := json.Unmarshal(configurationitemrequest, &configurationItemRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkReassignmentAPI.PutReassignmentConfig(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).ConfigurationItemRequest(configurationItemRequest).Execute() - //resp, r, err := apiClient.V2024.WorkReassignmentAPI.PutReassignmentConfig(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).ConfigurationItemRequest(configurationItemRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.PutReassignmentConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutReassignmentConfig`: ConfigurationItemResponse - fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.PutReassignmentConfig`: %v\n", resp) + //resp, r, err := apiClient.V2024.WorkReassignmentAPI.PutReassignmentConfig(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).ConfigurationItemRequest(configurationItemRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.PutReassignmentConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutReassignmentConfig`: ConfigurationItemResponse + fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.PutReassignmentConfig`: %v\n", resp) } ``` @@ -727,7 +726,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -740,24 +739,23 @@ func main() { } }`) // TenantConfigurationRequest | - - var tenantConfigurationRequest v2024.TenantConfigurationRequest - if err := json.Unmarshal(tenantconfigurationrequest, &tenantConfigurationRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var tenantConfigurationRequest v2024.TenantConfigurationRequest + if err := json.Unmarshal(tenantconfigurationrequest, &tenantConfigurationRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkReassignmentAPI.PutTenantConfiguration(context.Background()).XSailPointExperimental(xSailPointExperimental).TenantConfigurationRequest(tenantConfigurationRequest).Execute() - //resp, r, err := apiClient.V2024.WorkReassignmentAPI.PutTenantConfiguration(context.Background()).XSailPointExperimental(xSailPointExperimental).TenantConfigurationRequest(tenantConfigurationRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.PutTenantConfiguration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutTenantConfiguration`: TenantConfigurationResponse - fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.PutTenantConfiguration`: %v\n", resp) + //resp, r, err := apiClient.V2024.WorkReassignmentAPI.PutTenantConfiguration(context.Background()).XSailPointExperimental(xSailPointExperimental).TenantConfigurationRequest(tenantConfigurationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.PutTenantConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutTenantConfiguration`: TenantConfigurationResponse + fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.PutTenantConfiguration`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Methods/WorkflowsAPI.md b/docs/tools/sdk/go/Reference/V2024/Methods/WorkflowsAPI.md index 0bf38c350..fbd381792 100644 --- a/docs/tools/sdk/go/Reference/V2024/Methods/WorkflowsAPI.md +++ b/docs/tools/sdk/go/Reference/V2024/Methods/WorkflowsAPI.md @@ -77,7 +77,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -85,16 +85,17 @@ import ( func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | The workflow execution ID # string | The workflow execution ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.WorkflowsAPI.CancelWorkflowExecution(context.Background(), id).Execute() - //r, err := apiClient.V2024.WorkflowsAPI.CancelWorkflowExecution(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.CancelWorkflowExecution``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.WorkflowsAPI.CancelWorkflowExecution(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.CancelWorkflowExecution``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -142,7 +143,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -151,18 +152,18 @@ func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow createexternalexecuteworkflowrequest := []byte(``) // CreateExternalExecuteWorkflowRequest | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkflowsAPI.CreateExternalExecuteWorkflow(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.WorkflowsAPI.CreateExternalExecuteWorkflow(context.Background(), id).CreateExternalExecuteWorkflowRequest(createExternalExecuteWorkflowRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.CreateExternalExecuteWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateExternalExecuteWorkflow`: CreateExternalExecuteWorkflow200Response - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.CreateExternalExecuteWorkflow`: %v\n", resp) + //resp, r, err := apiClient.V2024.WorkflowsAPI.CreateExternalExecuteWorkflow(context.Background(), id).CreateExternalExecuteWorkflowRequest(createExternalExecuteWorkflowRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.CreateExternalExecuteWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateExternalExecuteWorkflow`: CreateExternalExecuteWorkflow200Response + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.CreateExternalExecuteWorkflow`: %v\n", resp) } ``` @@ -205,7 +206,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -213,24 +214,23 @@ import ( func main() { createworkflowrequest := []byte(`{name=Send Email, owner={type=IDENTITY, id=2c91808568c529c60168cca6f90c1313, name=William Wilson}, description=Send an email to the identity who's attributes changed., definition={start=Send Email Test, steps={Send Email={actionId=sp:send-email, attributes={body=This is a test, from=sailpoint@sailpoint.com, recipientId.$=$.identity.id, subject=test}, nextStep=success, selectResult=null, type=action}, success={type=success}}}, enabled=false, trigger={type=EVENT, attributes={id=idn:identity-attributes-changed, filter=$.changes[?(@.attribute == 'manager')]}}}`) // CreateWorkflowRequest | - - var createWorkflowRequest v2024.CreateWorkflowRequest - if err := json.Unmarshal(createworkflowrequest, &createWorkflowRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var createWorkflowRequest v2024.CreateWorkflowRequest + if err := json.Unmarshal(createworkflowrequest, &createWorkflowRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkflowsAPI.CreateWorkflow(context.Background()).CreateWorkflowRequest(createWorkflowRequest).Execute() - //resp, r, err := apiClient.V2024.WorkflowsAPI.CreateWorkflow(context.Background()).CreateWorkflowRequest(createWorkflowRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.CreateWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateWorkflow`: Workflow - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.CreateWorkflow`: %v\n", resp) + //resp, r, err := apiClient.V2024.WorkflowsAPI.CreateWorkflow(context.Background()).CreateWorkflowRequest(createWorkflowRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.CreateWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateWorkflow`: Workflow + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.CreateWorkflow`: %v\n", resp) } ``` @@ -277,7 +277,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -285,18 +285,18 @@ import ( func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkflowsAPI.CreateWorkflowExternalTrigger(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.WorkflowsAPI.CreateWorkflowExternalTrigger(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.CreateWorkflowExternalTrigger``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateWorkflowExternalTrigger`: WorkflowOAuthClient - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.CreateWorkflowExternalTrigger`: %v\n", resp) + //resp, r, err := apiClient.V2024.WorkflowsAPI.CreateWorkflowExternalTrigger(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.CreateWorkflowExternalTrigger``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateWorkflowExternalTrigger`: WorkflowOAuthClient + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.CreateWorkflowExternalTrigger`: %v\n", resp) } ``` @@ -343,7 +343,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -351,16 +351,17 @@ import ( func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the Workflow # string | Id of the Workflow - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.WorkflowsAPI.DeleteWorkflow(context.Background(), id).Execute() - //r, err := apiClient.V2024.WorkflowsAPI.DeleteWorkflow(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.DeleteWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2024.WorkflowsAPI.DeleteWorkflow(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.DeleteWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -407,7 +408,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -415,18 +416,18 @@ import ( func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkflowsAPI.GetWorkflow(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.WorkflowsAPI.GetWorkflow(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetWorkflow`: Workflow - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflow`: %v\n", resp) + //resp, r, err := apiClient.V2024.WorkflowsAPI.GetWorkflow(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkflow`: Workflow + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflow`: %v\n", resp) } ``` @@ -473,7 +474,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -481,18 +482,18 @@ import ( func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Workflow execution ID. # string | Workflow execution ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkflowsAPI.GetWorkflowExecution(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.WorkflowsAPI.GetWorkflowExecution(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflowExecution``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetWorkflowExecution`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflowExecution`: %v\n", resp) + //resp, r, err := apiClient.V2024.WorkflowsAPI.GetWorkflowExecution(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflowExecution``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkflowExecution`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflowExecution`: %v\n", resp) } ``` @@ -539,7 +540,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -547,18 +548,18 @@ import ( func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow execution # string | Id of the workflow execution - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkflowsAPI.GetWorkflowExecutionHistory(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.WorkflowsAPI.GetWorkflowExecutionHistory(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflowExecutionHistory``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetWorkflowExecutionHistory`: []WorkflowExecutionEvent - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflowExecutionHistory`: %v\n", resp) + //resp, r, err := apiClient.V2024.WorkflowsAPI.GetWorkflowExecutionHistory(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflowExecutionHistory``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkflowExecutionHistory`: []WorkflowExecutionEvent + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflowExecutionHistory`: %v\n", resp) } ``` @@ -619,7 +620,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -631,18 +632,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) filters := `status eq "Failed"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **start_time**: *eq, lt, le, gt, ge* **status**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **start_time**: *eq, lt, le, gt, ge* **status**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkflowsAPI.GetWorkflowExecutions(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.WorkflowsAPI.GetWorkflowExecutions(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflowExecutions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetWorkflowExecutions`: []WorkflowExecution - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflowExecutions`: %v\n", resp) + //resp, r, err := apiClient.V2024.WorkflowsAPI.GetWorkflowExecutions(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflowExecutions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkflowExecutions`: []WorkflowExecution + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflowExecutions`: %v\n", resp) } ``` @@ -686,7 +687,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -695,18 +696,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkflowsAPI.ListCompleteWorkflowLibrary(context.Background()).Execute() - //resp, r, err := apiClient.V2024.WorkflowsAPI.ListCompleteWorkflowLibrary(context.Background()).Limit(limit).Offset(offset).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListCompleteWorkflowLibrary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListCompleteWorkflowLibrary`: []ListCompleteWorkflowLibrary200ResponseInner - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListCompleteWorkflowLibrary`: %v\n", resp) + //resp, r, err := apiClient.V2024.WorkflowsAPI.ListCompleteWorkflowLibrary(context.Background()).Limit(limit).Offset(offset).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListCompleteWorkflowLibrary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCompleteWorkflowLibrary`: []ListCompleteWorkflowLibrary200ResponseInner + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListCompleteWorkflowLibrary`: %v\n", resp) } ``` @@ -751,7 +752,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -761,18 +762,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) filters := `id eq "sp:create-campaign"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkflowsAPI.ListWorkflowLibraryActions(context.Background()).Execute() - //resp, r, err := apiClient.V2024.WorkflowsAPI.ListWorkflowLibraryActions(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflowLibraryActions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListWorkflowLibraryActions`: []WorkflowLibraryAction - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflowLibraryActions`: %v\n", resp) + //resp, r, err := apiClient.V2024.WorkflowsAPI.ListWorkflowLibraryActions(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflowLibraryActions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListWorkflowLibraryActions`: []WorkflowLibraryAction + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflowLibraryActions`: %v\n", resp) } ``` @@ -811,25 +812,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkflowsAPI.ListWorkflowLibraryOperators(context.Background()).Execute() - //resp, r, err := apiClient.V2024.WorkflowsAPI.ListWorkflowLibraryOperators(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflowLibraryOperators``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListWorkflowLibraryOperators`: []WorkflowLibraryOperator - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflowLibraryOperators`: %v\n", resp) + //resp, r, err := apiClient.V2024.WorkflowsAPI.ListWorkflowLibraryOperators(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflowLibraryOperators``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListWorkflowLibraryOperators`: []WorkflowLibraryOperator + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflowLibraryOperators`: %v\n", resp) } ``` @@ -874,7 +875,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -884,18 +885,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) filters := `id eq "idn:identity-attributes-changed"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkflowsAPI.ListWorkflowLibraryTriggers(context.Background()).Execute() - //resp, r, err := apiClient.V2024.WorkflowsAPI.ListWorkflowLibraryTriggers(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflowLibraryTriggers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListWorkflowLibraryTriggers`: []WorkflowLibraryTrigger - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflowLibraryTriggers`: %v\n", resp) + //resp, r, err := apiClient.V2024.WorkflowsAPI.ListWorkflowLibraryTriggers(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflowLibraryTriggers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListWorkflowLibraryTriggers`: []WorkflowLibraryTrigger + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflowLibraryTriggers`: %v\n", resp) } ``` @@ -934,25 +935,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkflowsAPI.ListWorkflows(context.Background()).Execute() - //resp, r, err := apiClient.V2024.WorkflowsAPI.ListWorkflows(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflows``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListWorkflows`: []Workflow - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflows`: %v\n", resp) + //resp, r, err := apiClient.V2024.WorkflowsAPI.ListWorkflows(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflows``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListWorkflows`: []Workflow + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflows`: %v\n", resp) } ``` @@ -1000,7 +1001,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1009,24 +1010,23 @@ func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the Workflow # string | Id of the Workflow jsonpatchoperation := []byte(`[{op=replace, path=/name, value=Send Email}, {op=replace, path=/owner, value={type=IDENTITY, id=2c91808568c529c60168cca6f90c1313, name=William Wilson}}, {op=replace, path=/description, value=Send an email to the identity who's attributes changed.}, {op=replace, path=/enabled, value=false}, {op=replace, path=/definition, value={start=Send Email Test, steps={Send Email={actionId=sp:send-email, attributes={body=This is a test, from=sailpoint@sailpoint.com, recipientId.$=$.identity.id, subject=test}, nextStep=success, selectResult=null, type=action}, success={type=success}}}}, {op=replace, path=/trigger, value={type=EVENT, attributes={id=idn:identity-attributes-changed}}}]`) // []JsonPatchOperation | - - var jsonPatchOperation v2024.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2024.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkflowsAPI.PatchWorkflow(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2024.WorkflowsAPI.PatchWorkflow(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.PatchWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchWorkflow`: Workflow - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.PatchWorkflow`: %v\n", resp) + //resp, r, err := apiClient.V2024.WorkflowsAPI.PatchWorkflow(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.PatchWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchWorkflow`: Workflow + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.PatchWorkflow`: %v\n", resp) } ``` @@ -1074,7 +1074,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1116,24 +1116,23 @@ func main() { "enabled" : false }`) // WorkflowBody | - - var workflowBody v2024.WorkflowBody - if err := json.Unmarshal(workflowbody, &workflowBody); err != nil { - fmt.Println("Error:", err) - return - } - + var workflowBody v2024.WorkflowBody + if err := json.Unmarshal(workflowbody, &workflowBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkflowsAPI.PutWorkflow(context.Background(), id).WorkflowBody(workflowBody).Execute() - //resp, r, err := apiClient.V2024.WorkflowsAPI.PutWorkflow(context.Background(), id).WorkflowBody(workflowBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.PutWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutWorkflow`: Workflow - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.PutWorkflow`: %v\n", resp) + //resp, r, err := apiClient.V2024.WorkflowsAPI.PutWorkflow(context.Background(), id).WorkflowBody(workflowBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.PutWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutWorkflow`: Workflow + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.PutWorkflow`: %v\n", resp) } ``` @@ -1181,7 +1180,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1190,18 +1189,18 @@ func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow testexternalexecuteworkflowrequest := []byte(``) // TestExternalExecuteWorkflowRequest | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkflowsAPI.TestExternalExecuteWorkflow(context.Background(), id).Execute() - //resp, r, err := apiClient.V2024.WorkflowsAPI.TestExternalExecuteWorkflow(context.Background(), id).TestExternalExecuteWorkflowRequest(testExternalExecuteWorkflowRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.TestExternalExecuteWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `TestExternalExecuteWorkflow`: TestExternalExecuteWorkflow200Response - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.TestExternalExecuteWorkflow`: %v\n", resp) + //resp, r, err := apiClient.V2024.WorkflowsAPI.TestExternalExecuteWorkflow(context.Background(), id).TestExternalExecuteWorkflowRequest(testExternalExecuteWorkflowRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.TestExternalExecuteWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TestExternalExecuteWorkflow`: TestExternalExecuteWorkflow200Response + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.TestExternalExecuteWorkflow`: %v\n", resp) } ``` @@ -1260,7 +1259,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1269,24 +1268,23 @@ func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow testworkflowrequest := []byte(`{input={identity={id=ee769173319b41d19ccec6cea52f237b, name=john.doe, type=IDENTITY}, changes=[{attribute=department, oldValue=sales, newValue=marketing}, {attribute=manager, oldValue={id=ee769173319b41d19ccec6c235423237b, name=nice.guy, type=IDENTITY}, newValue={id=ee769173319b41d19ccec6c235423236c, name=mean.guy, type=IDENTITY}}, {attribute=email, oldValue=john.doe@hotmail.com, newValue=john.doe@gmail.com}]}}`) // TestWorkflowRequest | - - var testWorkflowRequest v2024.TestWorkflowRequest - if err := json.Unmarshal(testworkflowrequest, &testWorkflowRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var testWorkflowRequest v2024.TestWorkflowRequest + if err := json.Unmarshal(testworkflowrequest, &testWorkflowRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkflowsAPI.TestWorkflow(context.Background(), id).TestWorkflowRequest(testWorkflowRequest).Execute() - //resp, r, err := apiClient.V2024.WorkflowsAPI.TestWorkflow(context.Background(), id).TestWorkflowRequest(testWorkflowRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.TestWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `TestWorkflow`: TestWorkflow200Response - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.TestWorkflow`: %v\n", resp) + //resp, r, err := apiClient.V2024.WorkflowsAPI.TestWorkflow(context.Background(), id).TestWorkflowRequest(testWorkflowRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.TestWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TestWorkflow`: TestWorkflow200Response + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.TestWorkflow`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2024/Models/AccessRequest.md b/docs/tools/sdk/go/Reference/V2024/Models/AccessRequest.md index 4d3fa5578..4998273b1 100644 --- a/docs/tools/sdk/go/Reference/V2024/Models/AccessRequest.md +++ b/docs/tools/sdk/go/Reference/V2024/Models/AccessRequest.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes **RequestType** | Pointer to [**NullableAccessRequestType**](access-request-type) | | [optional] **RequestedItems** | [**[]AccessRequestItem**](access-request-item) | | **ClientMetadata** | Pointer to **map[string]string** | Arbitrary key-value pairs. They will never be processed by the IdentityNow system but will be returned on associated APIs such as /account-activities. | [optional] -**RequestedForWithRequestedItems** | Pointer to [**[]RequestedForDtoRef**](requested-for-dto-ref) | Additional submit data structure with requestedFor containing requestedItems allowing distinction for each request item and Identity. * Can only be used when 'requestedFor' and 'requestedItems' are not separately provided * Adds ability to specify which account the user wants the access on, in case they have multiple accounts on a source * Allows the ability to request items with different remove dates * Also allows different combinations of request items and identities in the same request | [optional] +**RequestedForWithRequestedItems** | Pointer to [**[]RequestedForDtoRef**](requested-for-dto-ref) | Additional submit data structure with requestedFor containing requestedItems allowing distinction for each request item and Identity. * Can only be used when 'requestedFor' and 'requestedItems' are not separately provided * Adds ability to specify which account the user wants the access on, in case they have multiple accounts on a source * Allows the ability to request items with different remove dates * Also allows different combinations of request items and identities in the same request * Only for use in GRANT_ACCESS type requests | [optional] ## Methods diff --git a/docs/tools/sdk/go/Reference/V2024/Models/AccessRequestItem.md b/docs/tools/sdk/go/Reference/V2024/Models/AccessRequestItem.md index 72a01e5ac..3511efdf9 100644 --- a/docs/tools/sdk/go/Reference/V2024/Models/AccessRequestItem.md +++ b/docs/tools/sdk/go/Reference/V2024/Models/AccessRequestItem.md @@ -21,7 +21,7 @@ Name | Type | Description | Notes **ClientMetadata** | Pointer to **map[string]string** | Arbitrary key-value pairs. They will never be processed by the IdentityNow system but will be returned on associated APIs such as /account-activities and /access-request-status. | [optional] **RemoveDate** | Pointer to **SailPointTime** | The date the role or access profile or entitlement is no longer assigned to the specified identity. Also known as the expiration date. * Specify a date in the future. * The current SLA for the deprovisioning is 24 hours. * This date can be modified to either extend or decrease the duration of access item assignments for the specified identity. You can change the expiration date for requests for yourself or direct reports, but you cannot remove an expiration date on an already approved item. If the access request has not been approved, you can cancel it and submit a new one without the expiration. If it has already been approved, then you have to revoke the access and then re-request without the expiration. | [optional] **AssignmentId** | Pointer to **NullableString** | The assignmentId for a specific role assignment on the identity. This id is used to revoke that specific roleAssignment on that identity. * For use with REVOKE_ACCESS requests for roles for identities with multiple accounts on a single source. | [optional] -**NativeIdentity** | Pointer to **NullableString** | The 'distinguishedName' field for an account on the identity, also called nativeIdentity. This nativeIdentity is used to revoke a specific attributeAssignment on the identity. * For use with REVOKE_ACCESS requests for entitlements for identities with multiple accounts on a single source. | [optional] +**NativeIdentity** | Pointer to **NullableString** | The unique identifier for an account on the identity, designated as the account ID attribute in the source's account schema. This is used to revoke a specific attributeAssignment on the identity. * For use with REVOKE_ACCESS requests for entitlements for identities with multiple accounts on a single source. | [optional] ## Methods diff --git a/docs/tools/sdk/go/Reference/V2024/Models/EntitlementAccessRequestConfig.md b/docs/tools/sdk/go/Reference/V2024/Models/EntitlementAccessRequestConfig.md index 1d3087a58..7ac94d745 100644 --- a/docs/tools/sdk/go/Reference/V2024/Models/EntitlementAccessRequestConfig.md +++ b/docs/tools/sdk/go/Reference/V2024/Models/EntitlementAccessRequestConfig.md @@ -18,6 +18,7 @@ Name | Type | Description | Notes **ApprovalSchemes** | Pointer to [**[]EntitlementApprovalScheme**](entitlement-approval-scheme) | Ordered list of approval steps for the access request. Empty when no approval is required. | [optional] **RequestCommentRequired** | Pointer to **bool** | If the requester must provide a comment during access request. | [optional] [default to false] **DenialCommentRequired** | Pointer to **bool** | If the reviewer must provide a comment when denying the access request. | [optional] [default to false] +**ReauthorizationRequired** | Pointer to **bool** | Is Reauthorization Required | [optional] [default to false] ## Methods @@ -113,4 +114,29 @@ SetDenialCommentRequired sets DenialCommentRequired field to given value. HasDenialCommentRequired returns a boolean if a field has been set. +### GetReauthorizationRequired + +`func (o *EntitlementAccessRequestConfig) GetReauthorizationRequired() bool` + +GetReauthorizationRequired returns the ReauthorizationRequired field if non-nil, zero value otherwise. + +### GetReauthorizationRequiredOk + +`func (o *EntitlementAccessRequestConfig) GetReauthorizationRequiredOk() (*bool, bool)` + +GetReauthorizationRequiredOk returns a tuple with the ReauthorizationRequired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReauthorizationRequired + +`func (o *EntitlementAccessRequestConfig) SetReauthorizationRequired(v bool)` + +SetReauthorizationRequired sets ReauthorizationRequired field to given value. + +### HasReauthorizationRequired + +`func (o *EntitlementAccessRequestConfig) HasReauthorizationRequired() bool` + +HasReauthorizationRequired returns a boolean if a field has been set. + diff --git a/docs/tools/sdk/go/Reference/V2024/Models/EntitlementRequestConfig.md b/docs/tools/sdk/go/Reference/V2024/Models/EntitlementRequestConfig.md index f5b716fbd..073318b03 100644 --- a/docs/tools/sdk/go/Reference/V2024/Models/EntitlementRequestConfig.md +++ b/docs/tools/sdk/go/Reference/V2024/Models/EntitlementRequestConfig.md @@ -16,6 +16,7 @@ tags: ['SDK', 'Software Development Kit', 'EntitlementRequestConfig', 'V2024Enti Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **AccessRequestConfig** | Pointer to [**EntitlementAccessRequestConfig**](entitlement-access-request-config) | | [optional] +**RevocationRequestConfig** | Pointer to [**EntitlementRevocationRequestConfig**](entitlement-revocation-request-config) | | [optional] ## Methods @@ -61,4 +62,29 @@ SetAccessRequestConfig sets AccessRequestConfig field to given value. HasAccessRequestConfig returns a boolean if a field has been set. +### GetRevocationRequestConfig + +`func (o *EntitlementRequestConfig) GetRevocationRequestConfig() EntitlementRevocationRequestConfig` + +GetRevocationRequestConfig returns the RevocationRequestConfig field if non-nil, zero value otherwise. + +### GetRevocationRequestConfigOk + +`func (o *EntitlementRequestConfig) GetRevocationRequestConfigOk() (*EntitlementRevocationRequestConfig, bool)` + +GetRevocationRequestConfigOk returns a tuple with the RevocationRequestConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRevocationRequestConfig + +`func (o *EntitlementRequestConfig) SetRevocationRequestConfig(v EntitlementRevocationRequestConfig)` + +SetRevocationRequestConfig sets RevocationRequestConfig field to given value. + +### HasRevocationRequestConfig + +`func (o *EntitlementRequestConfig) HasRevocationRequestConfig() bool` + +HasRevocationRequestConfig returns a boolean if a field has been set. + diff --git a/docs/tools/sdk/go/Reference/V2024/Models/EntitlementRevocationRequestConfig.md b/docs/tools/sdk/go/Reference/V2024/Models/EntitlementRevocationRequestConfig.md new file mode 100644 index 000000000..735e396bb --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2024/Models/EntitlementRevocationRequestConfig.md @@ -0,0 +1,64 @@ +--- +id: v2024-entitlement-revocation-request-config +title: EntitlementRevocationRequestConfig +pagination_label: EntitlementRevocationRequestConfig +sidebar_label: EntitlementRevocationRequestConfig +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'EntitlementRevocationRequestConfig', 'V2024EntitlementRevocationRequestConfig'] +slug: /tools/sdk/go/v2024/models/entitlement-revocation-request-config +tags: ['SDK', 'Software Development Kit', 'EntitlementRevocationRequestConfig', 'V2024EntitlementRevocationRequestConfig'] +--- + +# EntitlementRevocationRequestConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApprovalSchemes** | Pointer to [**[]EntitlementApprovalScheme**](entitlement-approval-scheme) | Ordered list of approval steps for the access request. Empty when no approval is required. | [optional] + +## Methods + +### NewEntitlementRevocationRequestConfig + +`func NewEntitlementRevocationRequestConfig() *EntitlementRevocationRequestConfig` + +NewEntitlementRevocationRequestConfig instantiates a new EntitlementRevocationRequestConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEntitlementRevocationRequestConfigWithDefaults + +`func NewEntitlementRevocationRequestConfigWithDefaults() *EntitlementRevocationRequestConfig` + +NewEntitlementRevocationRequestConfigWithDefaults instantiates a new EntitlementRevocationRequestConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApprovalSchemes + +`func (o *EntitlementRevocationRequestConfig) GetApprovalSchemes() []EntitlementApprovalScheme` + +GetApprovalSchemes returns the ApprovalSchemes field if non-nil, zero value otherwise. + +### GetApprovalSchemesOk + +`func (o *EntitlementRevocationRequestConfig) GetApprovalSchemesOk() (*[]EntitlementApprovalScheme, bool)` + +GetApprovalSchemesOk returns a tuple with the ApprovalSchemes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApprovalSchemes + +`func (o *EntitlementRevocationRequestConfig) SetApprovalSchemes(v []EntitlementApprovalScheme)` + +SetApprovalSchemes sets ApprovalSchemes field to given value. + +### HasApprovalSchemes + +`func (o *EntitlementRevocationRequestConfig) HasApprovalSchemes() bool` + +HasApprovalSchemes returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2024/Models/RequestedItemDtoRef.md b/docs/tools/sdk/go/Reference/V2024/Models/RequestedItemDtoRef.md index d3013c808..e1a06056d 100644 --- a/docs/tools/sdk/go/Reference/V2024/Models/RequestedItemDtoRef.md +++ b/docs/tools/sdk/go/Reference/V2024/Models/RequestedItemDtoRef.md @@ -20,8 +20,6 @@ Name | Type | Description | Notes **Comment** | Pointer to **string** | Comment provided by requester. * Comment is required when the request is of type Revoke Access. | [optional] **ClientMetadata** | Pointer to **map[string]string** | Arbitrary key-value pairs. They will never be processed by the IdentityNow system but will be returned on associated APIs such as /account-activities and /access-request-status. | [optional] **RemoveDate** | Pointer to **SailPointTime** | The date the role or access profile or entitlement is no longer assigned to the specified identity. Also known as the expiration date. * Specify a date in the future. * The current SLA for the deprovisioning is 24 hours. * This date can be modified to either extend or decrease the duration of access item assignments for the specified identity. You can change the expiration date for requests for yourself or direct reports, but you cannot remove an expiration date on an already approved item. If the access request has not been approved, you can cancel it and submit a new one without the expiration. If it has already been approved, then you have to revoke the access and then re-request without the expiration. | [optional] -**AssignmentId** | Pointer to **NullableString** | The assignmentId for a specific role assignment on the identity. This id is used to revoke that specific roleAssignment on that identity. * For use with REVOKE_ACCESS requests for roles for identities with multiple accounts on a single source. | [optional] -**NativeIdentity** | Pointer to **NullableString** | The 'distinguishedName' field for an account on the identity, also called nativeIdentity. This nativeIdentity is used to revoke a specific attributeAssignment on the identity. * For use with REVOKE_ACCESS requests for entitlements for identities with multiple accounts on a single source. | [optional] **AccountSelection** | Pointer to [**[]SourceItemRef**](source-item-ref) | The accounts where the access item will be provisioned to * Includes selections performed by the user in the event of multiple accounts existing on the same source * Also includes details for sources where user only has one account | [optional] ## Methods @@ -158,76 +156,6 @@ SetRemoveDate sets RemoveDate field to given value. HasRemoveDate returns a boolean if a field has been set. -### GetAssignmentId - -`func (o *RequestedItemDtoRef) GetAssignmentId() string` - -GetAssignmentId returns the AssignmentId field if non-nil, zero value otherwise. - -### GetAssignmentIdOk - -`func (o *RequestedItemDtoRef) GetAssignmentIdOk() (*string, bool)` - -GetAssignmentIdOk returns a tuple with the AssignmentId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAssignmentId - -`func (o *RequestedItemDtoRef) SetAssignmentId(v string)` - -SetAssignmentId sets AssignmentId field to given value. - -### HasAssignmentId - -`func (o *RequestedItemDtoRef) HasAssignmentId() bool` - -HasAssignmentId returns a boolean if a field has been set. - -### SetAssignmentIdNil - -`func (o *RequestedItemDtoRef) SetAssignmentIdNil(b bool)` - - SetAssignmentIdNil sets the value for AssignmentId to be an explicit nil - -### UnsetAssignmentId -`func (o *RequestedItemDtoRef) UnsetAssignmentId()` - -UnsetAssignmentId ensures that no value is present for AssignmentId, not even an explicit nil -### GetNativeIdentity - -`func (o *RequestedItemDtoRef) GetNativeIdentity() string` - -GetNativeIdentity returns the NativeIdentity field if non-nil, zero value otherwise. - -### GetNativeIdentityOk - -`func (o *RequestedItemDtoRef) GetNativeIdentityOk() (*string, bool)` - -GetNativeIdentityOk returns a tuple with the NativeIdentity field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNativeIdentity - -`func (o *RequestedItemDtoRef) SetNativeIdentity(v string)` - -SetNativeIdentity sets NativeIdentity field to given value. - -### HasNativeIdentity - -`func (o *RequestedItemDtoRef) HasNativeIdentity() bool` - -HasNativeIdentity returns a boolean if a field has been set. - -### SetNativeIdentityNil - -`func (o *RequestedItemDtoRef) SetNativeIdentityNil(b bool)` - - SetNativeIdentityNil sets the value for NativeIdentity to be an explicit nil - -### UnsetNativeIdentity -`func (o *RequestedItemDtoRef) UnsetNativeIdentity()` - -UnsetNativeIdentity ensures that no value is present for NativeIdentity, not even an explicit nil ### GetAccountSelection `func (o *RequestedItemDtoRef) GetAccountSelection() []SourceItemRef` diff --git a/docs/tools/sdk/go/Reference/V2024/Models/SourceEntitlementRequestConfig.md b/docs/tools/sdk/go/Reference/V2024/Models/SourceEntitlementRequestConfig.md index c94fca30f..207fa66ab 100644 --- a/docs/tools/sdk/go/Reference/V2024/Models/SourceEntitlementRequestConfig.md +++ b/docs/tools/sdk/go/Reference/V2024/Models/SourceEntitlementRequestConfig.md @@ -16,6 +16,7 @@ tags: ['SDK', 'Software Development Kit', 'SourceEntitlementRequestConfig', 'V20 Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **AccessRequestConfig** | Pointer to [**EntitlementAccessRequestConfig**](entitlement-access-request-config) | | [optional] +**RevocationRequestConfig** | Pointer to [**EntitlementRevocationRequestConfig**](entitlement-revocation-request-config) | | [optional] ## Methods @@ -61,4 +62,29 @@ SetAccessRequestConfig sets AccessRequestConfig field to given value. HasAccessRequestConfig returns a boolean if a field has been set. +### GetRevocationRequestConfig + +`func (o *SourceEntitlementRequestConfig) GetRevocationRequestConfig() EntitlementRevocationRequestConfig` + +GetRevocationRequestConfig returns the RevocationRequestConfig field if non-nil, zero value otherwise. + +### GetRevocationRequestConfigOk + +`func (o *SourceEntitlementRequestConfig) GetRevocationRequestConfigOk() (*EntitlementRevocationRequestConfig, bool)` + +GetRevocationRequestConfigOk returns a tuple with the RevocationRequestConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRevocationRequestConfig + +`func (o *SourceEntitlementRequestConfig) SetRevocationRequestConfig(v EntitlementRevocationRequestConfig)` + +SetRevocationRequestConfig sets RevocationRequestConfig field to given value. + +### HasRevocationRequestConfig + +`func (o *SourceEntitlementRequestConfig) HasRevocationRequestConfig() bool` + +HasRevocationRequestConfig returns a boolean if a field has been set. + diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/AccessModelMetadataAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/AccessModelMetadataAPI.md index 9a1168dcb..188309cda 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/AccessModelMetadataAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/AccessModelMetadataAPI.md @@ -84,7 +84,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -93,18 +93,18 @@ func main() { key := `iscPrivacy` // string | Technical name of the Attribute. # string | Technical name of the Attribute. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessModelMetadataAPI.GetAccessModelMetadataAttribute(context.Background(), key).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.AccessModelMetadataAPI.GetAccessModelMetadataAttribute(context.Background(), key).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessModelMetadataAPI.GetAccessModelMetadataAttribute``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessModelMetadataAttribute`: AttributeDTO - fmt.Fprintf(os.Stdout, "Response from `AccessModelMetadataAPI.GetAccessModelMetadataAttribute`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccessModelMetadataAPI.GetAccessModelMetadataAttribute(context.Background(), key).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessModelMetadataAPI.GetAccessModelMetadataAttribute``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessModelMetadataAttribute`: AttributeDTO + fmt.Fprintf(os.Stdout, "Response from `AccessModelMetadataAPI.GetAccessModelMetadataAttribute`: %v\n", resp) } ``` @@ -165,7 +165,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -175,18 +175,18 @@ func main() { value := `public` // string | Technical name of the Attribute value. # string | Technical name of the Attribute value. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessModelMetadataAPI.GetAccessModelMetadataAttributeValue(context.Background(), key, value).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.AccessModelMetadataAPI.GetAccessModelMetadataAttributeValue(context.Background(), key, value).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessModelMetadataAPI.GetAccessModelMetadataAttributeValue``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessModelMetadataAttributeValue`: AttributeValueDTO - fmt.Fprintf(os.Stdout, "Response from `AccessModelMetadataAPI.GetAccessModelMetadataAttributeValue`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccessModelMetadataAPI.GetAccessModelMetadataAttributeValue(context.Background(), key, value).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessModelMetadataAPI.GetAccessModelMetadataAttributeValue``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessModelMetadataAttributeValue`: AttributeValueDTO + fmt.Fprintf(os.Stdout, "Response from `AccessModelMetadataAPI.GetAccessModelMetadataAttributeValue`: %v\n", resp) } ``` @@ -241,7 +241,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -250,18 +250,18 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") filters := `name eq "Privacy"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *eq* **type**: *eq* **status**: *eq* **objectTypes**: *eq* Supported composite operators: *and* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *eq* **type**: *eq* **status**: *eq* **objectTypes**: *eq* Supported composite operators: *and* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessModelMetadataAPI.ListAccessModelMetadataAttribute(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.AccessModelMetadataAPI.ListAccessModelMetadataAttribute(context.Background()).XSailPointExperimental(xSailPointExperimental).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessModelMetadataAPI.ListAccessModelMetadataAttribute``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAccessModelMetadataAttribute`: []AttributeDTO - fmt.Fprintf(os.Stdout, "Response from `AccessModelMetadataAPI.ListAccessModelMetadataAttribute`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccessModelMetadataAPI.ListAccessModelMetadataAttribute(context.Background()).XSailPointExperimental(xSailPointExperimental).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessModelMetadataAPI.ListAccessModelMetadataAttribute``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAccessModelMetadataAttribute`: []AttributeDTO + fmt.Fprintf(os.Stdout, "Response from `AccessModelMetadataAPI.ListAccessModelMetadataAttribute`: %v\n", resp) } ``` @@ -320,7 +320,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -329,18 +329,18 @@ func main() { key := `iscPrivacy` // string | Technical name of the Attribute. # string | Technical name of the Attribute. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessModelMetadataAPI.ListAccessModelMetadataAttributeValue(context.Background(), key).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.AccessModelMetadataAPI.ListAccessModelMetadataAttributeValue(context.Background(), key).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessModelMetadataAPI.ListAccessModelMetadataAttributeValue``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAccessModelMetadataAttributeValue`: []AttributeValueDTO - fmt.Fprintf(os.Stdout, "Response from `AccessModelMetadataAPI.ListAccessModelMetadataAttributeValue`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccessModelMetadataAPI.ListAccessModelMetadataAttributeValue(context.Background(), key).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessModelMetadataAPI.ListAccessModelMetadataAttributeValue``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAccessModelMetadataAttributeValue`: []AttributeValueDTO + fmt.Fprintf(os.Stdout, "Response from `AccessModelMetadataAPI.ListAccessModelMetadataAttributeValue`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/AccessProfilesAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/AccessProfilesAPI.md index 942453836..19b967f67 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/AccessProfilesAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/AccessProfilesAPI.md @@ -99,7 +99,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -192,24 +192,23 @@ func main() { "requestable" : true }`) // AccessProfile | - - var accessProfile v2025.AccessProfile - if err := json.Unmarshal(accessprofile, &accessProfile); err != nil { - fmt.Println("Error:", err) - return - } - + var accessProfile v2025.AccessProfile + if err := json.Unmarshal(accessprofile, &accessProfile); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessProfilesAPI.CreateAccessProfile(context.Background()).AccessProfile(accessProfile).Execute() - //resp, r, err := apiClient.V2025.AccessProfilesAPI.CreateAccessProfile(context.Background()).AccessProfile(accessProfile).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.CreateAccessProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateAccessProfile`: AccessProfile - fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.CreateAccessProfile`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccessProfilesAPI.CreateAccessProfile(context.Background()).AccessProfile(accessProfile).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.CreateAccessProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAccessProfile`: AccessProfile + fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.CreateAccessProfile`: %v\n", resp) } ``` @@ -260,7 +259,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -268,16 +267,17 @@ import ( func main() { id := `2c91808a7813090a017814121919ecca` // string | ID of the Access Profile to delete # string | ID of the Access Profile to delete - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.AccessProfilesAPI.DeleteAccessProfile(context.Background(), id).Execute() - //r, err := apiClient.V2025.AccessProfilesAPI.DeleteAccessProfile(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.DeleteAccessProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.AccessProfilesAPI.DeleteAccessProfile(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.DeleteAccessProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -324,7 +324,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -335,24 +335,23 @@ func main() { "bestEffortOnly" : true }`) // AccessProfileBulkDeleteRequest | - - var accessProfileBulkDeleteRequest v2025.AccessProfileBulkDeleteRequest - if err := json.Unmarshal(accessprofilebulkdeleterequest, &accessProfileBulkDeleteRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var accessProfileBulkDeleteRequest v2025.AccessProfileBulkDeleteRequest + if err := json.Unmarshal(accessprofilebulkdeleterequest, &accessProfileBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessProfilesAPI.DeleteAccessProfilesInBulk(context.Background()).AccessProfileBulkDeleteRequest(accessProfileBulkDeleteRequest).Execute() - //resp, r, err := apiClient.V2025.AccessProfilesAPI.DeleteAccessProfilesInBulk(context.Background()).AccessProfileBulkDeleteRequest(accessProfileBulkDeleteRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.DeleteAccessProfilesInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteAccessProfilesInBulk`: AccessProfileBulkDeleteResponse - fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.DeleteAccessProfilesInBulk`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccessProfilesAPI.DeleteAccessProfilesInBulk(context.Background()).AccessProfileBulkDeleteRequest(accessProfileBulkDeleteRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.DeleteAccessProfilesInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteAccessProfilesInBulk`: AccessProfileBulkDeleteResponse + fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.DeleteAccessProfilesInBulk`: %v\n", resp) } ``` @@ -399,7 +398,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -407,18 +406,18 @@ import ( func main() { id := `2c9180837ca6693d017ca8d097500149` // string | ID of the Access Profile # string | ID of the Access Profile - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessProfilesAPI.GetAccessProfile(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.AccessProfilesAPI.GetAccessProfile(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.GetAccessProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessProfile`: AccessProfile - fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.GetAccessProfile`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccessProfilesAPI.GetAccessProfile(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.GetAccessProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessProfile`: AccessProfile + fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.GetAccessProfile`: %v\n", resp) } ``` @@ -472,7 +471,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -485,18 +484,18 @@ func main() { filters := `attribute eq "memberOf"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* Filtering is not supported for access profiles and entitlements that have the '+' symbol in their names. (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* Filtering is not supported for access profiles and entitlements that have the '+' symbol in their names. (optional) sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, attribute, value, created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, attribute, value, created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessProfilesAPI.GetAccessProfileEntitlements(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.AccessProfilesAPI.GetAccessProfileEntitlements(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.GetAccessProfileEntitlements``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessProfileEntitlements`: []Entitlement - fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.GetAccessProfileEntitlements`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccessProfilesAPI.GetAccessProfileEntitlements(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.GetAccessProfileEntitlements``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessProfileEntitlements`: []Entitlement + fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.GetAccessProfileEntitlements`: %v\n", resp) } ``` @@ -547,7 +546,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -562,18 +561,18 @@ func main() { forSegmentIds := `0b5c9f25-83c6-4762-9073-e38f7bb2ae26,2e8d8180-24bc-4d21-91c6-7affdb473b0d` // string | Filters access profiles to only those assigned to the segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) # string | Filters access profiles to only those assigned to the segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) includeUnsegmented := false // bool | Indicates whether the response list should contain unsegmented access profiles. If `for-segment-ids` is absent or empty, specifying *include-unsegmented* as `false` results in an error. (optional) (default to true) # bool | Indicates whether the response list should contain unsegmented access profiles. If `for-segment-ids` is absent or empty, specifying *include-unsegmented* as `false` results in an error. (optional) (default to true) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessProfilesAPI.ListAccessProfiles(context.Background()).Execute() - //resp, r, err := apiClient.V2025.AccessProfilesAPI.ListAccessProfiles(context.Background()).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.ListAccessProfiles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAccessProfiles`: []AccessProfile - fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.ListAccessProfiles`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccessProfilesAPI.ListAccessProfiles(context.Background()).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.ListAccessProfiles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAccessProfiles`: []AccessProfile + fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.ListAccessProfiles`: %v\n", resp) } ``` @@ -650,7 +649,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -659,24 +658,23 @@ func main() { id := `2c91808a7813090a017814121919ecca` // string | ID of the Access Profile to patch # string | ID of the Access Profile to patch jsonpatchoperation := []byte(`[{op=add, path=/entitlements, value=[{id=2c9180857725c14301772a93bb77242d, type=ENTITLEMENT, name=AD User Group}]}]`) // []JsonPatchOperation | - - var jsonPatchOperation v2025.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2025.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessProfilesAPI.PatchAccessProfile(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2025.AccessProfilesAPI.PatchAccessProfile(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.PatchAccessProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchAccessProfile`: AccessProfile - fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.PatchAccessProfile`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccessProfilesAPI.PatchAccessProfile(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.PatchAccessProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchAccessProfile`: AccessProfile + fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.PatchAccessProfile`: %v\n", resp) } ``` @@ -737,7 +735,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -746,24 +744,23 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") accessprofilebulkupdaterequestinner := []byte(`[{id=464ae7bf-791e-49fd-b746-06a2e4a89635, requestable=false}]`) // []AccessProfileBulkUpdateRequestInner | - - var accessProfileBulkUpdateRequestInner v2025.[]AccessProfileBulkUpdateRequestInner - if err := json.Unmarshal(accessprofilebulkupdaterequestinner, &accessProfileBulkUpdateRequestInner); err != nil { - fmt.Println("Error:", err) - return - } - + var accessProfileBulkUpdateRequestInner []v2025.AccessProfileBulkUpdateRequestInner + if err := json.Unmarshal(accessprofilebulkupdaterequestinner, &accessProfileBulkUpdateRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessProfilesAPI.UpdateAccessProfilesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessProfileBulkUpdateRequestInner(accessProfileBulkUpdateRequestInner).Execute() - //resp, r, err := apiClient.V2025.AccessProfilesAPI.UpdateAccessProfilesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessProfileBulkUpdateRequestInner(accessProfileBulkUpdateRequestInner).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.UpdateAccessProfilesInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateAccessProfilesInBulk`: []AccessProfileUpdateItem - fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.UpdateAccessProfilesInBulk`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccessProfilesAPI.UpdateAccessProfilesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessProfileBulkUpdateRequestInner(accessProfileBulkUpdateRequestInner).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.UpdateAccessProfilesInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateAccessProfilesInBulk`: []AccessProfileUpdateItem + fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.UpdateAccessProfilesInBulk`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/AccessRequestApprovalsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/AccessRequestApprovalsAPI.md index 366d8380f..d211da35e 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/AccessRequestApprovalsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/AccessRequestApprovalsAPI.md @@ -83,7 +83,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -100,18 +100,18 @@ func main() { "comment" : "This is a comment." }`) // CommentDto | Reviewer's comment. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.ApproveAccessRequest(context.Background(), approvalId).Execute() - //resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.ApproveAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.ApproveAccessRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ApproveAccessRequest`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.ApproveAccessRequest`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.ApproveAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.ApproveAccessRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApproveAccessRequest`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.ApproveAccessRequest`: %v\n", resp) } ``` @@ -159,7 +159,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -171,24 +171,23 @@ func main() { "comment" : "2c91808568c529c60168cca6f90c1313" }`) // ForwardApprovalDto | Information about the forwarded approval. - - var forwardApprovalDto v2025.ForwardApprovalDto - if err := json.Unmarshal(forwardapprovaldto, &forwardApprovalDto); err != nil { - fmt.Println("Error:", err) - return - } - + var forwardApprovalDto v2025.ForwardApprovalDto + if err := json.Unmarshal(forwardapprovaldto, &forwardApprovalDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.ForwardAccessRequest(context.Background(), approvalId).ForwardApprovalDto(forwardApprovalDto).Execute() - //resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.ForwardAccessRequest(context.Background(), approvalId).ForwardApprovalDto(forwardApprovalDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.ForwardAccessRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ForwardAccessRequest`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.ForwardAccessRequest`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.ForwardAccessRequest(context.Background(), approvalId).ForwardApprovalDto(forwardApprovalDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.ForwardAccessRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ForwardAccessRequest`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.ForwardAccessRequest`: %v\n", resp) } ``` @@ -232,7 +231,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -241,18 +240,18 @@ func main() { ownerId := `2c91808568c529c60168cca6f90c1313` // string | The ID of the owner or approver identity of the approvals. If present, the value returns approval summary for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN user can also fetch all the approvals in the org, when owner-id is not used. * Non ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) # string | The ID of the owner or approver identity of the approvals. If present, the value returns approval summary for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN user can also fetch all the approvals in the org, when owner-id is not used. * Non ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) fromDate := `from-date=2020-03-19T19:59:11Z` // string | This is the date and time the results will be shown from. It must be in a valid ISO-8601 format. (optional) # string | This is the date and time the results will be shown from. It must be in a valid ISO-8601 format. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary(context.Background()).Execute() - //resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary(context.Background()).OwnerId(ownerId).FromDate(fromDate).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessRequestApprovalSummary`: ApprovalSummary - fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary(context.Background()).OwnerId(ownerId).FromDate(fromDate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessRequestApprovalSummary`: ApprovalSummary + fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary`: %v\n", resp) } ``` @@ -303,7 +302,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -314,18 +313,18 @@ func main() { offset := 10 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. Defaults to 0 if not specified. (optional) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. Defaults to 0 if not specified. (optional) count := false // bool | If this is true, the *X-Total-Count* response header populates with the number of results that would be returned if limit and offset were ignored. (optional) (default to false) # bool | If this is true, the *X-Total-Count* response header populates with the number of results that would be returned if limit and offset were ignored. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.ListAccessRequestApprovers(context.Background(), accessRequestId).Execute() - //resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.ListAccessRequestApprovers(context.Background(), accessRequestId).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.ListAccessRequestApprovers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAccessRequestApprovers`: []AccessRequestApproversListResponse - fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.ListAccessRequestApprovers`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.ListAccessRequestApprovers(context.Background(), accessRequestId).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.ListAccessRequestApprovers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAccessRequestApprovers`: []AccessRequestApproversListResponse + fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.ListAccessRequestApprovers`: %v\n", resp) } ``` @@ -373,7 +372,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -386,18 +385,18 @@ func main() { filters := `id eq "2c91808568c529c60168cca6f90c1313"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **requestedFor.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **requestedFor.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, sw* (optional) sorters := `modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.ListCompletedApprovals(context.Background()).Execute() - //resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.ListCompletedApprovals(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.ListCompletedApprovals``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListCompletedApprovals`: []CompletedApproval - fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.ListCompletedApprovals`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.ListCompletedApprovals(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.ListCompletedApprovals``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCompletedApprovals`: []CompletedApproval + fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.ListCompletedApprovals`: %v\n", resp) } ``` @@ -445,7 +444,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -458,18 +457,18 @@ func main() { filters := `id eq "2c91808568c529c60168cca6f90c1313"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **requestedFor.id**: *eq, in* **modified**: *gt, lt, ge, le, eq, in* **accessRequestId**: *eq, in* **created**: *gt, lt, ge, le, eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **requestedFor.id**: *eq, in* **modified**: *gt, lt, ge, le, eq, in* **accessRequestId**: *eq, in* **created**: *gt, lt, ge, le, eq, in* (optional) sorters := `modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.ListPendingApprovals(context.Background()).Execute() - //resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.ListPendingApprovals(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.ListPendingApprovals``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListPendingApprovals`: []PendingApproval - fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.ListPendingApprovals`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.ListPendingApprovals(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.ListPendingApprovals``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListPendingApprovals`: []PendingApproval + fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.ListPendingApprovals`: %v\n", resp) } ``` @@ -517,7 +516,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -534,24 +533,23 @@ func main() { "comment" : "This is a comment." }`) // CommentDto | Reviewer's comment. - - var commentDto v2025.CommentDto - if err := json.Unmarshal(commentdto, &commentDto); err != nil { - fmt.Println("Error:", err) - return - } - + var commentDto v2025.CommentDto + if err := json.Unmarshal(commentdto, &commentDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.RejectAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() - //resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.RejectAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.RejectAccessRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `RejectAccessRequest`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.RejectAccessRequest`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.RejectAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.RejectAccessRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RejectAccessRequest`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.RejectAccessRequest`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/AccessRequestIdentityMetricsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/AccessRequestIdentityMetricsAPI.md index 8fefc20cf..35be820f4 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/AccessRequestIdentityMetricsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/AccessRequestIdentityMetricsAPI.md @@ -67,7 +67,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -77,18 +77,18 @@ func main() { requestedObjectId := `2db501be-f0fb-4cc5-a695-334133c52891` // string | Requested access item's ID. # string | Requested access item's ID. type_ := `ENTITLEMENT` // string | Requested access item's type. # string | Requested access item's type. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestIdentityMetricsAPI.GetAccessRequestIdentityMetrics(context.Background(), identityId, requestedObjectId, type_).Execute() - //resp, r, err := apiClient.V2025.AccessRequestIdentityMetricsAPI.GetAccessRequestIdentityMetrics(context.Background(), identityId, requestedObjectId, type_).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestIdentityMetricsAPI.GetAccessRequestIdentityMetrics``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessRequestIdentityMetrics`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `AccessRequestIdentityMetricsAPI.GetAccessRequestIdentityMetrics`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccessRequestIdentityMetricsAPI.GetAccessRequestIdentityMetrics(context.Background(), identityId, requestedObjectId, type_).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestIdentityMetricsAPI.GetAccessRequestIdentityMetrics``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessRequestIdentityMetrics`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AccessRequestIdentityMetricsAPI.GetAccessRequestIdentityMetrics`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/AccessRequestsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/AccessRequestsAPI.md index 7867aaf58..c77d35bd1 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/AccessRequestsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/AccessRequestsAPI.md @@ -80,7 +80,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -91,24 +91,23 @@ func main() { "approvalIds" : [ "2c9180835d2e5168015d32f890ca1581", "2c9180835d2e5168015d32f890ca1582" ] }`) // BulkApproveAccessRequest | - - var bulkApproveAccessRequest v2025.BulkApproveAccessRequest - if err := json.Unmarshal(bulkapproveaccessrequest, &bulkApproveAccessRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var bulkApproveAccessRequest v2025.BulkApproveAccessRequest + if err := json.Unmarshal(bulkapproveaccessrequest, &bulkApproveAccessRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestsAPI.ApproveBulkAccessRequest(context.Background()).BulkApproveAccessRequest(bulkApproveAccessRequest).Execute() - //resp, r, err := apiClient.V2025.AccessRequestsAPI.ApproveBulkAccessRequest(context.Background()).BulkApproveAccessRequest(bulkApproveAccessRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.ApproveBulkAccessRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ApproveBulkAccessRequest`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.ApproveBulkAccessRequest`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccessRequestsAPI.ApproveBulkAccessRequest(context.Background()).BulkApproveAccessRequest(bulkApproveAccessRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.ApproveBulkAccessRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApproveBulkAccessRequest`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.ApproveBulkAccessRequest`: %v\n", resp) } ``` @@ -152,7 +151,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -163,24 +162,23 @@ func main() { "comment" : "I requested this role by mistake." }`) // CancelAccessRequest | - - var cancelAccessRequest v2025.CancelAccessRequest - if err := json.Unmarshal(cancelaccessrequest, &cancelAccessRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var cancelAccessRequest v2025.CancelAccessRequest + if err := json.Unmarshal(cancelaccessrequest, &cancelAccessRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestsAPI.CancelAccessRequest(context.Background()).CancelAccessRequest(cancelAccessRequest).Execute() - //resp, r, err := apiClient.V2025.AccessRequestsAPI.CancelAccessRequest(context.Background()).CancelAccessRequest(cancelAccessRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.CancelAccessRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CancelAccessRequest`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.CancelAccessRequest`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccessRequestsAPI.CancelAccessRequest(context.Background()).CancelAccessRequest(cancelAccessRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.CancelAccessRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CancelAccessRequest`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.CancelAccessRequest`: %v\n", resp) } ``` @@ -224,7 +222,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -235,24 +233,23 @@ func main() { "comment" : "I requested this role by mistake." }`) // BulkCancelAccessRequest | - - var bulkCancelAccessRequest v2025.BulkCancelAccessRequest - if err := json.Unmarshal(bulkcancelaccessrequest, &bulkCancelAccessRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var bulkCancelAccessRequest v2025.BulkCancelAccessRequest + if err := json.Unmarshal(bulkcancelaccessrequest, &bulkCancelAccessRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestsAPI.CancelAccessRequestInBulk(context.Background()).BulkCancelAccessRequest(bulkCancelAccessRequest).Execute() - //resp, r, err := apiClient.V2025.AccessRequestsAPI.CancelAccessRequestInBulk(context.Background()).BulkCancelAccessRequest(bulkCancelAccessRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.CancelAccessRequestInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CancelAccessRequestInBulk`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.CancelAccessRequestInBulk`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccessRequestsAPI.CancelAccessRequestInBulk(context.Background()).BulkCancelAccessRequest(bulkCancelAccessRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.CancelAccessRequestInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CancelAccessRequestInBulk`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.CancelAccessRequestInBulk`: %v\n", resp) } ``` @@ -318,7 +315,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -332,24 +329,23 @@ func main() { "message" : "The IdentityNow Administrator manually closed this request." }`) // CloseAccessRequest | - - var closeAccessRequest v2025.CloseAccessRequest - if err := json.Unmarshal(closeaccessrequest, &closeAccessRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var closeAccessRequest v2025.CloseAccessRequest + if err := json.Unmarshal(closeaccessrequest, &closeAccessRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestsAPI.CloseAccessRequest(context.Background()).XSailPointExperimental(xSailPointExperimental).CloseAccessRequest(closeAccessRequest).Execute() - //resp, r, err := apiClient.V2025.AccessRequestsAPI.CloseAccessRequest(context.Background()).XSailPointExperimental(xSailPointExperimental).CloseAccessRequest(closeAccessRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.CloseAccessRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CloseAccessRequest`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.CloseAccessRequest`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccessRequestsAPI.CloseAccessRequest(context.Background()).XSailPointExperimental(xSailPointExperimental).CloseAccessRequest(closeAccessRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.CloseAccessRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CloseAccessRequest`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.CloseAccessRequest`: %v\n", resp) } ``` @@ -388,7 +384,8 @@ __REVOKE_ACCESS__ * Revoke requests for entitlements are limited to 1 entitlement per access request currently. * You can specify a `removeDate` if the access doesn't already have a sunset date. The `removeDate` must be a future date, in the UTC timezone. * Allows a manager to request to revoke access for direct employees. A user with ORG_ADMIN authority can also request to revoke access from anyone. -* Now supports REVOKE_ACCESS requests for identities with multiple accounts on a single source, with the help of 'assignmentId' and 'nativeIdentity' fields. +* Now supports REVOKE_ACCESS requests for identities with multiple accounts on a single source, with the help of 'assignmentId' and 'nativeIdentity' fields. These fields should be used within the 'requestedItems' section for the revoke requests. +* Usage of 'requestedForWithRequestedItems' field is not supported for revoke requests. [API Spec](https://developer.sailpoint.com/docs/api/v2025/create-access-request) @@ -424,7 +421,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -445,7 +442,9 @@ func main() { "removeDate" : "2020-07-11T21:23:15Z", "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE" + "type" : "ACCESS_PROFILE", + "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", + "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" }, { "clientMetadata" : { "requestedAppName" : "test-app", @@ -454,7 +453,9 @@ func main() { "removeDate" : "2020-07-11T21:23:15Z", "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE" + "type" : "ACCESS_PROFILE", + "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", + "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" }, { "clientMetadata" : { "requestedAppName" : "test-app", @@ -463,7 +464,9 @@ func main() { "removeDate" : "2020-07-11T21:23:15Z", "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE" + "type" : "ACCESS_PROFILE", + "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", + "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" }, { "clientMetadata" : { "requestedAppName" : "test-app", @@ -472,7 +475,9 @@ func main() { "removeDate" : "2020-07-11T21:23:15Z", "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE" + "type" : "ACCESS_PROFILE", + "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", + "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" }, { "clientMetadata" : { "requestedAppName" : "test-app", @@ -481,7 +486,9 @@ func main() { "removeDate" : "2020-07-11T21:23:15Z", "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE" + "type" : "ACCESS_PROFILE", + "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", + "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" } ], "requestedForWithRequestedItems" : [ { "identityId" : "cb89bc2f1ee6445fbea12224c526ba3a", @@ -512,9 +519,7 @@ func main() { } ], "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE", - "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", - "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + "type" : "ACCESS_PROFILE" }, { "clientMetadata" : { "requestedAppName" : "test-app", @@ -542,9 +547,7 @@ func main() { } ], "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE", - "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", - "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + "type" : "ACCESS_PROFILE" } ] }, { "identityId" : "cb89bc2f1ee6445fbea12224c526ba3a", @@ -575,9 +578,7 @@ func main() { } ], "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE", - "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", - "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + "type" : "ACCESS_PROFILE" }, { "clientMetadata" : { "requestedAppName" : "test-app", @@ -605,31 +606,28 @@ func main() { } ], "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE", - "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", - "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + "type" : "ACCESS_PROFILE" } ] } ] }`) // AccessRequest | - - var accessRequest v2025.AccessRequest - if err := json.Unmarshal(accessrequest, &accessRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var accessRequest v2025.AccessRequest + if err := json.Unmarshal(accessrequest, &accessRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestsAPI.CreateAccessRequest(context.Background()).AccessRequest(accessRequest).Execute() - //resp, r, err := apiClient.V2025.AccessRequestsAPI.CreateAccessRequest(context.Background()).AccessRequest(accessRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.CreateAccessRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateAccessRequest`: AccessRequestResponse - fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.CreateAccessRequest`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccessRequestsAPI.CreateAccessRequest(context.Background()).AccessRequest(accessRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.CreateAccessRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAccessRequest`: AccessRequestResponse + fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.CreateAccessRequest`: %v\n", resp) } ``` @@ -668,25 +666,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestsAPI.GetAccessRequestConfig(context.Background()).Execute() - //resp, r, err := apiClient.V2025.AccessRequestsAPI.GetAccessRequestConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.GetAccessRequestConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessRequestConfig`: AccessRequestConfig - fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.GetAccessRequestConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccessRequestsAPI.GetAccessRequestConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.GetAccessRequestConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessRequestConfig`: AccessRequestConfig + fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.GetAccessRequestConfig`: %v\n", resp) } ``` @@ -747,7 +745,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -757,18 +755,18 @@ func main() { identityId := `7025c863c2704ba6beeaedf3cb091573` // string | The identity ID. # string | The identity ID. entitlementId := `ef38f94347e94562b5bb8424a56397d8` // string | The entitlement ID # string | The entitlement ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestsAPI.GetEntitlementDetailsForIdentity(context.Background(), identityId, entitlementId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.AccessRequestsAPI.GetEntitlementDetailsForIdentity(context.Background(), identityId, entitlementId).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.GetEntitlementDetailsForIdentity``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetEntitlementDetailsForIdentity`: IdentityEntitlementDetails - fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.GetEntitlementDetailsForIdentity`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccessRequestsAPI.GetEntitlementDetailsForIdentity(context.Background(), identityId, entitlementId).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.GetEntitlementDetailsForIdentity``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetEntitlementDetailsForIdentity`: IdentityEntitlementDetails + fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.GetEntitlementDetailsForIdentity`: %v\n", resp) } ``` @@ -822,7 +820,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -839,18 +837,18 @@ func main() { sorters := `created` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified, accountActivityItemId, name** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified, accountActivityItemId, name** (optional) requestState := `request-state=EXECUTING` // string | Filter the results by the state of the request. The only valid value is *EXECUTING*. (optional) # string | Filter the results by the state of the request. The only valid value is *EXECUTING*. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestsAPI.ListAccessRequestStatus(context.Background()).Execute() - //resp, r, err := apiClient.V2025.AccessRequestsAPI.ListAccessRequestStatus(context.Background()).RequestedFor(requestedFor).RequestedBy(requestedBy).RegardingIdentity(regardingIdentity).AssignedTo(assignedTo).Count(count).Limit(limit).Offset(offset).Filters(filters).Sorters(sorters).RequestState(requestState).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.ListAccessRequestStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAccessRequestStatus`: []RequestedItemStatus - fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.ListAccessRequestStatus`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccessRequestsAPI.ListAccessRequestStatus(context.Background()).RequestedFor(requestedFor).RequestedBy(requestedBy).RegardingIdentity(regardingIdentity).AssignedTo(assignedTo).Count(count).Limit(limit).Offset(offset).Filters(filters).Sorters(sorters).RequestState(requestState).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.ListAccessRequestStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAccessRequestStatus`: []RequestedItemStatus + fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.ListAccessRequestStatus`: %v\n", resp) } ``` @@ -903,7 +901,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -920,18 +918,18 @@ func main() { sorters := `created` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified, accountActivityItemId, name, accessRequestId** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified, accountActivityItemId, name, accessRequestId** (optional) requestState := `request-state=EXECUTING` // string | Filter the results by the state of the request. The only valid value is *EXECUTING*. (optional) # string | Filter the results by the state of the request. The only valid value is *EXECUTING*. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestsAPI.ListAdministratorsAccessRequestStatus(context.Background()).Execute() - //resp, r, err := apiClient.V2025.AccessRequestsAPI.ListAdministratorsAccessRequestStatus(context.Background()).RequestedFor(requestedFor).RequestedBy(requestedBy).RegardingIdentity(regardingIdentity).AssignedTo(assignedTo).Count(count).Limit(limit).Offset(offset).Filters(filters).Sorters(sorters).RequestState(requestState).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.ListAdministratorsAccessRequestStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAdministratorsAccessRequestStatus`: []AccessRequestAdminItemStatus - fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.ListAdministratorsAccessRequestStatus`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccessRequestsAPI.ListAdministratorsAccessRequestStatus(context.Background()).RequestedFor(requestedFor).RequestedBy(requestedBy).RegardingIdentity(regardingIdentity).AssignedTo(assignedTo).Count(count).Limit(limit).Offset(offset).Filters(filters).Sorters(sorters).RequestState(requestState).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.ListAdministratorsAccessRequestStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAdministratorsAccessRequestStatus`: []AccessRequestAdminItemStatus + fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.ListAdministratorsAccessRequestStatus`: %v\n", resp) } ``` @@ -977,7 +975,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1048,24 +1046,23 @@ func main() { } ] }`) // AccountsSelectionRequest | - - var accountsSelectionRequest v2025.AccountsSelectionRequest - if err := json.Unmarshal(accountsselectionrequest, &accountsSelectionRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var accountsSelectionRequest v2025.AccountsSelectionRequest + if err := json.Unmarshal(accountsselectionrequest, &accountsSelectionRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestsAPI.LoadAccountSelections(context.Background()).AccountsSelectionRequest(accountsSelectionRequest).Execute() - //resp, r, err := apiClient.V2025.AccessRequestsAPI.LoadAccountSelections(context.Background()).AccountsSelectionRequest(accountsSelectionRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.LoadAccountSelections``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `LoadAccountSelections`: AccountsSelectionResponse - fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.LoadAccountSelections`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccessRequestsAPI.LoadAccountSelections(context.Background()).AccountsSelectionRequest(accountsSelectionRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.LoadAccountSelections``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `LoadAccountSelections`: AccountsSelectionResponse + fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.LoadAccountSelections`: %v\n", resp) } ``` @@ -1108,7 +1105,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1141,31 +1138,40 @@ func main() { "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", "approverType" : "GOVERNANCE_GROUP" } ], + "reauthorizationRequired" : false, "requestCommentRequired" : true + }, + "revocationRequestConfig" : { + "approvalSchemes" : [ { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + }, { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + } ] } }, "reauthorizationEnabled" : true, "approvalsMustBeExternal" : true }`) // AccessRequestConfig | - - var accessRequestConfig v2025.AccessRequestConfig - if err := json.Unmarshal(accessrequestconfig, &accessRequestConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var accessRequestConfig v2025.AccessRequestConfig + if err := json.Unmarshal(accessrequestconfig, &accessRequestConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestsAPI.SetAccessRequestConfig(context.Background()).AccessRequestConfig(accessRequestConfig).Execute() - //resp, r, err := apiClient.V2025.AccessRequestsAPI.SetAccessRequestConfig(context.Background()).AccessRequestConfig(accessRequestConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.SetAccessRequestConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetAccessRequestConfig`: AccessRequestConfig - fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.SetAccessRequestConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccessRequestsAPI.SetAccessRequestConfig(context.Background()).AccessRequestConfig(accessRequestConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.SetAccessRequestConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetAccessRequestConfig`: AccessRequestConfig + fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.SetAccessRequestConfig`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/AccountActivitiesAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/AccountActivitiesAPI.md index ec206aaae..aacffa3d7 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/AccountActivitiesAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/AccountActivitiesAPI.md @@ -93,7 +93,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -101,18 +101,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The account activity id # string | The account activity id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountActivitiesAPI.GetAccountActivity(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.AccountActivitiesAPI.GetAccountActivity(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountActivitiesAPI.GetAccountActivity``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccountActivity`: AccountActivity - fmt.Fprintf(os.Stdout, "Response from `AccountActivitiesAPI.GetAccountActivity`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccountActivitiesAPI.GetAccountActivity(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountActivitiesAPI.GetAccountActivity``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccountActivity`: AccountActivity + fmt.Fprintf(os.Stdout, "Response from `AccountActivitiesAPI.GetAccountActivity`: %v\n", resp) } ``` @@ -162,7 +162,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -177,18 +177,18 @@ func main() { filters := `type eq "Identity Refresh"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **type**: *eq, in, ge, le, lt, ne, isnull, sw* **created**: *gt, lt, ge, le, eq, in, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, isnull, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **type**: *eq, in, ge, le, lt, ne, isnull, sw* **created**: *gt, lt, ge, le, eq, in, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, isnull, sw* (optional) sorters := `created` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **type, created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **type, created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountActivitiesAPI.ListAccountActivities(context.Background()).Execute() - //resp, r, err := apiClient.V2025.AccountActivitiesAPI.ListAccountActivities(context.Background()).RequestedFor(requestedFor).RequestedBy(requestedBy).RegardingIdentity(regardingIdentity).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountActivitiesAPI.ListAccountActivities``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAccountActivities`: []AccountActivity - fmt.Fprintf(os.Stdout, "Response from `AccountActivitiesAPI.ListAccountActivities`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccountActivitiesAPI.ListAccountActivities(context.Background()).RequestedFor(requestedFor).RequestedBy(requestedBy).RegardingIdentity(regardingIdentity).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountActivitiesAPI.ListAccountActivities``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAccountActivities`: []AccountActivity + fmt.Fprintf(os.Stdout, "Response from `AccountActivitiesAPI.ListAccountActivities`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/AccountAggregationsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/AccountAggregationsAPI.md index 10526cff3..f50dc48cc 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/AccountAggregationsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/AccountAggregationsAPI.md @@ -88,7 +88,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -97,18 +97,18 @@ func main() { id := `2c91808477a6b0c60177a81146b8110b` // string | The account aggregation id # string | The account aggregation id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountAggregationsAPI.GetAccountAggregationStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.AccountAggregationsAPI.GetAccountAggregationStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountAggregationsAPI.GetAccountAggregationStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccountAggregationStatus`: AccountAggregationStatus - fmt.Fprintf(os.Stdout, "Response from `AccountAggregationsAPI.GetAccountAggregationStatus`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccountAggregationsAPI.GetAccountAggregationStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountAggregationsAPI.GetAccountAggregationStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccountAggregationStatus`: AccountAggregationStatus + fmt.Fprintf(os.Stdout, "Response from `AccountAggregationsAPI.GetAccountAggregationStatus`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/AccountUsagesAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/AccountUsagesAPI.md index 505b73c3b..4a68e3507 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/AccountUsagesAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/AccountUsagesAPI.md @@ -66,7 +66,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -78,18 +78,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) sorters := `-date` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **date** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **date** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountUsagesAPI.GetUsagesByAccountId(context.Background(), accountId).Execute() - //resp, r, err := apiClient.V2025.AccountUsagesAPI.GetUsagesByAccountId(context.Background(), accountId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountUsagesAPI.GetUsagesByAccountId``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetUsagesByAccountId`: []AccountUsage - fmt.Fprintf(os.Stdout, "Response from `AccountUsagesAPI.GetUsagesByAccountId`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccountUsagesAPI.GetUsagesByAccountId(context.Background(), accountId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountUsagesAPI.GetUsagesByAccountId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetUsagesByAccountId`: []AccountUsage + fmt.Fprintf(os.Stdout, "Response from `AccountUsagesAPI.GetUsagesByAccountId`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/AccountsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/AccountsAPI.md index 34637371d..fed97e14f 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/AccountsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/AccountsAPI.md @@ -108,7 +108,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -125,24 +125,23 @@ func main() { } }`) // AccountAttributesCreate | - - var accountAttributesCreate v2025.AccountAttributesCreate - if err := json.Unmarshal(accountattributescreate, &accountAttributesCreate); err != nil { - fmt.Println("Error:", err) - return - } - + var accountAttributesCreate v2025.AccountAttributesCreate + if err := json.Unmarshal(accountattributescreate, &accountAttributesCreate); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountsAPI.CreateAccount(context.Background()).AccountAttributesCreate(accountAttributesCreate).Execute() - //resp, r, err := apiClient.V2025.AccountsAPI.CreateAccount(context.Background()).AccountAttributesCreate(accountAttributesCreate).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.CreateAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateAccount`: AccountsAsyncResult - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.CreateAccount`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccountsAPI.CreateAccount(context.Background()).AccountAttributesCreate(accountAttributesCreate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.CreateAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAccount`: AccountsAsyncResult + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.CreateAccount`: %v\n", resp) } ``` @@ -192,7 +191,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -200,18 +199,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountsAPI.DeleteAccount(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.AccountsAPI.DeleteAccount(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.DeleteAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteAccount`: AccountsAsyncResult - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.DeleteAccount`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccountsAPI.DeleteAccount(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.DeleteAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteAccount`: AccountsAsyncResult + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.DeleteAccount`: %v\n", resp) } ``` @@ -276,7 +275,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -285,18 +284,18 @@ func main() { id := `c350d6aa4f104c61b062cb632421ad10` // string | The account id # string | The account id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountsAPI.DeleteAccountAsync(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.AccountsAPI.DeleteAccountAsync(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.DeleteAccountAsync``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteAccountAsync`: TaskResultDto - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.DeleteAccountAsync`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccountsAPI.DeleteAccountAsync(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.DeleteAccountAsync``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteAccountAsync`: TaskResultDto + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.DeleteAccountAsync`: %v\n", resp) } ``` @@ -344,7 +343,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -356,24 +355,23 @@ func main() { "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581" }`) // AccountToggleRequest | - - var accountToggleRequest v2025.AccountToggleRequest - if err := json.Unmarshal(accounttogglerequest, &accountToggleRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var accountToggleRequest v2025.AccountToggleRequest + if err := json.Unmarshal(accounttogglerequest, &accountToggleRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountsAPI.DisableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() - //resp, r, err := apiClient.V2025.AccountsAPI.DisableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.DisableAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DisableAccount`: AccountsAsyncResult - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.DisableAccount`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccountsAPI.DisableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.DisableAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DisableAccount`: AccountsAsyncResult + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.DisableAccount`: %v\n", resp) } ``` @@ -432,7 +430,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -441,18 +439,18 @@ func main() { id := `2c91808384203c2d018437e631158309` // string | The identity id. # string | The identity id. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountsAPI.DisableAccountForIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.AccountsAPI.DisableAccountForIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.DisableAccountForIdentity``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DisableAccountForIdentity`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.DisableAccountForIdentity`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccountsAPI.DisableAccountForIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.DisableAccountForIdentity``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DisableAccountForIdentity`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.DisableAccountForIdentity`: %v\n", resp) } ``` @@ -507,7 +505,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -518,24 +516,23 @@ func main() { "identityIds" : [ "2c91808384203c2d018437e631158308", "2c9180858082150f0180893dbaf553fe" ] }`) // IdentitiesAccountsBulkRequest | - - var identitiesAccountsBulkRequest v2025.IdentitiesAccountsBulkRequest - if err := json.Unmarshal(identitiesaccountsbulkrequest, &identitiesAccountsBulkRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var identitiesAccountsBulkRequest v2025.IdentitiesAccountsBulkRequest + if err := json.Unmarshal(identitiesaccountsbulkrequest, &identitiesAccountsBulkRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountsAPI.DisableAccountsForIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentitiesAccountsBulkRequest(identitiesAccountsBulkRequest).Execute() - //resp, r, err := apiClient.V2025.AccountsAPI.DisableAccountsForIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentitiesAccountsBulkRequest(identitiesAccountsBulkRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.DisableAccountsForIdentities``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DisableAccountsForIdentities`: []BulkIdentitiesAccountsResponse - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.DisableAccountsForIdentities`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccountsAPI.DisableAccountsForIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentitiesAccountsBulkRequest(identitiesAccountsBulkRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.DisableAccountsForIdentities``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DisableAccountsForIdentities`: []BulkIdentitiesAccountsResponse + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.DisableAccountsForIdentities`: %v\n", resp) } ``` @@ -583,7 +580,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -595,24 +592,23 @@ func main() { "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581" }`) // AccountToggleRequest | - - var accountToggleRequest v2025.AccountToggleRequest - if err := json.Unmarshal(accounttogglerequest, &accountToggleRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var accountToggleRequest v2025.AccountToggleRequest + if err := json.Unmarshal(accounttogglerequest, &accountToggleRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountsAPI.EnableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() - //resp, r, err := apiClient.V2025.AccountsAPI.EnableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.EnableAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `EnableAccount`: AccountsAsyncResult - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.EnableAccount`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccountsAPI.EnableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.EnableAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `EnableAccount`: AccountsAsyncResult + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.EnableAccount`: %v\n", resp) } ``` @@ -671,7 +667,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -680,18 +676,18 @@ func main() { id := `2c91808384203c2d018437e631158309` // string | The identity id. # string | The identity id. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountsAPI.EnableAccountForIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.AccountsAPI.EnableAccountForIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.EnableAccountForIdentity``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `EnableAccountForIdentity`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.EnableAccountForIdentity`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccountsAPI.EnableAccountForIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.EnableAccountForIdentity``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `EnableAccountForIdentity`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.EnableAccountForIdentity`: %v\n", resp) } ``` @@ -746,7 +742,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -757,24 +753,23 @@ func main() { "identityIds" : [ "2c91808384203c2d018437e631158308", "2c9180858082150f0180893dbaf553fe" ] }`) // IdentitiesAccountsBulkRequest | - - var identitiesAccountsBulkRequest v2025.IdentitiesAccountsBulkRequest - if err := json.Unmarshal(identitiesaccountsbulkrequest, &identitiesAccountsBulkRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var identitiesAccountsBulkRequest v2025.IdentitiesAccountsBulkRequest + if err := json.Unmarshal(identitiesaccountsbulkrequest, &identitiesAccountsBulkRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountsAPI.EnableAccountsForIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentitiesAccountsBulkRequest(identitiesAccountsBulkRequest).Execute() - //resp, r, err := apiClient.V2025.AccountsAPI.EnableAccountsForIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentitiesAccountsBulkRequest(identitiesAccountsBulkRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.EnableAccountsForIdentities``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `EnableAccountsForIdentities`: []BulkIdentitiesAccountsResponse - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.EnableAccountsForIdentities`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccountsAPI.EnableAccountsForIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentitiesAccountsBulkRequest(identitiesAccountsBulkRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.EnableAccountsForIdentities``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `EnableAccountsForIdentities`: []BulkIdentitiesAccountsResponse + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.EnableAccountsForIdentities`: %v\n", resp) } ``` @@ -821,7 +816,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -829,18 +824,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountsAPI.GetAccount(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.AccountsAPI.GetAccount(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.GetAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccount`: Account - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.GetAccount`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccountsAPI.GetAccount(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.GetAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccount`: Account + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.GetAccount`: %v\n", resp) } ``` @@ -890,7 +885,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -901,18 +896,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountsAPI.GetAccountEntitlements(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.AccountsAPI.GetAccountEntitlements(context.Background(), id).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.GetAccountEntitlements``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccountEntitlements`: []Entitlement - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.GetAccountEntitlements`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccountsAPI.GetAccountEntitlements(context.Background(), id).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.GetAccountEntitlements``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccountEntitlements`: []Entitlement + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.GetAccountEntitlements`: %v\n", resp) } ``` @@ -960,7 +955,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -973,18 +968,18 @@ func main() { filters := `identityId eq "2c9180858082150f0180893dbaf44201"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in, sw* **identityId**: *eq, in, sw* **name**: *eq, in, sw* **nativeIdentity**: *eq, in, sw* **hasEntitlements**: *eq* **sourceId**: *eq, in, sw* **uncorrelated**: *eq* **entitlements**: *eq* **origin**: *eq, in* **manuallyCorrelated**: *eq* **identity.name**: *eq, in, sw* **identity.correlated**: *eq* **identity.identityState**: *eq, in* **source.displayableName**: *eq, in* **source.authoritative**: *eq* **source.connectionType**: *eq, in* **recommendation.method**: *eq, in, isnull* **created**: *eq, ge, gt, le, lt* **modified**: *eq, ge, gt, le, lt* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in, sw* **identityId**: *eq, in, sw* **name**: *eq, in, sw* **nativeIdentity**: *eq, in, sw* **hasEntitlements**: *eq* **sourceId**: *eq, in, sw* **uncorrelated**: *eq* **entitlements**: *eq* **origin**: *eq, in* **manuallyCorrelated**: *eq* **identity.name**: *eq, in, sw* **identity.correlated**: *eq* **identity.identityState**: *eq, in* **source.displayableName**: *eq, in* **source.authoritative**: *eq* **source.connectionType**: *eq, in* **recommendation.method**: *eq, in, isnull* **created**: *eq, ge, gt, le, lt* **modified**: *eq, ge, gt, le, lt* (optional) sorters := `id,name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, sourceId, identityId, nativeIdentity, uuid, manuallyCorrelated, entitlements, origin, identity.name, identity.identityState, identity.correlated, source.displayableName, source.authoritative, source.connectionType** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, sourceId, identityId, nativeIdentity, uuid, manuallyCorrelated, entitlements, origin, identity.name, identity.identityState, identity.correlated, source.displayableName, source.authoritative, source.connectionType** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountsAPI.ListAccounts(context.Background()).Execute() - //resp, r, err := apiClient.V2025.AccountsAPI.ListAccounts(context.Background()).Limit(limit).Offset(offset).Count(count).DetailLevel(detailLevel).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.ListAccounts``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAccounts`: []Account - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.ListAccounts`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccountsAPI.ListAccounts(context.Background()).Limit(limit).Offset(offset).Count(count).DetailLevel(detailLevel).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.ListAccounts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAccounts`: []Account + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.ListAccounts`: %v\n", resp) } ``` @@ -1037,7 +1032,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1054,24 +1049,23 @@ func main() { } }`) // AccountAttributes | - - var accountAttributes v2025.AccountAttributes - if err := json.Unmarshal(accountattributes, &accountAttributes); err != nil { - fmt.Println("Error:", err) - return - } - + var accountAttributes v2025.AccountAttributes + if err := json.Unmarshal(accountattributes, &accountAttributes); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountsAPI.PutAccount(context.Background(), id).AccountAttributes(accountAttributes).Execute() - //resp, r, err := apiClient.V2025.AccountsAPI.PutAccount(context.Background(), id).AccountAttributes(accountAttributes).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.PutAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutAccount`: AccountsAsyncResult - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.PutAccount`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccountsAPI.PutAccount(context.Background(), id).AccountAttributes(accountAttributes).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.PutAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutAccount`: AccountsAsyncResult + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.PutAccount`: %v\n", resp) } ``` @@ -1118,7 +1112,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1126,18 +1120,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The account id # string | The account id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountsAPI.SubmitReloadAccount(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.AccountsAPI.SubmitReloadAccount(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.SubmitReloadAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SubmitReloadAccount`: AccountsAsyncResult - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.SubmitReloadAccount`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccountsAPI.SubmitReloadAccount(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.SubmitReloadAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SubmitReloadAccount`: AccountsAsyncResult + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.SubmitReloadAccount`: %v\n", resp) } ``` @@ -1186,7 +1180,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1199,24 +1193,23 @@ func main() { "unlockIDNAccount" : false }`) // AccountUnlockRequest | - - var accountUnlockRequest v2025.AccountUnlockRequest - if err := json.Unmarshal(accountunlockrequest, &accountUnlockRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var accountUnlockRequest v2025.AccountUnlockRequest + if err := json.Unmarshal(accountunlockrequest, &accountUnlockRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountsAPI.UnlockAccount(context.Background(), id).AccountUnlockRequest(accountUnlockRequest).Execute() - //resp, r, err := apiClient.V2025.AccountsAPI.UnlockAccount(context.Background(), id).AccountUnlockRequest(accountUnlockRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.UnlockAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UnlockAccount`: AccountsAsyncResult - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.UnlockAccount`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccountsAPI.UnlockAccount(context.Background(), id).AccountUnlockRequest(accountUnlockRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.UnlockAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UnlockAccount`: AccountsAsyncResult + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.UnlockAccount`: %v\n", resp) } ``` @@ -1274,7 +1267,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1283,24 +1276,23 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. requestbody := []byte(`[{op=remove, path=/identityId}]`) // []map[string]interface{} | A list of account update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - - var requestBody v2025.[]RequestBody - if err := json.Unmarshal(requestbody, &requestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var requestBody []v2025.RequestBody + if err := json.Unmarshal(requestbody, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountsAPI.UpdateAccount(context.Background(), id).RequestBody(requestBody).Execute() - //resp, r, err := apiClient.V2025.AccountsAPI.UpdateAccount(context.Background(), id).RequestBody(requestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.UpdateAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateAccount`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.UpdateAccount`: %v\n", resp) + //resp, r, err := apiClient.V2025.AccountsAPI.UpdateAccount(context.Background(), id).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.UpdateAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateAccount`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.UpdateAccount`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/ApplicationDiscoveryAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/ApplicationDiscoveryAPI.md index 0f05c52ad..945c5e062 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/ApplicationDiscoveryAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/ApplicationDiscoveryAPI.md @@ -64,7 +64,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -76,18 +76,18 @@ func main() { filter := `name eq "Okta" and description co "Okta" and discoverySource in ("csv", "Okta Saas")` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *eq, sw, co* **description**: *eq, sw, co* **createdAtStart**: *eq, le, ge* **createdAtEnd**: *eq, le, ge* **discoveredAtStart**: *eq, le, ge* **discoveredAtEnd**: *eq, le, ge* **discoverySource**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *eq, sw, co* **description**: *eq, sw, co* **createdAtStart**: *eq, le, ge* **createdAtEnd**: *eq, le, ge* **discoveredAtStart**: *eq, le, ge* **discoveredAtEnd**: *eq, le, ge* **discoverySource**: *eq, in* (optional) sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, description, discoveredAt, discoverySource** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, description, discoveredAt, discoverySource** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ApplicationDiscoveryAPI.GetDiscoveredApplications(context.Background()).Execute() - //resp, r, err := apiClient.V2025.ApplicationDiscoveryAPI.GetDiscoveredApplications(context.Background()).Limit(limit).Offset(offset).Detail(detail).Filter(filter).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ApplicationDiscoveryAPI.GetDiscoveredApplications``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetDiscoveredApplications`: []GetDiscoveredApplications200ResponseInner - fmt.Fprintf(os.Stdout, "Response from `ApplicationDiscoveryAPI.GetDiscoveredApplications`: %v\n", resp) + //resp, r, err := apiClient.V2025.ApplicationDiscoveryAPI.GetDiscoveredApplications(context.Background()).Limit(limit).Offset(offset).Detail(detail).Filter(filter).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApplicationDiscoveryAPI.GetDiscoveredApplications``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDiscoveredApplications`: []GetDiscoveredApplications200ResponseInner + fmt.Fprintf(os.Stdout, "Response from `ApplicationDiscoveryAPI.GetDiscoveredApplications`: %v\n", resp) } ``` @@ -129,25 +129,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() - //resp, r, err := apiClient.V2025.ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetManualDiscoverApplicationsCsvTemplate`: ManualDiscoverApplicationsTemplate - fmt.Fprintf(os.Stdout, "Response from `ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate`: %v\n", resp) + //resp, r, err := apiClient.V2025.ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetManualDiscoverApplicationsCsvTemplate`: ManualDiscoverApplicationsTemplate + fmt.Fprintf(os.Stdout, "Response from `ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate`: %v\n", resp) } ``` @@ -191,7 +191,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -199,16 +199,17 @@ import ( func main() { file := BINARY_DATA_HERE // *os.File | The CSV file to upload containing `application_name` and `description` columns. Each row represents an application to be discovered. # *os.File | The CSV file to upload containing `application_name` and `description` columns. Each row represents an application to be discovered. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate(context.Background()).File(file).Execute() - //r, err := apiClient.V2025.ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate(context.Background()).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate(context.Background()).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/ApprovalsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/ApprovalsAPI.md index 1404587f5..b415e722a 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/ApprovalsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/ApprovalsAPI.md @@ -75,7 +75,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -84,18 +84,18 @@ func main() { id := `38453251-6be2-5f8f-df93-5ce19e295837` // string | ID of the approval that is to be returned # string | ID of the approval that is to be returned xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ApprovalsAPI.GetApproval(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.ApprovalsAPI.GetApproval(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ApprovalsAPI.GetApproval``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetApproval`: Approval - fmt.Fprintf(os.Stdout, "Response from `ApprovalsAPI.GetApproval`: %v\n", resp) + //resp, r, err := apiClient.V2025.ApprovalsAPI.GetApproval(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApprovalsAPI.GetApproval``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetApproval`: Approval + fmt.Fprintf(os.Stdout, "Response from `ApprovalsAPI.GetApproval`: %v\n", resp) } ``` @@ -153,7 +153,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -164,18 +164,18 @@ func main() { requesterId := `17e633e7d57e481569df76323169deb6a` // string | Returns the list of approvals for a given requester ID (optional) # string | Returns the list of approvals for a given requester ID (optional) filters := `filters=status eq PENDING` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **status**: *eq* **referenceType**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **status**: *eq* **referenceType**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ApprovalsAPI.GetApprovals(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.ApprovalsAPI.GetApprovals(context.Background()).XSailPointExperimental(xSailPointExperimental).Mine(mine).RequesterId(requesterId).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ApprovalsAPI.GetApprovals``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetApprovals`: []Approval - fmt.Fprintf(os.Stdout, "Response from `ApprovalsAPI.GetApprovals`: %v\n", resp) + //resp, r, err := apiClient.V2025.ApprovalsAPI.GetApprovals(context.Background()).XSailPointExperimental(xSailPointExperimental).Mine(mine).RequesterId(requesterId).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApprovalsAPI.GetApprovals``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetApprovals`: []Approval + fmt.Fprintf(os.Stdout, "Response from `ApprovalsAPI.GetApprovals`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/AppsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/AppsAPI.md index b9926e74d..55fa1051f 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/AppsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/AppsAPI.md @@ -82,7 +82,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -100,24 +100,23 @@ func main() { "matchAllAccounts" : true }`) // SourceAppCreateDto | - - var sourceAppCreateDto v2025.SourceAppCreateDto - if err := json.Unmarshal(sourceappcreatedto, &sourceAppCreateDto); err != nil { - fmt.Println("Error:", err) - return - } - + var sourceAppCreateDto v2025.SourceAppCreateDto + if err := json.Unmarshal(sourceappcreatedto, &sourceAppCreateDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AppsAPI.CreateSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).SourceAppCreateDto(sourceAppCreateDto).Execute() - //resp, r, err := apiClient.V2025.AppsAPI.CreateSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).SourceAppCreateDto(sourceAppCreateDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.CreateSourceApp``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSourceApp`: SourceApp - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.CreateSourceApp`: %v\n", resp) + //resp, r, err := apiClient.V2025.AppsAPI.CreateSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).SourceAppCreateDto(sourceAppCreateDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.CreateSourceApp``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSourceApp`: SourceApp + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.CreateSourceApp`: %v\n", resp) } ``` @@ -178,7 +177,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -189,24 +188,23 @@ func main() { requestbody := []byte(`[c9575abb5e3a4e3db82b2f989a738aa2, c9dc28e148a24d65b3ccb5fb8ca5ddd9]`) // []string | limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - - var requestBody v2025.[]RequestBody - if err := json.Unmarshal(requestbody, &requestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var requestBody []v2025.RequestBody + if err := json.Unmarshal(requestbody, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AppsAPI.DeleteAccessProfilesFromSourceAppByBulk(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() - //resp, r, err := apiClient.V2025.AppsAPI.DeleteAccessProfilesFromSourceAppByBulk(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Limit(limit).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.DeleteAccessProfilesFromSourceAppByBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteAccessProfilesFromSourceAppByBulk`: []AccessProfileDetails - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.DeleteAccessProfilesFromSourceAppByBulk`: %v\n", resp) + //resp, r, err := apiClient.V2025.AppsAPI.DeleteAccessProfilesFromSourceAppByBulk(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.DeleteAccessProfilesFromSourceAppByBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteAccessProfilesFromSourceAppByBulk`: []AccessProfileDetails + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.DeleteAccessProfilesFromSourceAppByBulk`: %v\n", resp) } ``` @@ -265,7 +263,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -274,18 +272,18 @@ func main() { id := `2c9180835d191a86015d28455b4a2329` // string | source app ID. # string | source app ID. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AppsAPI.DeleteSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.AppsAPI.DeleteSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.DeleteSourceApp``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteSourceApp`: SourceApp - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.DeleteSourceApp`: %v\n", resp) + //resp, r, err := apiClient.V2025.AppsAPI.DeleteSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.DeleteSourceApp``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteSourceApp`: SourceApp + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.DeleteSourceApp`: %v\n", resp) } ``` @@ -344,7 +342,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -353,18 +351,18 @@ func main() { id := `2c91808a7813090a017814121e121518` // string | ID of the source app # string | ID of the source app xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AppsAPI.GetSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.AppsAPI.GetSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.GetSourceApp``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSourceApp`: SourceApp - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.GetSourceApp`: %v\n", resp) + //resp, r, err := apiClient.V2025.AppsAPI.GetSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.GetSourceApp``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSourceApp`: SourceApp + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.GetSourceApp`: %v\n", resp) } ``` @@ -426,7 +424,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -438,18 +436,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) filters := `name eq "developer access profile"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AppsAPI.ListAccessProfilesForSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.AppsAPI.ListAccessProfilesForSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListAccessProfilesForSourceApp``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAccessProfilesForSourceApp`: []AccessProfileDetails - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListAccessProfilesForSourceApp`: %v\n", resp) + //resp, r, err := apiClient.V2025.AppsAPI.ListAccessProfilesForSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListAccessProfilesForSourceApp``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAccessProfilesForSourceApp`: []AccessProfileDetails + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListAccessProfilesForSourceApp`: %v\n", resp) } ``` @@ -508,7 +506,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -521,18 +519,18 @@ func main() { sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, owner.id, accountSource.id** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, owner.id, accountSource.id** (optional) filters := `enabled eq true` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **accountSource.id**: *eq, in* **enabled**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **accountSource.id**: *eq, in* **enabled**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AppsAPI.ListAllSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.AppsAPI.ListAllSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListAllSourceApp``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAllSourceApp`: []SourceApp - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListAllSourceApp`: %v\n", resp) + //resp, r, err := apiClient.V2025.AppsAPI.ListAllSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListAllSourceApp``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAllSourceApp`: []SourceApp + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListAllSourceApp`: %v\n", resp) } ``` @@ -591,7 +589,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -603,18 +601,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AppsAPI.ListAllUserApps(context.Background()).Filters(filters).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.AppsAPI.ListAllUserApps(context.Background()).Filters(filters).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListAllUserApps``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAllUserApps`: []UserApp - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListAllUserApps`: %v\n", resp) + //resp, r, err := apiClient.V2025.AppsAPI.ListAllUserApps(context.Background()).Filters(filters).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListAllUserApps``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAllUserApps`: []UserApp + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListAllUserApps`: %v\n", resp) } ``` @@ -673,7 +671,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -686,18 +684,18 @@ func main() { sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, accountSource.id** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, accountSource.id** (optional) filters := `name eq "source app name"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **accountSource.id**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **accountSource.id**: *eq, in* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AppsAPI.ListAssignedSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.AppsAPI.ListAssignedSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListAssignedSourceApp``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAssignedSourceApp`: []SourceApp - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListAssignedSourceApp`: %v\n", resp) + //resp, r, err := apiClient.V2025.AppsAPI.ListAssignedSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListAssignedSourceApp``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAssignedSourceApp`: []SourceApp + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListAssignedSourceApp`: %v\n", resp) } ``` @@ -758,7 +756,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -769,18 +767,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AppsAPI.ListAvailableAccountsForUserApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.AppsAPI.ListAvailableAccountsForUserApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListAvailableAccountsForUserApp``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAvailableAccountsForUserApp`: []AppAccountDetails - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListAvailableAccountsForUserApp`: %v\n", resp) + //resp, r, err := apiClient.V2025.AppsAPI.ListAvailableAccountsForUserApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListAvailableAccountsForUserApp``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAvailableAccountsForUserApp`: []AppAccountDetails + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListAvailableAccountsForUserApp`: %v\n", resp) } ``` @@ -839,7 +837,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -852,18 +850,18 @@ func main() { sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, owner.id, accountSource.id** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, owner.id, accountSource.id** (optional) filters := `name eq "source app name"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **accountSource.id**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, co, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **accountSource.id**: *eq, in* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AppsAPI.ListAvailableSourceApps(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.AppsAPI.ListAvailableSourceApps(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListAvailableSourceApps``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAvailableSourceApps`: []SourceApp - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListAvailableSourceApps`: %v\n", resp) + //resp, r, err := apiClient.V2025.AppsAPI.ListAvailableSourceApps(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListAvailableSourceApps``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAvailableSourceApps`: []SourceApp + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListAvailableSourceApps`: %v\n", resp) } ``` @@ -921,7 +919,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -933,18 +931,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) filters := `name eq "user app name"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* **ownerName**: *eq, sw* **ownerAlias**: *eq, sw* **accountId**: *eq* **sourceAppId**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AppsAPI.ListOwnedUserApps(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.AppsAPI.ListOwnedUserApps(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListOwnedUserApps``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListOwnedUserApps`: []UserApp - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListOwnedUserApps`: %v\n", resp) + //resp, r, err := apiClient.V2025.AppsAPI.ListOwnedUserApps(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.ListOwnedUserApps``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListOwnedUserApps`: []UserApp + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.ListOwnedUserApps`: %v\n", resp) } ``` @@ -1006,7 +1004,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1016,18 +1014,18 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") jsonpatchoperation := []byte(`[{op=replace, path=/enabled, value=true}, {op=replace, path=/matchAllAccounts, value=true}]`) // []JsonPatchOperation | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AppsAPI.PatchSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.AppsAPI.PatchSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.PatchSourceApp``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchSourceApp`: SourceAppPatchDto - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.PatchSourceApp`: %v\n", resp) + //resp, r, err := apiClient.V2025.AppsAPI.PatchSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.PatchSourceApp``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchSourceApp`: SourceAppPatchDto + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.PatchSourceApp`: %v\n", resp) } ``` @@ -1088,7 +1086,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1098,18 +1096,18 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") jsonpatchoperation := []byte(``) // []JsonPatchOperation | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AppsAPI.PatchUserApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.AppsAPI.PatchUserApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.PatchUserApp``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchUserApp`: UserApp - fmt.Fprintf(os.Stdout, "Response from `AppsAPI.PatchUserApp`: %v\n", resp) + //resp, r, err := apiClient.V2025.AppsAPI.PatchUserApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.PatchUserApp``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchUserApp`: UserApp + fmt.Fprintf(os.Stdout, "Response from `AppsAPI.PatchUserApp`: %v\n", resp) } ``` @@ -1166,7 +1164,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1186,16 +1184,17 @@ func main() { } ] }`) // SourceAppBulkUpdateRequest | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.AppsAPI.UpdateSourceAppsInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //r, err := apiClient.V2025.AppsAPI.UpdateSourceAppsInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).SourceAppBulkUpdateRequest(sourceAppBulkUpdateRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.UpdateSourceAppsInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.AppsAPI.UpdateSourceAppsInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).SourceAppBulkUpdateRequest(sourceAppBulkUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppsAPI.UpdateSourceAppsInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/AuthProfileAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/AuthProfileAPI.md index 71b7c344d..2b102ccff 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/AuthProfileAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/AuthProfileAPI.md @@ -79,7 +79,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -88,18 +88,18 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") id := `2c91808a7813090a017814121919ecca` // string | ID of the Auth Profile to patch. # string | ID of the Auth Profile to patch. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AuthProfileAPI.GetProfileConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.AuthProfileAPI.GetProfileConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AuthProfileAPI.GetProfileConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetProfileConfig`: AuthProfile - fmt.Fprintf(os.Stdout, "Response from `AuthProfileAPI.GetProfileConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.AuthProfileAPI.GetProfileConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthProfileAPI.GetProfileConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetProfileConfig`: AuthProfile + fmt.Fprintf(os.Stdout, "Response from `AuthProfileAPI.GetProfileConfig`: %v\n", resp) } ``` @@ -153,7 +153,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -161,18 +161,18 @@ import ( func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AuthProfileAPI.GetProfileConfigList(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.AuthProfileAPI.GetProfileConfigList(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AuthProfileAPI.GetProfileConfigList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetProfileConfigList`: []AuthProfileSummary - fmt.Fprintf(os.Stdout, "Response from `AuthProfileAPI.GetProfileConfigList`: %v\n", resp) + //resp, r, err := apiClient.V2025.AuthProfileAPI.GetProfileConfigList(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthProfileAPI.GetProfileConfigList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetProfileConfigList`: []AuthProfileSummary + fmt.Fprintf(os.Stdout, "Response from `AuthProfileAPI.GetProfileConfigList`: %v\n", resp) } ``` @@ -233,7 +233,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -243,24 +243,23 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") jsonpatchoperation := []byte(``) // []JsonPatchOperation | - - var jsonPatchOperation v2025.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2025.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AuthProfileAPI.PatchProfileConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2025.AuthProfileAPI.PatchProfileConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AuthProfileAPI.PatchProfileConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchProfileConfig`: AuthProfile - fmt.Fprintf(os.Stdout, "Response from `AuthProfileAPI.PatchProfileConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.AuthProfileAPI.PatchProfileConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthProfileAPI.PatchProfileConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchProfileConfig`: AuthProfile + fmt.Fprintf(os.Stdout, "Response from `AuthProfileAPI.PatchProfileConfig`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/AuthUsersAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/AuthUsersAPI.md index 0b2e7225e..c7c664a91 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/AuthUsersAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/AuthUsersAPI.md @@ -65,7 +65,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -73,18 +73,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Identity ID # string | Identity ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AuthUsersAPI.GetAuthUser(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.AuthUsersAPI.GetAuthUser(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AuthUsersAPI.GetAuthUser``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAuthUser`: AuthUser - fmt.Fprintf(os.Stdout, "Response from `AuthUsersAPI.GetAuthUser`: %v\n", resp) + //resp, r, err := apiClient.V2025.AuthUsersAPI.GetAuthUser(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthUsersAPI.GetAuthUser``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAuthUser`: AuthUser + fmt.Fprintf(os.Stdout, "Response from `AuthUsersAPI.GetAuthUser`: %v\n", resp) } ``` @@ -136,7 +136,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -145,24 +145,23 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Identity ID # string | Identity ID jsonpatchoperation := []byte(`[{op=replace, path=/capabilities, value=[ORG_ADMIN]}]`) // []JsonPatchOperation | A list of auth user update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - - var jsonPatchOperation v2025.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2025.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AuthUsersAPI.PatchAuthUser(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2025.AuthUsersAPI.PatchAuthUser(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AuthUsersAPI.PatchAuthUser``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchAuthUser`: AuthUser - fmt.Fprintf(os.Stdout, "Response from `AuthUsersAPI.PatchAuthUser`: %v\n", resp) + //resp, r, err := apiClient.V2025.AuthUsersAPI.PatchAuthUser(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthUsersAPI.PatchAuthUser``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchAuthUser`: AuthUser + fmt.Fprintf(os.Stdout, "Response from `AuthUsersAPI.PatchAuthUser`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/BrandingAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/BrandingAPI.md index 755af430d..1c73f42a8 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/BrandingAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/BrandingAPI.md @@ -71,7 +71,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -86,18 +86,18 @@ func main() { loginInformationalMessage := `loginInformationalMessage_example` // string | login information message (optional) # string | login information message (optional) fileStandard := BINARY_DATA_HERE // *os.File | png file with logo (optional) # *os.File | png file with logo (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.BrandingAPI.CreateBrandingItem(context.Background()).Name(name).ProductName(productName).Execute() - //resp, r, err := apiClient.V2025.BrandingAPI.CreateBrandingItem(context.Background()).Name(name).ProductName(productName).ActionButtonColor(actionButtonColor).ActiveLinkColor(activeLinkColor).NavigationColor(navigationColor).EmailFromAddress(emailFromAddress).LoginInformationalMessage(loginInformationalMessage).FileStandard(fileStandard).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `BrandingAPI.CreateBrandingItem``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateBrandingItem`: BrandingItem - fmt.Fprintf(os.Stdout, "Response from `BrandingAPI.CreateBrandingItem`: %v\n", resp) + //resp, r, err := apiClient.V2025.BrandingAPI.CreateBrandingItem(context.Background()).Name(name).ProductName(productName).ActionButtonColor(actionButtonColor).ActiveLinkColor(activeLinkColor).NavigationColor(navigationColor).EmailFromAddress(emailFromAddress).LoginInformationalMessage(loginInformationalMessage).FileStandard(fileStandard).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BrandingAPI.CreateBrandingItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateBrandingItem`: BrandingItem + fmt.Fprintf(os.Stdout, "Response from `BrandingAPI.CreateBrandingItem`: %v\n", resp) } ``` @@ -144,7 +144,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -152,16 +152,17 @@ import ( func main() { name := `default` // string | The name of the branding item to be deleted # string | The name of the branding item to be deleted - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.BrandingAPI.DeleteBranding(context.Background(), name).Execute() - //r, err := apiClient.V2025.BrandingAPI.DeleteBranding(context.Background(), name).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `BrandingAPI.DeleteBranding``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.BrandingAPI.DeleteBranding(context.Background(), name).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BrandingAPI.DeleteBranding``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -208,7 +209,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -216,18 +217,18 @@ import ( func main() { name := `default` // string | The name of the branding item to be retrieved # string | The name of the branding item to be retrieved - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.BrandingAPI.GetBranding(context.Background(), name).Execute() - //resp, r, err := apiClient.V2025.BrandingAPI.GetBranding(context.Background(), name).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `BrandingAPI.GetBranding``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetBranding`: BrandingItem - fmt.Fprintf(os.Stdout, "Response from `BrandingAPI.GetBranding`: %v\n", resp) + //resp, r, err := apiClient.V2025.BrandingAPI.GetBranding(context.Background(), name).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BrandingAPI.GetBranding``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetBranding`: BrandingItem + fmt.Fprintf(os.Stdout, "Response from `BrandingAPI.GetBranding`: %v\n", resp) } ``` @@ -266,25 +267,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.BrandingAPI.GetBrandingList(context.Background()).Execute() - //resp, r, err := apiClient.V2025.BrandingAPI.GetBrandingList(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `BrandingAPI.GetBrandingList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetBrandingList`: []BrandingItem - fmt.Fprintf(os.Stdout, "Response from `BrandingAPI.GetBrandingList`: %v\n", resp) + //resp, r, err := apiClient.V2025.BrandingAPI.GetBrandingList(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BrandingAPI.GetBrandingList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetBrandingList`: []BrandingItem + fmt.Fprintf(os.Stdout, "Response from `BrandingAPI.GetBrandingList`: %v\n", resp) } ``` @@ -339,7 +340,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -355,18 +356,18 @@ func main() { loginInformationalMessage := `loginInformationalMessage_example` // string | login information message (optional) # string | login information message (optional) fileStandard := BINARY_DATA_HERE // *os.File | png file with logo (optional) # *os.File | png file with logo (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.BrandingAPI.SetBrandingItem(context.Background(), name).Name2(name2).ProductName(productName).Execute() - //resp, r, err := apiClient.V2025.BrandingAPI.SetBrandingItem(context.Background(), name).Name2(name2).ProductName(productName).ActionButtonColor(actionButtonColor).ActiveLinkColor(activeLinkColor).NavigationColor(navigationColor).EmailFromAddress(emailFromAddress).LoginInformationalMessage(loginInformationalMessage).FileStandard(fileStandard).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `BrandingAPI.SetBrandingItem``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetBrandingItem`: BrandingItem - fmt.Fprintf(os.Stdout, "Response from `BrandingAPI.SetBrandingItem`: %v\n", resp) + //resp, r, err := apiClient.V2025.BrandingAPI.SetBrandingItem(context.Background(), name).Name2(name2).ProductName(productName).ActionButtonColor(actionButtonColor).ActiveLinkColor(activeLinkColor).NavigationColor(navigationColor).EmailFromAddress(emailFromAddress).LoginInformationalMessage(loginInformationalMessage).FileStandard(fileStandard).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BrandingAPI.SetBrandingItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetBrandingItem`: BrandingItem + fmt.Fprintf(os.Stdout, "Response from `BrandingAPI.SetBrandingItem`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/CertificationCampaignFiltersAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/CertificationCampaignFiltersAPI.md index b6603cfec..12e667eaa 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/CertificationCampaignFiltersAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/CertificationCampaignFiltersAPI.md @@ -86,7 +86,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -111,24 +111,23 @@ func main() { } ] }`) // CampaignFilterDetails | - - var campaignFilterDetails v2025.CampaignFilterDetails - if err := json.Unmarshal(campaignfilterdetails, &campaignFilterDetails); err != nil { - fmt.Println("Error:", err) - return - } - + var campaignFilterDetails v2025.CampaignFilterDetails + if err := json.Unmarshal(campaignfilterdetails, &campaignFilterDetails); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignFiltersAPI.CreateCampaignFilter(context.Background()).CampaignFilterDetails(campaignFilterDetails).Execute() - //resp, r, err := apiClient.V2025.CertificationCampaignFiltersAPI.CreateCampaignFilter(context.Background()).CampaignFilterDetails(campaignFilterDetails).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignFiltersAPI.CreateCampaignFilter``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateCampaignFilter`: CampaignFilterDetails - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignFiltersAPI.CreateCampaignFilter`: %v\n", resp) + //resp, r, err := apiClient.V2025.CertificationCampaignFiltersAPI.CreateCampaignFilter(context.Background()).CampaignFilterDetails(campaignFilterDetails).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignFiltersAPI.CreateCampaignFilter``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCampaignFilter`: CampaignFilterDetails + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignFiltersAPI.CreateCampaignFilter`: %v\n", resp) } ``` @@ -171,7 +170,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -179,22 +178,22 @@ import ( func main() { requestbody := []byte(``) // []string | A json list of IDs of campaign filters to delete. - - var requestBody v2025.[]RequestBody - if err := json.Unmarshal(requestbody, &requestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var requestBody []v2025.RequestBody + if err := json.Unmarshal(requestbody, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.CertificationCampaignFiltersAPI.DeleteCampaignFilters(context.Background()).RequestBody(requestBody).Execute() - //r, err := apiClient.V2025.CertificationCampaignFiltersAPI.DeleteCampaignFilters(context.Background()).RequestBody(requestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignFiltersAPI.DeleteCampaignFilters``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.CertificationCampaignFiltersAPI.DeleteCampaignFilters(context.Background()).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignFiltersAPI.DeleteCampaignFilters``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -241,7 +240,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -249,18 +248,18 @@ import ( func main() { id := `e9f9a1397b842fd5a65842087040d3ac` // string | The ID of the campaign filter to be retrieved. # string | The ID of the campaign filter to be retrieved. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignFiltersAPI.GetCampaignFilterById(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.CertificationCampaignFiltersAPI.GetCampaignFilterById(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignFiltersAPI.GetCampaignFilterById``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCampaignFilterById`: CampaignFilterDetails - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignFiltersAPI.GetCampaignFilterById`: %v\n", resp) + //resp, r, err := apiClient.V2025.CertificationCampaignFiltersAPI.GetCampaignFilterById(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignFiltersAPI.GetCampaignFilterById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCampaignFilterById`: CampaignFilterDetails + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignFiltersAPI.GetCampaignFilterById`: %v\n", resp) } ``` @@ -305,7 +304,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -315,18 +314,18 @@ func main() { start := 0 // int32 | Start/Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Start/Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) includeSystemFilters := true // bool | If this is true, the API includes system filters in the count and results. Otherwise it excludes them. If no value is provided, the default is true. (optional) (default to true) # bool | If this is true, the API includes system filters in the count and results. Otherwise it excludes them. If no value is provided, the default is true. (optional) (default to true) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignFiltersAPI.ListCampaignFilters(context.Background()).Execute() - //resp, r, err := apiClient.V2025.CertificationCampaignFiltersAPI.ListCampaignFilters(context.Background()).Limit(limit).Start(start).IncludeSystemFilters(includeSystemFilters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignFiltersAPI.ListCampaignFilters``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListCampaignFilters`: ListCampaignFilters200Response - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignFiltersAPI.ListCampaignFilters`: %v\n", resp) + //resp, r, err := apiClient.V2025.CertificationCampaignFiltersAPI.ListCampaignFilters(context.Background()).Limit(limit).Start(start).IncludeSystemFilters(includeSystemFilters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignFiltersAPI.ListCampaignFilters``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCampaignFilters`: ListCampaignFilters200Response + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignFiltersAPI.ListCampaignFilters`: %v\n", resp) } ``` @@ -374,7 +373,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -400,24 +399,23 @@ func main() { } ] }`) // CampaignFilterDetails | A campaign filter details with updated field values. - - var campaignFilterDetails v2025.CampaignFilterDetails - if err := json.Unmarshal(campaignfilterdetails, &campaignFilterDetails); err != nil { - fmt.Println("Error:", err) - return - } - + var campaignFilterDetails v2025.CampaignFilterDetails + if err := json.Unmarshal(campaignfilterdetails, &campaignFilterDetails); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignFiltersAPI.UpdateCampaignFilter(context.Background(), filterId).CampaignFilterDetails(campaignFilterDetails).Execute() - //resp, r, err := apiClient.V2025.CertificationCampaignFiltersAPI.UpdateCampaignFilter(context.Background(), filterId).CampaignFilterDetails(campaignFilterDetails).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignFiltersAPI.UpdateCampaignFilter``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateCampaignFilter`: CampaignFilterDetails - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignFiltersAPI.UpdateCampaignFilter`: %v\n", resp) + //resp, r, err := apiClient.V2025.CertificationCampaignFiltersAPI.UpdateCampaignFilter(context.Background(), filterId).CampaignFilterDetails(campaignFilterDetails).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignFiltersAPI.UpdateCampaignFilter``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateCampaignFilter`: CampaignFilterDetails + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignFiltersAPI.UpdateCampaignFilter`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/CertificationCampaignsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/CertificationCampaignsAPI.md index 00f75bfd3..b85688b7f 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/CertificationCampaignsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/CertificationCampaignsAPI.md @@ -156,7 +156,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -167,18 +167,18 @@ func main() { "autoCompleteAction" : "REVOKE" }`) // CampaignCompleteOptions | Optional. Default behavior is for the campaign to auto-approve upon completion, unless autoCompleteAction=REVOKE (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.CompleteCampaign(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.CompleteCampaign(context.Background(), id).CampaignCompleteOptions(campaignCompleteOptions).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.CompleteCampaign``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CompleteCampaign`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.CompleteCampaign`: %v\n", resp) + //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.CompleteCampaign(context.Background(), id).CampaignCompleteOptions(campaignCompleteOptions).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.CompleteCampaign``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CompleteCampaign`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.CompleteCampaign`: %v\n", resp) } ``` @@ -222,7 +222,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -339,24 +339,23 @@ func main() { "correlatedStatus" : "CORRELATED" }`) // Campaign | - - var campaign v2025.Campaign - if err := json.Unmarshal(campaign, &campaign); err != nil { - fmt.Println("Error:", err) - return - } - + var campaign v2025.Campaign + if err := json.Unmarshal(campaign, &campaign); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.CreateCampaign(context.Background()).Campaign(campaign).Execute() - //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.CreateCampaign(context.Background()).Campaign(campaign).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.CreateCampaign``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateCampaign`: Campaign - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.CreateCampaign`: %v\n", resp) + //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.CreateCampaign(context.Background()).Campaign(campaign).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.CreateCampaign``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCampaign`: Campaign + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.CreateCampaign`: %v\n", resp) } ``` @@ -400,7 +399,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -533,24 +532,23 @@ func main() { "id" : "2c9079b270a266a60170a277bb960008" }`) // CampaignTemplate | - - var campaignTemplate v2025.CampaignTemplate - if err := json.Unmarshal(campaigntemplate, &campaignTemplate); err != nil { - fmt.Println("Error:", err) - return - } - + var campaignTemplate v2025.CampaignTemplate + if err := json.Unmarshal(campaigntemplate, &campaignTemplate); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.CreateCampaignTemplate(context.Background()).CampaignTemplate(campaignTemplate).Execute() - //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.CreateCampaignTemplate(context.Background()).CampaignTemplate(campaignTemplate).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.CreateCampaignTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateCampaignTemplate`: CampaignTemplate - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.CreateCampaignTemplate`: %v\n", resp) + //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.CreateCampaignTemplate(context.Background()).CampaignTemplate(campaignTemplate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.CreateCampaignTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCampaignTemplate`: CampaignTemplate + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.CreateCampaignTemplate`: %v\n", resp) } ``` @@ -598,7 +596,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -606,16 +604,17 @@ import ( func main() { id := `2c9180835d191a86015d28455b4a2329` // string | ID of the campaign template being deleted. # string | ID of the campaign template being deleted. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.CertificationCampaignsAPI.DeleteCampaignTemplate(context.Background(), id).Execute() - //r, err := apiClient.V2025.CertificationCampaignsAPI.DeleteCampaignTemplate(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.DeleteCampaignTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.CertificationCampaignsAPI.DeleteCampaignTemplate(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.DeleteCampaignTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -663,7 +662,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -671,16 +670,17 @@ import ( func main() { id := `04bedce387bd47b2ae1f86eb0bb36dee` // string | ID of the campaign template whose schedule is being deleted. # string | ID of the campaign template whose schedule is being deleted. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.CertificationCampaignsAPI.DeleteCampaignTemplateSchedule(context.Background(), id).Execute() - //r, err := apiClient.V2025.CertificationCampaignsAPI.DeleteCampaignTemplateSchedule(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.DeleteCampaignTemplateSchedule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.CertificationCampaignsAPI.DeleteCampaignTemplateSchedule(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.DeleteCampaignTemplateSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -724,7 +724,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -734,24 +734,23 @@ func main() { "ids" : [ "2c9180887335cee10173490db1776c26", "2c9180836a712436016a7125a90c0021" ] }`) // CampaignsDeleteRequest | IDs of the campaigns to delete. - - var campaignsDeleteRequest v2025.CampaignsDeleteRequest - if err := json.Unmarshal(campaignsdeleterequest, &campaignsDeleteRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var campaignsDeleteRequest v2025.CampaignsDeleteRequest + if err := json.Unmarshal(campaignsdeleterequest, &campaignsDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.DeleteCampaigns(context.Background()).CampaignsDeleteRequest(campaignsDeleteRequest).Execute() - //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.DeleteCampaigns(context.Background()).CampaignsDeleteRequest(campaignsDeleteRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.DeleteCampaigns``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteCampaigns`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.DeleteCampaigns`: %v\n", resp) + //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.DeleteCampaigns(context.Background()).CampaignsDeleteRequest(campaignsDeleteRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.DeleteCampaigns``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCampaigns`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.DeleteCampaigns`: %v\n", resp) } ``` @@ -800,7 +799,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -813,18 +812,18 @@ func main() { filters := `name eq "Manager Campaign"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **status**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **status**: *eq, in* (optional) sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetActiveCampaigns(context.Background()).Execute() - //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetActiveCampaigns(context.Background()).Detail(detail).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetActiveCampaigns``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetActiveCampaigns`: []GetActiveCampaigns200ResponseInner - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetActiveCampaigns`: %v\n", resp) + //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetActiveCampaigns(context.Background()).Detail(detail).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetActiveCampaigns``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetActiveCampaigns`: []GetActiveCampaigns200ResponseInner + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetActiveCampaigns`: %v\n", resp) } ``` @@ -873,7 +872,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -882,18 +881,18 @@ func main() { id := `2c91808571bcfcf80171c23e4b4221fc` // string | ID of the campaign to be retrieved. # string | ID of the campaign to be retrieved. detail := `FULL` // string | Determines whether slim, or increased level of detail is provided for each campaign in the returned list. Slim is the default behavior. (optional) # string | Determines whether slim, or increased level of detail is provided for each campaign in the returned list. Slim is the default behavior. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaign(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaign(context.Background(), id).Detail(detail).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaign``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCampaign`: GetCampaign200Response - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaign`: %v\n", resp) + //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaign(context.Background(), id).Detail(detail).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaign``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCampaign`: GetCampaign200Response + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaign`: %v\n", resp) } ``` @@ -941,7 +940,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -949,18 +948,18 @@ import ( func main() { id := `2c91808571bcfcf80171c23e4b4221fc` // string | ID of the campaign whose reports are being fetched. # string | ID of the campaign whose reports are being fetched. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaignReports(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaignReports(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignReports``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCampaignReports`: []CampaignReport - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignReports`: %v\n", resp) + //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaignReports(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignReports``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCampaignReports`: []CampaignReport + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignReports`: %v\n", resp) } ``` @@ -1000,25 +999,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaignReportsConfig(context.Background()).Execute() - //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaignReportsConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignReportsConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCampaignReportsConfig`: CampaignReportsConfig - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignReportsConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaignReportsConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignReportsConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCampaignReportsConfig`: CampaignReportsConfig + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignReportsConfig`: %v\n", resp) } ``` @@ -1066,7 +1065,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1074,18 +1073,18 @@ import ( func main() { id := `2c9180835d191a86015d28455b4a2329` // string | Requested campaign template's ID. # string | Requested campaign template's ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaignTemplate(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaignTemplate(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCampaignTemplate`: CampaignTemplate - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignTemplate`: %v\n", resp) + //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaignTemplate(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCampaignTemplate`: CampaignTemplate + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignTemplate`: %v\n", resp) } ``` @@ -1133,7 +1132,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1141,18 +1140,18 @@ import ( func main() { id := `04bedce387bd47b2ae1f86eb0bb36dee` // string | ID of the campaign template whose schedule is being fetched. # string | ID of the campaign template whose schedule is being fetched. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaignTemplateSchedule(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaignTemplateSchedule(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignTemplateSchedule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCampaignTemplateSchedule`: Schedule - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignTemplateSchedule`: %v\n", resp) + //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaignTemplateSchedule(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignTemplateSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCampaignTemplateSchedule`: Schedule + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignTemplateSchedule`: %v\n", resp) } ``` @@ -1202,7 +1201,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1214,18 +1213,18 @@ func main() { sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, modified** (optional) filters := `name eq "manager template"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *eq, ge, gt, in, le, lt, ne, sw* **id**: *eq, ge, gt, in, le, lt, ne, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *eq, ge, gt, in, le, lt, ne, sw* **id**: *eq, ge, gt, in, le, lt, ne, sw* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaignTemplates(context.Background()).Execute() - //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaignTemplates(context.Background()).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignTemplates``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCampaignTemplates`: []CampaignTemplate - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignTemplates`: %v\n", resp) + //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaignTemplates(context.Background()).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignTemplates``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCampaignTemplates`: []CampaignTemplate + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignTemplates`: %v\n", resp) } ``` @@ -1274,7 +1273,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1290,24 +1289,23 @@ func main() { } }`) // AdminReviewReassign | - - var adminReviewReassign v2025.AdminReviewReassign - if err := json.Unmarshal(adminreviewreassign, &adminReviewReassign); err != nil { - fmt.Println("Error:", err) - return - } - + var adminReviewReassign v2025.AdminReviewReassign + if err := json.Unmarshal(adminreviewreassign, &adminReviewReassign); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.Move(context.Background(), id).AdminReviewReassign(adminReviewReassign).Execute() - //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.Move(context.Background(), id).AdminReviewReassign(adminReviewReassign).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.Move``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `Move`: CertificationTask - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.Move`: %v\n", resp) + //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.Move(context.Background(), id).AdminReviewReassign(adminReviewReassign).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.Move``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `Move`: CertificationTask + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.Move`: %v\n", resp) } ``` @@ -1356,7 +1354,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1365,24 +1363,23 @@ func main() { id := `2c9180835d191a86015d28455b4a2329` // string | ID of the campaign template being modified. # string | ID of the campaign template being modified. jsonpatchoperation := []byte(`[{op=replace, path=/description, value=Updated description!}, {op=replace, path=/campaign/filter/id, value=ff80818155fe8c080155fe8d925b0316}]`) // []JsonPatchOperation | A list of campaign update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * deadlineDuration * campaign (all fields that are allowed during create) - - var jsonPatchOperation v2025.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2025.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.PatchCampaignTemplate(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.PatchCampaignTemplate(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.PatchCampaignTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchCampaignTemplate`: CampaignTemplate - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.PatchCampaignTemplate`: %v\n", resp) + //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.PatchCampaignTemplate(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.PatchCampaignTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCampaignTemplate`: CampaignTemplate + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.PatchCampaignTemplate`: %v\n", resp) } ``` @@ -1426,7 +1423,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1436,24 +1433,23 @@ func main() { "identityAttributeColumns" : [ "firstname", "lastname" ] }`) // CampaignReportsConfig | Campaign report configuration. - - var campaignReportsConfig v2025.CampaignReportsConfig - if err := json.Unmarshal(campaignreportsconfig, &campaignReportsConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var campaignReportsConfig v2025.CampaignReportsConfig + if err := json.Unmarshal(campaignreportsconfig, &campaignReportsConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.SetCampaignReportsConfig(context.Background()).CampaignReportsConfig(campaignReportsConfig).Execute() - //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.SetCampaignReportsConfig(context.Background()).CampaignReportsConfig(campaignReportsConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.SetCampaignReportsConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetCampaignReportsConfig`: CampaignReportsConfig - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.SetCampaignReportsConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.SetCampaignReportsConfig(context.Background()).CampaignReportsConfig(campaignReportsConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.SetCampaignReportsConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetCampaignReportsConfig`: CampaignReportsConfig + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.SetCampaignReportsConfig`: %v\n", resp) } ``` @@ -1502,7 +1498,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1530,16 +1526,17 @@ func main() { "type" : "WEEKLY" }`) // Schedule | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.CertificationCampaignsAPI.SetCampaignTemplateSchedule(context.Background(), id).Execute() - //r, err := apiClient.V2025.CertificationCampaignsAPI.SetCampaignTemplateSchedule(context.Background(), id).Schedule(schedule).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.SetCampaignTemplateSchedule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.CertificationCampaignsAPI.SetCampaignTemplateSchedule(context.Background(), id).Schedule(schedule).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.SetCampaignTemplateSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -1588,7 +1585,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1599,18 +1596,18 @@ func main() { "timeZone" : "-05:00" }`) // ActivateCampaignOptions | Optional. If no timezone is specified, the standard UTC timezone is used (i.e. UTC+00:00). Although this can take any timezone, the intended value is the caller's timezone. The activation time calculated from the given timezone may cause the campaign deadline time to be modified, but it will remain within the original date. The timezone must be in a valid ISO 8601 format. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.StartCampaign(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.StartCampaign(context.Background(), id).ActivateCampaignOptions(activateCampaignOptions).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.StartCampaign``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartCampaign`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.StartCampaign`: %v\n", resp) + //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.StartCampaign(context.Background(), id).ActivateCampaignOptions(activateCampaignOptions).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.StartCampaign``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartCampaign`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.StartCampaign`: %v\n", resp) } ``` @@ -1658,7 +1655,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1666,18 +1663,18 @@ import ( func main() { id := `2c91808571bcfcf80171c23e4b4221fc` // string | ID of the campaign the remediation scan is being run for. # string | ID of the campaign the remediation scan is being run for. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.StartCampaignRemediationScan(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.StartCampaignRemediationScan(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.StartCampaignRemediationScan``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartCampaignRemediationScan`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.StartCampaignRemediationScan`: %v\n", resp) + //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.StartCampaignRemediationScan(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.StartCampaignRemediationScan``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartCampaignRemediationScan`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.StartCampaignRemediationScan`: %v\n", resp) } ``` @@ -1727,7 +1724,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1736,18 +1733,18 @@ func main() { id := `2c91808571bcfcf80171c23e4b4221fc` // string | ID of the campaign the report is being run for. # string | ID of the campaign the report is being run for. type_ := // ReportType | Type of the report to run. # ReportType | Type of the report to run. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.StartCampaignReport(context.Background(), id, type_).Execute() - //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.StartCampaignReport(context.Background(), id, type_).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.StartCampaignReport``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartCampaignReport`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.StartCampaignReport`: %v\n", resp) + //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.StartCampaignReport(context.Background(), id, type_).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.StartCampaignReport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartCampaignReport`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.StartCampaignReport`: %v\n", resp) } ``` @@ -1805,7 +1802,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1813,18 +1810,18 @@ import ( func main() { id := `2c9180835d191a86015d28455b4a2329` // string | ID of the campaign template to use for generation. # string | ID of the campaign template to use for generation. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.StartGenerateCampaignTemplate(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.StartGenerateCampaignTemplate(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.StartGenerateCampaignTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartGenerateCampaignTemplate`: CampaignReference - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.StartGenerateCampaignTemplate`: %v\n", resp) + //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.StartGenerateCampaignTemplate(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.StartGenerateCampaignTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartGenerateCampaignTemplate`: CampaignReference + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.StartGenerateCampaignTemplate`: %v\n", resp) } ``` @@ -1873,7 +1870,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1882,24 +1879,23 @@ func main() { id := `2c91808571bcfcf80171c23e4b4221fc` // string | ID of the campaign template being modified. # string | ID of the campaign template being modified. jsonpatchoperation := []byte(`[{op=replace, path=/name, value=This field has been updated!}, {op=copy, from=/name, path=/description}]`) // []JsonPatchOperation | A list of campaign update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The fields that can be patched differ based on the status of the campaign. When the campaign is in the *STAGED* status, you can patch these fields: * name * description * recommendationsEnabled * deadline * emailNotificationEnabled * autoRevokeAllowed When the campaign is in the *ACTIVE* status, you can patch these fields: * deadline - - var jsonPatchOperation v2025.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2025.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.UpdateCampaign(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.UpdateCampaign(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.UpdateCampaign``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateCampaign`: SlimCampaign - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.UpdateCampaign`: %v\n", resp) + //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.UpdateCampaign(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.UpdateCampaign``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateCampaign`: SlimCampaign + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.UpdateCampaign`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/CertificationSummariesAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/CertificationSummariesAPI.md index 2489edda0..7b8a27856 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/CertificationSummariesAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/CertificationSummariesAPI.md @@ -83,7 +83,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -97,18 +97,18 @@ func main() { filters := `access.id eq "ef38f94347e94562b5bb8424a56397d8"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **completed**: *eq, ne* **access.id**: *eq, in* **access.name**: *eq, sw* **entitlement.sourceName**: *eq, sw* **accessProfile.sourceName**: *eq, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **completed**: *eq, ne* **access.id**: *eq, in* **access.name**: *eq, sw* **entitlement.sourceName**: *eq, sw* **accessProfile.sourceName**: *eq, sw* (optional) sorters := `access.name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.name** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.name** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationSummariesAPI.GetIdentityAccessSummaries(context.Background(), id, type_).Execute() - //resp, r, err := apiClient.V2025.CertificationSummariesAPI.GetIdentityAccessSummaries(context.Background(), id, type_).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationSummariesAPI.GetIdentityAccessSummaries``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentityAccessSummaries`: []AccessSummary - fmt.Fprintf(os.Stdout, "Response from `CertificationSummariesAPI.GetIdentityAccessSummaries`: %v\n", resp) + //resp, r, err := apiClient.V2025.CertificationSummariesAPI.GetIdentityAccessSummaries(context.Background(), id, type_).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationSummariesAPI.GetIdentityAccessSummaries``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityAccessSummaries`: []AccessSummary + fmt.Fprintf(os.Stdout, "Response from `CertificationSummariesAPI.GetIdentityAccessSummaries`: %v\n", resp) } ``` @@ -156,7 +156,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -165,18 +165,18 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The certification ID # string | The certification ID filters := `identitySummary.id eq "ef38f94347e94562b5bb8424a56397d8"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **identitySummary.id**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **identitySummary.id**: *eq, in* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationSummariesAPI.GetIdentityDecisionSummary(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.CertificationSummariesAPI.GetIdentityDecisionSummary(context.Background(), id).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationSummariesAPI.GetIdentityDecisionSummary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentityDecisionSummary`: IdentityCertDecisionSummary - fmt.Fprintf(os.Stdout, "Response from `CertificationSummariesAPI.GetIdentityDecisionSummary`: %v\n", resp) + //resp, r, err := apiClient.V2025.CertificationSummariesAPI.GetIdentityDecisionSummary(context.Background(), id).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationSummariesAPI.GetIdentityDecisionSummary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityDecisionSummary`: IdentityCertDecisionSummary + fmt.Fprintf(os.Stdout, "Response from `CertificationSummariesAPI.GetIdentityDecisionSummary`: %v\n", resp) } ``` @@ -228,7 +228,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -241,18 +241,18 @@ func main() { filters := `id eq "ef38f94347e94562b5bb8424a56397d8"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **completed**: *eq, ne* **name**: *eq, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **completed**: *eq, ne* **name**: *eq, sw* (optional) sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationSummariesAPI.GetIdentitySummaries(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.CertificationSummariesAPI.GetIdentitySummaries(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationSummariesAPI.GetIdentitySummaries``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentitySummaries`: []CertificationIdentitySummary - fmt.Fprintf(os.Stdout, "Response from `CertificationSummariesAPI.GetIdentitySummaries`: %v\n", resp) + //resp, r, err := apiClient.V2025.CertificationSummariesAPI.GetIdentitySummaries(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationSummariesAPI.GetIdentitySummaries``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentitySummaries`: []CertificationIdentitySummary + fmt.Fprintf(os.Stdout, "Response from `CertificationSummariesAPI.GetIdentitySummaries`: %v\n", resp) } ``` @@ -301,7 +301,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -310,18 +310,18 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The identity campaign certification ID # string | The identity campaign certification ID identitySummaryId := `2c91808772a504f50172a9540e501ba8` // string | The identity summary ID # string | The identity summary ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationSummariesAPI.GetIdentitySummary(context.Background(), id, identitySummaryId).Execute() - //resp, r, err := apiClient.V2025.CertificationSummariesAPI.GetIdentitySummary(context.Background(), id, identitySummaryId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationSummariesAPI.GetIdentitySummary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentitySummary`: CertificationIdentitySummary - fmt.Fprintf(os.Stdout, "Response from `CertificationSummariesAPI.GetIdentitySummary`: %v\n", resp) + //resp, r, err := apiClient.V2025.CertificationSummariesAPI.GetIdentitySummary(context.Background(), id, identitySummaryId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationSummariesAPI.GetIdentitySummary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentitySummary`: CertificationIdentitySummary + fmt.Fprintf(os.Stdout, "Response from `CertificationSummariesAPI.GetIdentitySummary`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/CertificationsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/CertificationsAPI.md index dc94930cb..e3bc288e6 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/CertificationsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/CertificationsAPI.md @@ -92,7 +92,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -100,18 +100,18 @@ import ( func main() { id := `63b32151-26c0-42f4-9299-8898dc1c9daa` // string | The task ID # string | The task ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationsAPI.GetCertificationTask(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.CertificationsAPI.GetCertificationTask(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.GetCertificationTask``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCertificationTask`: CertificationTask - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.GetCertificationTask`: %v\n", resp) + //resp, r, err := apiClient.V2025.CertificationsAPI.GetCertificationTask(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.GetCertificationTask``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificationTask`: CertificationTask + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.GetCertificationTask`: %v\n", resp) } ``` @@ -158,7 +158,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -166,18 +166,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The certification id # string | The certification id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationsAPI.GetIdentityCertification(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.CertificationsAPI.GetIdentityCertification(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.GetIdentityCertification``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentityCertification`: IdentityCertificationDto - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.GetIdentityCertification`: %v\n", resp) + //resp, r, err := apiClient.V2025.CertificationsAPI.GetIdentityCertification(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.GetIdentityCertification``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityCertification`: IdentityCertificationDto + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.GetIdentityCertification`: %v\n", resp) } ``` @@ -230,7 +230,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -243,18 +243,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationsAPI.GetIdentityCertificationItemPermissions(context.Background(), certificationId, itemId).Execute() - //resp, r, err := apiClient.V2025.CertificationsAPI.GetIdentityCertificationItemPermissions(context.Background(), certificationId, itemId).Filters(filters).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.GetIdentityCertificationItemPermissions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentityCertificationItemPermissions`: []PermissionDto - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.GetIdentityCertificationItemPermissions`: %v\n", resp) + //resp, r, err := apiClient.V2025.CertificationsAPI.GetIdentityCertificationItemPermissions(context.Background(), certificationId, itemId).Filters(filters).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.GetIdentityCertificationItemPermissions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityCertificationItemPermissions`: []PermissionDto + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.GetIdentityCertificationItemPermissions`: %v\n", resp) } ``` @@ -301,7 +301,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -313,18 +313,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) filters := `type eq "ADMIN_REASSIGN"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **targetId**: *eq, in* **type**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **targetId**: *eq, in* **type**: *eq, in* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationsAPI.GetPendingCertificationTasks(context.Background()).Execute() - //resp, r, err := apiClient.V2025.CertificationsAPI.GetPendingCertificationTasks(context.Background()).ReviewerIdentity(reviewerIdentity).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.GetPendingCertificationTasks``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPendingCertificationTasks`: []CertificationTask - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.GetPendingCertificationTasks`: %v\n", resp) + //resp, r, err := apiClient.V2025.CertificationsAPI.GetPendingCertificationTasks(context.Background()).ReviewerIdentity(reviewerIdentity).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.GetPendingCertificationTasks``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPendingCertificationTasks`: []CertificationTask + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.GetPendingCertificationTasks`: %v\n", resp) } ``` @@ -376,7 +376,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -389,18 +389,18 @@ func main() { filters := `name eq "Bob"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **email**: *eq, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **email**: *eq, sw* (optional) sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, email** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, email** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationsAPI.ListCertificationReviewers(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.CertificationsAPI.ListCertificationReviewers(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.ListCertificationReviewers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListCertificationReviewers`: []IdentityReferenceWithNameAndEmail - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.ListCertificationReviewers`: %v\n", resp) + //resp, r, err := apiClient.V2025.CertificationsAPI.ListCertificationReviewers(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.ListCertificationReviewers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCertificationReviewers`: []IdentityReferenceWithNameAndEmail + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.ListCertificationReviewers`: %v\n", resp) } ``` @@ -455,7 +455,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -471,18 +471,18 @@ func main() { accessProfiles := `accessProfile1` // string | Filter results to view access review items that pertain to any of the specified comma-separated access-profle IDs. An error will occur if this param is used with **entitlements** or **roles** as only one of these query params can be used at a time. (optional) # string | Filter results to view access review items that pertain to any of the specified comma-separated access-profle IDs. An error will occur if this param is used with **entitlements** or **roles** as only one of these query params can be used at a time. (optional) roles := `userRole` // string | Filter results to view access review items that pertain to any of the specified comma-separated role IDs. An error will occur if this param is used with **entitlements** or **access-profiles** as only one of these query params can be used at a time. (optional) # string | Filter results to view access review items that pertain to any of the specified comma-separated role IDs. An error will occur if this param is used with **entitlements** or **access-profiles** as only one of these query params can be used at a time. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationsAPI.ListIdentityAccessReviewItems(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.CertificationsAPI.ListIdentityAccessReviewItems(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Entitlements(entitlements).AccessProfiles(accessProfiles).Roles(roles).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.ListIdentityAccessReviewItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListIdentityAccessReviewItems`: []AccessReviewItem - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.ListIdentityAccessReviewItems`: %v\n", resp) + //resp, r, err := apiClient.V2025.CertificationsAPI.ListIdentityAccessReviewItems(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Entitlements(entitlements).AccessProfiles(accessProfiles).Roles(roles).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.ListIdentityAccessReviewItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListIdentityAccessReviewItems`: []AccessReviewItem + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.ListIdentityAccessReviewItems`: %v\n", resp) } ``` @@ -530,7 +530,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -543,18 +543,18 @@ func main() { filters := `id eq "ef38f94347e94562b5bb8424a56397d8"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **campaign.id**: *eq, in* **phase**: *eq* **completed**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **campaign.id**: *eq, in* **phase**: *eq* **completed**: *eq* (optional) sorters := `name,due` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, due, signed** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, due, signed** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationsAPI.ListIdentityCertifications(context.Background()).Execute() - //resp, r, err := apiClient.V2025.CertificationsAPI.ListIdentityCertifications(context.Background()).ReviewerIdentity(reviewerIdentity).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.ListIdentityCertifications``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListIdentityCertifications`: []IdentityCertificationDto - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.ListIdentityCertifications`: %v\n", resp) + //resp, r, err := apiClient.V2025.CertificationsAPI.ListIdentityCertifications(context.Background()).ReviewerIdentity(reviewerIdentity).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.ListIdentityCertifications``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListIdentityCertifications`: []IdentityCertificationDto + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.ListIdentityCertifications`: %v\n", resp) } ``` @@ -602,7 +602,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -611,24 +611,23 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the identity campaign certification on which to make decisions # string | The ID of the identity campaign certification on which to make decisions reviewdecision := []byte(`[{id=ef38f94347e94562b5bb8424a56396b5, decision=APPROVE, bulk=true, comments=This user still needs access to this source.}, {id=ef38f94347e94562b5bb8424a56397d8, decision=APPROVE, bulk=true, comments=This user still needs access to this source too.}]`) // []ReviewDecision | A non-empty array of decisions to be made. - - var reviewDecision v2025.[]ReviewDecision - if err := json.Unmarshal(reviewdecision, &reviewDecision); err != nil { - fmt.Println("Error:", err) - return - } - + var reviewDecision []v2025.ReviewDecision + if err := json.Unmarshal(reviewdecision, &reviewDecision); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationsAPI.MakeIdentityDecision(context.Background(), id).ReviewDecision(reviewDecision).Execute() - //resp, r, err := apiClient.V2025.CertificationsAPI.MakeIdentityDecision(context.Background(), id).ReviewDecision(reviewDecision).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.MakeIdentityDecision``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `MakeIdentityDecision`: IdentityCertificationDto - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.MakeIdentityDecision`: %v\n", resp) + //resp, r, err := apiClient.V2025.CertificationsAPI.MakeIdentityDecision(context.Background(), id).ReviewDecision(reviewDecision).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.MakeIdentityDecision``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `MakeIdentityDecision`: IdentityCertificationDto + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.MakeIdentityDecision`: %v\n", resp) } ``` @@ -676,7 +675,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -695,24 +694,23 @@ func main() { } ] }`) // ReviewReassign | - - var reviewReassign v2025.ReviewReassign - if err := json.Unmarshal(reviewreassign, &reviewReassign); err != nil { - fmt.Println("Error:", err) - return - } - + var reviewReassign v2025.ReviewReassign + if err := json.Unmarshal(reviewreassign, &reviewReassign); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationsAPI.ReassignIdentityCertifications(context.Background(), id).ReviewReassign(reviewReassign).Execute() - //resp, r, err := apiClient.V2025.CertificationsAPI.ReassignIdentityCertifications(context.Background(), id).ReviewReassign(reviewReassign).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.ReassignIdentityCertifications``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ReassignIdentityCertifications`: IdentityCertificationDto - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.ReassignIdentityCertifications`: %v\n", resp) + //resp, r, err := apiClient.V2025.CertificationsAPI.ReassignIdentityCertifications(context.Background(), id).ReviewReassign(reviewReassign).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.ReassignIdentityCertifications``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReassignIdentityCertifications`: IdentityCertificationDto + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.ReassignIdentityCertifications`: %v\n", resp) } ``` @@ -759,7 +757,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -767,18 +765,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The identity campaign certification ID # string | The identity campaign certification ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationsAPI.SignOffIdentityCertification(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.CertificationsAPI.SignOffIdentityCertification(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.SignOffIdentityCertification``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SignOffIdentityCertification`: IdentityCertificationDto - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.SignOffIdentityCertification`: %v\n", resp) + //resp, r, err := apiClient.V2025.CertificationsAPI.SignOffIdentityCertification(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.SignOffIdentityCertification``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SignOffIdentityCertification`: IdentityCertificationDto + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.SignOffIdentityCertification`: %v\n", resp) } ``` @@ -831,7 +829,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -850,24 +848,23 @@ func main() { } ] }`) // ReviewReassign | - - var reviewReassign v2025.ReviewReassign - if err := json.Unmarshal(reviewreassign, &reviewReassign); err != nil { - fmt.Println("Error:", err) - return - } - + var reviewReassign v2025.ReviewReassign + if err := json.Unmarshal(reviewreassign, &reviewReassign); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationsAPI.SubmitReassignCertsAsync(context.Background(), id).ReviewReassign(reviewReassign).Execute() - //resp, r, err := apiClient.V2025.CertificationsAPI.SubmitReassignCertsAsync(context.Background(), id).ReviewReassign(reviewReassign).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.SubmitReassignCertsAsync``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SubmitReassignCertsAsync`: CertificationTask - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.SubmitReassignCertsAsync`: %v\n", resp) + //resp, r, err := apiClient.V2025.CertificationsAPI.SubmitReassignCertsAsync(context.Background(), id).ReviewReassign(reviewReassign).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.SubmitReassignCertsAsync``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SubmitReassignCertsAsync`: CertificationTask + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.SubmitReassignCertsAsync`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/ConfigurationHubAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/ConfigurationHubAPI.md index 5aeffd97a..3c9497d92 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/ConfigurationHubAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/ConfigurationHubAPI.md @@ -85,7 +85,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -95,24 +95,23 @@ func main() { "draftId" : "3d0fe04b-57df-4a46-a83b-8f04b0f9d10b" }`) // DeployRequest | The deploy request body. - - var deployRequest v2025.DeployRequest - if err := json.Unmarshal(deployrequest, &deployRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var deployRequest v2025.DeployRequest + if err := json.Unmarshal(deployrequest, &deployRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConfigurationHubAPI.CreateDeploy(context.Background()).DeployRequest(deployRequest).Execute() - //resp, r, err := apiClient.V2025.ConfigurationHubAPI.CreateDeploy(context.Background()).DeployRequest(deployRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.CreateDeploy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateDeploy`: DeployResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.CreateDeploy`: %v\n", resp) + //resp, r, err := apiClient.V2025.ConfigurationHubAPI.CreateDeploy(context.Background()).DeployRequest(deployRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.CreateDeploy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateDeploy`: DeployResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.CreateDeploy`: %v\n", resp) } ``` @@ -163,7 +162,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -178,24 +177,23 @@ func main() { "objectType" : "IDENTITY" }`) // ObjectMappingRequest | The object mapping request body. - - var objectMappingRequest v2025.ObjectMappingRequest - if err := json.Unmarshal(objectmappingrequest, &objectMappingRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var objectMappingRequest v2025.ObjectMappingRequest + if err := json.Unmarshal(objectmappingrequest, &objectMappingRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConfigurationHubAPI.CreateObjectMapping(context.Background(), sourceOrg).ObjectMappingRequest(objectMappingRequest).Execute() - //resp, r, err := apiClient.V2025.ConfigurationHubAPI.CreateObjectMapping(context.Background(), sourceOrg).ObjectMappingRequest(objectMappingRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.CreateObjectMapping``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateObjectMapping`: ObjectMappingResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.CreateObjectMapping`: %v\n", resp) + //resp, r, err := apiClient.V2025.ConfigurationHubAPI.CreateObjectMapping(context.Background(), sourceOrg).ObjectMappingRequest(objectMappingRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.CreateObjectMapping``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateObjectMapping`: ObjectMappingResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.CreateObjectMapping`: %v\n", resp) } ``` @@ -246,7 +244,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -269,24 +267,23 @@ func main() { } ] }`) // ObjectMappingBulkCreateRequest | The bulk create object mapping request body. - - var objectMappingBulkCreateRequest v2025.ObjectMappingBulkCreateRequest - if err := json.Unmarshal(objectmappingbulkcreaterequest, &objectMappingBulkCreateRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var objectMappingBulkCreateRequest v2025.ObjectMappingBulkCreateRequest + if err := json.Unmarshal(objectmappingbulkcreaterequest, &objectMappingBulkCreateRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConfigurationHubAPI.CreateObjectMappings(context.Background(), sourceOrg).ObjectMappingBulkCreateRequest(objectMappingBulkCreateRequest).Execute() - //resp, r, err := apiClient.V2025.ConfigurationHubAPI.CreateObjectMappings(context.Background(), sourceOrg).ObjectMappingBulkCreateRequest(objectMappingBulkCreateRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.CreateObjectMappings``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateObjectMappings`: ObjectMappingBulkCreateResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.CreateObjectMappings`: %v\n", resp) + //resp, r, err := apiClient.V2025.ConfigurationHubAPI.CreateObjectMappings(context.Background(), sourceOrg).ObjectMappingBulkCreateRequest(objectMappingBulkCreateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.CreateObjectMappings``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateObjectMappings`: ObjectMappingBulkCreateResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.CreateObjectMappings`: %v\n", resp) } ``` @@ -329,7 +326,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -359,24 +356,23 @@ func main() { } }`) // ScheduledActionPayload | The scheduled action creation request body. - - var scheduledActionPayload v2025.ScheduledActionPayload - if err := json.Unmarshal(scheduledactionpayload, &scheduledActionPayload); err != nil { - fmt.Println("Error:", err) - return - } - + var scheduledActionPayload v2025.ScheduledActionPayload + if err := json.Unmarshal(scheduledactionpayload, &scheduledActionPayload); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConfigurationHubAPI.CreateScheduledAction(context.Background()).ScheduledActionPayload(scheduledActionPayload).Execute() - //resp, r, err := apiClient.V2025.ConfigurationHubAPI.CreateScheduledAction(context.Background()).ScheduledActionPayload(scheduledActionPayload).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.CreateScheduledAction``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateScheduledAction`: ScheduledActionResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.CreateScheduledAction`: %v\n", resp) + //resp, r, err := apiClient.V2025.ConfigurationHubAPI.CreateScheduledAction(context.Background()).ScheduledActionPayload(scheduledActionPayload).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.CreateScheduledAction``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateScheduledAction`: ScheduledActionResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.CreateScheduledAction`: %v\n", resp) } ``` @@ -424,7 +420,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -433,18 +429,18 @@ func main() { data := BINARY_DATA_HERE // *os.File | JSON file containing the objects to be imported. # *os.File | JSON file containing the objects to be imported. name := `name_example` // string | Name that will be assigned to the uploaded configuration file. # string | Name that will be assigned to the uploaded configuration file. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConfigurationHubAPI.CreateUploadedConfiguration(context.Background()).Data(data).Name(name).Execute() - //resp, r, err := apiClient.V2025.ConfigurationHubAPI.CreateUploadedConfiguration(context.Background()).Data(data).Name(name).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.CreateUploadedConfiguration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateUploadedConfiguration`: BackupResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.CreateUploadedConfiguration`: %v\n", resp) + //resp, r, err := apiClient.V2025.ConfigurationHubAPI.CreateUploadedConfiguration(context.Background()).Data(data).Name(name).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.CreateUploadedConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateUploadedConfiguration`: BackupResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.CreateUploadedConfiguration`: %v\n", resp) } ``` @@ -495,7 +491,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -503,16 +499,17 @@ import ( func main() { id := `07659d7d-2cce-47c0-9e49-185787ee565a` // string | The id of the backup to delete. # string | The id of the backup to delete. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.ConfigurationHubAPI.DeleteBackup(context.Background(), id).Execute() - //r, err := apiClient.V2025.ConfigurationHubAPI.DeleteBackup(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.DeleteBackup``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.ConfigurationHubAPI.DeleteBackup(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.DeleteBackup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -563,7 +560,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -571,16 +568,17 @@ import ( func main() { id := `07659d7d-2cce-47c0-9e49-185787ee565a` // string | The id of the draft to delete. # string | The id of the draft to delete. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.ConfigurationHubAPI.DeleteDraft(context.Background(), id).Execute() - //r, err := apiClient.V2025.ConfigurationHubAPI.DeleteDraft(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.DeleteDraft``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.ConfigurationHubAPI.DeleteDraft(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.DeleteDraft``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -632,7 +630,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -641,16 +639,17 @@ func main() { sourceOrg := `source-org` // string | The name of the source org. # string | The name of the source org. objectMappingId := `3d6e0144-963f-4bd6-8d8d-d77b4e507ce4` // string | The id of the object mapping to be deleted. # string | The id of the object mapping to be deleted. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.ConfigurationHubAPI.DeleteObjectMapping(context.Background(), sourceOrg, objectMappingId).Execute() - //r, err := apiClient.V2025.ConfigurationHubAPI.DeleteObjectMapping(context.Background(), sourceOrg, objectMappingId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.DeleteObjectMapping``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.ConfigurationHubAPI.DeleteObjectMapping(context.Background(), sourceOrg, objectMappingId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.DeleteObjectMapping``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -697,7 +696,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -705,16 +704,17 @@ import ( func main() { scheduledActionId := `0f11f2a4-7c94-4bf3-a2bd-742580fe3bde` // string | The ID of the scheduled action. # string | The ID of the scheduled action. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.ConfigurationHubAPI.DeleteScheduledAction(context.Background(), scheduledActionId).Execute() - //r, err := apiClient.V2025.ConfigurationHubAPI.DeleteScheduledAction(context.Background(), scheduledActionId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.DeleteScheduledAction``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.ConfigurationHubAPI.DeleteScheduledAction(context.Background(), scheduledActionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.DeleteScheduledAction``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -765,7 +765,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -773,16 +773,17 @@ import ( func main() { id := `3d0fe04b-57df-4a46-a83b-8f04b0f9d10b` // string | The id of the uploaded configuration. # string | The id of the uploaded configuration. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.ConfigurationHubAPI.DeleteUploadedConfiguration(context.Background(), id).Execute() - //r, err := apiClient.V2025.ConfigurationHubAPI.DeleteUploadedConfiguration(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.DeleteUploadedConfiguration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.ConfigurationHubAPI.DeleteUploadedConfiguration(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.DeleteUploadedConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -829,7 +830,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -837,18 +838,18 @@ import ( func main() { id := `3d0fe04b-57df-4a46-a83b-8f04b0f9d10b` // string | The id of the deploy. # string | The id of the deploy. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConfigurationHubAPI.GetDeploy(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.ConfigurationHubAPI.GetDeploy(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.GetDeploy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetDeploy`: DeployResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.GetDeploy`: %v\n", resp) + //resp, r, err := apiClient.V2025.ConfigurationHubAPI.GetDeploy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.GetDeploy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDeploy`: DeployResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.GetDeploy`: %v\n", resp) } ``` @@ -898,7 +899,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -906,18 +907,18 @@ import ( func main() { sourceOrg := `source-org` // string | The name of the source org. # string | The name of the source org. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConfigurationHubAPI.GetObjectMappings(context.Background(), sourceOrg).Execute() - //resp, r, err := apiClient.V2025.ConfigurationHubAPI.GetObjectMappings(context.Background(), sourceOrg).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.GetObjectMappings``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetObjectMappings`: []ObjectMappingResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.GetObjectMappings`: %v\n", resp) + //resp, r, err := apiClient.V2025.ConfigurationHubAPI.GetObjectMappings(context.Background(), sourceOrg).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.GetObjectMappings``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetObjectMappings`: []ObjectMappingResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.GetObjectMappings`: %v\n", resp) } ``` @@ -964,7 +965,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -972,18 +973,18 @@ import ( func main() { id := `3d0fe04b-57df-4a46-a83b-8f04b0f9d10b` // string | The id of the uploaded configuration. # string | The id of the uploaded configuration. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConfigurationHubAPI.GetUploadedConfiguration(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.ConfigurationHubAPI.GetUploadedConfiguration(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.GetUploadedConfiguration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetUploadedConfiguration`: BackupResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.GetUploadedConfiguration`: %v\n", resp) + //resp, r, err := apiClient.V2025.ConfigurationHubAPI.GetUploadedConfiguration(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.GetUploadedConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetUploadedConfiguration`: BackupResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.GetUploadedConfiguration`: %v\n", resp) } ``` @@ -1026,7 +1027,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1034,18 +1035,18 @@ import ( func main() { filters := `status eq "COMPLETE"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **status**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **status**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConfigurationHubAPI.ListBackups(context.Background()).Execute() - //resp, r, err := apiClient.V2025.ConfigurationHubAPI.ListBackups(context.Background()).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.ListBackups``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListBackups`: []BackupResponse1 - fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.ListBackups`: %v\n", resp) + //resp, r, err := apiClient.V2025.ConfigurationHubAPI.ListBackups(context.Background()).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.ListBackups``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListBackups`: []BackupResponse1 + fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.ListBackups`: %v\n", resp) } ``` @@ -1084,25 +1085,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConfigurationHubAPI.ListDeploys(context.Background()).Execute() - //resp, r, err := apiClient.V2025.ConfigurationHubAPI.ListDeploys(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.ListDeploys``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListDeploys`: ListDeploys200Response - fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.ListDeploys`: %v\n", resp) + //resp, r, err := apiClient.V2025.ConfigurationHubAPI.ListDeploys(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.ListDeploys``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListDeploys`: ListDeploys200Response + fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.ListDeploys`: %v\n", resp) } ``` @@ -1145,7 +1146,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1153,18 +1154,18 @@ import ( func main() { filters := `status eq "COMPLETE"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **status**: *eq* **approvalStatus**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **status**: *eq* **approvalStatus**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConfigurationHubAPI.ListDrafts(context.Background()).Execute() - //resp, r, err := apiClient.V2025.ConfigurationHubAPI.ListDrafts(context.Background()).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.ListDrafts``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListDrafts`: []DraftResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.ListDrafts`: %v\n", resp) + //resp, r, err := apiClient.V2025.ConfigurationHubAPI.ListDrafts(context.Background()).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.ListDrafts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListDrafts`: []DraftResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.ListDrafts`: %v\n", resp) } ``` @@ -1203,25 +1204,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConfigurationHubAPI.ListScheduledActions(context.Background()).Execute() - //resp, r, err := apiClient.V2025.ConfigurationHubAPI.ListScheduledActions(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.ListScheduledActions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListScheduledActions`: []ScheduledActionResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.ListScheduledActions`: %v\n", resp) + //resp, r, err := apiClient.V2025.ConfigurationHubAPI.ListScheduledActions(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.ListScheduledActions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListScheduledActions`: []ScheduledActionResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.ListScheduledActions`: %v\n", resp) } ``` @@ -1264,7 +1265,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1272,18 +1273,18 @@ import ( func main() { filters := `status eq "COMPLETE"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **status**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **status**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConfigurationHubAPI.ListUploadedConfigurations(context.Background()).Execute() - //resp, r, err := apiClient.V2025.ConfigurationHubAPI.ListUploadedConfigurations(context.Background()).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.ListUploadedConfigurations``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListUploadedConfigurations`: []BackupResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.ListUploadedConfigurations`: %v\n", resp) + //resp, r, err := apiClient.V2025.ConfigurationHubAPI.ListUploadedConfigurations(context.Background()).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.ListUploadedConfigurations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListUploadedConfigurations`: []BackupResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.ListUploadedConfigurations`: %v\n", resp) } ``` @@ -1334,7 +1335,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1356,24 +1357,23 @@ func main() { } }`) // ObjectMappingBulkPatchRequest | The object mapping request body. - - var objectMappingBulkPatchRequest v2025.ObjectMappingBulkPatchRequest - if err := json.Unmarshal(objectmappingbulkpatchrequest, &objectMappingBulkPatchRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var objectMappingBulkPatchRequest v2025.ObjectMappingBulkPatchRequest + if err := json.Unmarshal(objectmappingbulkpatchrequest, &objectMappingBulkPatchRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConfigurationHubAPI.UpdateObjectMappings(context.Background(), sourceOrg).ObjectMappingBulkPatchRequest(objectMappingBulkPatchRequest).Execute() - //resp, r, err := apiClient.V2025.ConfigurationHubAPI.UpdateObjectMappings(context.Background(), sourceOrg).ObjectMappingBulkPatchRequest(objectMappingBulkPatchRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.UpdateObjectMappings``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateObjectMappings`: ObjectMappingBulkPatchResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.UpdateObjectMappings`: %v\n", resp) + //resp, r, err := apiClient.V2025.ConfigurationHubAPI.UpdateObjectMappings(context.Background(), sourceOrg).ObjectMappingBulkPatchRequest(objectMappingBulkPatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.UpdateObjectMappings``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateObjectMappings`: ObjectMappingBulkPatchResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.UpdateObjectMappings`: %v\n", resp) } ``` @@ -1421,7 +1421,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1440,24 +1440,23 @@ func main() { } ] }`) // JsonPatch | The JSON Patch document containing the changes to apply to the scheduled action. - - var jsonPatch v2025.JsonPatch - if err := json.Unmarshal(jsonpatch, &jsonPatch); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatch v2025.JsonPatch + if err := json.Unmarshal(jsonpatch, &jsonPatch); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConfigurationHubAPI.UpdateScheduledAction(context.Background(), scheduledActionId).JsonPatch(jsonPatch).Execute() - //resp, r, err := apiClient.V2025.ConfigurationHubAPI.UpdateScheduledAction(context.Background(), scheduledActionId).JsonPatch(jsonPatch).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.UpdateScheduledAction``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateScheduledAction`: ScheduledActionResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.UpdateScheduledAction`: %v\n", resp) + //resp, r, err := apiClient.V2025.ConfigurationHubAPI.UpdateScheduledAction(context.Background(), scheduledActionId).JsonPatch(jsonPatch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.UpdateScheduledAction``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateScheduledAction`: ScheduledActionResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.UpdateScheduledAction`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/ConnectorCustomizersAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/ConnectorCustomizersAPI.md index 9682e2538..5476ad3e1 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/ConnectorCustomizersAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/ConnectorCustomizersAPI.md @@ -63,7 +63,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -73,24 +73,23 @@ func main() { "name" : "My Custom Connector" }`) // ConnectorCustomizerCreateRequest | Connector customizer to create. - - var connectorCustomizerCreateRequest v2025.ConnectorCustomizerCreateRequest - if err := json.Unmarshal(connectorcustomizercreaterequest, &connectorCustomizerCreateRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var connectorCustomizerCreateRequest v2025.ConnectorCustomizerCreateRequest + if err := json.Unmarshal(connectorcustomizercreaterequest, &connectorCustomizerCreateRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorCustomizersAPI.CreateConnectorCustomizer(context.Background()).ConnectorCustomizerCreateRequest(connectorCustomizerCreateRequest).Execute() - //resp, r, err := apiClient.V2025.ConnectorCustomizersAPI.CreateConnectorCustomizer(context.Background()).ConnectorCustomizerCreateRequest(connectorCustomizerCreateRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorCustomizersAPI.CreateConnectorCustomizer``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateConnectorCustomizer`: ConnectorCustomizerCreateResponse - fmt.Fprintf(os.Stdout, "Response from `ConnectorCustomizersAPI.CreateConnectorCustomizer`: %v\n", resp) + //resp, r, err := apiClient.V2025.ConnectorCustomizersAPI.CreateConnectorCustomizer(context.Background()).ConnectorCustomizerCreateRequest(connectorCustomizerCreateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorCustomizersAPI.CreateConnectorCustomizer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateConnectorCustomizer`: ConnectorCustomizerCreateResponse + fmt.Fprintf(os.Stdout, "Response from `ConnectorCustomizersAPI.CreateConnectorCustomizer`: %v\n", resp) } ``` @@ -137,7 +136,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -145,18 +144,18 @@ import ( func main() { id := `b07dc46a-1498-4de8-bfbb-259a68e70c8a` // string | The id of the connector customizer. # string | The id of the connector customizer. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorCustomizersAPI.CreateConnectorCustomizerVersion(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.ConnectorCustomizersAPI.CreateConnectorCustomizerVersion(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorCustomizersAPI.CreateConnectorCustomizerVersion``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateConnectorCustomizerVersion`: ConnectorCustomizerVersionCreateResponse - fmt.Fprintf(os.Stdout, "Response from `ConnectorCustomizersAPI.CreateConnectorCustomizerVersion`: %v\n", resp) + //resp, r, err := apiClient.V2025.ConnectorCustomizersAPI.CreateConnectorCustomizerVersion(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorCustomizersAPI.CreateConnectorCustomizerVersion``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateConnectorCustomizerVersion`: ConnectorCustomizerVersionCreateResponse + fmt.Fprintf(os.Stdout, "Response from `ConnectorCustomizersAPI.CreateConnectorCustomizerVersion`: %v\n", resp) } ``` @@ -203,7 +202,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -211,16 +210,17 @@ import ( func main() { id := `b07dc46a-1498-4de8-bfbb-259a68e70c8a` // string | ID of the connector customizer to delete. # string | ID of the connector customizer to delete. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.ConnectorCustomizersAPI.DeleteConnectorCustomizer(context.Background(), id).Execute() - //r, err := apiClient.V2025.ConnectorCustomizersAPI.DeleteConnectorCustomizer(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorCustomizersAPI.DeleteConnectorCustomizer``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.ConnectorCustomizersAPI.DeleteConnectorCustomizer(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorCustomizersAPI.DeleteConnectorCustomizer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -267,7 +267,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -275,18 +275,18 @@ import ( func main() { id := `b07dc46a-1498-4de8-bfbb-259a68e70c8a` // string | ID of the connector customizer to get. # string | ID of the connector customizer to get. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorCustomizersAPI.GetConnectorCustomizer(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.ConnectorCustomizersAPI.GetConnectorCustomizer(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorCustomizersAPI.GetConnectorCustomizer``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetConnectorCustomizer`: ConnectorCustomizersResponse - fmt.Fprintf(os.Stdout, "Response from `ConnectorCustomizersAPI.GetConnectorCustomizer`: %v\n", resp) + //resp, r, err := apiClient.V2025.ConnectorCustomizersAPI.GetConnectorCustomizer(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorCustomizersAPI.GetConnectorCustomizer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnectorCustomizer`: ConnectorCustomizersResponse + fmt.Fprintf(os.Stdout, "Response from `ConnectorCustomizersAPI.GetConnectorCustomizer`: %v\n", resp) } ``` @@ -330,7 +330,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -339,18 +339,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorCustomizersAPI.ListConnectorCustomizers(context.Background()).Execute() - //resp, r, err := apiClient.V2025.ConnectorCustomizersAPI.ListConnectorCustomizers(context.Background()).Offset(offset).Limit(limit).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorCustomizersAPI.ListConnectorCustomizers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListConnectorCustomizers`: []ConnectorCustomizersResponse - fmt.Fprintf(os.Stdout, "Response from `ConnectorCustomizersAPI.ListConnectorCustomizers`: %v\n", resp) + //resp, r, err := apiClient.V2025.ConnectorCustomizersAPI.ListConnectorCustomizers(context.Background()).Offset(offset).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorCustomizersAPI.ListConnectorCustomizers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListConnectorCustomizers`: []ConnectorCustomizersResponse + fmt.Fprintf(os.Stdout, "Response from `ConnectorCustomizersAPI.ListConnectorCustomizers`: %v\n", resp) } ``` @@ -398,7 +398,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -409,18 +409,18 @@ func main() { "name" : "My Custom Connector" }`) // ConnectorCustomizerUpdateRequest | Connector rule with updated data. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorCustomizersAPI.PutConnectorCustomizer(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.ConnectorCustomizersAPI.PutConnectorCustomizer(context.Background(), id).ConnectorCustomizerUpdateRequest(connectorCustomizerUpdateRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorCustomizersAPI.PutConnectorCustomizer``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutConnectorCustomizer`: ConnectorCustomizerUpdateResponse - fmt.Fprintf(os.Stdout, "Response from `ConnectorCustomizersAPI.PutConnectorCustomizer`: %v\n", resp) + //resp, r, err := apiClient.V2025.ConnectorCustomizersAPI.PutConnectorCustomizer(context.Background(), id).ConnectorCustomizerUpdateRequest(connectorCustomizerUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorCustomizersAPI.PutConnectorCustomizer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutConnectorCustomizer`: ConnectorCustomizerUpdateResponse + fmt.Fprintf(os.Stdout, "Response from `ConnectorCustomizersAPI.PutConnectorCustomizer`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/ConnectorRuleManagementAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/ConnectorRuleManagementAPI.md index 695d7f47e..0f4c05081 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/ConnectorRuleManagementAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/ConnectorRuleManagementAPI.md @@ -67,7 +67,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -100,24 +100,23 @@ func main() { "type" : "BuildMap" }`) // ConnectorRuleCreateRequest | Connector rule to create. - - var connectorRuleCreateRequest v2025.ConnectorRuleCreateRequest - if err := json.Unmarshal(connectorrulecreaterequest, &connectorRuleCreateRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var connectorRuleCreateRequest v2025.ConnectorRuleCreateRequest + if err := json.Unmarshal(connectorrulecreaterequest, &connectorRuleCreateRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorRuleManagementAPI.CreateConnectorRule(context.Background()).ConnectorRuleCreateRequest(connectorRuleCreateRequest).Execute() - //resp, r, err := apiClient.V2025.ConnectorRuleManagementAPI.CreateConnectorRule(context.Background()).ConnectorRuleCreateRequest(connectorRuleCreateRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorRuleManagementAPI.CreateConnectorRule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateConnectorRule`: ConnectorRuleResponse - fmt.Fprintf(os.Stdout, "Response from `ConnectorRuleManagementAPI.CreateConnectorRule`: %v\n", resp) + //resp, r, err := apiClient.V2025.ConnectorRuleManagementAPI.CreateConnectorRule(context.Background()).ConnectorRuleCreateRequest(connectorRuleCreateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorRuleManagementAPI.CreateConnectorRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateConnectorRule`: ConnectorRuleResponse + fmt.Fprintf(os.Stdout, "Response from `ConnectorRuleManagementAPI.CreateConnectorRule`: %v\n", resp) } ``` @@ -164,7 +163,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -172,16 +171,17 @@ import ( func main() { id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | ID of the connector rule to delete. # string | ID of the connector rule to delete. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.ConnectorRuleManagementAPI.DeleteConnectorRule(context.Background(), id).Execute() - //r, err := apiClient.V2025.ConnectorRuleManagementAPI.DeleteConnectorRule(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorRuleManagementAPI.DeleteConnectorRule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.ConnectorRuleManagementAPI.DeleteConnectorRule(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorRuleManagementAPI.DeleteConnectorRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -228,7 +228,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -236,18 +236,18 @@ import ( func main() { id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | ID of the connector rule to get. # string | ID of the connector rule to get. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorRuleManagementAPI.GetConnectorRule(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.ConnectorRuleManagementAPI.GetConnectorRule(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorRuleManagementAPI.GetConnectorRule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetConnectorRule`: ConnectorRuleResponse - fmt.Fprintf(os.Stdout, "Response from `ConnectorRuleManagementAPI.GetConnectorRule`: %v\n", resp) + //resp, r, err := apiClient.V2025.ConnectorRuleManagementAPI.GetConnectorRule(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorRuleManagementAPI.GetConnectorRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnectorRule`: ConnectorRuleResponse + fmt.Fprintf(os.Stdout, "Response from `ConnectorRuleManagementAPI.GetConnectorRule`: %v\n", resp) } ``` @@ -292,7 +292,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -302,18 +302,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorRuleManagementAPI.GetConnectorRuleList(context.Background()).Execute() - //resp, r, err := apiClient.V2025.ConnectorRuleManagementAPI.GetConnectorRuleList(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorRuleManagementAPI.GetConnectorRuleList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetConnectorRuleList`: []ConnectorRuleResponse - fmt.Fprintf(os.Stdout, "Response from `ConnectorRuleManagementAPI.GetConnectorRuleList`: %v\n", resp) + //resp, r, err := apiClient.V2025.ConnectorRuleManagementAPI.GetConnectorRuleList(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorRuleManagementAPI.GetConnectorRuleList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnectorRuleList`: []ConnectorRuleResponse + fmt.Fprintf(os.Stdout, "Response from `ConnectorRuleManagementAPI.GetConnectorRuleList`: %v\n", resp) } ``` @@ -361,7 +361,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -396,18 +396,18 @@ func main() { "type" : "BuildMap" }`) // ConnectorRuleUpdateRequest | Connector rule with updated data. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorRuleManagementAPI.PutConnectorRule(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.ConnectorRuleManagementAPI.PutConnectorRule(context.Background(), id).ConnectorRuleUpdateRequest(connectorRuleUpdateRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorRuleManagementAPI.PutConnectorRule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutConnectorRule`: ConnectorRuleResponse - fmt.Fprintf(os.Stdout, "Response from `ConnectorRuleManagementAPI.PutConnectorRule`: %v\n", resp) + //resp, r, err := apiClient.V2025.ConnectorRuleManagementAPI.PutConnectorRule(context.Background(), id).ConnectorRuleUpdateRequest(connectorRuleUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorRuleManagementAPI.PutConnectorRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutConnectorRule`: ConnectorRuleResponse + fmt.Fprintf(os.Stdout, "Response from `ConnectorRuleManagementAPI.PutConnectorRule`: %v\n", resp) } ``` @@ -450,7 +450,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -461,24 +461,23 @@ func main() { "script" : "return \"Mr. \" + firstName;" }`) // SourceCode | Code to validate. - - var sourceCode v2025.SourceCode - if err := json.Unmarshal(sourcecode, &sourceCode); err != nil { - fmt.Println("Error:", err) - return - } - + var sourceCode v2025.SourceCode + if err := json.Unmarshal(sourcecode, &sourceCode); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorRuleManagementAPI.TestConnectorRule(context.Background()).SourceCode(sourceCode).Execute() - //resp, r, err := apiClient.V2025.ConnectorRuleManagementAPI.TestConnectorRule(context.Background()).SourceCode(sourceCode).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorRuleManagementAPI.TestConnectorRule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `TestConnectorRule`: ConnectorRuleValidationResponse - fmt.Fprintf(os.Stdout, "Response from `ConnectorRuleManagementAPI.TestConnectorRule`: %v\n", resp) + //resp, r, err := apiClient.V2025.ConnectorRuleManagementAPI.TestConnectorRule(context.Background()).SourceCode(sourceCode).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorRuleManagementAPI.TestConnectorRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TestConnectorRule`: ConnectorRuleValidationResponse + fmt.Fprintf(os.Stdout, "Response from `ConnectorRuleManagementAPI.TestConnectorRule`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/ConnectorsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/ConnectorsAPI.md index dcc0fd06c..9ea313ce9 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/ConnectorsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/ConnectorsAPI.md @@ -81,7 +81,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -95,24 +95,23 @@ func main() { "status" : "RELEASED" }`) // V3CreateConnectorDto | - - var v3CreateConnectorDto v2025.V3CreateConnectorDto - if err := json.Unmarshal(v3createconnectordto, &v3CreateConnectorDto); err != nil { - fmt.Println("Error:", err) - return - } - + var v3CreateConnectorDto v2025.V3CreateConnectorDto + if err := json.Unmarshal(v3createconnectordto, &v3CreateConnectorDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorsAPI.CreateCustomConnector(context.Background()).V3CreateConnectorDto(v3CreateConnectorDto).Execute() - //resp, r, err := apiClient.V2025.ConnectorsAPI.CreateCustomConnector(context.Background()).V3CreateConnectorDto(v3CreateConnectorDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.CreateCustomConnector``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateCustomConnector`: V3ConnectorDto - fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.CreateCustomConnector`: %v\n", resp) + //resp, r, err := apiClient.V2025.ConnectorsAPI.CreateCustomConnector(context.Background()).V3CreateConnectorDto(v3CreateConnectorDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.CreateCustomConnector``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCustomConnector`: V3ConnectorDto + fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.CreateCustomConnector`: %v\n", resp) } ``` @@ -159,7 +158,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -167,16 +166,17 @@ import ( func main() { scriptName := `aScriptName` // string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.ConnectorsAPI.DeleteCustomConnector(context.Background(), scriptName).Execute() - //r, err := apiClient.V2025.ConnectorsAPI.DeleteCustomConnector(context.Background(), scriptName).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.DeleteCustomConnector``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.ConnectorsAPI.DeleteCustomConnector(context.Background(), scriptName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.DeleteCustomConnector``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -224,7 +224,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -233,18 +233,18 @@ func main() { scriptName := `aScriptName` // string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. locale := `de` // string | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) # string | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnector(context.Background(), scriptName).Execute() - //resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnector(context.Background(), scriptName).Locale(locale).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.GetConnector``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetConnector`: ConnectorDetail - fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.GetConnector`: %v\n", resp) + //resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnector(context.Background(), scriptName).Locale(locale).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.GetConnector``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnector`: ConnectorDetail + fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.GetConnector`: %v\n", resp) } ``` @@ -291,7 +291,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -299,18 +299,18 @@ import ( func main() { scriptName := `aScriptName` // string | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. # string | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnectorCorrelationConfig(context.Background(), scriptName).Execute() - //resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnectorCorrelationConfig(context.Background(), scriptName).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.GetConnectorCorrelationConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetConnectorCorrelationConfig`: string - fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.GetConnectorCorrelationConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnectorCorrelationConfig(context.Background(), scriptName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.GetConnectorCorrelationConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnectorCorrelationConfig`: string + fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.GetConnectorCorrelationConfig`: %v\n", resp) } ``` @@ -357,7 +357,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -369,18 +369,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) locale := `de` // string | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) # string | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnectorList(context.Background()).Execute() - //resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnectorList(context.Background()).Filters(filters).Limit(limit).Offset(offset).Count(count).Locale(locale).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.GetConnectorList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetConnectorList`: []V3ConnectorDto - fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.GetConnectorList`: %v\n", resp) + //resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnectorList(context.Background()).Filters(filters).Limit(limit).Offset(offset).Count(count).Locale(locale).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.GetConnectorList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnectorList`: []V3ConnectorDto + fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.GetConnectorList`: %v\n", resp) } ``` @@ -427,7 +427,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -435,18 +435,18 @@ import ( func main() { scriptName := `aScriptName` // string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnectorSourceConfig(context.Background(), scriptName).Execute() - //resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnectorSourceConfig(context.Background(), scriptName).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.GetConnectorSourceConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetConnectorSourceConfig`: string - fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.GetConnectorSourceConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnectorSourceConfig(context.Background(), scriptName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.GetConnectorSourceConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnectorSourceConfig`: string + fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.GetConnectorSourceConfig`: %v\n", resp) } ``` @@ -493,7 +493,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -501,18 +501,18 @@ import ( func main() { scriptName := `aScriptName` // string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnectorSourceTemplate(context.Background(), scriptName).Execute() - //resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnectorSourceTemplate(context.Background(), scriptName).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.GetConnectorSourceTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetConnectorSourceTemplate`: string - fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.GetConnectorSourceTemplate`: %v\n", resp) + //resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnectorSourceTemplate(context.Background(), scriptName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.GetConnectorSourceTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnectorSourceTemplate`: string + fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.GetConnectorSourceTemplate`: %v\n", resp) } ``` @@ -561,7 +561,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -570,18 +570,18 @@ func main() { scriptName := `aScriptName` // string | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. # string | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. locale := `de` // string | The locale to apply to the config. If no viable locale is given, it will default to \"en\" # string | The locale to apply to the config. If no viable locale is given, it will default to \"en\" - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnectorTranslations(context.Background(), scriptName, locale).Execute() - //resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnectorTranslations(context.Background(), scriptName, locale).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.GetConnectorTranslations``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetConnectorTranslations`: string - fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.GetConnectorTranslations`: %v\n", resp) + //resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnectorTranslations(context.Background(), scriptName, locale).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.GetConnectorTranslations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnectorTranslations`: string + fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.GetConnectorTranslations`: %v\n", resp) } ``` @@ -629,7 +629,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -638,18 +638,18 @@ func main() { scriptName := `aScriptName` // string | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. # string | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. file := BINARY_DATA_HERE // *os.File | connector correlation config xml file # *os.File | connector correlation config xml file - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorsAPI.PutConnectorCorrelationConfig(context.Background(), scriptName).File(file).Execute() - //resp, r, err := apiClient.V2025.ConnectorsAPI.PutConnectorCorrelationConfig(context.Background(), scriptName).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.PutConnectorCorrelationConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutConnectorCorrelationConfig`: UpdateDetail - fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.PutConnectorCorrelationConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.ConnectorsAPI.PutConnectorCorrelationConfig(context.Background(), scriptName).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.PutConnectorCorrelationConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutConnectorCorrelationConfig`: UpdateDetail + fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.PutConnectorCorrelationConfig`: %v\n", resp) } ``` @@ -697,7 +697,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -706,18 +706,18 @@ func main() { scriptName := `aScriptName` // string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. file := BINARY_DATA_HERE // *os.File | connector source config xml file # *os.File | connector source config xml file - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorsAPI.PutConnectorSourceConfig(context.Background(), scriptName).File(file).Execute() - //resp, r, err := apiClient.V2025.ConnectorsAPI.PutConnectorSourceConfig(context.Background(), scriptName).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.PutConnectorSourceConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutConnectorSourceConfig`: UpdateDetail - fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.PutConnectorSourceConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.ConnectorsAPI.PutConnectorSourceConfig(context.Background(), scriptName).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.PutConnectorSourceConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutConnectorSourceConfig`: UpdateDetail + fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.PutConnectorSourceConfig`: %v\n", resp) } ``` @@ -765,7 +765,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -774,18 +774,18 @@ func main() { scriptName := `aScriptName` // string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. file := BINARY_DATA_HERE // *os.File | connector source template xml file # *os.File | connector source template xml file - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorsAPI.PutConnectorSourceTemplate(context.Background(), scriptName).File(file).Execute() - //resp, r, err := apiClient.V2025.ConnectorsAPI.PutConnectorSourceTemplate(context.Background(), scriptName).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.PutConnectorSourceTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutConnectorSourceTemplate`: UpdateDetail - fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.PutConnectorSourceTemplate`: %v\n", resp) + //resp, r, err := apiClient.V2025.ConnectorsAPI.PutConnectorSourceTemplate(context.Background(), scriptName).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.PutConnectorSourceTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutConnectorSourceTemplate`: UpdateDetail + fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.PutConnectorSourceTemplate`: %v\n", resp) } ``` @@ -834,7 +834,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -843,18 +843,18 @@ func main() { scriptName := `aScriptName` // string | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. # string | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. locale := `de` // string | The locale to apply to the config. If no viable locale is given, it will default to \"en\" # string | The locale to apply to the config. If no viable locale is given, it will default to \"en\" - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorsAPI.PutConnectorTranslations(context.Background(), scriptName, locale).Execute() - //resp, r, err := apiClient.V2025.ConnectorsAPI.PutConnectorTranslations(context.Background(), scriptName, locale).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.PutConnectorTranslations``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutConnectorTranslations`: UpdateDetail - fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.PutConnectorTranslations`: %v\n", resp) + //resp, r, err := apiClient.V2025.ConnectorsAPI.PutConnectorTranslations(context.Background(), scriptName, locale).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.PutConnectorTranslations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutConnectorTranslations`: UpdateDetail + fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.PutConnectorTranslations`: %v\n", resp) } ``` @@ -914,7 +914,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -923,24 +923,23 @@ func main() { scriptName := `aScriptName` // string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. jsonpatchoperation := []byte(``) // []JsonPatchOperation | A list of connector detail update operations - - var jsonPatchOperation v2025.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2025.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorsAPI.UpdateConnector(context.Background(), scriptName).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2025.ConnectorsAPI.UpdateConnector(context.Background(), scriptName).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.UpdateConnector``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateConnector`: ConnectorDetail - fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.UpdateConnector`: %v\n", resp) + //resp, r, err := apiClient.V2025.ConnectorsAPI.UpdateConnector(context.Background(), scriptName).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.UpdateConnector``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateConnector`: ConnectorDetail + fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.UpdateConnector`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/CustomFormsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/CustomFormsAPI.md index 6dfdad4fe..20db6c2e3 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/CustomFormsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/CustomFormsAPI.md @@ -80,7 +80,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -198,18 +198,18 @@ func main() { } ] }`) // CreateFormDefinitionRequest | Body is the request payload to create form definition request (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.CreateFormDefinition(context.Background()).Execute() - //resp, r, err := apiClient.V2025.CustomFormsAPI.CreateFormDefinition(context.Background()).Body(body).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.CreateFormDefinition``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateFormDefinition`: FormDefinitionResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.CreateFormDefinition`: %v\n", resp) + //resp, r, err := apiClient.V2025.CustomFormsAPI.CreateFormDefinition(context.Background()).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.CreateFormDefinition``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateFormDefinition`: FormDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.CreateFormDefinition`: %v\n", resp) } ``` @@ -252,7 +252,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -268,18 +268,18 @@ func main() { "versionNumber" : 1 }`) // FormDefinitionDynamicSchemaRequest | Body is the request payload to create a form definition dynamic schema (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.CreateFormDefinitionDynamicSchema(context.Background()).Execute() - //resp, r, err := apiClient.V2025.CustomFormsAPI.CreateFormDefinitionDynamicSchema(context.Background()).Body(body).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.CreateFormDefinitionDynamicSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateFormDefinitionDynamicSchema`: FormDefinitionDynamicSchemaResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.CreateFormDefinitionDynamicSchema`: %v\n", resp) + //resp, r, err := apiClient.V2025.CustomFormsAPI.CreateFormDefinitionDynamicSchema(context.Background()).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.CreateFormDefinitionDynamicSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateFormDefinitionDynamicSchema`: FormDefinitionDynamicSchemaResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.CreateFormDefinitionDynamicSchema`: %v\n", resp) } ``` @@ -327,7 +327,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -336,18 +336,18 @@ func main() { formDefinitionID := `00000000-0000-0000-0000-000000000000` // string | FormDefinitionID String specifying FormDefinitionID # string | FormDefinitionID String specifying FormDefinitionID file := BINARY_DATA_HERE // *os.File | File specifying the multipart # *os.File | File specifying the multipart - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.CreateFormDefinitionFileRequest(context.Background(), formDefinitionID).File(file).Execute() - //resp, r, err := apiClient.V2025.CustomFormsAPI.CreateFormDefinitionFileRequest(context.Background(), formDefinitionID).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.CreateFormDefinitionFileRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateFormDefinitionFileRequest`: FormDefinitionFileUploadResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.CreateFormDefinitionFileRequest`: %v\n", resp) + //resp, r, err := apiClient.V2025.CustomFormsAPI.CreateFormDefinitionFileRequest(context.Background(), formDefinitionID).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.CreateFormDefinitionFileRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateFormDefinitionFileRequest`: FormDefinitionFileUploadResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.CreateFormDefinitionFileRequest`: %v\n", resp) } ``` @@ -390,7 +390,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -418,18 +418,18 @@ func main() { "ttl" : 1571827560 }`) // CreateFormInstanceRequest | Body is the request payload to create a form instance (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.CreateFormInstance(context.Background()).Execute() - //resp, r, err := apiClient.V2025.CustomFormsAPI.CreateFormInstance(context.Background()).Body(body).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.CreateFormInstance``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateFormInstance`: FormInstanceResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.CreateFormInstance`: %v\n", resp) + //resp, r, err := apiClient.V2025.CustomFormsAPI.CreateFormInstance(context.Background()).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.CreateFormInstance``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateFormInstance`: FormInstanceResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.CreateFormInstance`: %v\n", resp) } ``` @@ -476,7 +476,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -484,18 +484,18 @@ import ( func main() { formDefinitionID := `00000000-0000-0000-0000-000000000000` // string | Form definition ID # string | Form definition ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.DeleteFormDefinition(context.Background(), formDefinitionID).Execute() - //resp, r, err := apiClient.V2025.CustomFormsAPI.DeleteFormDefinition(context.Background(), formDefinitionID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.DeleteFormDefinition``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteFormDefinition`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.DeleteFormDefinition`: %v\n", resp) + //resp, r, err := apiClient.V2025.CustomFormsAPI.DeleteFormDefinition(context.Background(), formDefinitionID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.DeleteFormDefinition``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteFormDefinition`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.DeleteFormDefinition`: %v\n", resp) } ``` @@ -541,7 +541,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -552,18 +552,18 @@ func main() { filters := `name sw "my form"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *eq, gt, sw, in* **description**: *eq, gt, sw, in* **created**: *eq, gt, sw, in* **modified**: *eq, gt, sw, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *eq, gt, sw, in* **description**: *eq, gt, sw, in* **created**: *eq, gt, sw, in* **modified**: *eq, gt, sw, in* (optional) sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, description, created, modified** (optional) (default to "name") # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, description, created, modified** (optional) (default to "name") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.ExportFormDefinitionsByTenant(context.Background()).Execute() - //resp, r, err := apiClient.V2025.CustomFormsAPI.ExportFormDefinitionsByTenant(context.Background()).Offset(offset).Limit(limit).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.ExportFormDefinitionsByTenant``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExportFormDefinitionsByTenant`: []ExportFormDefinitionsByTenant200ResponseInner - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.ExportFormDefinitionsByTenant`: %v\n", resp) + //resp, r, err := apiClient.V2025.CustomFormsAPI.ExportFormDefinitionsByTenant(context.Background()).Offset(offset).Limit(limit).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.ExportFormDefinitionsByTenant``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExportFormDefinitionsByTenant`: []ExportFormDefinitionsByTenant200ResponseInner + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.ExportFormDefinitionsByTenant`: %v\n", resp) } ``` @@ -612,7 +612,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -621,18 +621,18 @@ func main() { formDefinitionID := `00000000-0000-0000-0000-000000000000` // string | FormDefinitionID Form definition ID # string | FormDefinitionID Form definition ID fileID := `00000031N0J7R2B57M8YG73J7M.png` // string | FileID String specifying the hashed name of the uploaded file we are retrieving. # string | FileID String specifying the hashed name of the uploaded file we are retrieving. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.GetFileFromS3(context.Background(), formDefinitionID, fileID).Execute() - //resp, r, err := apiClient.V2025.CustomFormsAPI.GetFileFromS3(context.Background(), formDefinitionID, fileID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.GetFileFromS3``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetFileFromS3`: *os.File - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.GetFileFromS3`: %v\n", resp) + //resp, r, err := apiClient.V2025.CustomFormsAPI.GetFileFromS3(context.Background(), formDefinitionID, fileID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.GetFileFromS3``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetFileFromS3`: *os.File + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.GetFileFromS3`: %v\n", resp) } ``` @@ -679,7 +679,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -687,18 +687,18 @@ import ( func main() { formDefinitionID := `00000000-0000-0000-0000-000000000000` // string | Form definition ID # string | Form definition ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.GetFormDefinitionByKey(context.Background(), formDefinitionID).Execute() - //resp, r, err := apiClient.V2025.CustomFormsAPI.GetFormDefinitionByKey(context.Background(), formDefinitionID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.GetFormDefinitionByKey``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetFormDefinitionByKey`: FormDefinitionResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.GetFormDefinitionByKey`: %v\n", resp) + //resp, r, err := apiClient.V2025.CustomFormsAPI.GetFormDefinitionByKey(context.Background(), formDefinitionID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.GetFormDefinitionByKey``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetFormDefinitionByKey`: FormDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.GetFormDefinitionByKey`: %v\n", resp) } ``` @@ -745,7 +745,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -753,18 +753,18 @@ import ( func main() { formInstanceID := `00000000-0000-0000-0000-000000000000` // string | Form instance ID # string | Form instance ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.GetFormInstanceByKey(context.Background(), formInstanceID).Execute() - //resp, r, err := apiClient.V2025.CustomFormsAPI.GetFormInstanceByKey(context.Background(), formInstanceID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.GetFormInstanceByKey``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetFormInstanceByKey`: FormInstanceResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.GetFormInstanceByKey`: %v\n", resp) + //resp, r, err := apiClient.V2025.CustomFormsAPI.GetFormInstanceByKey(context.Background(), formInstanceID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.GetFormInstanceByKey``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetFormInstanceByKey`: FormInstanceResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.GetFormInstanceByKey`: %v\n", resp) } ``` @@ -813,7 +813,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -822,18 +822,18 @@ func main() { formInstanceID := `00000000-0000-0000-0000-000000000000` // string | FormInstanceID Form instance ID # string | FormInstanceID Form instance ID fileID := `00000031N0J7R2B57M8YG73J7M.png` // string | FileID String specifying the hashed name of the uploaded file we are retrieving. # string | FileID String specifying the hashed name of the uploaded file we are retrieving. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.GetFormInstanceFile(context.Background(), formInstanceID, fileID).Execute() - //resp, r, err := apiClient.V2025.CustomFormsAPI.GetFormInstanceFile(context.Background(), formInstanceID, fileID).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.GetFormInstanceFile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetFormInstanceFile`: *os.File - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.GetFormInstanceFile`: %v\n", resp) + //resp, r, err := apiClient.V2025.CustomFormsAPI.GetFormInstanceFile(context.Background(), formInstanceID, fileID).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.GetFormInstanceFile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetFormInstanceFile`: *os.File + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.GetFormInstanceFile`: %v\n", resp) } ``` @@ -876,7 +876,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -884,18 +884,18 @@ import ( func main() { body := []byte(`[{version=1, self={name=All fields not required, id=05ed4edb-d0a9-41d9-ad0c-2f6e486ec4aa, type=FORM_DEFINITION}, object={id=05ed4edb-d0a9-41d9-ad0c-2f6e486ec4aa, name=All fields not required, description=description, owner={type=IDENTITY, id=3447d8ec2602455ab6f1e8408a0f0150}, usedBy=[{type=WORKFLOW, id=5008594c-dacc-4295-8fee-41df60477304}, {type=WORKFLOW, id=97e75a75-c179-4fbc-a2da-b5fa4aaa8743}], formInput=[{type=STRING, label=input1, description=A single dynamic scalar value (i.e. number, string, date, etc) that can be passed into the form for use in conditional logic}], formElements=[{id=3069272797630701, elementType=SECTION, config={label=First Section, formElements=[{id=3069272797630700, elementType=TEXT, key=firstName, config={label=First Name}}, {id=3498415402897539, elementType=TEXT, key=lastName, config={label=Last Name}}]}}], formConditions=[{ruleOperator=AND, rules=[{sourceType=INPUT, source=Department, operator=EQ, valueType=STRING, value=Sales}], effects=[{effectType=HIDE, config={element=2614088730489570}}]}], created=2022-10-04T19:27:04.456Z, modified=2022-11-16T20:45:02.172Z}}]`) // []ImportFormDefinitionsRequestInner | Body is the request payload to import form definitions (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.ImportFormDefinitions(context.Background()).Execute() - //resp, r, err := apiClient.V2025.CustomFormsAPI.ImportFormDefinitions(context.Background()).Body(body).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.ImportFormDefinitions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportFormDefinitions`: ImportFormDefinitions202Response - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.ImportFormDefinitions`: %v\n", resp) + //resp, r, err := apiClient.V2025.CustomFormsAPI.ImportFormDefinitions(context.Background()).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.ImportFormDefinitions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportFormDefinitions`: ImportFormDefinitions202Response + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.ImportFormDefinitions`: %v\n", resp) } ``` @@ -943,7 +943,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -952,18 +952,18 @@ func main() { formDefinitionID := `00000000-0000-0000-0000-000000000000` // string | Form definition ID # string | Form definition ID body := []byte(`[{op=replace, path=/description, value=test-description}]`) // []map[string]map[string]interface{} | Body is the request payload to patch a form definition, check: https://jsonpatch.com (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.PatchFormDefinition(context.Background(), formDefinitionID).Execute() - //resp, r, err := apiClient.V2025.CustomFormsAPI.PatchFormDefinition(context.Background(), formDefinitionID).Body(body).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.PatchFormDefinition``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchFormDefinition`: FormDefinitionResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.PatchFormDefinition`: %v\n", resp) + //resp, r, err := apiClient.V2025.CustomFormsAPI.PatchFormDefinition(context.Background(), formDefinitionID).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.PatchFormDefinition``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchFormDefinition`: FormDefinitionResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.PatchFormDefinition`: %v\n", resp) } ``` @@ -1011,7 +1011,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1020,18 +1020,18 @@ func main() { formInstanceID := `00000000-0000-0000-0000-000000000000` // string | Form instance ID # string | Form instance ID body := []byte(`[{op=replace, path=/state, value=SUBMITTED}, {op=replace, path=/formData, value={a-key-1=a-value-1, a-key-2=true, a-key-3=1}}]`) // []map[string]map[string]interface{} | Body is the request payload to patch a form instance, check: https://jsonpatch.com (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.PatchFormInstance(context.Background(), formInstanceID).Execute() - //resp, r, err := apiClient.V2025.CustomFormsAPI.PatchFormInstance(context.Background(), formInstanceID).Body(body).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.PatchFormInstance``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchFormInstance`: FormInstanceResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.PatchFormInstance`: %v\n", resp) + //resp, r, err := apiClient.V2025.CustomFormsAPI.PatchFormInstance(context.Background(), formInstanceID).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.PatchFormInstance``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchFormInstance`: FormInstanceResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.PatchFormInstance`: %v\n", resp) } ``` @@ -1077,7 +1077,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1088,18 +1088,18 @@ func main() { filters := `name sw "my form"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *eq, gt, sw, in* **description**: *eq, gt, sw, in* **created**: *eq, gt, sw, in* **modified**: *eq, gt, sw, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *eq, gt, sw, in* **description**: *eq, gt, sw, in* **created**: *eq, gt, sw, in* **modified**: *eq, gt, sw, in* (optional) sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, description, created, modified** (optional) (default to "name") # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, description, created, modified** (optional) (default to "name") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.SearchFormDefinitionsByTenant(context.Background()).Execute() - //resp, r, err := apiClient.V2025.CustomFormsAPI.SearchFormDefinitionsByTenant(context.Background()).Offset(offset).Limit(limit).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.SearchFormDefinitionsByTenant``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SearchFormDefinitionsByTenant`: ListFormDefinitionsByTenantResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.SearchFormDefinitionsByTenant`: %v\n", resp) + //resp, r, err := apiClient.V2025.CustomFormsAPI.SearchFormDefinitionsByTenant(context.Background()).Offset(offset).Limit(limit).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.SearchFormDefinitionsByTenant``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchFormDefinitionsByTenant`: ListFormDefinitionsByTenantResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.SearchFormDefinitionsByTenant`: %v\n", resp) } ``` @@ -1152,7 +1152,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1164,18 +1164,18 @@ func main() { filters := `value eq "ID01"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **value**: *eq, ne, in* Supported composite operators: *not* Only a single *not* may be used, and it can only be used with the `in` operator. The `not` composite operator must be used in front of the field. For example, the following is valid: `not value in (\"ID01\")` (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **value**: *eq, ne, in* Supported composite operators: *not* Only a single *not* may be used, and it can only be used with the `in` operator. The `not` composite operator must be used in front of the field. For example, the following is valid: `not value in (\"ID01\")` (optional) query := `support` // string | String that is passed to the underlying API to filter other (non-ID) fields. For example, for access profile data sources, this string will be passed to the access profile api and used with a \"starts with\" filter against several fields. (optional) # string | String that is passed to the underlying API to filter other (non-ID) fields. For example, for access profile data sources, this string will be passed to the access profile api and used with a \"starts with\" filter against several fields. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.SearchFormElementDataByElementID(context.Background(), formInstanceID, formElementID).Execute() - //resp, r, err := apiClient.V2025.CustomFormsAPI.SearchFormElementDataByElementID(context.Background(), formInstanceID, formElementID).Limit(limit).Filters(filters).Query(query).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.SearchFormElementDataByElementID``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SearchFormElementDataByElementID`: ListFormElementDataByElementIDResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.SearchFormElementDataByElementID`: %v\n", resp) + //resp, r, err := apiClient.V2025.CustomFormsAPI.SearchFormElementDataByElementID(context.Background(), formInstanceID, formElementID).Limit(limit).Filters(filters).Query(query).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.SearchFormElementDataByElementID``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchFormElementDataByElementID`: ListFormElementDataByElementIDResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.SearchFormElementDataByElementID`: %v\n", resp) } ``` @@ -1214,25 +1214,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.SearchFormInstancesByTenant(context.Background()).Execute() - //resp, r, err := apiClient.V2025.CustomFormsAPI.SearchFormInstancesByTenant(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.SearchFormInstancesByTenant``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SearchFormInstancesByTenant`: []ListFormInstancesByTenantResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.SearchFormInstancesByTenant`: %v\n", resp) + //resp, r, err := apiClient.V2025.CustomFormsAPI.SearchFormInstancesByTenant(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.SearchFormInstancesByTenant``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchFormInstancesByTenant`: []ListFormInstancesByTenantResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.SearchFormInstancesByTenant`: %v\n", resp) } ``` @@ -1271,25 +1271,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.SearchPreDefinedSelectOptions(context.Background()).Execute() - //resp, r, err := apiClient.V2025.CustomFormsAPI.SearchPreDefinedSelectOptions(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.SearchPreDefinedSelectOptions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SearchPreDefinedSelectOptions`: ListPredefinedSelectOptionsResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.SearchPreDefinedSelectOptions`: %v\n", resp) + //resp, r, err := apiClient.V2025.CustomFormsAPI.SearchPreDefinedSelectOptions(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.SearchPreDefinedSelectOptions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchPreDefinedSelectOptions`: ListPredefinedSelectOptionsResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.SearchPreDefinedSelectOptions`: %v\n", resp) } ``` @@ -1340,7 +1340,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1362,18 +1362,18 @@ func main() { } }`) // FormElementPreviewRequest | Body is the request payload to create a form definition dynamic schema (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.ShowPreviewDataSource(context.Background(), formDefinitionID).Execute() - //resp, r, err := apiClient.V2025.CustomFormsAPI.ShowPreviewDataSource(context.Background(), formDefinitionID).Limit(limit).Filters(filters).Query(query).FormElementPreviewRequest(formElementPreviewRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.ShowPreviewDataSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ShowPreviewDataSource`: PreviewDataSourceResponse - fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.ShowPreviewDataSource`: %v\n", resp) + //resp, r, err := apiClient.V2025.CustomFormsAPI.ShowPreviewDataSource(context.Background(), formDefinitionID).Limit(limit).Filters(filters).Query(query).FormElementPreviewRequest(formElementPreviewRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomFormsAPI.ShowPreviewDataSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ShowPreviewDataSource`: PreviewDataSourceResponse + fmt.Fprintf(os.Stdout, "Response from `CustomFormsAPI.ShowPreviewDataSource`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/CustomPasswordInstructionsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/CustomPasswordInstructionsAPI.md index 1cad99286..b4ed870ec 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/CustomPasswordInstructionsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/CustomPasswordInstructionsAPI.md @@ -80,7 +80,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -93,24 +93,23 @@ func main() { "locale" : "en" }`) // CustomPasswordInstruction | - - var customPasswordInstruction v2025.CustomPasswordInstruction - if err := json.Unmarshal(custompasswordinstruction, &customPasswordInstruction); err != nil { - fmt.Println("Error:", err) - return - } - + var customPasswordInstruction v2025.CustomPasswordInstruction + if err := json.Unmarshal(custompasswordinstruction, &customPasswordInstruction); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomPasswordInstructionsAPI.CreateCustomPasswordInstructions(context.Background()).XSailPointExperimental(xSailPointExperimental).CustomPasswordInstruction(customPasswordInstruction).Execute() - //resp, r, err := apiClient.V2025.CustomPasswordInstructionsAPI.CreateCustomPasswordInstructions(context.Background()).XSailPointExperimental(xSailPointExperimental).CustomPasswordInstruction(customPasswordInstruction).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomPasswordInstructionsAPI.CreateCustomPasswordInstructions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateCustomPasswordInstructions`: CustomPasswordInstruction - fmt.Fprintf(os.Stdout, "Response from `CustomPasswordInstructionsAPI.CreateCustomPasswordInstructions`: %v\n", resp) + //resp, r, err := apiClient.V2025.CustomPasswordInstructionsAPI.CreateCustomPasswordInstructions(context.Background()).XSailPointExperimental(xSailPointExperimental).CustomPasswordInstruction(customPasswordInstruction).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomPasswordInstructionsAPI.CreateCustomPasswordInstructions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCustomPasswordInstructions`: CustomPasswordInstruction + fmt.Fprintf(os.Stdout, "Response from `CustomPasswordInstructionsAPI.CreateCustomPasswordInstructions`: %v\n", resp) } ``` @@ -170,7 +169,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -180,16 +179,17 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") locale := `locale_example` // string | The locale for the custom instructions, a BCP47 language tag. The default value is \\\"default\\\". (optional) # string | The locale for the custom instructions, a BCP47 language tag. The default value is \\\"default\\\". (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.CustomPasswordInstructionsAPI.DeleteCustomPasswordInstructions(context.Background(), pageId).XSailPointExperimental(xSailPointExperimental).Execute() - //r, err := apiClient.V2025.CustomPasswordInstructionsAPI.DeleteCustomPasswordInstructions(context.Background(), pageId).XSailPointExperimental(xSailPointExperimental).Locale(locale).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomPasswordInstructionsAPI.DeleteCustomPasswordInstructions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.CustomPasswordInstructionsAPI.DeleteCustomPasswordInstructions(context.Background(), pageId).XSailPointExperimental(xSailPointExperimental).Locale(locale).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomPasswordInstructionsAPI.DeleteCustomPasswordInstructions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -249,7 +249,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -259,18 +259,18 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") locale := `locale_example` // string | The locale for the custom instructions, a BCP47 language tag. The default value is \\\"default\\\". (optional) # string | The locale for the custom instructions, a BCP47 language tag. The default value is \\\"default\\\". (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomPasswordInstructionsAPI.GetCustomPasswordInstructions(context.Background(), pageId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.CustomPasswordInstructionsAPI.GetCustomPasswordInstructions(context.Background(), pageId).XSailPointExperimental(xSailPointExperimental).Locale(locale).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CustomPasswordInstructionsAPI.GetCustomPasswordInstructions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCustomPasswordInstructions`: CustomPasswordInstruction - fmt.Fprintf(os.Stdout, "Response from `CustomPasswordInstructionsAPI.GetCustomPasswordInstructions`: %v\n", resp) + //resp, r, err := apiClient.V2025.CustomPasswordInstructionsAPI.GetCustomPasswordInstructions(context.Background(), pageId).XSailPointExperimental(xSailPointExperimental).Locale(locale).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomPasswordInstructionsAPI.GetCustomPasswordInstructions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCustomPasswordInstructions`: CustomPasswordInstruction + fmt.Fprintf(os.Stdout, "Response from `CustomPasswordInstructionsAPI.GetCustomPasswordInstructions`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/DataSegmentationAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/DataSegmentationAPI.md index 28118e567..6c84d3a02 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/DataSegmentationAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/DataSegmentationAPI.md @@ -65,7 +65,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -73,24 +73,23 @@ import ( func main() { datasegment := []byte(``) // DataSegment | - - var dataSegment v2025.DataSegment - if err := json.Unmarshal(datasegment, &dataSegment); err != nil { - fmt.Println("Error:", err) - return - } - + var dataSegment v2025.DataSegment + if err := json.Unmarshal(datasegment, &dataSegment); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.DataSegmentationAPI.CreateDataSegment(context.Background()).DataSegment(dataSegment).Execute() - //resp, r, err := apiClient.V2025.DataSegmentationAPI.CreateDataSegment(context.Background()).DataSegment(dataSegment).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DataSegmentationAPI.CreateDataSegment``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateDataSegment`: DataSegment - fmt.Fprintf(os.Stdout, "Response from `DataSegmentationAPI.CreateDataSegment`: %v\n", resp) + //resp, r, err := apiClient.V2025.DataSegmentationAPI.CreateDataSegment(context.Background()).DataSegment(dataSegment).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DataSegmentationAPI.CreateDataSegment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateDataSegment`: DataSegment + fmt.Fprintf(os.Stdout, "Response from `DataSegmentationAPI.CreateDataSegment`: %v\n", resp) } ``` @@ -150,7 +149,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -160,16 +159,17 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") published := false // bool | This determines which version of the segment to delete (optional) (default to false) # bool | This determines which version of the segment to delete (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.DataSegmentationAPI.DeleteDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //r, err := apiClient.V2025.DataSegmentationAPI.DeleteDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Published(published).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DataSegmentationAPI.DeleteDataSegment``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.DataSegmentationAPI.DeleteDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Published(published).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DataSegmentationAPI.DeleteDataSegment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -228,7 +228,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -237,18 +237,18 @@ func main() { id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The segment ID to retrieve. # string | The segment ID to retrieve. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.DataSegmentationAPI.GetDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.DataSegmentationAPI.GetDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DataSegmentationAPI.GetDataSegment``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetDataSegment`: DataSegment - fmt.Fprintf(os.Stdout, "Response from `DataSegmentationAPI.GetDataSegment`: %v\n", resp) + //resp, r, err := apiClient.V2025.DataSegmentationAPI.GetDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DataSegmentationAPI.GetDataSegment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDataSegment`: DataSegment + fmt.Fprintf(os.Stdout, "Response from `DataSegmentationAPI.GetDataSegment`: %v\n", resp) } ``` @@ -307,7 +307,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -316,18 +316,18 @@ func main() { identityId := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The identity ID to retrieve the segments they are in. # string | The identity ID to retrieve the segments they are in. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.DataSegmentationAPI.GetDataSegmentIdentityMembership(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.DataSegmentationAPI.GetDataSegmentIdentityMembership(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DataSegmentationAPI.GetDataSegmentIdentityMembership``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetDataSegmentIdentityMembership`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `DataSegmentationAPI.GetDataSegmentIdentityMembership`: %v\n", resp) + //resp, r, err := apiClient.V2025.DataSegmentationAPI.GetDataSegmentIdentityMembership(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DataSegmentationAPI.GetDataSegmentIdentityMembership``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDataSegmentIdentityMembership`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `DataSegmentationAPI.GetDataSegmentIdentityMembership`: %v\n", resp) } ``` @@ -386,7 +386,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -395,18 +395,18 @@ func main() { identityId := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The identity ID to retrieve if segmentation is enabled for the identity. # string | The identity ID to retrieve if segmentation is enabled for the identity. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.DataSegmentationAPI.GetDataSegmentationEnabledForUser(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.DataSegmentationAPI.GetDataSegmentationEnabledForUser(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DataSegmentationAPI.GetDataSegmentationEnabledForUser``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetDataSegmentationEnabledForUser`: bool - fmt.Fprintf(os.Stdout, "Response from `DataSegmentationAPI.GetDataSegmentationEnabledForUser`: %v\n", resp) + //resp, r, err := apiClient.V2025.DataSegmentationAPI.GetDataSegmentationEnabledForUser(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DataSegmentationAPI.GetDataSegmentationEnabledForUser``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDataSegmentationEnabledForUser`: bool + fmt.Fprintf(os.Stdout, "Response from `DataSegmentationAPI.GetDataSegmentationEnabledForUser`: %v\n", resp) } ``` @@ -467,7 +467,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -482,18 +482,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) filters := `name eq ""` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in, sw* **name**: *eq, in, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in, sw* **name**: *eq, in, sw* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.DataSegmentationAPI.ListDataSegments(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.DataSegmentationAPI.ListDataSegments(context.Background()).XSailPointExperimental(xSailPointExperimental).Enabled(enabled).Unique(unique).Published(published).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DataSegmentationAPI.ListDataSegments``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListDataSegments`: []DataSegment - fmt.Fprintf(os.Stdout, "Response from `DataSegmentationAPI.ListDataSegments`: %v\n", resp) + //resp, r, err := apiClient.V2025.DataSegmentationAPI.ListDataSegments(context.Background()).XSailPointExperimental(xSailPointExperimental).Enabled(enabled).Unique(unique).Published(published).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DataSegmentationAPI.ListDataSegments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListDataSegments`: []DataSegment + fmt.Fprintf(os.Stdout, "Response from `DataSegmentationAPI.ListDataSegments`: %v\n", resp) } ``` @@ -553,7 +553,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -563,24 +563,23 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") requestbody := []byte(`[{op=replace, path=/memberFilter, value={expression={operator=AND, children=[{operator=EQUALS, attribute=location, value={type=STRING, value=Philadelphia}}, {operator=EQUALS, attribute=department, value={type=STRING, value=HR}}]}}}]`) // []map[string]interface{} | A list of segment update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * membership * memberFilter * memberSelection * scopes * enabled - - var requestBody v2025.[]RequestBody - if err := json.Unmarshal(requestbody, &requestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var requestBody []v2025.RequestBody + if err := json.Unmarshal(requestbody, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.DataSegmentationAPI.PatchDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() - //resp, r, err := apiClient.V2025.DataSegmentationAPI.PatchDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DataSegmentationAPI.PatchDataSegment``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchDataSegment`: DataSegment - fmt.Fprintf(os.Stdout, "Response from `DataSegmentationAPI.PatchDataSegment`: %v\n", resp) + //resp, r, err := apiClient.V2025.DataSegmentationAPI.PatchDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DataSegmentationAPI.PatchDataSegment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchDataSegment`: DataSegment + fmt.Fprintf(os.Stdout, "Response from `DataSegmentationAPI.PatchDataSegment`: %v\n", resp) } ``` @@ -636,7 +635,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -646,22 +645,22 @@ func main() { requestbody := []byte(``) // []string | A list of segment ids that you wish to publish publishAll := true // bool | This flag decides whether you want to publish all unpublished or a list of specific segment ids (optional) (default to true) # bool | This flag decides whether you want to publish all unpublished or a list of specific segment ids (optional) (default to true) - - var requestBody v2025.[]RequestBody - if err := json.Unmarshal(requestbody, &requestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var requestBody []v2025.RequestBody + if err := json.Unmarshal(requestbody, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.DataSegmentationAPI.PublishDataSegment(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() - //r, err := apiClient.V2025.DataSegmentationAPI.PublishDataSegment(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).PublishAll(publishAll).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DataSegmentationAPI.PublishDataSegment``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.DataSegmentationAPI.PublishDataSegment(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).PublishAll(publishAll).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DataSegmentationAPI.PublishDataSegment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/DimensionsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/DimensionsAPI.md index e879b70e8..22a3877cf 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/DimensionsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/DimensionsAPI.md @@ -71,7 +71,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -166,24 +166,23 @@ func main() { "parentId" : "2c918086749d78830174a1a40e121518" }`) // Dimension | - - var dimension v2025.Dimension - if err := json.Unmarshal(dimension, &dimension); err != nil { - fmt.Println("Error:", err) - return - } - + var dimension v2025.Dimension + if err := json.Unmarshal(dimension, &dimension); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.DimensionsAPI.CreateDimension(context.Background(), roleId).Dimension(dimension).Execute() - //resp, r, err := apiClient.V2025.DimensionsAPI.CreateDimension(context.Background(), roleId).Dimension(dimension).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DimensionsAPI.CreateDimension``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateDimension`: Dimension - fmt.Fprintf(os.Stdout, "Response from `DimensionsAPI.CreateDimension`: %v\n", resp) + //resp, r, err := apiClient.V2025.DimensionsAPI.CreateDimension(context.Background(), roleId).Dimension(dimension).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DimensionsAPI.CreateDimension``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateDimension`: Dimension + fmt.Fprintf(os.Stdout, "Response from `DimensionsAPI.CreateDimension`: %v\n", resp) } ``` @@ -234,7 +233,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -245,24 +244,23 @@ func main() { "dimensionIds" : [ "2c9180847812e0b1017817051919ecca", "2c9180887812e0b201781e129f151816" ] }`) // DimensionBulkDeleteRequest | - - var dimensionBulkDeleteRequest v2025.DimensionBulkDeleteRequest - if err := json.Unmarshal(dimensionbulkdeleterequest, &dimensionBulkDeleteRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var dimensionBulkDeleteRequest v2025.DimensionBulkDeleteRequest + if err := json.Unmarshal(dimensionbulkdeleterequest, &dimensionBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.DimensionsAPI.DeleteBulkDimensions(context.Background(), roleId).DimensionBulkDeleteRequest(dimensionBulkDeleteRequest).Execute() - //resp, r, err := apiClient.V2025.DimensionsAPI.DeleteBulkDimensions(context.Background(), roleId).DimensionBulkDeleteRequest(dimensionBulkDeleteRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DimensionsAPI.DeleteBulkDimensions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteBulkDimensions`: TaskResultDto - fmt.Fprintf(os.Stdout, "Response from `DimensionsAPI.DeleteBulkDimensions`: %v\n", resp) + //resp, r, err := apiClient.V2025.DimensionsAPI.DeleteBulkDimensions(context.Background(), roleId).DimensionBulkDeleteRequest(dimensionBulkDeleteRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DimensionsAPI.DeleteBulkDimensions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteBulkDimensions`: TaskResultDto + fmt.Fprintf(os.Stdout, "Response from `DimensionsAPI.DeleteBulkDimensions`: %v\n", resp) } ``` @@ -312,7 +310,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -321,16 +319,17 @@ func main() { roleId := `6603fba3004f43c687610a29195252ce` // string | Parent Role Id of the dimension. # string | Parent Role Id of the dimension. dimensionId := `2c9180835d191a86015d28455b4a2329` // string | Id of the Dimension # string | Id of the Dimension - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.DimensionsAPI.DeleteDimension(context.Background(), roleId, dimensionId).Execute() - //r, err := apiClient.V2025.DimensionsAPI.DeleteDimension(context.Background(), roleId, dimensionId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DimensionsAPI.DeleteDimension``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.DimensionsAPI.DeleteDimension(context.Background(), roleId, dimensionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DimensionsAPI.DeleteDimension``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -381,7 +380,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -390,18 +389,18 @@ func main() { roleId := `6603fba3004f43c687610a29195252ce` // string | Parent Role Id of the dimension. # string | Parent Role Id of the dimension. dimensionId := `2c9180835d191a86015d28455b4a2329` // string | Id of the Dimension # string | Id of the Dimension - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.DimensionsAPI.GetDimension(context.Background(), roleId, dimensionId).Execute() - //resp, r, err := apiClient.V2025.DimensionsAPI.GetDimension(context.Background(), roleId, dimensionId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DimensionsAPI.GetDimension``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetDimension`: Dimension - fmt.Fprintf(os.Stdout, "Response from `DimensionsAPI.GetDimension`: %v\n", resp) + //resp, r, err := apiClient.V2025.DimensionsAPI.GetDimension(context.Background(), roleId, dimensionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DimensionsAPI.GetDimension``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDimension`: Dimension + fmt.Fprintf(os.Stdout, "Response from `DimensionsAPI.GetDimension`: %v\n", resp) } ``` @@ -457,7 +456,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -471,18 +470,18 @@ func main() { filters := `attribute eq "memberOf"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* (optional) sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, attribute, value, created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, attribute, value, created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.DimensionsAPI.GetDimensionEntitlements(context.Background(), roleId, dimensionId).Execute() - //resp, r, err := apiClient.V2025.DimensionsAPI.GetDimensionEntitlements(context.Background(), roleId, dimensionId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DimensionsAPI.GetDimensionEntitlements``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetDimensionEntitlements`: []Entitlement - fmt.Fprintf(os.Stdout, "Response from `DimensionsAPI.GetDimensionEntitlements`: %v\n", resp) + //resp, r, err := apiClient.V2025.DimensionsAPI.GetDimensionEntitlements(context.Background(), roleId, dimensionId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DimensionsAPI.GetDimensionEntitlements``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDimensionEntitlements`: []Entitlement + fmt.Fprintf(os.Stdout, "Response from `DimensionsAPI.GetDimensionEntitlements`: %v\n", resp) } ``` @@ -538,7 +537,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -552,18 +551,18 @@ func main() { filters := `source.id eq "2c91808982f979270182f99e386d00fa"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* (optional) sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.DimensionsAPI.ListDimensionAccessProfiles(context.Background(), roleId, dimensionId).Execute() - //resp, r, err := apiClient.V2025.DimensionsAPI.ListDimensionAccessProfiles(context.Background(), roleId, dimensionId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DimensionsAPI.ListDimensionAccessProfiles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListDimensionAccessProfiles`: []AccessProfile - fmt.Fprintf(os.Stdout, "Response from `DimensionsAPI.ListDimensionAccessProfiles`: %v\n", resp) + //resp, r, err := apiClient.V2025.DimensionsAPI.ListDimensionAccessProfiles(context.Background(), roleId, dimensionId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DimensionsAPI.ListDimensionAccessProfiles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListDimensionAccessProfiles`: []AccessProfile + fmt.Fprintf(os.Stdout, "Response from `DimensionsAPI.ListDimensionAccessProfiles`: %v\n", resp) } ``` @@ -618,7 +617,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -632,18 +631,18 @@ func main() { filters := `id eq '2c918086749d78830174a1a40e121518'` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* (optional) sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.DimensionsAPI.ListDimensions(context.Background(), roleId).Execute() - //resp, r, err := apiClient.V2025.DimensionsAPI.ListDimensions(context.Background(), roleId).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DimensionsAPI.ListDimensions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListDimensions`: []Dimension - fmt.Fprintf(os.Stdout, "Response from `DimensionsAPI.ListDimensions`: %v\n", resp) + //resp, r, err := apiClient.V2025.DimensionsAPI.ListDimensions(context.Background(), roleId).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DimensionsAPI.ListDimensions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListDimensions`: []Dimension + fmt.Fprintf(os.Stdout, "Response from `DimensionsAPI.ListDimensions`: %v\n", resp) } ``` @@ -697,7 +696,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -707,24 +706,23 @@ func main() { dimensionId := `2c9180835d191a86015d28455b4a2329` // string | Id of the Dimension # string | Id of the Dimension jsonpatchoperation := []byte(`[{op=replace, path=/description, value=Test Description}, {op=replace, path=/name, value=new name}]`) // []JsonPatchOperation | - - var jsonPatchOperation v2025.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2025.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.DimensionsAPI.PatchDimension(context.Background(), roleId, dimensionId).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2025.DimensionsAPI.PatchDimension(context.Background(), roleId, dimensionId).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DimensionsAPI.PatchDimension``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchDimension`: Dimension - fmt.Fprintf(os.Stdout, "Response from `DimensionsAPI.PatchDimension`: %v\n", resp) + //resp, r, err := apiClient.V2025.DimensionsAPI.PatchDimension(context.Background(), roleId, dimensionId).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DimensionsAPI.PatchDimension``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchDimension`: Dimension + fmt.Fprintf(os.Stdout, "Response from `DimensionsAPI.PatchDimension`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/EntitlementsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/EntitlementsAPI.md index b9f4e5fb0..c1621d917 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/EntitlementsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/EntitlementsAPI.md @@ -135,7 +135,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -146,18 +146,18 @@ func main() { attributeValue := `public` // string | Technical name of the Attribute Value. # string | Technical name of the Attribute Value. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.EntitlementsAPI.CreateAccessModelMetadataForEntitlement(context.Background(), id, attributeKey, attributeValue).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.EntitlementsAPI.CreateAccessModelMetadataForEntitlement(context.Background(), id, attributeKey, attributeValue).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.CreateAccessModelMetadataForEntitlement``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateAccessModelMetadataForEntitlement`: Entitlement - fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.CreateAccessModelMetadataForEntitlement`: %v\n", resp) + //resp, r, err := apiClient.V2025.EntitlementsAPI.CreateAccessModelMetadataForEntitlement(context.Background(), id, attributeKey, attributeValue).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.CreateAccessModelMetadataForEntitlement``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAccessModelMetadataForEntitlement`: Entitlement + fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.CreateAccessModelMetadataForEntitlement`: %v\n", resp) } ``` @@ -220,7 +220,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -231,16 +231,17 @@ func main() { attributeValue := `public` // string | Technical name of the Attribute Value. # string | Technical name of the Attribute Value. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.EntitlementsAPI.DeleteAccessModelMetadataFromEntitlement(context.Background(), id, attributeKey, attributeValue).XSailPointExperimental(xSailPointExperimental).Execute() - //r, err := apiClient.V2025.EntitlementsAPI.DeleteAccessModelMetadataFromEntitlement(context.Background(), id, attributeKey, attributeValue).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.DeleteAccessModelMetadataFromEntitlement``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.EntitlementsAPI.DeleteAccessModelMetadataFromEntitlement(context.Background(), id, attributeKey, attributeValue).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.DeleteAccessModelMetadataFromEntitlement``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -299,7 +300,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -308,18 +309,18 @@ func main() { id := `2c91808874ff91550175097daaec161c` // string | The entitlement ID # string | The entitlement ID xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.EntitlementsAPI.GetEntitlement(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.EntitlementsAPI.GetEntitlement(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.GetEntitlement``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetEntitlement`: Entitlement - fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.GetEntitlement`: %v\n", resp) + //resp, r, err := apiClient.V2025.EntitlementsAPI.GetEntitlement(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.GetEntitlement``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetEntitlement`: Entitlement + fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.GetEntitlement`: %v\n", resp) } ``` @@ -378,7 +379,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -387,18 +388,18 @@ func main() { id := `2c91808874ff91550175097daaec161c` // string | Entitlement Id # string | Entitlement Id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.EntitlementsAPI.GetEntitlementRequestConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.EntitlementsAPI.GetEntitlementRequestConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.GetEntitlementRequestConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetEntitlementRequestConfig`: EntitlementRequestConfig - fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.GetEntitlementRequestConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.EntitlementsAPI.GetEntitlementRequestConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.GetEntitlementRequestConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetEntitlementRequestConfig`: EntitlementRequestConfig + fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.GetEntitlementRequestConfig`: %v\n", resp) } ``` @@ -465,7 +466,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -475,18 +476,18 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") csvFile := BINARY_DATA_HERE // *os.File | The CSV file containing the source entitlements to aggregate. (optional) # *os.File | The CSV file containing the source entitlements to aggregate. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.EntitlementsAPI.ImportEntitlementsBySource(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.EntitlementsAPI.ImportEntitlementsBySource(context.Background(), id).XSailPointExperimental(xSailPointExperimental).CsvFile(csvFile).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.ImportEntitlementsBySource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportEntitlementsBySource`: LoadEntitlementTask - fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.ImportEntitlementsBySource`: %v\n", resp) + //resp, r, err := apiClient.V2025.EntitlementsAPI.ImportEntitlementsBySource(context.Background(), id).XSailPointExperimental(xSailPointExperimental).CsvFile(csvFile).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.ImportEntitlementsBySource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportEntitlementsBySource`: LoadEntitlementTask + fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.ImportEntitlementsBySource`: %v\n", resp) } ``` @@ -550,7 +551,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -564,18 +565,18 @@ func main() { sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, type, attribute, value, source.id** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, type, attribute, value, source.id** (optional) filters := `attribute eq "memberOf"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, sw* **type**: *eq, in* **attribute**: *eq, in* **value**: *eq, in, sw* **source.id**: *eq, in* **requestable**: *eq* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, sw* **type**: *eq, in* **attribute**: *eq, in* **value**: *eq, in, sw* **source.id**: *eq, in* **requestable**: *eq* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.EntitlementsAPI.ListEntitlementChildren(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.EntitlementsAPI.ListEntitlementChildren(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.ListEntitlementChildren``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListEntitlementChildren`: []Entitlement - fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.ListEntitlementChildren`: %v\n", resp) + //resp, r, err := apiClient.V2025.EntitlementsAPI.ListEntitlementChildren(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.ListEntitlementChildren``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListEntitlementChildren`: []Entitlement + fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.ListEntitlementChildren`: %v\n", resp) } ``` @@ -639,7 +640,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -653,18 +654,18 @@ func main() { sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, type, attribute, value, source.id** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, type, attribute, value, source.id** (optional) filters := `attribute eq "memberOf"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, sw* **type**: *eq, in* **attribute**: *eq, in* **value**: *eq, in, sw* **source.id**: *eq, in* **requestable**: *eq* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, sw* **type**: *eq, in* **attribute**: *eq, in* **value**: *eq, in, sw* **source.id**: *eq, in* **requestable**: *eq* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.EntitlementsAPI.ListEntitlementParents(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.EntitlementsAPI.ListEntitlementParents(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.ListEntitlementParents``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListEntitlementParents`: []Entitlement - fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.ListEntitlementParents`: %v\n", resp) + //resp, r, err := apiClient.V2025.EntitlementsAPI.ListEntitlementParents(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.ListEntitlementParents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListEntitlementParents`: []Entitlement + fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.ListEntitlementParents`: %v\n", resp) } ``` @@ -731,7 +732,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -748,18 +749,18 @@ func main() { sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, type, attribute, value, source.id, requestable** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, type, attribute, value, source.id, requestable** (optional) filters := `attribute eq "memberOf"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, sw* **type**: *eq, in* **attribute**: *eq, in* **value**: *eq, in, sw* **source.id**: *eq, in* **requestable**: *eq* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, sw* **type**: *eq, in* **attribute**: *eq, in* **value**: *eq, in, sw* **source.id**: *eq, in* **requestable**: *eq* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.EntitlementsAPI.ListEntitlements(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.EntitlementsAPI.ListEntitlements(context.Background()).XSailPointExperimental(xSailPointExperimental).AccountId(accountId).SegmentedForIdentity(segmentedForIdentity).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.ListEntitlements``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListEntitlements`: []Entitlement - fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.ListEntitlements`: %v\n", resp) + //resp, r, err := apiClient.V2025.EntitlementsAPI.ListEntitlements(context.Background()).XSailPointExperimental(xSailPointExperimental).AccountId(accountId).SegmentedForIdentity(segmentedForIdentity).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.ListEntitlements``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListEntitlements`: []Entitlement + fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.ListEntitlements`: %v\n", resp) } ``` @@ -823,7 +824,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -833,18 +834,18 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") jsonpatchoperation := []byte(`[{op=replace, path=/requestable, value=true}, {op=replace, path=/privileged, value=true}]`) // []JsonPatchOperation | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.EntitlementsAPI.PatchEntitlement(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.EntitlementsAPI.PatchEntitlement(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.PatchEntitlement``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchEntitlement`: Entitlement - fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.PatchEntitlement`: %v\n", resp) + //resp, r, err := apiClient.V2025.EntitlementsAPI.PatchEntitlement(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.PatchEntitlement``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchEntitlement`: Entitlement + fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.PatchEntitlement`: %v\n", resp) } ``` @@ -904,7 +905,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -922,28 +923,37 @@ func main() { "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", "approverType" : "GOVERNANCE_GROUP" } ], + "reauthorizationRequired" : false, "requestCommentRequired" : true + }, + "revocationRequestConfig" : { + "approvalSchemes" : [ { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + }, { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + } ] } }`) // EntitlementRequestConfig | - - var entitlementRequestConfig v2025.EntitlementRequestConfig - if err := json.Unmarshal(entitlementrequestconfig, &entitlementRequestConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var entitlementRequestConfig v2025.EntitlementRequestConfig + if err := json.Unmarshal(entitlementrequestconfig, &entitlementRequestConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.EntitlementsAPI.PutEntitlementRequestConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).EntitlementRequestConfig(entitlementRequestConfig).Execute() - //resp, r, err := apiClient.V2025.EntitlementsAPI.PutEntitlementRequestConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).EntitlementRequestConfig(entitlementRequestConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.PutEntitlementRequestConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutEntitlementRequestConfig`: EntitlementRequestConfig - fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.PutEntitlementRequestConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.EntitlementsAPI.PutEntitlementRequestConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).EntitlementRequestConfig(entitlementRequestConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.PutEntitlementRequestConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutEntitlementRequestConfig`: EntitlementRequestConfig + fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.PutEntitlementRequestConfig`: %v\n", resp) } ``` @@ -1003,7 +1013,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1012,18 +1022,18 @@ func main() { id := `2c91808a7813090a017814121919ecca` // string | ID of source for the entitlement reset # string | ID of source for the entitlement reset xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.EntitlementsAPI.ResetSourceEntitlements(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.EntitlementsAPI.ResetSourceEntitlements(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.ResetSourceEntitlements``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ResetSourceEntitlements`: EntitlementSourceResetBaseReferenceDto - fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.ResetSourceEntitlements`: %v\n", resp) + //resp, r, err := apiClient.V2025.EntitlementsAPI.ResetSourceEntitlements(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.ResetSourceEntitlements``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ResetSourceEntitlements`: EntitlementSourceResetBaseReferenceDto + fmt.Fprintf(os.Stdout, "Response from `EntitlementsAPI.ResetSourceEntitlements`: %v\n", resp) } ``` @@ -1084,7 +1094,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1104,22 +1114,22 @@ func main() { } ] }`) // EntitlementBulkUpdateRequest | - - var entitlementBulkUpdateRequest v2025.EntitlementBulkUpdateRequest - if err := json.Unmarshal(entitlementbulkupdaterequest, &entitlementBulkUpdateRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var entitlementBulkUpdateRequest v2025.EntitlementBulkUpdateRequest + if err := json.Unmarshal(entitlementbulkupdaterequest, &entitlementBulkUpdateRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.EntitlementsAPI.UpdateEntitlementsInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).EntitlementBulkUpdateRequest(entitlementBulkUpdateRequest).Execute() - //r, err := apiClient.V2025.EntitlementsAPI.UpdateEntitlementsInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).EntitlementBulkUpdateRequest(entitlementBulkUpdateRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.UpdateEntitlementsInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.EntitlementsAPI.UpdateEntitlementsInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).EntitlementBulkUpdateRequest(entitlementBulkUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EntitlementsAPI.UpdateEntitlementsInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/GlobalTenantSecuritySettingsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/GlobalTenantSecuritySettingsAPI.md index efcb02a82..1dad0b043 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/GlobalTenantSecuritySettingsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/GlobalTenantSecuritySettingsAPI.md @@ -66,7 +66,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -78,24 +78,23 @@ func main() { "geolocation" : [ "CA", "FR", "HT" ] }`) // NetworkConfiguration | Network configuration creation request body. The following constraints ensure the request body conforms to certain logical guidelines, which are: 1. Each string element in the range array must be a valid ip address or ip subnet mask. 2. Each string element in the geolocation array must be 2 characters, and they can only be uppercase letters. - - var networkConfiguration v2025.NetworkConfiguration - if err := json.Unmarshal(networkconfiguration, &networkConfiguration); err != nil { - fmt.Println("Error:", err) - return - } - + var networkConfiguration v2025.NetworkConfiguration + if err := json.Unmarshal(networkconfiguration, &networkConfiguration); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.CreateAuthOrgNetworkConfig(context.Background()).NetworkConfiguration(networkConfiguration).Execute() - //resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.CreateAuthOrgNetworkConfig(context.Background()).NetworkConfiguration(networkConfiguration).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.CreateAuthOrgNetworkConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateAuthOrgNetworkConfig`: NetworkConfiguration - fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.CreateAuthOrgNetworkConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.CreateAuthOrgNetworkConfig(context.Background()).NetworkConfiguration(networkConfiguration).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.CreateAuthOrgNetworkConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAuthOrgNetworkConfig`: NetworkConfiguration + fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.CreateAuthOrgNetworkConfig`: %v\n", resp) } ``` @@ -134,25 +133,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.GetAuthOrgLockoutConfig(context.Background()).Execute() - //resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.GetAuthOrgLockoutConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.GetAuthOrgLockoutConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAuthOrgLockoutConfig`: LockoutConfiguration - fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.GetAuthOrgLockoutConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.GetAuthOrgLockoutConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.GetAuthOrgLockoutConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAuthOrgLockoutConfig`: LockoutConfiguration + fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.GetAuthOrgLockoutConfig`: %v\n", resp) } ``` @@ -191,25 +190,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.GetAuthOrgNetworkConfig(context.Background()).Execute() - //resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.GetAuthOrgNetworkConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.GetAuthOrgNetworkConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAuthOrgNetworkConfig`: NetworkConfiguration - fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.GetAuthOrgNetworkConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.GetAuthOrgNetworkConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.GetAuthOrgNetworkConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAuthOrgNetworkConfig`: NetworkConfiguration + fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.GetAuthOrgNetworkConfig`: %v\n", resp) } ``` @@ -248,25 +247,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.GetAuthOrgServiceProviderConfig(context.Background()).Execute() - //resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.GetAuthOrgServiceProviderConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.GetAuthOrgServiceProviderConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAuthOrgServiceProviderConfig`: ServiceProviderConfiguration - fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.GetAuthOrgServiceProviderConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.GetAuthOrgServiceProviderConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.GetAuthOrgServiceProviderConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAuthOrgServiceProviderConfig`: ServiceProviderConfiguration + fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.GetAuthOrgServiceProviderConfig`: %v\n", resp) } ``` @@ -305,25 +304,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.GetAuthOrgSessionConfig(context.Background()).Execute() - //resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.GetAuthOrgSessionConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.GetAuthOrgSessionConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAuthOrgSessionConfig`: SessionConfiguration - fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.GetAuthOrgSessionConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.GetAuthOrgSessionConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.GetAuthOrgSessionConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAuthOrgSessionConfig`: SessionConfiguration + fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.GetAuthOrgSessionConfig`: %v\n", resp) } ``` @@ -367,7 +366,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -375,24 +374,23 @@ import ( func main() { jsonpatchoperation := []byte(`[{op=replace, path=/maximumAttempts, value=7,}, {op=add, path=/lockoutDuration, value=35}]`) // []JsonPatchOperation | A list of auth org lockout configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Ensures that the patched Lockout Config conforms to certain logical guidelines, which are: `1. maximumAttempts >= 1 && maximumAttempts <= 15 2. lockoutDuration >= 5 && lockoutDuration <= 60 3. lockoutWindow >= 5 && lockoutDuration <= 60` - - var jsonPatchOperation v2025.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2025.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchAuthOrgLockoutConfig`: LockoutConfiguration - fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchAuthOrgLockoutConfig`: LockoutConfiguration + fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig`: %v\n", resp) } ``` @@ -436,7 +434,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -444,24 +442,23 @@ import ( func main() { jsonpatchoperation := []byte(`[{op=replace, path=/whitelisted, value=false,}, {op=add, path=/geolocation, value=[AF, HN, ES]}]`) // []JsonPatchOperation | A list of auth org network configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Ensures that the patched Network Config conforms to certain logical guidelines, which are: 1. Each string element in the range array must be a valid ip address or ip subnet mask. 2. Each string element in the geolocation array must be 2 characters, and they can only be uppercase letters. - - var jsonPatchOperation v2025.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2025.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchAuthOrgNetworkConfig`: NetworkConfiguration - fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchAuthOrgNetworkConfig`: NetworkConfiguration + fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig`: %v\n", resp) } ``` @@ -504,7 +501,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -512,24 +509,23 @@ import ( func main() { jsonpatchoperation := []byte(`[{op=replace, path=/enabled, value=true,}, {op=add, path=/federationProtocolDetails/0/jitConfiguration, value={enabled=true, sourceId=2c9180857377ed2901739c12a2da5ac8, sourceAttributeMappings={firstName=okta.firstName, lastName=okta.lastName, email=okta.email, employeeNumber=okta.employeeNumber}}}]`) // []JsonPatchOperation | A list of auth org service provider configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Note: /federationProtocolDetails/0 is IdpDetails /federationProtocolDetails/1 is SpDetails Ensures that the patched ServiceProviderConfig conforms to certain logical guidelines, which are: 1. Do not add or remove any elements in the federation protocol details in the service provider configuration. 2. Do not modify, add, or delete the service provider details element in the federation protocol details. 3. If this is the first time the patched ServiceProviderConfig enables Remote IDP sign-in, it must also include IDPDetails. 4. If the patch enables Remote IDP sign in, the entityID in the IDPDetails cannot be null. IDPDetails must include an entityID. 5. Any JIT configuration update must be valid. Just in time configuration update must be valid when enabled. This includes: - A Source ID - Source attribute mappings - Source attribute maps have all the required key values (firstName, lastName, email) - - var jsonPatchOperation v2025.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2025.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchAuthOrgServiceProviderConfig`: ServiceProviderConfiguration - fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchAuthOrgServiceProviderConfig`: ServiceProviderConfiguration + fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig`: %v\n", resp) } ``` @@ -572,7 +568,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -580,24 +576,23 @@ import ( func main() { jsonpatchoperation := []byte(`[{op=replace, path=/rememberMe, value=true,}, {op=add, path=/maxSessionTime, value=480}]`) // []JsonPatchOperation | A list of auth org session configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Ensures that the patched Session Config conforms to certain logical guidelines, which are: `1. maxSessionTime >= 1 && maxSessionTime <= 10080 (1 week) 2. maxIdleTime >= 1 && maxIdleTime <= 1440 (1 day) 3. maxSessionTime must have a greater duration than maxIdleTime.` - - var jsonPatchOperation v2025.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2025.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchAuthOrgSessionConfig`: SessionConfiguration - fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchAuthOrgSessionConfig`: SessionConfiguration + fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/GovernanceGroupsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/GovernanceGroupsAPI.md index 9cd39fd98..117b2197e 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/GovernanceGroupsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/GovernanceGroupsAPI.md @@ -81,7 +81,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -105,24 +105,23 @@ func main() { "id" : "2c91808568c529c60168cca6f90c1313" }`) // WorkgroupDto | - - var workgroupDto v2025.WorkgroupDto - if err := json.Unmarshal(workgroupdto, &workgroupDto); err != nil { - fmt.Println("Error:", err) - return - } - + var workgroupDto v2025.WorkgroupDto + if err := json.Unmarshal(workgroupdto, &workgroupDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GovernanceGroupsAPI.CreateWorkgroup(context.Background()).XSailPointExperimental(xSailPointExperimental).WorkgroupDto(workgroupDto).Execute() - //resp, r, err := apiClient.V2025.GovernanceGroupsAPI.CreateWorkgroup(context.Background()).XSailPointExperimental(xSailPointExperimental).WorkgroupDto(workgroupDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.CreateWorkgroup``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateWorkgroup`: WorkgroupDto - fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.CreateWorkgroup`: %v\n", resp) + //resp, r, err := apiClient.V2025.GovernanceGroupsAPI.CreateWorkgroup(context.Background()).XSailPointExperimental(xSailPointExperimental).WorkgroupDto(workgroupDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.CreateWorkgroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateWorkgroup`: WorkgroupDto + fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.CreateWorkgroup`: %v\n", resp) } ``` @@ -181,7 +180,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -190,16 +189,17 @@ func main() { id := `2c9180837ca6693d017ca8d097500149` // string | ID of the Governance Group # string | ID of the Governance Group xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.GovernanceGroupsAPI.DeleteWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //r, err := apiClient.V2025.GovernanceGroupsAPI.DeleteWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.DeleteWorkgroup``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.GovernanceGroupsAPI.DeleteWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.DeleteWorkgroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -262,7 +262,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -272,24 +272,23 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") identitypreviewresponseidentity := []byte(``) // []IdentityPreviewResponseIdentity | List of identities to be removed from a Governance Group members list. - - var identityPreviewResponseIdentity v2025.[]IdentityPreviewResponseIdentity - if err := json.Unmarshal(identitypreviewresponseidentity, &identityPreviewResponseIdentity); err != nil { - fmt.Println("Error:", err) - return - } - + var identityPreviewResponseIdentity []v2025.IdentityPreviewResponseIdentity + if err := json.Unmarshal(identitypreviewresponseidentity, &identityPreviewResponseIdentity); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GovernanceGroupsAPI.DeleteWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).IdentityPreviewResponseIdentity(identityPreviewResponseIdentity).Execute() - //resp, r, err := apiClient.V2025.GovernanceGroupsAPI.DeleteWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).IdentityPreviewResponseIdentity(identityPreviewResponseIdentity).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.DeleteWorkgroupMembers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteWorkgroupMembers`: []WorkgroupMemberDeleteItem - fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.DeleteWorkgroupMembers`: %v\n", resp) + //resp, r, err := apiClient.V2025.GovernanceGroupsAPI.DeleteWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).IdentityPreviewResponseIdentity(identityPreviewResponseIdentity).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.DeleteWorkgroupMembers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteWorkgroupMembers`: []WorkgroupMemberDeleteItem + fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.DeleteWorkgroupMembers`: %v\n", resp) } ``` @@ -355,7 +354,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -366,24 +365,23 @@ func main() { "ids" : [ "567a697e-885b-495a-afc5-d55e1c23a302", "c7b0f7b2-1e78-4063-b294-a555333dacd2" ] }`) // WorkgroupBulkDeleteRequest | - - var workgroupBulkDeleteRequest v2025.WorkgroupBulkDeleteRequest - if err := json.Unmarshal(workgroupbulkdeleterequest, &workgroupBulkDeleteRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var workgroupBulkDeleteRequest v2025.WorkgroupBulkDeleteRequest + if err := json.Unmarshal(workgroupbulkdeleterequest, &workgroupBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GovernanceGroupsAPI.DeleteWorkgroupsInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).WorkgroupBulkDeleteRequest(workgroupBulkDeleteRequest).Execute() - //resp, r, err := apiClient.V2025.GovernanceGroupsAPI.DeleteWorkgroupsInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).WorkgroupBulkDeleteRequest(workgroupBulkDeleteRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.DeleteWorkgroupsInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteWorkgroupsInBulk`: []WorkgroupDeleteItem - fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.DeleteWorkgroupsInBulk`: %v\n", resp) + //resp, r, err := apiClient.V2025.GovernanceGroupsAPI.DeleteWorkgroupsInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).WorkgroupBulkDeleteRequest(workgroupBulkDeleteRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.DeleteWorkgroupsInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteWorkgroupsInBulk`: []WorkgroupDeleteItem + fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.DeleteWorkgroupsInBulk`: %v\n", resp) } ``` @@ -442,7 +440,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -451,18 +449,18 @@ func main() { id := `2c9180837ca6693d017ca8d097500149` // string | ID of the Governance Group # string | ID of the Governance Group xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GovernanceGroupsAPI.GetWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.GovernanceGroupsAPI.GetWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.GetWorkgroup``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetWorkgroup`: WorkgroupDto - fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.GetWorkgroup`: %v\n", resp) + //resp, r, err := apiClient.V2025.GovernanceGroupsAPI.GetWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.GetWorkgroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkgroup`: WorkgroupDto + fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.GetWorkgroup`: %v\n", resp) } ``` @@ -525,7 +523,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -538,18 +536,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GovernanceGroupsAPI.ListConnections(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.GovernanceGroupsAPI.ListConnections(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.ListConnections``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListConnections`: []WorkgroupConnectionDto - fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.ListConnections`: %v\n", resp) + //resp, r, err := apiClient.V2025.GovernanceGroupsAPI.ListConnections(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.ListConnections``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListConnections`: []WorkgroupConnectionDto + fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.ListConnections`: %v\n", resp) } ``` @@ -612,7 +610,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -625,18 +623,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GovernanceGroupsAPI.ListWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.GovernanceGroupsAPI.ListWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.ListWorkgroupMembers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListWorkgroupMembers`: []ListWorkgroupMembers200ResponseInner - fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.ListWorkgroupMembers`: %v\n", resp) + //resp, r, err := apiClient.V2025.GovernanceGroupsAPI.ListWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.ListWorkgroupMembers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListWorkgroupMembers`: []ListWorkgroupMembers200ResponseInner + fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.ListWorkgroupMembers`: %v\n", resp) } ``` @@ -695,7 +693,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -708,18 +706,18 @@ func main() { filters := `name sw "Test"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in, sw* **name**: *eq, sw, in* **memberships.identityId**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in, sw* **name**: *eq, sw, in* **memberships.identityId**: *eq, in* (optional) sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, modified, id, description** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, modified, id, description** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GovernanceGroupsAPI.ListWorkgroups(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.GovernanceGroupsAPI.ListWorkgroups(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.ListWorkgroups``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListWorkgroups`: []WorkgroupDto - fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.ListWorkgroups`: %v\n", resp) + //resp, r, err := apiClient.V2025.GovernanceGroupsAPI.ListWorkgroups(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.ListWorkgroups``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListWorkgroups`: []WorkgroupDto + fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.ListWorkgroups`: %v\n", resp) } ``` @@ -782,7 +780,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -792,18 +790,18 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") jsonpatchoperation := []byte(`[{op=replace, path=/description, value=Governance Group new description.}]`) // []JsonPatchOperation | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GovernanceGroupsAPI.PatchWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.GovernanceGroupsAPI.PatchWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.PatchWorkgroup``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchWorkgroup`: WorkgroupDto - fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.PatchWorkgroup`: %v\n", resp) + //resp, r, err := apiClient.V2025.GovernanceGroupsAPI.PatchWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.PatchWorkgroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchWorkgroup`: WorkgroupDto + fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.PatchWorkgroup`: %v\n", resp) } ``` @@ -867,7 +865,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -877,24 +875,23 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") identitypreviewresponseidentity := []byte(``) // []IdentityPreviewResponseIdentity | List of identities to be added to a Governance Group members list. - - var identityPreviewResponseIdentity v2025.[]IdentityPreviewResponseIdentity - if err := json.Unmarshal(identitypreviewresponseidentity, &identityPreviewResponseIdentity); err != nil { - fmt.Println("Error:", err) - return - } - + var identityPreviewResponseIdentity []v2025.IdentityPreviewResponseIdentity + if err := json.Unmarshal(identitypreviewresponseidentity, &identityPreviewResponseIdentity); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GovernanceGroupsAPI.UpdateWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).IdentityPreviewResponseIdentity(identityPreviewResponseIdentity).Execute() - //resp, r, err := apiClient.V2025.GovernanceGroupsAPI.UpdateWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).IdentityPreviewResponseIdentity(identityPreviewResponseIdentity).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.UpdateWorkgroupMembers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateWorkgroupMembers`: []WorkgroupMemberAddItem - fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.UpdateWorkgroupMembers`: %v\n", resp) + //resp, r, err := apiClient.V2025.GovernanceGroupsAPI.UpdateWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).IdentityPreviewResponseIdentity(identityPreviewResponseIdentity).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GovernanceGroupsAPI.UpdateWorkgroupMembers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateWorkgroupMembers`: []WorkgroupMemberAddItem + fmt.Fprintf(os.Stdout, "Response from `GovernanceGroupsAPI.UpdateWorkgroupMembers`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/IAIAccessRequestRecommendationsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/IAIAccessRequestRecommendationsAPI.md index 2d793c729..1b07d70c5 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/IAIAccessRequestRecommendationsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/IAIAccessRequestRecommendationsAPI.md @@ -76,7 +76,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -91,24 +91,23 @@ func main() { "identityId" : "2c91808570313110017040b06f344ec9" }`) // AccessRequestRecommendationActionItemDto | The recommended access item to ignore for an identity. - - var accessRequestRecommendationActionItemDto v2025.AccessRequestRecommendationActionItemDto - if err := json.Unmarshal(accessrequestrecommendationactionitemdto, &accessRequestRecommendationActionItemDto); err != nil { - fmt.Println("Error:", err) - return - } - + var accessRequestRecommendationActionItemDto v2025.AccessRequestRecommendationActionItemDto + if err := json.Unmarshal(accessrequestrecommendationactionitemdto, &accessRequestRecommendationActionItemDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsIgnoredItem(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() - //resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsIgnoredItem(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsIgnoredItem``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `AddAccessRequestRecommendationsIgnoredItem`: AccessRequestRecommendationActionItemResponseDto - fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsIgnoredItem`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsIgnoredItem(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsIgnoredItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AddAccessRequestRecommendationsIgnoredItem`: AccessRequestRecommendationActionItemResponseDto + fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsIgnoredItem`: %v\n", resp) } ``` @@ -163,7 +162,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -178,24 +177,23 @@ func main() { "identityId" : "2c91808570313110017040b06f344ec9" }`) // AccessRequestRecommendationActionItemDto | The recommended access item that was requested for an identity. - - var accessRequestRecommendationActionItemDto v2025.AccessRequestRecommendationActionItemDto - if err := json.Unmarshal(accessrequestrecommendationactionitemdto, &accessRequestRecommendationActionItemDto); err != nil { - fmt.Println("Error:", err) - return - } - + var accessRequestRecommendationActionItemDto v2025.AccessRequestRecommendationActionItemDto + if err := json.Unmarshal(accessrequestrecommendationactionitemdto, &accessRequestRecommendationActionItemDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsRequestedItem(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() - //resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsRequestedItem(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsRequestedItem``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `AddAccessRequestRecommendationsRequestedItem`: AccessRequestRecommendationActionItemResponseDto - fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsRequestedItem`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsRequestedItem(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsRequestedItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AddAccessRequestRecommendationsRequestedItem`: AccessRequestRecommendationActionItemResponseDto + fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsRequestedItem`: %v\n", resp) } ``` @@ -250,7 +248,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -265,24 +263,23 @@ func main() { "identityId" : "2c91808570313110017040b06f344ec9" }`) // AccessRequestRecommendationActionItemDto | The recommended access that was viewed for an identity. - - var accessRequestRecommendationActionItemDto v2025.AccessRequestRecommendationActionItemDto - if err := json.Unmarshal(accessrequestrecommendationactionitemdto, &accessRequestRecommendationActionItemDto); err != nil { - fmt.Println("Error:", err) - return - } - + var accessRequestRecommendationActionItemDto v2025.AccessRequestRecommendationActionItemDto + if err := json.Unmarshal(accessrequestrecommendationactionitemdto, &accessRequestRecommendationActionItemDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItem(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() - //resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItem(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItem``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `AddAccessRequestRecommendationsViewedItem`: AccessRequestRecommendationActionItemResponseDto - fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItem`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItem(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AddAccessRequestRecommendationsViewedItem`: AccessRequestRecommendationActionItemResponseDto + fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItem`: %v\n", resp) } ``` @@ -337,7 +334,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -346,24 +343,23 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") accessrequestrecommendationactionitemdto := []byte(``) // []AccessRequestRecommendationActionItemDto | The recommended access items that were viewed for an identity. - - var accessRequestRecommendationActionItemDto v2025.[]AccessRequestRecommendationActionItemDto - if err := json.Unmarshal(accessrequestrecommendationactionitemdto, &accessRequestRecommendationActionItemDto); err != nil { - fmt.Println("Error:", err) - return - } - + var accessRequestRecommendationActionItemDto []v2025.AccessRequestRecommendationActionItemDto + if err := json.Unmarshal(accessrequestrecommendationactionitemdto, &accessRequestRecommendationActionItemDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() - //resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `AddAccessRequestRecommendationsViewedItems`: []AccessRequestRecommendationActionItemResponseDto - fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItems`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AddAccessRequestRecommendationsViewedItems`: []AccessRequestRecommendationActionItemResponseDto + fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItems`: %v\n", resp) } ``` @@ -424,7 +420,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -439,18 +435,18 @@ func main() { filters := `access.name co "admin"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **access.name**: *co* **access.type**: *eq, in* **access.description**: *co, eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **access.name**: *co* **access.type**: *eq, in* **access.description**: *co, eq, in* (optional) sorters := `access.name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.name, access.type** By default the recommendations are sorted by highest confidence first. (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.name, access.type** By default the recommendations are sorted by highest confidence first. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendations(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendations(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityId(identityId).Limit(limit).Offset(offset).Count(count).IncludeTranslationMessages(includeTranslationMessages).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendations``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessRequestRecommendations`: []AccessRequestRecommendationItemDetail - fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendations`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendations(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityId(identityId).Limit(limit).Offset(offset).Count(count).IncludeTranslationMessages(includeTranslationMessages).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessRequestRecommendations`: []AccessRequestRecommendationItemDetail + fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendations`: %v\n", resp) } ``` @@ -504,7 +500,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -512,18 +508,18 @@ import ( func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessRequestRecommendationsConfig`: AccessRequestRecommendationConfigDto - fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessRequestRecommendationsConfig`: AccessRequestRecommendationConfigDto + fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsConfig`: %v\n", resp) } ``` @@ -582,7 +578,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -595,18 +591,18 @@ func main() { filters := `identityId eq "2c9180846b0a0583016b299f210c1314"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (optional) sorters := `access.id` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.id, access.type, identityId, timestamp** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.id, access.type, identityId, timestamp** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsIgnoredItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsIgnoredItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsIgnoredItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessRequestRecommendationsIgnoredItems`: []AccessRequestRecommendationActionItemResponseDto - fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsIgnoredItems`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsIgnoredItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsIgnoredItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessRequestRecommendationsIgnoredItems`: []AccessRequestRecommendationActionItemResponseDto + fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsIgnoredItems`: %v\n", resp) } ``` @@ -665,7 +661,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -678,18 +674,18 @@ func main() { filters := `access.id eq "2c9180846b0a0583016b299f210c1314"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (optional) sorters := `access.id` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.id, access.type, identityId, timestamp** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.id, access.type, identityId, timestamp** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsRequestedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsRequestedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsRequestedItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessRequestRecommendationsRequestedItems`: []AccessRequestRecommendationActionItemResponseDto - fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsRequestedItems`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsRequestedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsRequestedItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessRequestRecommendationsRequestedItems`: []AccessRequestRecommendationActionItemResponseDto + fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsRequestedItems`: %v\n", resp) } ``` @@ -748,7 +744,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -761,18 +757,18 @@ func main() { filters := `access.id eq "2c9180846b0a0583016b299f210c1314"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **access.id**: *eq, in* **access.type**: *eq, in* **identityId**: *eq, in* (optional) sorters := `access.id` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.id, access.type, identityId, timestamp** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.id, access.type, identityId, timestamp** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsViewedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsViewedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsViewedItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessRequestRecommendationsViewedItems`: []AccessRequestRecommendationActionItemResponseDto - fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsViewedItems`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsViewedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsViewedItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessRequestRecommendationsViewedItems`: []AccessRequestRecommendationActionItemResponseDto + fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsViewedItems`: %v\n", resp) } ``` @@ -827,7 +823,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -843,24 +839,23 @@ func main() { "useRestrictionAttribute" : true }`) // AccessRequestRecommendationConfigDto | The desired configurations for Access Request Recommender for the tenant. - - var accessRequestRecommendationConfigDto v2025.AccessRequestRecommendationConfigDto - if err := json.Unmarshal(accessrequestrecommendationconfigdto, &accessRequestRecommendationConfigDto); err != nil { - fmt.Println("Error:", err) - return - } - + var accessRequestRecommendationConfigDto v2025.AccessRequestRecommendationConfigDto + if err := json.Unmarshal(accessrequestrecommendationconfigdto, &accessRequestRecommendationConfigDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.SetAccessRequestRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationConfigDto(accessRequestRecommendationConfigDto).Execute() - //resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.SetAccessRequestRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationConfigDto(accessRequestRecommendationConfigDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.SetAccessRequestRecommendationsConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetAccessRequestRecommendationsConfig`: AccessRequestRecommendationConfigDto - fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.SetAccessRequestRecommendationsConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.SetAccessRequestRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationConfigDto(accessRequestRecommendationConfigDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIAccessRequestRecommendationsAPI.SetAccessRequestRecommendationsConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetAccessRequestRecommendationsConfig`: AccessRequestRecommendationConfigDto + fmt.Fprintf(os.Stdout, "Response from `IAIAccessRequestRecommendationsAPI.SetAccessRequestRecommendationsConfig`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/IAICommonAccessAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/IAICommonAccessAPI.md index b0e5946fc..def3424a6 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/IAICommonAccessAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/IAICommonAccessAPI.md @@ -69,7 +69,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -88,24 +88,23 @@ func main() { "status" : "CONFIRMED" }`) // CommonAccessItemRequest | - - var commonAccessItemRequest v2025.CommonAccessItemRequest - if err := json.Unmarshal(commonaccessitemrequest, &commonAccessItemRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var commonAccessItemRequest v2025.CommonAccessItemRequest + if err := json.Unmarshal(commonaccessitemrequest, &commonAccessItemRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAICommonAccessAPI.CreateCommonAccess(context.Background()).XSailPointExperimental(xSailPointExperimental).CommonAccessItemRequest(commonAccessItemRequest).Execute() - //resp, r, err := apiClient.V2025.IAICommonAccessAPI.CreateCommonAccess(context.Background()).XSailPointExperimental(xSailPointExperimental).CommonAccessItemRequest(commonAccessItemRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAICommonAccessAPI.CreateCommonAccess``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateCommonAccess`: CommonAccessItemResponse - fmt.Fprintf(os.Stdout, "Response from `IAICommonAccessAPI.CreateCommonAccess`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAICommonAccessAPI.CreateCommonAccess(context.Background()).XSailPointExperimental(xSailPointExperimental).CommonAccessItemRequest(commonAccessItemRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAICommonAccessAPI.CreateCommonAccess``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCommonAccess`: CommonAccessItemResponse + fmt.Fprintf(os.Stdout, "Response from `IAICommonAccessAPI.CreateCommonAccess`: %v\n", resp) } ``` @@ -164,7 +163,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -177,18 +176,18 @@ func main() { filters := `access.type eq "ROLE"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **status**: *eq, sw* **reviewedByUser** *eq* **access.id**: *eq, sw* **access.type**: *eq* **access.name**: *sw, eq* **access.description**: *sw, eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **status**: *eq, sw* **reviewedByUser** *eq* **access.id**: *eq, sw* **access.type**: *eq* **access.name**: *sw, eq* **access.description**: *sw, eq* (optional) sorters := `access.name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.name, status** By default the common access items are sorted by name, ascending. (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.name, status** By default the common access items are sorted by name, ascending. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAICommonAccessAPI.GetCommonAccess(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IAICommonAccessAPI.GetCommonAccess(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAICommonAccessAPI.GetCommonAccess``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCommonAccess`: []CommonAccessResponse - fmt.Fprintf(os.Stdout, "Response from `IAICommonAccessAPI.GetCommonAccess`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAICommonAccessAPI.GetCommonAccess(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAICommonAccessAPI.GetCommonAccess``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCommonAccess`: []CommonAccessResponse + fmt.Fprintf(os.Stdout, "Response from `IAICommonAccessAPI.GetCommonAccess`: %v\n", resp) } ``` @@ -243,7 +242,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -252,24 +251,23 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") commonaccessidstatus := []byte(``) // []CommonAccessIDStatus | Confirm or deny in bulk the common access ids that are (or aren't) common access - - var commonAccessIDStatus v2025.[]CommonAccessIDStatus - if err := json.Unmarshal(commonaccessidstatus, &commonAccessIDStatus); err != nil { - fmt.Println("Error:", err) - return - } - + var commonAccessIDStatus []v2025.CommonAccessIDStatus + if err := json.Unmarshal(commonaccessidstatus, &commonAccessIDStatus); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAICommonAccessAPI.UpdateCommonAccessStatusInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).CommonAccessIDStatus(commonAccessIDStatus).Execute() - //resp, r, err := apiClient.V2025.IAICommonAccessAPI.UpdateCommonAccessStatusInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).CommonAccessIDStatus(commonAccessIDStatus).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAICommonAccessAPI.UpdateCommonAccessStatusInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateCommonAccessStatusInBulk`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `IAICommonAccessAPI.UpdateCommonAccessStatusInBulk`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAICommonAccessAPI.UpdateCommonAccessStatusInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).CommonAccessIDStatus(commonAccessIDStatus).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAICommonAccessAPI.UpdateCommonAccessStatusInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateCommonAccessStatusInBulk`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `IAICommonAccessAPI.UpdateCommonAccessStatusInBulk`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/IAIOutliersAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/IAIOutliersAPI.md index 62a62aac9..42ab928ab 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/IAIOutliersAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/IAIOutliersAPI.md @@ -78,7 +78,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -87,18 +87,18 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") type_ := `LOW_SIMILARITY` // string | Type of the identity outliers snapshot to filter on (optional) # string | Type of the identity outliers snapshot to filter on (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIOutliersAPI.ExportOutliersZip(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IAIOutliersAPI.ExportOutliersZip(context.Background()).XSailPointExperimental(xSailPointExperimental).Type_(type_).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.ExportOutliersZip``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExportOutliersZip`: *os.File - fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.ExportOutliersZip`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIOutliersAPI.ExportOutliersZip(context.Background()).XSailPointExperimental(xSailPointExperimental).Type_(type_).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.ExportOutliersZip``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExportOutliersZip`: *os.File + fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.ExportOutliersZip`: %v\n", resp) } ``` @@ -157,7 +157,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -170,18 +170,18 @@ func main() { filters := `snapshotDate ge "2022-02-07T20:13:29.356648026Z"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **snapshotDate**: *ge, le* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **snapshotDate**: *ge, le* (optional) sorters := `snapshotDate` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **snapshotDate** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **snapshotDate** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIOutliersAPI.GetIdentityOutlierSnapshots(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IAIOutliersAPI.GetIdentityOutlierSnapshots(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Type_(type_).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.GetIdentityOutlierSnapshots``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentityOutlierSnapshots`: []OutlierSummary - fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.GetIdentityOutlierSnapshots`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIOutliersAPI.GetIdentityOutlierSnapshots(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Type_(type_).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.GetIdentityOutlierSnapshots``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityOutlierSnapshots`: []OutlierSummary + fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.GetIdentityOutlierSnapshots`: %v\n", resp) } ``` @@ -241,7 +241,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -255,18 +255,18 @@ func main() { filters := `attributes.displayName sw "John" and certStatus eq "false"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **attributes**: *eq, sw, co, in* **firstDetectionDate**: *ge, le* **certStatus**: *eq* **ignored**: *eq* **score**: *ge, le* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **attributes**: *eq, sw, co, in* **firstDetectionDate**: *ge, le* **certStatus**: *eq* **ignored**: *eq* **score**: *ge, le* (optional) sorters := `attributes.displayName,firstDetectionDate,-score` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **firstDetectionDate, attributes, score** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **firstDetectionDate, attributes, score** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIOutliersAPI.GetIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IAIOutliersAPI.GetIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Type_(type_).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.GetIdentityOutliers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentityOutliers`: []Outlier - fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.GetIdentityOutliers`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIOutliersAPI.GetIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Type_(type_).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.GetIdentityOutliers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityOutliers`: []Outlier + fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.GetIdentityOutliers`: %v\n", resp) } ``` @@ -321,7 +321,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -330,18 +330,18 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") type_ := `LOW_SIMILARITY` // string | Type of the identity outliers snapshot to filter on (optional) # string | Type of the identity outliers snapshot to filter on (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIOutliersAPI.GetLatestIdentityOutlierSnapshots(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IAIOutliersAPI.GetLatestIdentityOutlierSnapshots(context.Background()).XSailPointExperimental(xSailPointExperimental).Type_(type_).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.GetLatestIdentityOutlierSnapshots``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetLatestIdentityOutlierSnapshots`: []LatestOutlierSummary - fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.GetLatestIdentityOutlierSnapshots`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIOutliersAPI.GetLatestIdentityOutlierSnapshots(context.Background()).XSailPointExperimental(xSailPointExperimental).Type_(type_).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.GetLatestIdentityOutlierSnapshots``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetLatestIdentityOutlierSnapshots`: []LatestOutlierSummary + fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.GetLatestIdentityOutlierSnapshots`: %v\n", resp) } ``` @@ -403,7 +403,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -412,18 +412,18 @@ func main() { outlierFeatureId := `04654b66-7561-4090-94f9-abee0722a1af` // string | Contributing feature id # string | Contributing feature id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIOutliersAPI.GetOutlierContributingFeatureSummary(context.Background(), outlierFeatureId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IAIOutliersAPI.GetOutlierContributingFeatureSummary(context.Background(), outlierFeatureId).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.GetOutlierContributingFeatureSummary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetOutlierContributingFeatureSummary`: OutlierFeatureSummary - fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.GetOutlierContributingFeatureSummary`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIOutliersAPI.GetOutlierContributingFeatureSummary(context.Background(), outlierFeatureId).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.GetOutlierContributingFeatureSummary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetOutlierContributingFeatureSummary`: OutlierFeatureSummary + fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.GetOutlierContributingFeatureSummary`: %v\n", resp) } ``` @@ -490,7 +490,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -504,18 +504,18 @@ func main() { includeTranslationMessages := `include-translation-messages=` // string | Whether or not to include translation messages object in returned response (optional) # string | Whether or not to include translation messages object in returned response (optional) sorters := `importance` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **importance** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **importance** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIOutliersAPI.GetPeerGroupOutliersContributingFeatures(context.Background(), outlierId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IAIOutliersAPI.GetPeerGroupOutliersContributingFeatures(context.Background(), outlierId).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).IncludeTranslationMessages(includeTranslationMessages).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.GetPeerGroupOutliersContributingFeatures``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPeerGroupOutliersContributingFeatures`: []OutlierContributingFeature - fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.GetPeerGroupOutliersContributingFeatures`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIOutliersAPI.GetPeerGroupOutliersContributingFeatures(context.Background(), outlierId).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).IncludeTranslationMessages(includeTranslationMessages).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.GetPeerGroupOutliersContributingFeatures``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPeerGroupOutliersContributingFeatures`: []OutlierContributingFeature + fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.GetPeerGroupOutliersContributingFeatures`: %v\n", resp) } ``` @@ -570,7 +570,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -579,22 +579,22 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") requestbody := []byte(``) // []string | - - var requestBody v2025.[]RequestBody - if err := json.Unmarshal(requestbody, &requestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var requestBody []v2025.RequestBody + if err := json.Unmarshal(requestbody, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.IAIOutliersAPI.IgnoreIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() - //r, err := apiClient.V2025.IAIOutliersAPI.IgnoreIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.IgnoreIdentityOutliers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.IAIOutliersAPI.IgnoreIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.IgnoreIdentityOutliers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -663,7 +663,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -678,18 +678,18 @@ func main() { accessType := `ENTITLEMENT` // string | The type of access item for the identity outlier contributing feature. If not provided, it returns all. (optional) # string | The type of access item for the identity outlier contributing feature. If not provided, it returns all. (optional) sorters := `displayName` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **displayName** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **displayName** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIOutliersAPI.ListOutliersContributingFeatureAccessItems(context.Background(), outlierId, contributingFeatureName).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IAIOutliersAPI.ListOutliersContributingFeatureAccessItems(context.Background(), outlierId, contributingFeatureName).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).AccessType(accessType).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.ListOutliersContributingFeatureAccessItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListOutliersContributingFeatureAccessItems`: []OutliersContributingFeatureAccessItems - fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.ListOutliersContributingFeatureAccessItems`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIOutliersAPI.ListOutliersContributingFeatureAccessItems(context.Background(), outlierId, contributingFeatureName).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).AccessType(accessType).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.ListOutliersContributingFeatureAccessItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListOutliersContributingFeatureAccessItems`: []OutliersContributingFeatureAccessItems + fmt.Fprintf(os.Stdout, "Response from `IAIOutliersAPI.ListOutliersContributingFeatureAccessItems`: %v\n", resp) } ``` @@ -744,7 +744,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -753,22 +753,22 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") requestbody := []byte(``) // []string | - - var requestBody v2025.[]RequestBody - if err := json.Unmarshal(requestbody, &requestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var requestBody []v2025.RequestBody + if err := json.Unmarshal(requestbody, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.IAIOutliersAPI.UnIgnoreIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() - //r, err := apiClient.V2025.IAIOutliersAPI.UnIgnoreIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.UnIgnoreIdentityOutliers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.IAIOutliersAPI.UnIgnoreIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIOutliersAPI.UnIgnoreIdentityOutliers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/IAIPeerGroupStrategiesAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/IAIPeerGroupStrategiesAPI.md index ad6069f3e..5a6a7b7bb 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/IAIPeerGroupStrategiesAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/IAIPeerGroupStrategiesAPI.md @@ -77,7 +77,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -89,18 +89,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIPeerGroupStrategiesAPI.GetPeerGroupOutliers(context.Background(), strategy).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IAIPeerGroupStrategiesAPI.GetPeerGroupOutliers(context.Background(), strategy).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIPeerGroupStrategiesAPI.GetPeerGroupOutliers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPeerGroupOutliers`: []PeerGroupMember - fmt.Fprintf(os.Stdout, "Response from `IAIPeerGroupStrategiesAPI.GetPeerGroupOutliers`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIPeerGroupStrategiesAPI.GetPeerGroupOutliers(context.Background(), strategy).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIPeerGroupStrategiesAPI.GetPeerGroupOutliers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPeerGroupOutliers`: []PeerGroupMember + fmt.Fprintf(os.Stdout, "Response from `IAIPeerGroupStrategiesAPI.GetPeerGroupOutliers`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/IAIRecommendationsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/IAIRecommendationsAPI.md index 1ae2a2c3b..7228617cf 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/IAIRecommendationsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/IAIRecommendationsAPI.md @@ -69,7 +69,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -96,24 +96,23 @@ func main() { "includeDebugInformation" : true }`) // RecommendationRequestDto | - - var recommendationRequestDto v2025.RecommendationRequestDto - if err := json.Unmarshal(recommendationrequestdto, &recommendationRequestDto); err != nil { - fmt.Println("Error:", err) - return - } - + var recommendationRequestDto v2025.RecommendationRequestDto + if err := json.Unmarshal(recommendationrequestdto, &recommendationRequestDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRecommendationsAPI.GetRecommendations(context.Background()).XSailPointExperimental(xSailPointExperimental).RecommendationRequestDto(recommendationRequestDto).Execute() - //resp, r, err := apiClient.V2025.IAIRecommendationsAPI.GetRecommendations(context.Background()).XSailPointExperimental(xSailPointExperimental).RecommendationRequestDto(recommendationRequestDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRecommendationsAPI.GetRecommendations``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRecommendations`: RecommendationResponseDto - fmt.Fprintf(os.Stdout, "Response from `IAIRecommendationsAPI.GetRecommendations`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIRecommendationsAPI.GetRecommendations(context.Background()).XSailPointExperimental(xSailPointExperimental).RecommendationRequestDto(recommendationRequestDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRecommendationsAPI.GetRecommendations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRecommendations`: RecommendationResponseDto + fmt.Fprintf(os.Stdout, "Response from `IAIRecommendationsAPI.GetRecommendations`: %v\n", resp) } ``` @@ -167,7 +166,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -175,18 +174,18 @@ import ( func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRecommendationsAPI.GetRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IAIRecommendationsAPI.GetRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRecommendationsAPI.GetRecommendationsConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRecommendationsConfig`: RecommendationConfigDto - fmt.Fprintf(os.Stdout, "Response from `IAIRecommendationsAPI.GetRecommendationsConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIRecommendationsAPI.GetRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRecommendationsAPI.GetRecommendationsConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRecommendationsConfig`: RecommendationConfigDto + fmt.Fprintf(os.Stdout, "Response from `IAIRecommendationsAPI.GetRecommendationsConfig`: %v\n", resp) } ``` @@ -241,7 +240,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -255,24 +254,23 @@ func main() { "onlyTuneThreshold" : false }`) // RecommendationConfigDto | - - var recommendationConfigDto v2025.RecommendationConfigDto - if err := json.Unmarshal(recommendationconfigdto, &recommendationConfigDto); err != nil { - fmt.Println("Error:", err) - return - } - + var recommendationConfigDto v2025.RecommendationConfigDto + if err := json.Unmarshal(recommendationconfigdto, &recommendationConfigDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRecommendationsAPI.UpdateRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).RecommendationConfigDto(recommendationConfigDto).Execute() - //resp, r, err := apiClient.V2025.IAIRecommendationsAPI.UpdateRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).RecommendationConfigDto(recommendationConfigDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRecommendationsAPI.UpdateRecommendationsConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateRecommendationsConfig`: RecommendationConfigDto - fmt.Fprintf(os.Stdout, "Response from `IAIRecommendationsAPI.UpdateRecommendationsConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIRecommendationsAPI.UpdateRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).RecommendationConfigDto(recommendationConfigDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRecommendationsAPI.UpdateRecommendationsConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateRecommendationsConfig`: RecommendationConfigDto + fmt.Fprintf(os.Stdout, "Response from `IAIRecommendationsAPI.UpdateRecommendationsConfig`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/IAIRoleMiningAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/IAIRoleMiningAPI.md index b04e2470d..55a83199d 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/IAIRoleMiningAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/IAIRoleMiningAPI.md @@ -100,7 +100,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -119,18 +119,18 @@ func main() { "directlyAssignedEntitlements" : false }`) // RoleMiningPotentialRoleProvisionRequest | Required information to create a new role (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.CreatePotentialRoleProvisionRequest(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.CreatePotentialRoleProvisionRequest(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).MinEntitlementPopularity(minEntitlementPopularity).IncludeCommonAccess(includeCommonAccess).RoleMiningPotentialRoleProvisionRequest(roleMiningPotentialRoleProvisionRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.CreatePotentialRoleProvisionRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreatePotentialRoleProvisionRequest`: RoleMiningPotentialRoleSummary - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.CreatePotentialRoleProvisionRequest`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.CreatePotentialRoleProvisionRequest(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).MinEntitlementPopularity(minEntitlementPopularity).IncludeCommonAccess(includeCommonAccess).RoleMiningPotentialRoleProvisionRequest(roleMiningPotentialRoleProvisionRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.CreatePotentialRoleProvisionRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreatePotentialRoleProvisionRequest`: RoleMiningPotentialRoleSummary + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.CreatePotentialRoleProvisionRequest`: %v\n", resp) } ``` @@ -185,7 +185,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -225,24 +225,23 @@ func main() { "type" : "SPECIALIZED" }`) // RoleMiningSessionDto | Role mining session parameters - - var roleMiningSessionDto v2025.RoleMiningSessionDto - if err := json.Unmarshal(roleminingsessiondto, &roleMiningSessionDto); err != nil { - fmt.Println("Error:", err) - return - } - + var roleMiningSessionDto v2025.RoleMiningSessionDto + if err := json.Unmarshal(roleminingsessiondto, &roleMiningSessionDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.CreateRoleMiningSessions(context.Background()).XSailPointExperimental(xSailPointExperimental).RoleMiningSessionDto(roleMiningSessionDto).Execute() - //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.CreateRoleMiningSessions(context.Background()).XSailPointExperimental(xSailPointExperimental).RoleMiningSessionDto(roleMiningSessionDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.CreateRoleMiningSessions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateRoleMiningSessions`: RoleMiningSessionResponse - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.CreateRoleMiningSessions`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.CreateRoleMiningSessions(context.Background()).XSailPointExperimental(xSailPointExperimental).RoleMiningSessionDto(roleMiningSessionDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.CreateRoleMiningSessions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateRoleMiningSessions`: RoleMiningSessionResponse + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.CreateRoleMiningSessions`: %v\n", resp) } ``` @@ -305,7 +304,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -316,18 +315,18 @@ func main() { exportId := `4940ffd4-836f-48a3-b2b0-6d498c3fdf40` // string | The id of a previously run export job for this potential role # string | The id of a previously run export job for this potential role xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.DownloadRoleMiningPotentialRoleZip(context.Background(), sessionId, potentialRoleId, exportId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.DownloadRoleMiningPotentialRoleZip(context.Background(), sessionId, potentialRoleId, exportId).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.DownloadRoleMiningPotentialRoleZip``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DownloadRoleMiningPotentialRoleZip`: *os.File - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.DownloadRoleMiningPotentialRoleZip`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.DownloadRoleMiningPotentialRoleZip(context.Background(), sessionId, potentialRoleId, exportId).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.DownloadRoleMiningPotentialRoleZip``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DownloadRoleMiningPotentialRoleZip`: *os.File + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.DownloadRoleMiningPotentialRoleZip`: %v\n", resp) } ``` @@ -388,7 +387,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -398,18 +397,18 @@ func main() { potentialRoleId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | A potential role id in a role mining session # string | A potential role id in a role mining session xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.ExportRoleMiningPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.ExportRoleMiningPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.ExportRoleMiningPotentialRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExportRoleMiningPotentialRole`: *os.File - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.ExportRoleMiningPotentialRole`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.ExportRoleMiningPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.ExportRoleMiningPotentialRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExportRoleMiningPotentialRole`: *os.File + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.ExportRoleMiningPotentialRole`: %v\n", resp) } ``` @@ -471,7 +470,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -485,18 +484,18 @@ func main() { "includeCommonAccess" : true }`) // RoleMiningPotentialRoleExportRequest | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleAsync(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleAsync(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).RoleMiningPotentialRoleExportRequest(roleMiningPotentialRoleExportRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.ExportRoleMiningPotentialRoleAsync``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExportRoleMiningPotentialRoleAsync`: RoleMiningPotentialRoleExportResponse - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.ExportRoleMiningPotentialRoleAsync`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleAsync(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).RoleMiningPotentialRoleExportRequest(roleMiningPotentialRoleExportRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.ExportRoleMiningPotentialRoleAsync``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExportRoleMiningPotentialRoleAsync`: RoleMiningPotentialRoleExportResponse + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.ExportRoleMiningPotentialRoleAsync`: %v\n", resp) } ``` @@ -559,7 +558,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -570,18 +569,18 @@ func main() { exportId := `4940ffd4-836f-48a3-b2b0-6d498c3fdf40` // string | The id of a previously run export job for this potential role # string | The id of a previously run export job for this potential role xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleStatus(context.Background(), sessionId, potentialRoleId, exportId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleStatus(context.Background(), sessionId, potentialRoleId, exportId).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.ExportRoleMiningPotentialRoleStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExportRoleMiningPotentialRoleStatus`: RoleMiningPotentialRoleExportResponse - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.ExportRoleMiningPotentialRoleStatus`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleStatus(context.Background(), sessionId, potentialRoleId, exportId).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.ExportRoleMiningPotentialRoleStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExportRoleMiningPotentialRoleStatus`: RoleMiningPotentialRoleExportResponse + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.ExportRoleMiningPotentialRoleStatus`: %v\n", resp) } ``` @@ -640,7 +639,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -653,18 +652,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetAllPotentialRoleSummaries(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetAllPotentialRoleSummaries(context.Background()).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetAllPotentialRoleSummaries``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAllPotentialRoleSummaries`: []RoleMiningPotentialRoleSummary - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetAllPotentialRoleSummaries`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetAllPotentialRoleSummaries(context.Background()).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetAllPotentialRoleSummaries``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAllPotentialRoleSummaries`: []RoleMiningPotentialRoleSummary + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetAllPotentialRoleSummaries`: %v\n", resp) } ``` @@ -726,7 +725,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -737,18 +736,18 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") includeCommonAccess := true // bool | Boolean determining whether common access entitlements will be included or not (optional) # bool | Boolean determining whether common access entitlements will be included or not (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetEntitlementDistributionPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetEntitlementDistributionPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).IncludeCommonAccess(includeCommonAccess).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetEntitlementDistributionPotentialRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetEntitlementDistributionPotentialRole`: map[string]int32 - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetEntitlementDistributionPotentialRole`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetEntitlementDistributionPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).IncludeCommonAccess(includeCommonAccess).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetEntitlementDistributionPotentialRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetEntitlementDistributionPotentialRole`: map[string]int32 + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetEntitlementDistributionPotentialRole`: %v\n", resp) } ``` @@ -815,7 +814,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -831,18 +830,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).IncludeCommonAccess(includeCommonAccess).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetEntitlementsPotentialRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetEntitlementsPotentialRole`: []RoleMiningEntitlement - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetEntitlementsPotentialRole`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).IncludeCommonAccess(includeCommonAccess).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetEntitlementsPotentialRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetEntitlementsPotentialRole`: []RoleMiningEntitlement + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetEntitlementsPotentialRole`: %v\n", resp) } ``` @@ -908,7 +907,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -923,18 +922,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetExcludedEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetExcludedEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetExcludedEntitlementsPotentialRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetExcludedEntitlementsPotentialRole`: []RoleMiningEntitlement - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetExcludedEntitlementsPotentialRole`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetExcludedEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetExcludedEntitlementsPotentialRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetExcludedEntitlementsPotentialRole`: []RoleMiningEntitlement + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetExcludedEntitlementsPotentialRole`: %v\n", resp) } ``` @@ -1000,7 +999,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1015,18 +1014,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetIdentitiesPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetIdentitiesPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetIdentitiesPotentialRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentitiesPotentialRole`: []RoleMiningIdentity - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetIdentitiesPotentialRole`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetIdentitiesPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetIdentitiesPotentialRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentitiesPotentialRole`: []RoleMiningIdentity + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetIdentitiesPotentialRole`: %v\n", resp) } ``` @@ -1087,7 +1086,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1097,18 +1096,18 @@ func main() { potentialRoleId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | A potential role id in a role mining session # string | A potential role id in a role mining session xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetPotentialRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPotentialRole`: RoleMiningPotentialRole - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetPotentialRole`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetPotentialRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPotentialRole`: RoleMiningPotentialRole + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetPotentialRole`: %v\n", resp) } ``` @@ -1173,7 +1172,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1187,18 +1186,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetPotentialRoleApplications(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetPotentialRoleApplications(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetPotentialRoleApplications``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPotentialRoleApplications`: []RoleMiningPotentialRoleApplication - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetPotentialRoleApplications`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetPotentialRoleApplications(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetPotentialRoleApplications``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPotentialRoleApplications`: []RoleMiningPotentialRoleApplication + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetPotentialRoleApplications`: %v\n", resp) } ``` @@ -1263,7 +1262,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1277,18 +1276,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetPotentialRoleEntitlements(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetPotentialRoleEntitlements(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetPotentialRoleEntitlements``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPotentialRoleEntitlements`: []RoleMiningPotentialRoleEntitlements - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetPotentialRoleEntitlements`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetPotentialRoleEntitlements(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetPotentialRoleEntitlements``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPotentialRoleEntitlements`: []RoleMiningPotentialRoleEntitlements + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetPotentialRoleEntitlements`: %v\n", resp) } ``` @@ -1353,7 +1352,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1367,18 +1366,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetPotentialRoleSourceIdentityUsage(context.Background(), potentialRoleId, sourceId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetPotentialRoleSourceIdentityUsage(context.Background(), potentialRoleId, sourceId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetPotentialRoleSourceIdentityUsage``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPotentialRoleSourceIdentityUsage`: []RoleMiningPotentialRoleSourceUsage - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetPotentialRoleSourceIdentityUsage`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetPotentialRoleSourceIdentityUsage(context.Background(), potentialRoleId, sourceId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetPotentialRoleSourceIdentityUsage``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPotentialRoleSourceIdentityUsage`: []RoleMiningPotentialRoleSourceUsage + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetPotentialRoleSourceIdentityUsage`: %v\n", resp) } ``` @@ -1442,7 +1441,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1456,18 +1455,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetPotentialRoleSummaries(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetPotentialRoleSummaries(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetPotentialRoleSummaries``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPotentialRoleSummaries`: []RoleMiningPotentialRoleSummary - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetPotentialRoleSummaries`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetPotentialRoleSummaries(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetPotentialRoleSummaries``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPotentialRoleSummaries`: []RoleMiningPotentialRoleSummary + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetPotentialRoleSummaries`: %v\n", resp) } ``` @@ -1526,7 +1525,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1535,18 +1534,18 @@ func main() { potentialRoleId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | A potential role id # string | A potential role id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetRoleMiningPotentialRole(context.Background(), potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetRoleMiningPotentialRole(context.Background(), potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetRoleMiningPotentialRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleMiningPotentialRole`: RoleMiningPotentialRole - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetRoleMiningPotentialRole`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetRoleMiningPotentialRole(context.Background(), potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetRoleMiningPotentialRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleMiningPotentialRole`: RoleMiningPotentialRole + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetRoleMiningPotentialRole`: %v\n", resp) } ``` @@ -1605,7 +1604,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1614,18 +1613,18 @@ func main() { sessionId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role mining session id to be retrieved. # string | The role mining session id to be retrieved. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetRoleMiningSession(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetRoleMiningSession(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetRoleMiningSession``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleMiningSession`: RoleMiningSessionResponse - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetRoleMiningSession`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetRoleMiningSession(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetRoleMiningSession``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleMiningSession`: RoleMiningSessionResponse + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetRoleMiningSession`: %v\n", resp) } ``` @@ -1684,7 +1683,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1693,18 +1692,18 @@ func main() { sessionId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role mining session id # string | The role mining session id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetRoleMiningSessionStatus(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetRoleMiningSessionStatus(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetRoleMiningSessionStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleMiningSessionStatus`: RoleMiningSessionStatus - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetRoleMiningSessionStatus`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetRoleMiningSessionStatus(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetRoleMiningSessionStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleMiningSessionStatus`: RoleMiningSessionStatus + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetRoleMiningSessionStatus`: %v\n", resp) } ``` @@ -1763,7 +1762,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1776,18 +1775,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetRoleMiningSessions(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetRoleMiningSessions(context.Background()).XSailPointExperimental(xSailPointExperimental).Filters(filters).Sorters(sorters).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetRoleMiningSessions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleMiningSessions`: []RoleMiningSessionDto - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetRoleMiningSessions`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetRoleMiningSessions(context.Background()).XSailPointExperimental(xSailPointExperimental).Filters(filters).Sorters(sorters).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetRoleMiningSessions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleMiningSessions`: []RoleMiningSessionDto + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetRoleMiningSessions`: %v\n", resp) } ``` @@ -1845,7 +1844,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1857,18 +1856,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetSavedPotentialRoles(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetSavedPotentialRoles(context.Background()).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetSavedPotentialRoles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSavedPotentialRoles`: []RoleMiningSessionDraftRoleDto - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetSavedPotentialRoles`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetSavedPotentialRoles(context.Background()).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.GetSavedPotentialRoles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSavedPotentialRoles`: []RoleMiningSessionDraftRoleDto + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.GetSavedPotentialRoles`: %v\n", resp) } ``` @@ -1942,7 +1941,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1953,24 +1952,23 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") patchpotentialrolerequestinner := []byte(`[{op=remove, path=/description}, {op=replace, path=/description, value=Acct I - Potential Role}, {op=remove, path=/saved}, {op=replace, path=/saved, value=false}, {op=remove, path=/name}, {op=replace, path=/name, value=Potential Role Accounting}]`) // []PatchPotentialRoleRequestInner | - - var patchPotentialRoleRequestInner v2025.[]PatchPotentialRoleRequestInner - if err := json.Unmarshal(patchpotentialrolerequestinner, &patchPotentialRoleRequestInner); err != nil { - fmt.Println("Error:", err) - return - } - + var patchPotentialRoleRequestInner []v2025.PatchPotentialRoleRequestInner + if err := json.Unmarshal(patchpotentialrolerequestinner, &patchPotentialRoleRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.PatchPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() - //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.PatchPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.PatchPotentialRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchPotentialRole`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.PatchPotentialRole`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.PatchPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.PatchPotentialRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchPotentialRole`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.PatchPotentialRole`: %v\n", resp) } ``` @@ -2044,7 +2042,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2055,24 +2053,23 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") patchpotentialrolerequestinner := []byte(`[{op=remove, path=/description}, {op=replace, path=/description, value=Acct I - Potential Role}, {op=remove, path=/saved}, {op=replace, path=/saved, value=false}, {op=remove, path=/name}, {op=replace, path=/name, value=Potential Role Accounting}]`) // []PatchPotentialRoleRequestInner | - - var patchPotentialRoleRequestInner v2025.[]PatchPotentialRoleRequestInner - if err := json.Unmarshal(patchpotentialrolerequestinner, &patchPotentialRoleRequestInner); err != nil { - fmt.Println("Error:", err) - return - } - + var patchPotentialRoleRequestInner []v2025.PatchPotentialRoleRequestInner + if err := json.Unmarshal(patchpotentialrolerequestinner, &patchPotentialRoleRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.PatchPotentialRole_0(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() - //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.PatchPotentialRole_0(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.PatchPotentialRole_0``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchPotentialRole_0`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.PatchPotentialRole_0`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.PatchPotentialRole_0(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.PatchPotentialRole_0``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchPotentialRole_0`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.PatchPotentialRole_0`: %v\n", resp) } ``` @@ -2132,7 +2129,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2142,24 +2139,23 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") jsonpatchoperation := []byte(`[{op=replace, path=/pruneThreshold, value=83}, {op=replace, path=/minNumIdentitiesInPotentialRole, value=10}, {op=replace, path=/saved, value=false}, {op=replace, path=/name, value=RM Session - 07/10/22}, {op=add, path=/name, value=RM Session - 07/10/22}]`) // []JsonPatchOperation | Replace pruneThreshold and/or minNumIdentitiesInPotentialRole in role mining session. Update saved status or saved name for a role mining session. - - var jsonPatchOperation v2025.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2025.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.PatchRoleMiningSession(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.PatchRoleMiningSession(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.PatchRoleMiningSession``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchRoleMiningSession`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.PatchRoleMiningSession`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.PatchRoleMiningSession(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.PatchRoleMiningSession``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchRoleMiningSession`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.PatchRoleMiningSession`: %v\n", resp) } ``` @@ -2221,7 +2217,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2235,24 +2231,23 @@ func main() { "exclude" : true }`) // RoleMiningPotentialRoleEditEntitlements | Role mining session parameters - - var roleMiningPotentialRoleEditEntitlements v2025.RoleMiningPotentialRoleEditEntitlements - if err := json.Unmarshal(roleminingpotentialroleeditentitlements, &roleMiningPotentialRoleEditEntitlements); err != nil { - fmt.Println("Error:", err) - return - } - + var roleMiningPotentialRoleEditEntitlements v2025.RoleMiningPotentialRoleEditEntitlements + if err := json.Unmarshal(roleminingpotentialroleeditentitlements, &roleMiningPotentialRoleEditEntitlements); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.UpdateEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).RoleMiningPotentialRoleEditEntitlements(roleMiningPotentialRoleEditEntitlements).Execute() - //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.UpdateEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).RoleMiningPotentialRoleEditEntitlements(roleMiningPotentialRoleEditEntitlements).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.UpdateEntitlementsPotentialRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateEntitlementsPotentialRole`: RoleMiningPotentialRole - fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.UpdateEntitlementsPotentialRole`: %v\n", resp) + //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.UpdateEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).RoleMiningPotentialRoleEditEntitlements(roleMiningPotentialRoleEditEntitlements).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IAIRoleMiningAPI.UpdateEntitlementsPotentialRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateEntitlementsPotentialRole`: RoleMiningPotentialRole + fmt.Fprintf(os.Stdout, "Response from `IAIRoleMiningAPI.UpdateEntitlementsPotentialRole`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/IconsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/IconsAPI.md index b72be8ff8..33b8c3688 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/IconsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/IconsAPI.md @@ -76,7 +76,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -86,16 +86,17 @@ func main() { objectId := `a291e870-48c3-4953-b656-fb5ce2a93169` // string | Object id. # string | Object id. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.IconsAPI.DeleteIcon(context.Background(), objectType, objectId).XSailPointExperimental(xSailPointExperimental).Execute() - //r, err := apiClient.V2025.IconsAPI.DeleteIcon(context.Background(), objectType, objectId).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IconsAPI.DeleteIcon``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.IconsAPI.DeleteIcon(context.Background(), objectType, objectId).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IconsAPI.DeleteIcon``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -157,7 +158,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -168,18 +169,18 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") image := BINARY_DATA_HERE // *os.File | file with icon. Allowed mime-types ['image/png', 'image/jpeg'] # *os.File | file with icon. Allowed mime-types ['image/png', 'image/jpeg'] - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IconsAPI.SetIcon(context.Background(), objectType, objectId).XSailPointExperimental(xSailPointExperimental).Image(image).Execute() - //resp, r, err := apiClient.V2025.IconsAPI.SetIcon(context.Background(), objectType, objectId).XSailPointExperimental(xSailPointExperimental).Image(image).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IconsAPI.SetIcon``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetIcon`: SetIcon200Response - fmt.Fprintf(os.Stdout, "Response from `IconsAPI.SetIcon`: %v\n", resp) + //resp, r, err := apiClient.V2025.IconsAPI.SetIcon(context.Background(), objectType, objectId).XSailPointExperimental(xSailPointExperimental).Image(image).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IconsAPI.SetIcon``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetIcon`: SetIcon200Response + fmt.Fprintf(os.Stdout, "Response from `IconsAPI.SetIcon`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/IdentitiesAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/IdentitiesAPI.md index 6f8bd1328..28a4fac0d 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/IdentitiesAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/IdentitiesAPI.md @@ -96,7 +96,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -105,16 +105,17 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Identity Id # string | Identity Id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.IdentitiesAPI.DeleteIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //r, err := apiClient.V2025.IdentitiesAPI.DeleteIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.DeleteIdentity``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.IdentitiesAPI.DeleteIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.DeleteIdentity``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -173,7 +174,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -182,18 +183,18 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Identity Id # string | Identity Id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentitiesAPI.GetIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IdentitiesAPI.GetIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.GetIdentity``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentity`: Identity - fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.GetIdentity`: %v\n", resp) + //resp, r, err := apiClient.V2025.IdentitiesAPI.GetIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.GetIdentity``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentity`: Identity + fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.GetIdentity`: %v\n", resp) } ``` @@ -254,7 +255,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -263,18 +264,18 @@ func main() { identityId := `ff8081814d2a8036014d701f3fbf53fa` // string | Identity ID. # string | Identity ID. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentitiesAPI.GetIdentityOwnershipDetails(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IdentitiesAPI.GetIdentityOwnershipDetails(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.GetIdentityOwnershipDetails``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentityOwnershipDetails`: IdentityOwnershipAssociationDetails - fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.GetIdentityOwnershipDetails`: %v\n", resp) + //resp, r, err := apiClient.V2025.IdentitiesAPI.GetIdentityOwnershipDetails(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.GetIdentityOwnershipDetails``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityOwnershipDetails`: IdentityOwnershipAssociationDetails + fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.GetIdentityOwnershipDetails`: %v\n", resp) } ``` @@ -335,7 +336,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -345,18 +346,18 @@ func main() { assignmentId := `1cbb0705b38c4226b1334eadd8874086` // string | Assignment Id # string | Assignment Id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentitiesAPI.GetRoleAssignment(context.Background(), identityId, assignmentId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IdentitiesAPI.GetRoleAssignment(context.Background(), identityId, assignmentId).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.GetRoleAssignment``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleAssignment`: RoleAssignmentDto - fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.GetRoleAssignment`: %v\n", resp) + //resp, r, err := apiClient.V2025.IdentitiesAPI.GetRoleAssignment(context.Background(), identityId, assignmentId).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.GetRoleAssignment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleAssignment`: RoleAssignmentDto + fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.GetRoleAssignment`: %v\n", resp) } ``` @@ -417,7 +418,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -428,18 +429,18 @@ func main() { roleId := `e7697a1e96d04db1ac7b0f4544915d2c` // string | Role Id to filter the role assignments with (optional) # string | Role Id to filter the role assignments with (optional) roleName := `Engineer` // string | Role name to filter the role assignments with (optional) # string | Role name to filter the role assignments with (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentitiesAPI.GetRoleAssignments(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IdentitiesAPI.GetRoleAssignments(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).RoleId(roleId).RoleName(roleName).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.GetRoleAssignments``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleAssignments`: []GetRoleAssignments200ResponseInner - fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.GetRoleAssignments`: %v\n", resp) + //resp, r, err := apiClient.V2025.IdentitiesAPI.GetRoleAssignments(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).RoleId(roleId).RoleName(roleName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.GetRoleAssignments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleAssignments`: []GetRoleAssignments200ResponseInner + fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.GetRoleAssignments`: %v\n", resp) } ``` @@ -499,7 +500,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -513,18 +514,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentitiesAPI.ListIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IdentitiesAPI.ListIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).Filters(filters).Sorters(sorters).DefaultFilter(defaultFilter).Count(count).Limit(limit).Offset(offset).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.ListIdentities``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListIdentities`: []Identity - fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.ListIdentities`: %v\n", resp) + //resp, r, err := apiClient.V2025.IdentitiesAPI.ListIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).Filters(filters).Sorters(sorters).DefaultFilter(defaultFilter).Count(count).Limit(limit).Offset(offset).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.ListIdentities``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListIdentities`: []Identity + fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.ListIdentities`: %v\n", resp) } ``` @@ -583,7 +584,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -592,16 +593,17 @@ func main() { identityId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity Id # string | Identity Id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.IdentitiesAPI.ResetIdentity(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() - //r, err := apiClient.V2025.IdentitiesAPI.ResetIdentity(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.ResetIdentity``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.IdentitiesAPI.ResetIdentity(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.ResetIdentity``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -662,7 +664,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -675,22 +677,22 @@ func main() { "via" : "EMAIL_WORK" }`) // SendAccountVerificationRequest | - - var sendAccountVerificationRequest v2025.SendAccountVerificationRequest - if err := json.Unmarshal(sendaccountverificationrequest, &sendAccountVerificationRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var sendAccountVerificationRequest v2025.SendAccountVerificationRequest + if err := json.Unmarshal(sendaccountverificationrequest, &sendAccountVerificationRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.IdentitiesAPI.SendIdentityVerificationAccountToken(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SendAccountVerificationRequest(sendAccountVerificationRequest).Execute() - //r, err := apiClient.V2025.IdentitiesAPI.SendIdentityVerificationAccountToken(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SendAccountVerificationRequest(sendAccountVerificationRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.SendIdentityVerificationAccountToken``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.IdentitiesAPI.SendIdentityVerificationAccountToken(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SendAccountVerificationRequest(sendAccountVerificationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.SendIdentityVerificationAccountToken``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -750,7 +752,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -762,24 +764,23 @@ func main() { "uninvited" : false }`) // InviteIdentitiesRequest | - - var inviteIdentitiesRequest v2025.InviteIdentitiesRequest - if err := json.Unmarshal(inviteidentitiesrequest, &inviteIdentitiesRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var inviteIdentitiesRequest v2025.InviteIdentitiesRequest + if err := json.Unmarshal(inviteidentitiesrequest, &inviteIdentitiesRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentitiesAPI.StartIdentitiesInvite(context.Background()).XSailPointExperimental(xSailPointExperimental).InviteIdentitiesRequest(inviteIdentitiesRequest).Execute() - //resp, r, err := apiClient.V2025.IdentitiesAPI.StartIdentitiesInvite(context.Background()).XSailPointExperimental(xSailPointExperimental).InviteIdentitiesRequest(inviteIdentitiesRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.StartIdentitiesInvite``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartIdentitiesInvite`: TaskStatus - fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.StartIdentitiesInvite`: %v\n", resp) + //resp, r, err := apiClient.V2025.IdentitiesAPI.StartIdentitiesInvite(context.Background()).XSailPointExperimental(xSailPointExperimental).InviteIdentitiesRequest(inviteIdentitiesRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.StartIdentitiesInvite``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartIdentitiesInvite`: TaskStatus + fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.StartIdentitiesInvite`: %v\n", resp) } ``` @@ -841,7 +842,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -852,24 +853,23 @@ func main() { "identityIds" : [ "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8", "ef38f94347e94562b5bb8424a56397d8" ] }`) // ProcessIdentitiesRequest | - - var processIdentitiesRequest v2025.ProcessIdentitiesRequest - if err := json.Unmarshal(processidentitiesrequest, &processIdentitiesRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var processIdentitiesRequest v2025.ProcessIdentitiesRequest + if err := json.Unmarshal(processidentitiesrequest, &processIdentitiesRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentitiesAPI.StartIdentityProcessing(context.Background()).XSailPointExperimental(xSailPointExperimental).ProcessIdentitiesRequest(processIdentitiesRequest).Execute() - //resp, r, err := apiClient.V2025.IdentitiesAPI.StartIdentityProcessing(context.Background()).XSailPointExperimental(xSailPointExperimental).ProcessIdentitiesRequest(processIdentitiesRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.StartIdentityProcessing``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartIdentityProcessing`: TaskResultResponse - fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.StartIdentityProcessing`: %v\n", resp) + //resp, r, err := apiClient.V2025.IdentitiesAPI.StartIdentityProcessing(context.Background()).XSailPointExperimental(xSailPointExperimental).ProcessIdentitiesRequest(processIdentitiesRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.StartIdentityProcessing``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartIdentityProcessing`: TaskResultResponse + fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.StartIdentityProcessing`: %v\n", resp) } ``` @@ -928,7 +928,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -937,18 +937,18 @@ func main() { identityId := `identityId_example` // string | The Identity id # string | The Identity id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentitiesAPI.SynchronizeAttributesForIdentity(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IdentitiesAPI.SynchronizeAttributesForIdentity(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.SynchronizeAttributesForIdentity``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SynchronizeAttributesForIdentity`: IdentitySyncJob - fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.SynchronizeAttributesForIdentity`: %v\n", resp) + //resp, r, err := apiClient.V2025.IdentitiesAPI.SynchronizeAttributesForIdentity(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentitiesAPI.SynchronizeAttributesForIdentity``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SynchronizeAttributesForIdentity`: IdentitySyncJob + fmt.Fprintf(os.Stdout, "Response from `IdentitiesAPI.SynchronizeAttributesForIdentity`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/IdentityAttributesAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/IdentityAttributesAPI.md index 45e3f3eb3..231104f01 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/IdentityAttributesAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/IdentityAttributesAPI.md @@ -72,7 +72,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -102,24 +102,23 @@ func main() { "multi" : false }`) // IdentityAttribute | - - var identityAttribute v2025.IdentityAttribute - if err := json.Unmarshal(identityattribute, &identityAttribute); err != nil { - fmt.Println("Error:", err) - return - } - + var identityAttribute v2025.IdentityAttribute + if err := json.Unmarshal(identityattribute, &identityAttribute); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityAttributesAPI.CreateIdentityAttribute(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityAttribute(identityAttribute).Execute() - //resp, r, err := apiClient.V2025.IdentityAttributesAPI.CreateIdentityAttribute(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityAttribute(identityAttribute).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityAttributesAPI.CreateIdentityAttribute``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateIdentityAttribute`: IdentityAttribute - fmt.Fprintf(os.Stdout, "Response from `IdentityAttributesAPI.CreateIdentityAttribute`: %v\n", resp) + //resp, r, err := apiClient.V2025.IdentityAttributesAPI.CreateIdentityAttribute(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityAttribute(identityAttribute).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityAttributesAPI.CreateIdentityAttribute``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateIdentityAttribute`: IdentityAttribute + fmt.Fprintf(os.Stdout, "Response from `IdentityAttributesAPI.CreateIdentityAttribute`: %v\n", resp) } ``` @@ -178,7 +177,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -187,16 +186,17 @@ func main() { name := `displayName` // string | The attribute's technical name. # string | The attribute's technical name. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.IdentityAttributesAPI.DeleteIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() - //r, err := apiClient.V2025.IdentityAttributesAPI.DeleteIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityAttributesAPI.DeleteIdentityAttribute``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.IdentityAttributesAPI.DeleteIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityAttributesAPI.DeleteIdentityAttribute``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -251,7 +251,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -262,22 +262,22 @@ func main() { "ids" : [ "name", "displayName" ] }`) // IdentityAttributeNames | - - var identityAttributeNames v2025.IdentityAttributeNames - if err := json.Unmarshal(identityattributenames, &identityAttributeNames); err != nil { - fmt.Println("Error:", err) - return - } - + var identityAttributeNames v2025.IdentityAttributeNames + if err := json.Unmarshal(identityattributenames, &identityAttributeNames); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.IdentityAttributesAPI.DeleteIdentityAttributesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityAttributeNames(identityAttributeNames).Execute() - //r, err := apiClient.V2025.IdentityAttributesAPI.DeleteIdentityAttributesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityAttributeNames(identityAttributeNames).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityAttributesAPI.DeleteIdentityAttributesInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.IdentityAttributesAPI.DeleteIdentityAttributesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityAttributeNames(identityAttributeNames).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityAttributesAPI.DeleteIdentityAttributesInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -336,7 +336,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -345,18 +345,18 @@ func main() { name := `displayName` // string | The attribute's technical name. # string | The attribute's technical name. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityAttributesAPI.GetIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IdentityAttributesAPI.GetIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityAttributesAPI.GetIdentityAttribute``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentityAttribute`: IdentityAttribute - fmt.Fprintf(os.Stdout, "Response from `IdentityAttributesAPI.GetIdentityAttribute`: %v\n", resp) + //resp, r, err := apiClient.V2025.IdentityAttributesAPI.GetIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityAttributesAPI.GetIdentityAttribute``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityAttribute`: IdentityAttribute + fmt.Fprintf(os.Stdout, "Response from `IdentityAttributesAPI.GetIdentityAttribute`: %v\n", resp) } ``` @@ -414,7 +414,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -426,18 +426,18 @@ func main() { searchableOnly := false // bool | Include only 'searchable' attributes in the response. (optional) (default to false) # bool | Include only 'searchable' attributes in the response. (optional) (default to false) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityAttributesAPI.ListIdentityAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IdentityAttributesAPI.ListIdentityAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).IncludeSystem(includeSystem).IncludeSilent(includeSilent).SearchableOnly(searchableOnly).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityAttributesAPI.ListIdentityAttributes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListIdentityAttributes`: []IdentityAttribute - fmt.Fprintf(os.Stdout, "Response from `IdentityAttributesAPI.ListIdentityAttributes`: %v\n", resp) + //resp, r, err := apiClient.V2025.IdentityAttributesAPI.ListIdentityAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).IncludeSystem(includeSystem).IncludeSilent(includeSilent).SearchableOnly(searchableOnly).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityAttributesAPI.ListIdentityAttributes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListIdentityAttributes`: []IdentityAttribute + fmt.Fprintf(os.Stdout, "Response from `IdentityAttributesAPI.ListIdentityAttributes`: %v\n", resp) } ``` @@ -497,7 +497,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -528,24 +528,23 @@ func main() { "multi" : false }`) // IdentityAttribute | - - var identityAttribute v2025.IdentityAttribute - if err := json.Unmarshal(identityattribute, &identityAttribute); err != nil { - fmt.Println("Error:", err) - return - } - + var identityAttribute v2025.IdentityAttribute + if err := json.Unmarshal(identityattribute, &identityAttribute); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityAttributesAPI.PutIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).IdentityAttribute(identityAttribute).Execute() - //resp, r, err := apiClient.V2025.IdentityAttributesAPI.PutIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).IdentityAttribute(identityAttribute).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityAttributesAPI.PutIdentityAttribute``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutIdentityAttribute`: IdentityAttribute - fmt.Fprintf(os.Stdout, "Response from `IdentityAttributesAPI.PutIdentityAttribute`: %v\n", resp) + //resp, r, err := apiClient.V2025.IdentityAttributesAPI.PutIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).IdentityAttribute(identityAttribute).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityAttributesAPI.PutIdentityAttribute``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutIdentityAttribute`: IdentityAttribute + fmt.Fprintf(os.Stdout, "Response from `IdentityAttributesAPI.PutIdentityAttribute`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/IdentityHistoryAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/IdentityHistoryAPI.md index c67c5a3cd..c4642f62e 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/IdentityHistoryAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/IdentityHistoryAPI.md @@ -87,7 +87,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -102,18 +102,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityHistoryAPI.CompareIdentitySnapshots(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IdentityHistoryAPI.CompareIdentitySnapshots(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Snapshot1(snapshot1).Snapshot2(snapshot2).AccessItemTypes(accessItemTypes).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.CompareIdentitySnapshots``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CompareIdentitySnapshots`: []IdentityCompareResponse - fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.CompareIdentitySnapshots`: %v\n", resp) + //resp, r, err := apiClient.V2025.IdentityHistoryAPI.CompareIdentitySnapshots(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Snapshot1(snapshot1).Snapshot2(snapshot2).AccessItemTypes(accessItemTypes).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.CompareIdentitySnapshots``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CompareIdentitySnapshots`: []IdentityCompareResponse + fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.CompareIdentitySnapshots`: %v\n", resp) } ``` @@ -180,7 +180,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -196,18 +196,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityHistoryAPI.CompareIdentitySnapshotsAccessType(context.Background(), id, accessType).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IdentityHistoryAPI.CompareIdentitySnapshotsAccessType(context.Background(), id, accessType).XSailPointExperimental(xSailPointExperimental).AccessAssociated(accessAssociated).Snapshot1(snapshot1).Snapshot2(snapshot2).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.CompareIdentitySnapshotsAccessType``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CompareIdentitySnapshotsAccessType`: []AccessItemDiff - fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.CompareIdentitySnapshotsAccessType`: %v\n", resp) + //resp, r, err := apiClient.V2025.IdentityHistoryAPI.CompareIdentitySnapshotsAccessType(context.Background(), id, accessType).XSailPointExperimental(xSailPointExperimental).AccessAssociated(accessAssociated).Snapshot1(snapshot1).Snapshot2(snapshot2).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.CompareIdentitySnapshotsAccessType``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CompareIdentitySnapshotsAccessType`: []AccessItemDiff + fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.CompareIdentitySnapshotsAccessType`: %v\n", resp) } ``` @@ -266,7 +266,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -275,18 +275,18 @@ func main() { id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The identity id # string | The identity id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityHistoryAPI.GetHistoricalIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IdentityHistoryAPI.GetHistoricalIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.GetHistoricalIdentity``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetHistoricalIdentity`: IdentityHistoryResponse - fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.GetHistoricalIdentity`: %v\n", resp) + //resp, r, err := apiClient.V2025.IdentityHistoryAPI.GetHistoricalIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.GetHistoricalIdentity``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetHistoricalIdentity`: IdentityHistoryResponse + fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.GetHistoricalIdentity`: %v\n", resp) } ``` @@ -351,7 +351,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -366,18 +366,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityHistoryAPI.GetHistoricalIdentityEvents(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IdentityHistoryAPI.GetHistoricalIdentityEvents(context.Background(), id).XSailPointExperimental(xSailPointExperimental).From(from).EventTypes(eventTypes).AccessItemTypes(accessItemTypes).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.GetHistoricalIdentityEvents``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetHistoricalIdentityEvents`: []GetHistoricalIdentityEvents200ResponseInner - fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.GetHistoricalIdentityEvents`: %v\n", resp) + //resp, r, err := apiClient.V2025.IdentityHistoryAPI.GetHistoricalIdentityEvents(context.Background(), id).XSailPointExperimental(xSailPointExperimental).From(from).EventTypes(eventTypes).AccessItemTypes(accessItemTypes).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.GetHistoricalIdentityEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetHistoricalIdentityEvents`: []GetHistoricalIdentityEvents200ResponseInner + fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.GetHistoricalIdentityEvents`: %v\n", resp) } ``` @@ -438,7 +438,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -448,18 +448,18 @@ func main() { date := `2007-03-01T13:00:00Z` // string | The specified date # string | The specified date xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityHistoryAPI.GetIdentitySnapshot(context.Background(), id, date).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IdentityHistoryAPI.GetIdentitySnapshot(context.Background(), id, date).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.GetIdentitySnapshot``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentitySnapshot`: IdentityHistoryResponse - fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.GetIdentitySnapshot`: %v\n", resp) + //resp, r, err := apiClient.V2025.IdentityHistoryAPI.GetIdentitySnapshot(context.Background(), id, date).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.GetIdentitySnapshot``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentitySnapshot`: IdentityHistoryResponse + fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.GetIdentitySnapshot`: %v\n", resp) } ``` @@ -524,7 +524,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -539,18 +539,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityHistoryAPI.GetIdentitySnapshotSummary(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IdentityHistoryAPI.GetIdentitySnapshotSummary(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Before(before).Interval(interval).TimeZone(timeZone).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.GetIdentitySnapshotSummary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentitySnapshotSummary`: []MetricResponse - fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.GetIdentitySnapshotSummary`: %v\n", resp) + //resp, r, err := apiClient.V2025.IdentityHistoryAPI.GetIdentitySnapshotSummary(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Before(before).Interval(interval).TimeZone(timeZone).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.GetIdentitySnapshotSummary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentitySnapshotSummary`: []MetricResponse + fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.GetIdentitySnapshotSummary`: %v\n", resp) } ``` @@ -609,7 +609,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -618,18 +618,18 @@ func main() { id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The identity id # string | The identity id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityHistoryAPI.GetIdentityStartDate(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IdentityHistoryAPI.GetIdentityStartDate(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.GetIdentityStartDate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentityStartDate`: string - fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.GetIdentityStartDate`: %v\n", resp) + //resp, r, err := apiClient.V2025.IdentityHistoryAPI.GetIdentityStartDate(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.GetIdentityStartDate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityStartDate`: string + fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.GetIdentityStartDate`: %v\n", resp) } ``` @@ -688,7 +688,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -701,18 +701,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityHistoryAPI.ListHistoricalIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IdentityHistoryAPI.ListHistoricalIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).StartsWithQuery(startsWithQuery).IsDeleted(isDeleted).IsActive(isActive).Limit(limit).Offset(offset).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.ListHistoricalIdentities``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListHistoricalIdentities`: []IdentityListItem - fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.ListHistoricalIdentities`: %v\n", resp) + //resp, r, err := apiClient.V2025.IdentityHistoryAPI.ListHistoricalIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).StartsWithQuery(startsWithQuery).IsDeleted(isDeleted).IsActive(isActive).Limit(limit).Offset(offset).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.ListHistoricalIdentities``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListHistoricalIdentities`: []IdentityListItem + fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.ListHistoricalIdentities`: %v\n", resp) } ``` @@ -776,7 +776,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -789,18 +789,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityHistoryAPI.ListIdentityAccessItems(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IdentityHistoryAPI.ListIdentityAccessItems(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Type_(type_).Limit(limit).Count(count).Offset(offset).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.ListIdentityAccessItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListIdentityAccessItems`: []ListIdentityAccessItems200ResponseInner - fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.ListIdentityAccessItems`: %v\n", resp) + //resp, r, err := apiClient.V2025.IdentityHistoryAPI.ListIdentityAccessItems(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Type_(type_).Limit(limit).Count(count).Offset(offset).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.ListIdentityAccessItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListIdentityAccessItems`: []ListIdentityAccessItems200ResponseInner + fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.ListIdentityAccessItems`: %v\n", resp) } ``` @@ -862,7 +862,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -873,18 +873,18 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") type_ := `account` // string | The access item type (optional) # string | The access item type (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityHistoryAPI.ListIdentitySnapshotAccessItems(context.Background(), id, date).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IdentityHistoryAPI.ListIdentitySnapshotAccessItems(context.Background(), id, date).XSailPointExperimental(xSailPointExperimental).Type_(type_).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.ListIdentitySnapshotAccessItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListIdentitySnapshotAccessItems`: []ListIdentityAccessItems200ResponseInner - fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.ListIdentitySnapshotAccessItems`: %v\n", resp) + //resp, r, err := apiClient.V2025.IdentityHistoryAPI.ListIdentitySnapshotAccessItems(context.Background(), id, date).XSailPointExperimental(xSailPointExperimental).Type_(type_).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.ListIdentitySnapshotAccessItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListIdentitySnapshotAccessItems`: []ListIdentityAccessItems200ResponseInner + fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.ListIdentitySnapshotAccessItems`: %v\n", resp) } ``` @@ -948,7 +948,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -962,18 +962,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityHistoryAPI.ListIdentitySnapshots(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.IdentityHistoryAPI.ListIdentitySnapshots(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Start(start).Interval(interval).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.ListIdentitySnapshots``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListIdentitySnapshots`: []IdentitySnapshotSummaryResponse - fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.ListIdentitySnapshots`: %v\n", resp) + //resp, r, err := apiClient.V2025.IdentityHistoryAPI.ListIdentitySnapshots(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Start(start).Interval(interval).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityHistoryAPI.ListIdentitySnapshots``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListIdentitySnapshots`: []IdentitySnapshotSummaryResponse + fmt.Fprintf(os.Stdout, "Response from `IdentityHistoryAPI.ListIdentitySnapshots`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/IdentityProfilesAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/IdentityProfilesAPI.md index d23677b42..b8823a876 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/IdentityProfilesAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/IdentityProfilesAPI.md @@ -75,7 +75,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -131,24 +131,23 @@ func main() { "id" : "id12345" }`) // IdentityProfile | - - var identityProfile v2025.IdentityProfile - if err := json.Unmarshal(identityprofile, &identityProfile); err != nil { - fmt.Println("Error:", err) - return - } - + var identityProfile v2025.IdentityProfile + if err := json.Unmarshal(identityprofile, &identityProfile); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityProfilesAPI.CreateIdentityProfile(context.Background()).IdentityProfile(identityProfile).Execute() - //resp, r, err := apiClient.V2025.IdentityProfilesAPI.CreateIdentityProfile(context.Background()).IdentityProfile(identityProfile).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.CreateIdentityProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateIdentityProfile`: IdentityProfile - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.CreateIdentityProfile`: %v\n", resp) + //resp, r, err := apiClient.V2025.IdentityProfilesAPI.CreateIdentityProfile(context.Background()).IdentityProfile(identityProfile).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.CreateIdentityProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateIdentityProfile`: IdentityProfile + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.CreateIdentityProfile`: %v\n", resp) } ``` @@ -196,7 +195,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -204,18 +203,18 @@ import ( func main() { identityProfileId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity profile ID. # string | Identity profile ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityProfilesAPI.DeleteIdentityProfile(context.Background(), identityProfileId).Execute() - //resp, r, err := apiClient.V2025.IdentityProfilesAPI.DeleteIdentityProfile(context.Background(), identityProfileId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.DeleteIdentityProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteIdentityProfile`: TaskResultSimplified - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.DeleteIdentityProfile`: %v\n", resp) + //resp, r, err := apiClient.V2025.IdentityProfilesAPI.DeleteIdentityProfile(context.Background(), identityProfileId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.DeleteIdentityProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteIdentityProfile`: TaskResultSimplified + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.DeleteIdentityProfile`: %v\n", resp) } ``` @@ -262,7 +261,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -270,24 +269,23 @@ import ( func main() { requestbody := []byte(``) // []string | Identity Profile bulk delete request body. - - var requestBody v2025.[]RequestBody - if err := json.Unmarshal(requestbody, &requestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var requestBody []v2025.RequestBody + if err := json.Unmarshal(requestbody, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityProfilesAPI.DeleteIdentityProfiles(context.Background()).RequestBody(requestBody).Execute() - //resp, r, err := apiClient.V2025.IdentityProfilesAPI.DeleteIdentityProfiles(context.Background()).RequestBody(requestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.DeleteIdentityProfiles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteIdentityProfiles`: TaskResultSimplified - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.DeleteIdentityProfiles`: %v\n", resp) + //resp, r, err := apiClient.V2025.IdentityProfilesAPI.DeleteIdentityProfiles(context.Background()).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.DeleteIdentityProfiles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteIdentityProfiles`: TaskResultSimplified + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.DeleteIdentityProfiles`: %v\n", resp) } ``` @@ -334,7 +332,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -346,18 +344,18 @@ func main() { filters := `id eq "ef38f94347e94562b5bb8424a56397d8"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, ne* **name**: *eq, ne* **priority**: *eq, ne* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, ne* **name**: *eq, ne* **priority**: *eq, ne* (optional) sorters := `id,name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, priority** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, priority** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityProfilesAPI.ExportIdentityProfiles(context.Background()).Execute() - //resp, r, err := apiClient.V2025.IdentityProfilesAPI.ExportIdentityProfiles(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.ExportIdentityProfiles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExportIdentityProfiles`: []IdentityProfileExportedObject - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.ExportIdentityProfiles`: %v\n", resp) + //resp, r, err := apiClient.V2025.IdentityProfilesAPI.ExportIdentityProfiles(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.ExportIdentityProfiles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExportIdentityProfiles`: []IdentityProfileExportedObject + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.ExportIdentityProfiles`: %v\n", resp) } ``` @@ -412,7 +410,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -447,24 +445,23 @@ func main() { } }`) // IdentityPreviewRequest | Identity Preview request body. - - var identityPreviewRequest v2025.IdentityPreviewRequest - if err := json.Unmarshal(identitypreviewrequest, &identityPreviewRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var identityPreviewRequest v2025.IdentityPreviewRequest + if err := json.Unmarshal(identitypreviewrequest, &identityPreviewRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityProfilesAPI.GenerateIdentityPreview(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityPreviewRequest(identityPreviewRequest).Execute() - //resp, r, err := apiClient.V2025.IdentityProfilesAPI.GenerateIdentityPreview(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityPreviewRequest(identityPreviewRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.GenerateIdentityPreview``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GenerateIdentityPreview`: IdentityPreviewResponse - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.GenerateIdentityPreview`: %v\n", resp) + //resp, r, err := apiClient.V2025.IdentityProfilesAPI.GenerateIdentityPreview(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityPreviewRequest(identityPreviewRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.GenerateIdentityPreview``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GenerateIdentityPreview`: IdentityPreviewResponse + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.GenerateIdentityPreview`: %v\n", resp) } ``` @@ -511,7 +508,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -519,18 +516,18 @@ import ( func main() { identityProfileId := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | The Identity Profile ID. # string | The Identity Profile ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityProfilesAPI.GetDefaultIdentityAttributeConfig(context.Background(), identityProfileId).Execute() - //resp, r, err := apiClient.V2025.IdentityProfilesAPI.GetDefaultIdentityAttributeConfig(context.Background(), identityProfileId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.GetDefaultIdentityAttributeConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetDefaultIdentityAttributeConfig`: IdentityAttributeConfig - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.GetDefaultIdentityAttributeConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.IdentityProfilesAPI.GetDefaultIdentityAttributeConfig(context.Background(), identityProfileId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.GetDefaultIdentityAttributeConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDefaultIdentityAttributeConfig`: IdentityAttributeConfig + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.GetDefaultIdentityAttributeConfig`: %v\n", resp) } ``` @@ -577,7 +574,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -585,18 +582,18 @@ import ( func main() { identityProfileId := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | Identity profile ID. # string | Identity profile ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityProfilesAPI.GetIdentityProfile(context.Background(), identityProfileId).Execute() - //resp, r, err := apiClient.V2025.IdentityProfilesAPI.GetIdentityProfile(context.Background(), identityProfileId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.GetIdentityProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentityProfile`: IdentityProfile - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.GetIdentityProfile`: %v\n", resp) + //resp, r, err := apiClient.V2025.IdentityProfilesAPI.GetIdentityProfile(context.Background(), identityProfileId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.GetIdentityProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityProfile`: IdentityProfile + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.GetIdentityProfile`: %v\n", resp) } ``` @@ -639,7 +636,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -647,24 +644,23 @@ import ( func main() { identityprofileexportedobject := []byte(``) // []IdentityProfileExportedObject | Previously exported Identity Profiles. - - var identityProfileExportedObject v2025.[]IdentityProfileExportedObject - if err := json.Unmarshal(identityprofileexportedobject, &identityProfileExportedObject); err != nil { - fmt.Println("Error:", err) - return - } - + var identityProfileExportedObject []v2025.IdentityProfileExportedObject + if err := json.Unmarshal(identityprofileexportedobject, &identityProfileExportedObject); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityProfilesAPI.ImportIdentityProfiles(context.Background()).IdentityProfileExportedObject(identityProfileExportedObject).Execute() - //resp, r, err := apiClient.V2025.IdentityProfilesAPI.ImportIdentityProfiles(context.Background()).IdentityProfileExportedObject(identityProfileExportedObject).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.ImportIdentityProfiles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportIdentityProfiles`: ObjectImportResult - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.ImportIdentityProfiles`: %v\n", resp) + //resp, r, err := apiClient.V2025.IdentityProfilesAPI.ImportIdentityProfiles(context.Background()).IdentityProfileExportedObject(identityProfileExportedObject).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.ImportIdentityProfiles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportIdentityProfiles`: ObjectImportResult + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.ImportIdentityProfiles`: %v\n", resp) } ``` @@ -711,7 +707,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -723,18 +719,18 @@ func main() { filters := `id eq "ef38f94347e94562b5bb8424a56397d8"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, ne, ge, gt, in, le, sw* **name**: *eq, ne, ge, gt, in, le, sw* **priority**: *eq, ne* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, ne, ge, gt, in, le, sw* **name**: *eq, ne, ge, gt, in, le, sw* **priority**: *eq, ne* (optional) sorters := `id,name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, priority, created, modified, owner.id, owner.name** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, priority, created, modified, owner.id, owner.name** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityProfilesAPI.ListIdentityProfiles(context.Background()).Execute() - //resp, r, err := apiClient.V2025.IdentityProfilesAPI.ListIdentityProfiles(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.ListIdentityProfiles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListIdentityProfiles`: []IdentityProfile - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.ListIdentityProfiles`: %v\n", resp) + //resp, r, err := apiClient.V2025.IdentityProfilesAPI.ListIdentityProfiles(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.ListIdentityProfiles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListIdentityProfiles`: []IdentityProfile + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.ListIdentityProfiles`: %v\n", resp) } ``` @@ -785,7 +781,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -793,18 +789,18 @@ import ( func main() { identityProfileId := `ef38f94347e94562b5bb8424a56397d8` // string | The Identity Profile ID to be processed # string | The Identity Profile ID to be processed - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityProfilesAPI.SyncIdentityProfile(context.Background(), identityProfileId).Execute() - //resp, r, err := apiClient.V2025.IdentityProfilesAPI.SyncIdentityProfile(context.Background(), identityProfileId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.SyncIdentityProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SyncIdentityProfile`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.SyncIdentityProfile`: %v\n", resp) + //resp, r, err := apiClient.V2025.IdentityProfilesAPI.SyncIdentityProfile(context.Background(), identityProfileId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.SyncIdentityProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SyncIdentityProfile`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.SyncIdentityProfile`: %v\n", resp) } ``` @@ -860,7 +856,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -869,24 +865,23 @@ func main() { identityProfileId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity profile ID. # string | Identity profile ID. jsonpatchoperation := []byte(`[{op=add, path=/identityAttributeConfig/attributeTransforms/0, value={identityAttributeName=location, transformDefinition={type=accountAttribute, attributes={sourceName=Employees, attributeName=location, sourceId=2c91808878b7d63b0178c66ffcdc4ce4}}}}]`) // []JsonPatchOperation | List of identity profile update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - - var jsonPatchOperation v2025.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2025.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityProfilesAPI.UpdateIdentityProfile(context.Background(), identityProfileId).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2025.IdentityProfilesAPI.UpdateIdentityProfile(context.Background(), identityProfileId).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.UpdateIdentityProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateIdentityProfile`: IdentityProfile - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.UpdateIdentityProfile`: %v\n", resp) + //resp, r, err := apiClient.V2025.IdentityProfilesAPI.UpdateIdentityProfile(context.Background(), identityProfileId).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.UpdateIdentityProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateIdentityProfile`: IdentityProfile + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.UpdateIdentityProfile`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/LifecycleStatesAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/LifecycleStatesAPI.md index 3667f3e01..22a80ec5e 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/LifecycleStatesAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/LifecycleStatesAPI.md @@ -103,7 +103,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -136,24 +136,23 @@ func main() { "enabled" : true }`) // LifecycleState | Lifecycle state to be created. - - var lifecycleState v2025.LifecycleState - if err := json.Unmarshal(lifecyclestate, &lifecycleState); err != nil { - fmt.Println("Error:", err) - return - } - + var lifecycleState v2025.LifecycleState + if err := json.Unmarshal(lifecyclestate, &lifecycleState); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.LifecycleStatesAPI.CreateLifecycleState(context.Background(), identityProfileId).LifecycleState(lifecycleState).Execute() - //resp, r, err := apiClient.V2025.LifecycleStatesAPI.CreateLifecycleState(context.Background(), identityProfileId).LifecycleState(lifecycleState).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.CreateLifecycleState``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateLifecycleState`: LifecycleState - fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.CreateLifecycleState`: %v\n", resp) + //resp, r, err := apiClient.V2025.LifecycleStatesAPI.CreateLifecycleState(context.Background(), identityProfileId).LifecycleState(lifecycleState).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.CreateLifecycleState``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateLifecycleState`: LifecycleState + fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.CreateLifecycleState`: %v\n", resp) } ``` @@ -202,7 +201,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -211,18 +210,18 @@ func main() { identityProfileId := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | Identity profile ID. # string | Identity profile ID. lifecycleStateId := `ef38f94347e94562b5bb8424a56397d8` // string | Lifecycle state ID. # string | Lifecycle state ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.LifecycleStatesAPI.DeleteLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() - //resp, r, err := apiClient.V2025.LifecycleStatesAPI.DeleteLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.DeleteLifecycleState``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteLifecycleState`: LifecyclestateDeleted - fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.DeleteLifecycleState`: %v\n", resp) + //resp, r, err := apiClient.V2025.LifecycleStatesAPI.DeleteLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.DeleteLifecycleState``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteLifecycleState`: LifecyclestateDeleted + fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.DeleteLifecycleState`: %v\n", resp) } ``` @@ -271,7 +270,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -280,18 +279,18 @@ func main() { identityProfileId := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | Identity profile ID. # string | Identity profile ID. lifecycleStateId := `ef38f94347e94562b5bb8424a56397d8` // string | Lifecycle state ID. # string | Lifecycle state ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.LifecycleStatesAPI.GetLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() - //resp, r, err := apiClient.V2025.LifecycleStatesAPI.GetLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.GetLifecycleState``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetLifecycleState`: LifecycleState - fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.GetLifecycleState`: %v\n", resp) + //resp, r, err := apiClient.V2025.LifecycleStatesAPI.GetLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.GetLifecycleState``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetLifecycleState`: LifecycleState + fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.GetLifecycleState`: %v\n", resp) } ``` @@ -342,7 +341,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -354,18 +353,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) sorters := `created,modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.LifecycleStatesAPI.GetLifecycleStates(context.Background(), identityProfileId).Execute() - //resp, r, err := apiClient.V2025.LifecycleStatesAPI.GetLifecycleStates(context.Background(), identityProfileId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.GetLifecycleStates``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetLifecycleStates`: []LifecycleState - fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.GetLifecycleStates`: %v\n", resp) + //resp, r, err := apiClient.V2025.LifecycleStatesAPI.GetLifecycleStates(context.Background(), identityProfileId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.GetLifecycleStates``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetLifecycleStates`: []LifecycleState + fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.GetLifecycleStates`: %v\n", resp) } ``` @@ -413,7 +412,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -422,24 +421,23 @@ func main() { identityId := `2c9180857893f1290178944561990364` // string | ID of the identity to update. # string | ID of the identity to update. setlifecyclestaterequest := []byte(``) // SetLifecycleStateRequest | - - var setLifecycleStateRequest v2025.SetLifecycleStateRequest - if err := json.Unmarshal(setlifecyclestaterequest, &setLifecycleStateRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var setLifecycleStateRequest v2025.SetLifecycleStateRequest + if err := json.Unmarshal(setlifecyclestaterequest, &setLifecycleStateRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.LifecycleStatesAPI.SetLifecycleState(context.Background(), identityId).SetLifecycleStateRequest(setLifecycleStateRequest).Execute() - //resp, r, err := apiClient.V2025.LifecycleStatesAPI.SetLifecycleState(context.Background(), identityId).SetLifecycleStateRequest(setLifecycleStateRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.SetLifecycleState``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetLifecycleState`: SetLifecycleState200Response - fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.SetLifecycleState`: %v\n", resp) + //resp, r, err := apiClient.V2025.LifecycleStatesAPI.SetLifecycleState(context.Background(), identityId).SetLifecycleStateRequest(setLifecycleStateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.SetLifecycleState``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetLifecycleState`: SetLifecycleState200Response + fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.SetLifecycleState`: %v\n", resp) } ``` @@ -489,7 +487,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -499,24 +497,23 @@ func main() { lifecycleStateId := `ef38f94347e94562b5bb8424a56397d8` // string | Lifecycle state ID. # string | Lifecycle state ID. jsonpatchoperation := []byte(`[{op=replace, path=/description, value=Updated description!}, {op=replace, path=/accessProfileIds, value=[2c918087742bab150174407a80f3125e, 2c918087742bab150174407a80f3124f]}, {op=replace, path=/accountActions, value=[{action=ENABLE, sourceIds=[2c9180846a2f82fb016a481c1b1560c5, 2c9180846a2f82fb016a481c1b1560cc]}, {action=DISABLE, sourceIds=[2c91808869a0c9980169a207258513fb]}]}, {op=replace, path=/emailNotificationOption, value={notifyManagers=true, notifyAllAdmins=false, notifySpecificUsers=false, emailAddressList=[]}}]`) // []JsonPatchOperation | A list of lifecycle state update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields can be updated: * enabled * description * accountActions * accessProfileIds * emailNotificationOption - - var jsonPatchOperation v2025.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2025.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.LifecycleStatesAPI.UpdateLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2025.LifecycleStatesAPI.UpdateLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.UpdateLifecycleStates``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateLifecycleStates`: LifecycleState - fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.UpdateLifecycleStates`: %v\n", resp) + //resp, r, err := apiClient.V2025.LifecycleStatesAPI.UpdateLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.UpdateLifecycleStates``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateLifecycleStates`: LifecycleState + fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.UpdateLifecycleStates`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/MFAConfigurationAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/MFAConfigurationAPI.md index de325c09f..e8e20ca72 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/MFAConfigurationAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/MFAConfigurationAPI.md @@ -57,25 +57,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MFAConfigurationAPI.GetMFADuoConfig(context.Background()).Execute() - //resp, r, err := apiClient.V2025.MFAConfigurationAPI.GetMFADuoConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.GetMFADuoConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMFADuoConfig`: MfaDuoConfig - fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.GetMFADuoConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.MFAConfigurationAPI.GetMFADuoConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.GetMFADuoConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMFADuoConfig`: MfaDuoConfig + fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.GetMFADuoConfig`: %v\n", resp) } ``` @@ -118,7 +118,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -126,18 +126,18 @@ import ( func main() { allLanguages := allLanguages=true // bool | Indicator whether the question text should be returned in all configured languages * If true, the question text is returned in all languages that it is configured in. * If false, the question text is returned in the user locale if available, else for the default locale. * If not passed, it behaves the same way as passing this parameter as false (optional) # bool | Indicator whether the question text should be returned in all configured languages * If true, the question text is returned in all languages that it is configured in. * If false, the question text is returned in the user locale if available, else for the default locale. * If not passed, it behaves the same way as passing this parameter as false (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MFAConfigurationAPI.GetMFAKbaConfig(context.Background()).Execute() - //resp, r, err := apiClient.V2025.MFAConfigurationAPI.GetMFAKbaConfig(context.Background()).AllLanguages(allLanguages).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.GetMFAKbaConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMFAKbaConfig`: []KbaQuestion - fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.GetMFAKbaConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.MFAConfigurationAPI.GetMFAKbaConfig(context.Background()).AllLanguages(allLanguages).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.GetMFAKbaConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMFAKbaConfig`: []KbaQuestion + fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.GetMFAKbaConfig`: %v\n", resp) } ``` @@ -176,25 +176,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MFAConfigurationAPI.GetMFAOktaConfig(context.Background()).Execute() - //resp, r, err := apiClient.V2025.MFAConfigurationAPI.GetMFAOktaConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.GetMFAOktaConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMFAOktaConfig`: MfaOktaConfig - fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.GetMFAOktaConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.MFAConfigurationAPI.GetMFAOktaConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.GetMFAOktaConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMFAOktaConfig`: MfaOktaConfig + fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.GetMFAOktaConfig`: %v\n", resp) } ``` @@ -237,7 +237,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -255,24 +255,23 @@ func main() { "identityAttribute" : "email" }`) // MfaDuoConfig | - - var mfaDuoConfig v2025.MfaDuoConfig - if err := json.Unmarshal(mfaduoconfig, &mfaDuoConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var mfaDuoConfig v2025.MfaDuoConfig + if err := json.Unmarshal(mfaduoconfig, &mfaDuoConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MFAConfigurationAPI.SetMFADuoConfig(context.Background()).MfaDuoConfig(mfaDuoConfig).Execute() - //resp, r, err := apiClient.V2025.MFAConfigurationAPI.SetMFADuoConfig(context.Background()).MfaDuoConfig(mfaDuoConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.SetMFADuoConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetMFADuoConfig`: MfaDuoConfig - fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.SetMFADuoConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.MFAConfigurationAPI.SetMFADuoConfig(context.Background()).MfaDuoConfig(mfaDuoConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.SetMFADuoConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetMFADuoConfig`: MfaDuoConfig + fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.SetMFADuoConfig`: %v\n", resp) } ``` @@ -315,7 +314,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -323,24 +322,23 @@ import ( func main() { kbaanswerrequestitem := []byte(`[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]`) // []KbaAnswerRequestItem | - - var kbaAnswerRequestItem v2025.[]KbaAnswerRequestItem - if err := json.Unmarshal(kbaanswerrequestitem, &kbaAnswerRequestItem); err != nil { - fmt.Println("Error:", err) - return - } - + var kbaAnswerRequestItem []v2025.KbaAnswerRequestItem + if err := json.Unmarshal(kbaanswerrequestitem, &kbaAnswerRequestItem); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MFAConfigurationAPI.SetMFAKBAConfig(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() - //resp, r, err := apiClient.V2025.MFAConfigurationAPI.SetMFAKBAConfig(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.SetMFAKBAConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetMFAKBAConfig`: []KbaAnswerResponseItem - fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.SetMFAKBAConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.MFAConfigurationAPI.SetMFAKBAConfig(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.SetMFAKBAConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetMFAKBAConfig`: []KbaAnswerResponseItem + fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.SetMFAKBAConfig`: %v\n", resp) } ``` @@ -383,7 +381,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -397,24 +395,23 @@ func main() { "identityAttribute" : "email" }`) // MfaOktaConfig | - - var mfaOktaConfig v2025.MfaOktaConfig - if err := json.Unmarshal(mfaoktaconfig, &mfaOktaConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var mfaOktaConfig v2025.MfaOktaConfig + if err := json.Unmarshal(mfaoktaconfig, &mfaOktaConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MFAConfigurationAPI.SetMFAOktaConfig(context.Background()).MfaOktaConfig(mfaOktaConfig).Execute() - //resp, r, err := apiClient.V2025.MFAConfigurationAPI.SetMFAOktaConfig(context.Background()).MfaOktaConfig(mfaOktaConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.SetMFAOktaConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetMFAOktaConfig`: MfaOktaConfig - fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.SetMFAOktaConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.MFAConfigurationAPI.SetMFAOktaConfig(context.Background()).MfaOktaConfig(mfaOktaConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.SetMFAOktaConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetMFAOktaConfig`: MfaOktaConfig + fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.SetMFAOktaConfig`: %v\n", resp) } ``` @@ -461,7 +458,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -469,18 +466,18 @@ import ( func main() { method := `okta-verify` // string | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. # string | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MFAConfigurationAPI.TestMFAConfig(context.Background(), method).Execute() - //resp, r, err := apiClient.V2025.MFAConfigurationAPI.TestMFAConfig(context.Background(), method).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.TestMFAConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `TestMFAConfig`: MfaConfigTestResponse - fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.TestMFAConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.MFAConfigurationAPI.TestMFAConfig(context.Background(), method).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.TestMFAConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TestMFAConfig`: MfaConfigTestResponse + fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.TestMFAConfig`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/MachineAccountsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/MachineAccountsAPI.md index 33119e1e5..fa91f29dd 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/MachineAccountsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/MachineAccountsAPI.md @@ -73,7 +73,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -82,18 +82,18 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Machine Account ID. # string | Machine Account ID. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MachineAccountsAPI.GetMachineAccount(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.MachineAccountsAPI.GetMachineAccount(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MachineAccountsAPI.GetMachineAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMachineAccount`: MachineAccount - fmt.Fprintf(os.Stdout, "Response from `MachineAccountsAPI.GetMachineAccount`: %v\n", resp) + //resp, r, err := apiClient.V2025.MachineAccountsAPI.GetMachineAccount(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MachineAccountsAPI.GetMachineAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMachineAccount`: MachineAccount + fmt.Fprintf(os.Stdout, "Response from `MachineAccountsAPI.GetMachineAccount`: %v\n", resp) } ``` @@ -152,7 +152,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -165,18 +165,18 @@ func main() { filters := `identityId eq "2c9180858082150f0180893dbaf44201"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in, sw* **name**: *eq, in, sw* **nativeIdentity**: *eq, in, sw* **machineIdentity**: *eq, in, sw* **description**: *eq, in, sw* **ownerIdentity**: *eq, in, sw* **ownerIdentityId**: *eq, in, sw* **entitlements**: *eq* **accessType**: *eq, in, sw* **subType**: *eq, in, sw* **environment**: *eq, in, sw* **classificationMethod**: *eq, in, sw* **manuallyCorrelated**: *eq* **manuallyEdited**: *eq* **identity**: *eq, in, sw* **source**: *eq, in* **hasEntitlement**: *eq* **locked**: *eq* **connectorAttributes**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in, sw* **name**: *eq, in, sw* **nativeIdentity**: *eq, in, sw* **machineIdentity**: *eq, in, sw* **description**: *eq, in, sw* **ownerIdentity**: *eq, in, sw* **ownerIdentityId**: *eq, in, sw* **entitlements**: *eq* **accessType**: *eq, in, sw* **subType**: *eq, in, sw* **environment**: *eq, in, sw* **classificationMethod**: *eq, in, sw* **manuallyCorrelated**: *eq* **manuallyEdited**: *eq* **identity**: *eq, in, sw* **source**: *eq, in* **hasEntitlement**: *eq* **locked**: *eq* **connectorAttributes**: *eq* (optional) sorters := `id,name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, machineIdentity, identity.id, nativeIdentity, uuid, manuallyCorrelated, connectorAttributes, entitlements, identity.name, identity.type, source.id, source.name, source.type** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, machineIdentity, identity.id, nativeIdentity, uuid, manuallyCorrelated, connectorAttributes, entitlements, identity.name, identity.type, source.id, source.name, source.type** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MachineAccountsAPI.ListMachineAccounts(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.MachineAccountsAPI.ListMachineAccounts(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MachineAccountsAPI.ListMachineAccounts``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListMachineAccounts`: []MachineAccount - fmt.Fprintf(os.Stdout, "Response from `MachineAccountsAPI.ListMachineAccounts`: %v\n", resp) + //resp, r, err := apiClient.V2025.MachineAccountsAPI.ListMachineAccounts(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MachineAccountsAPI.ListMachineAccounts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListMachineAccounts`: []MachineAccount + fmt.Fprintf(os.Stdout, "Response from `MachineAccountsAPI.ListMachineAccounts`: %v\n", resp) } ``` @@ -237,7 +237,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -247,24 +247,23 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") requestbody := []byte(`[{op=add, path=/environment, value=test}]`) // []map[string]interface{} | A JSON of updated values [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * description * ownerIdentity * subType * accessType * environment * attributes * classificationMethod * manuallyEdited * nativeIdentity * uuid * source * manuallyCorrelated * enabled * locked * hasEntitlements * connectorAttributes - - var requestBody v2025.[]RequestBody - if err := json.Unmarshal(requestbody, &requestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var requestBody []v2025.RequestBody + if err := json.Unmarshal(requestbody, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MachineAccountsAPI.UpdateMachineAccount(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() - //resp, r, err := apiClient.V2025.MachineAccountsAPI.UpdateMachineAccount(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MachineAccountsAPI.UpdateMachineAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateMachineAccount`: MachineAccount - fmt.Fprintf(os.Stdout, "Response from `MachineAccountsAPI.UpdateMachineAccount`: %v\n", resp) + //resp, r, err := apiClient.V2025.MachineAccountsAPI.UpdateMachineAccount(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MachineAccountsAPI.UpdateMachineAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateMachineAccount`: MachineAccount + fmt.Fprintf(os.Stdout, "Response from `MachineAccountsAPI.UpdateMachineAccount`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/MachineIdentitiesAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/MachineIdentitiesAPI.md index 1525c9b4c..71d53232c 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/MachineIdentitiesAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/MachineIdentitiesAPI.md @@ -72,7 +72,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -90,24 +90,23 @@ func main() { "manuallyEdited" : true }`) // MachineIdentity | - - var machineIdentity v2025.MachineIdentity - if err := json.Unmarshal(machineidentity, &machineIdentity); err != nil { - fmt.Println("Error:", err) - return - } - + var machineIdentity v2025.MachineIdentity + if err := json.Unmarshal(machineidentity, &machineIdentity); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MachineIdentitiesAPI.CreateMachineIdentity(context.Background()).XSailPointExperimental(xSailPointExperimental).MachineIdentity(machineIdentity).Execute() - //resp, r, err := apiClient.V2025.MachineIdentitiesAPI.CreateMachineIdentity(context.Background()).XSailPointExperimental(xSailPointExperimental).MachineIdentity(machineIdentity).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MachineIdentitiesAPI.CreateMachineIdentity``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateMachineIdentity`: MachineIdentity - fmt.Fprintf(os.Stdout, "Response from `MachineIdentitiesAPI.CreateMachineIdentity`: %v\n", resp) + //resp, r, err := apiClient.V2025.MachineIdentitiesAPI.CreateMachineIdentity(context.Background()).XSailPointExperimental(xSailPointExperimental).MachineIdentity(machineIdentity).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MachineIdentitiesAPI.CreateMachineIdentity``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateMachineIdentity`: MachineIdentity + fmt.Fprintf(os.Stdout, "Response from `MachineIdentitiesAPI.CreateMachineIdentity`: %v\n", resp) } ``` @@ -166,7 +165,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -175,16 +174,17 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Machine Identity ID # string | Machine Identity ID xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.MachineIdentitiesAPI.DeleteMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //r, err := apiClient.V2025.MachineIdentitiesAPI.DeleteMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MachineIdentitiesAPI.DeleteMachineIdentity``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.MachineIdentitiesAPI.DeleteMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MachineIdentitiesAPI.DeleteMachineIdentity``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -243,7 +243,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -252,18 +252,18 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Machine Identity ID # string | Machine Identity ID xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MachineIdentitiesAPI.GetMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.MachineIdentitiesAPI.GetMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MachineIdentitiesAPI.GetMachineIdentity``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMachineIdentity`: MachineIdentity - fmt.Fprintf(os.Stdout, "Response from `MachineIdentitiesAPI.GetMachineIdentity`: %v\n", resp) + //resp, r, err := apiClient.V2025.MachineIdentitiesAPI.GetMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MachineIdentitiesAPI.GetMachineIdentity``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMachineIdentity`: MachineIdentity + fmt.Fprintf(os.Stdout, "Response from `MachineIdentitiesAPI.GetMachineIdentity`: %v\n", resp) } ``` @@ -322,7 +322,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -335,18 +335,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MachineIdentitiesAPI.ListMachineIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.MachineIdentitiesAPI.ListMachineIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).Filters(filters).Sorters(sorters).Count(count).Limit(limit).Offset(offset).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MachineIdentitiesAPI.ListMachineIdentities``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListMachineIdentities`: []MachineIdentity - fmt.Fprintf(os.Stdout, "Response from `MachineIdentitiesAPI.ListMachineIdentities`: %v\n", resp) + //resp, r, err := apiClient.V2025.MachineIdentitiesAPI.ListMachineIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).Filters(filters).Sorters(sorters).Count(count).Limit(limit).Offset(offset).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MachineIdentitiesAPI.ListMachineIdentities``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListMachineIdentities`: []MachineIdentity + fmt.Fprintf(os.Stdout, "Response from `MachineIdentitiesAPI.ListMachineIdentities`: %v\n", resp) } ``` @@ -407,7 +407,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -417,24 +417,23 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") requestbody := []byte(`[{op=add, path=/attributes/securityRisk, value=medium}]`) // []map[string]interface{} | A JSON of updated values [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - - var requestBody v2025.[]RequestBody - if err := json.Unmarshal(requestbody, &requestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var requestBody []v2025.RequestBody + if err := json.Unmarshal(requestbody, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MachineIdentitiesAPI.UpdateMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() - //resp, r, err := apiClient.V2025.MachineIdentitiesAPI.UpdateMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MachineIdentitiesAPI.UpdateMachineIdentity``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateMachineIdentity`: MachineIdentity - fmt.Fprintf(os.Stdout, "Response from `MachineIdentitiesAPI.UpdateMachineIdentity`: %v\n", resp) + //resp, r, err := apiClient.V2025.MachineIdentitiesAPI.UpdateMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MachineIdentitiesAPI.UpdateMachineIdentity``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateMachineIdentity`: MachineIdentity + fmt.Fprintf(os.Stdout, "Response from `MachineIdentitiesAPI.UpdateMachineIdentity`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/ManagedClientsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/ManagedClientsAPI.md index 72adcd9bb..444364fd8 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/ManagedClientsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/ManagedClientsAPI.md @@ -63,7 +63,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -76,24 +76,23 @@ func main() { "type" : "VA" }`) // ManagedClientRequest | - - var managedClientRequest v2025.ManagedClientRequest - if err := json.Unmarshal(managedclientrequest, &managedClientRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var managedClientRequest v2025.ManagedClientRequest + if err := json.Unmarshal(managedclientrequest, &managedClientRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ManagedClientsAPI.CreateManagedClient(context.Background()).ManagedClientRequest(managedClientRequest).Execute() - //resp, r, err := apiClient.V2025.ManagedClientsAPI.CreateManagedClient(context.Background()).ManagedClientRequest(managedClientRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.CreateManagedClient``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateManagedClient`: ManagedClient - fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.CreateManagedClient`: %v\n", resp) + //resp, r, err := apiClient.V2025.ManagedClientsAPI.CreateManagedClient(context.Background()).ManagedClientRequest(managedClientRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.CreateManagedClient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateManagedClient`: ManagedClient + fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.CreateManagedClient`: %v\n", resp) } ``` @@ -140,7 +139,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -148,16 +147,17 @@ import ( func main() { id := `4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7` // string | Managed client ID. # string | Managed client ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.ManagedClientsAPI.DeleteManagedClient(context.Background(), id).Execute() - //r, err := apiClient.V2025.ManagedClientsAPI.DeleteManagedClient(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.DeleteManagedClient``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.ManagedClientsAPI.DeleteManagedClient(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.DeleteManagedClient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -204,7 +204,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -212,18 +212,18 @@ import ( func main() { id := `4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7` // string | Managed client ID. # string | Managed client ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ManagedClientsAPI.GetManagedClient(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.ManagedClientsAPI.GetManagedClient(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.GetManagedClient``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetManagedClient`: ManagedClient - fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.GetManagedClient`: %v\n", resp) + //resp, r, err := apiClient.V2025.ManagedClientsAPI.GetManagedClient(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.GetManagedClient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetManagedClient`: ManagedClient + fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.GetManagedClient`: %v\n", resp) } ``` @@ -271,7 +271,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -280,18 +280,18 @@ func main() { id := `aClientId` // string | Managed client ID to get status for. # string | Managed client ID to get status for. type_ := // ManagedClientType | Managed client type to get status for. # ManagedClientType | Managed client type to get status for. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ManagedClientsAPI.GetManagedClientStatus(context.Background(), id).Type_(type_).Execute() - //resp, r, err := apiClient.V2025.ManagedClientsAPI.GetManagedClientStatus(context.Background(), id).Type_(type_).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.GetManagedClientStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetManagedClientStatus`: ManagedClientStatus - fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.GetManagedClientStatus`: %v\n", resp) + //resp, r, err := apiClient.V2025.ManagedClientsAPI.GetManagedClientStatus(context.Background(), id).Type_(type_).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.GetManagedClientStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetManagedClientStatus`: ManagedClientStatus + fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.GetManagedClientStatus`: %v\n", resp) } ``` @@ -337,7 +337,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -348,18 +348,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) filters := `name eq "client name"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* **name**: *eq* **clientId**: *eq* **clusterId**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* **name**: *eq* **clientId**: *eq* **clusterId**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ManagedClientsAPI.GetManagedClients(context.Background()).Execute() - //resp, r, err := apiClient.V2025.ManagedClientsAPI.GetManagedClients(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.GetManagedClients``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetManagedClients`: []ManagedClient - fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.GetManagedClients`: %v\n", resp) + //resp, r, err := apiClient.V2025.ManagedClientsAPI.GetManagedClients(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.GetManagedClients``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetManagedClients`: []ManagedClient + fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.GetManagedClients`: %v\n", resp) } ``` @@ -407,7 +407,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -416,24 +416,23 @@ func main() { id := `4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7` // string | Managed client ID. # string | Managed client ID. jsonpatchoperation := []byte(``) // []JsonPatchOperation | JSONPatch payload used to update the object. - - var jsonPatchOperation v2025.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2025.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ManagedClientsAPI.UpdateManagedClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2025.ManagedClientsAPI.UpdateManagedClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.UpdateManagedClient``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateManagedClient`: ManagedClient - fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.UpdateManagedClient`: %v\n", resp) + //resp, r, err := apiClient.V2025.ManagedClientsAPI.UpdateManagedClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.UpdateManagedClient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateManagedClient`: ManagedClient + fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.UpdateManagedClient`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/ManagedClusterTypesAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/ManagedClusterTypesAPI.md index 37f67098a..2112da917 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/ManagedClusterTypesAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/ManagedClusterTypesAPI.md @@ -63,7 +63,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -77,24 +77,23 @@ func main() { "type" : "idn" }`) // ManagedClusterType | - - var managedClusterType v2025.ManagedClusterType - if err := json.Unmarshal(managedclustertype, &managedClusterType); err != nil { - fmt.Println("Error:", err) - return - } - + var managedClusterType v2025.ManagedClusterType + if err := json.Unmarshal(managedclustertype, &managedClusterType); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ManagedClusterTypesAPI.CreateManagedClusterType(context.Background()).ManagedClusterType(managedClusterType).Execute() - //resp, r, err := apiClient.V2025.ManagedClusterTypesAPI.CreateManagedClusterType(context.Background()).ManagedClusterType(managedClusterType).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClusterTypesAPI.CreateManagedClusterType``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateManagedClusterType`: ManagedClusterType - fmt.Fprintf(os.Stdout, "Response from `ManagedClusterTypesAPI.CreateManagedClusterType`: %v\n", resp) + //resp, r, err := apiClient.V2025.ManagedClusterTypesAPI.CreateManagedClusterType(context.Background()).ManagedClusterType(managedClusterType).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClusterTypesAPI.CreateManagedClusterType``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateManagedClusterType`: ManagedClusterType + fmt.Fprintf(os.Stdout, "Response from `ManagedClusterTypesAPI.CreateManagedClusterType`: %v\n", resp) } ``` @@ -141,7 +140,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -149,16 +148,17 @@ import ( func main() { id := `aClusterTypeId` // string | The Managed Cluster Type ID # string | The Managed Cluster Type ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.ManagedClusterTypesAPI.DeleteManagedClusterType(context.Background(), id).Execute() - //r, err := apiClient.V2025.ManagedClusterTypesAPI.DeleteManagedClusterType(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClusterTypesAPI.DeleteManagedClusterType``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.ManagedClusterTypesAPI.DeleteManagedClusterType(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClusterTypesAPI.DeleteManagedClusterType``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -205,7 +205,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -213,18 +213,18 @@ import ( func main() { id := `aClusterTypeId` // string | The Managed Cluster Type ID # string | The Managed Cluster Type ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ManagedClusterTypesAPI.GetManagedClusterType(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.ManagedClusterTypesAPI.GetManagedClusterType(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClusterTypesAPI.GetManagedClusterType``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetManagedClusterType`: ManagedClusterType - fmt.Fprintf(os.Stdout, "Response from `ManagedClusterTypesAPI.GetManagedClusterType`: %v\n", resp) + //resp, r, err := apiClient.V2025.ManagedClusterTypesAPI.GetManagedClusterType(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClusterTypesAPI.GetManagedClusterType``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetManagedClusterType`: ManagedClusterType + fmt.Fprintf(os.Stdout, "Response from `ManagedClusterTypesAPI.GetManagedClusterType`: %v\n", resp) } ``` @@ -271,7 +271,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -283,18 +283,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ManagedClusterTypesAPI.GetManagedClusterTypes(context.Background()).Execute() - //resp, r, err := apiClient.V2025.ManagedClusterTypesAPI.GetManagedClusterTypes(context.Background()).Type_(type_).Pod(pod).Org(org).Offset(offset).Limit(limit).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClusterTypesAPI.GetManagedClusterTypes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetManagedClusterTypes`: []ManagedClusterType - fmt.Fprintf(os.Stdout, "Response from `ManagedClusterTypesAPI.GetManagedClusterTypes`: %v\n", resp) + //resp, r, err := apiClient.V2025.ManagedClusterTypesAPI.GetManagedClusterTypes(context.Background()).Type_(type_).Pod(pod).Org(org).Offset(offset).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClusterTypesAPI.GetManagedClusterTypes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetManagedClusterTypes`: []ManagedClusterType + fmt.Fprintf(os.Stdout, "Response from `ManagedClusterTypesAPI.GetManagedClusterTypes`: %v\n", resp) } ``` @@ -342,7 +342,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -361,24 +361,23 @@ func main() { } ] }`) // JsonPatch | The JSONPatch payload used to update the schema. - - var jsonPatch v2025.JsonPatch - if err := json.Unmarshal(jsonpatch, &jsonPatch); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatch v2025.JsonPatch + if err := json.Unmarshal(jsonpatch, &jsonPatch); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ManagedClusterTypesAPI.UpdateManagedClusterType(context.Background(), id).JsonPatch(jsonPatch).Execute() - //resp, r, err := apiClient.V2025.ManagedClusterTypesAPI.UpdateManagedClusterType(context.Background(), id).JsonPatch(jsonPatch).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClusterTypesAPI.UpdateManagedClusterType``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateManagedClusterType`: ManagedClusterType - fmt.Fprintf(os.Stdout, "Response from `ManagedClusterTypesAPI.UpdateManagedClusterType`: %v\n", resp) + //resp, r, err := apiClient.V2025.ManagedClusterTypesAPI.UpdateManagedClusterType(context.Background(), id).JsonPatch(jsonPatch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClusterTypesAPI.UpdateManagedClusterType``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateManagedClusterType`: ManagedClusterType + fmt.Fprintf(os.Stdout, "Response from `ManagedClusterTypesAPI.UpdateManagedClusterType`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/ManagedClustersAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/ManagedClustersAPI.md index ab9e87e7d..1bfd8451e 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/ManagedClustersAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/ManagedClustersAPI.md @@ -65,7 +65,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -81,24 +81,23 @@ func main() { "type" : "idn" }`) // ManagedClusterRequest | - - var managedClusterRequest v2025.ManagedClusterRequest - if err := json.Unmarshal(managedclusterrequest, &managedClusterRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var managedClusterRequest v2025.ManagedClusterRequest + if err := json.Unmarshal(managedclusterrequest, &managedClusterRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ManagedClustersAPI.CreateManagedCluster(context.Background()).ManagedClusterRequest(managedClusterRequest).Execute() - //resp, r, err := apiClient.V2025.ManagedClustersAPI.CreateManagedCluster(context.Background()).ManagedClusterRequest(managedClusterRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.CreateManagedCluster``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateManagedCluster`: ManagedCluster - fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.CreateManagedCluster`: %v\n", resp) + //resp, r, err := apiClient.V2025.ManagedClustersAPI.CreateManagedCluster(context.Background()).ManagedClusterRequest(managedClusterRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.CreateManagedCluster``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateManagedCluster`: ManagedCluster + fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.CreateManagedCluster`: %v\n", resp) } ``` @@ -146,7 +145,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -155,16 +154,17 @@ func main() { id := `2c9180897de347a2017de8859e8c5039` // string | Managed cluster ID. # string | Managed cluster ID. removeClients := false // bool | Flag to determine the need to delete a cluster with clients. (optional) (default to false) # bool | Flag to determine the need to delete a cluster with clients. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.ManagedClustersAPI.DeleteManagedCluster(context.Background(), id).Execute() - //r, err := apiClient.V2025.ManagedClustersAPI.DeleteManagedCluster(context.Background(), id).RemoveClients(removeClients).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.DeleteManagedCluster``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.ManagedClustersAPI.DeleteManagedCluster(context.Background(), id).RemoveClients(removeClients).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.DeleteManagedCluster``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -211,7 +211,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -219,18 +219,18 @@ import ( func main() { id := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | ID of managed cluster to get log configuration for. # string | ID of managed cluster to get log configuration for. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ManagedClustersAPI.GetClientLogConfiguration(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.ManagedClustersAPI.GetClientLogConfiguration(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.GetClientLogConfiguration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetClientLogConfiguration`: ClientLogConfiguration - fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.GetClientLogConfiguration`: %v\n", resp) + //resp, r, err := apiClient.V2025.ManagedClustersAPI.GetClientLogConfiguration(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.GetClientLogConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetClientLogConfiguration`: ClientLogConfiguration + fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.GetClientLogConfiguration`: %v\n", resp) } ``` @@ -277,7 +277,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -285,18 +285,18 @@ import ( func main() { id := `2c9180897de347a2017de8859e8c5039` // string | Managed cluster ID. # string | Managed cluster ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ManagedClustersAPI.GetManagedCluster(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.ManagedClustersAPI.GetManagedCluster(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.GetManagedCluster``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetManagedCluster`: ManagedCluster - fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.GetManagedCluster`: %v\n", resp) + //resp, r, err := apiClient.V2025.ManagedClustersAPI.GetManagedCluster(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.GetManagedCluster``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetManagedCluster`: ManagedCluster + fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.GetManagedCluster`: %v\n", resp) } ``` @@ -342,7 +342,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -353,18 +353,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) filters := `operational eq "operation"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **operational**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **operational**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ManagedClustersAPI.GetManagedClusters(context.Background()).Execute() - //resp, r, err := apiClient.V2025.ManagedClustersAPI.GetManagedClusters(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.GetManagedClusters``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetManagedClusters`: []ManagedCluster - fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.GetManagedClusters`: %v\n", resp) + //resp, r, err := apiClient.V2025.ManagedClustersAPI.GetManagedClusters(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.GetManagedClusters``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetManagedClusters`: []ManagedCluster + fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.GetManagedClusters`: %v\n", resp) } ``` @@ -412,7 +412,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -421,24 +421,23 @@ func main() { id := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | ID of the managed cluster to update the log configuration for. # string | ID of the managed cluster to update the log configuration for. putclientlogconfigurationrequest := []byte(``) // PutClientLogConfigurationRequest | Client log configuration for the given managed cluster. - - var putClientLogConfigurationRequest v2025.PutClientLogConfigurationRequest - if err := json.Unmarshal(putclientlogconfigurationrequest, &putClientLogConfigurationRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var putClientLogConfigurationRequest v2025.PutClientLogConfigurationRequest + if err := json.Unmarshal(putclientlogconfigurationrequest, &putClientLogConfigurationRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ManagedClustersAPI.PutClientLogConfiguration(context.Background(), id).PutClientLogConfigurationRequest(putClientLogConfigurationRequest).Execute() - //resp, r, err := apiClient.V2025.ManagedClustersAPI.PutClientLogConfiguration(context.Background(), id).PutClientLogConfigurationRequest(putClientLogConfigurationRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.PutClientLogConfiguration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutClientLogConfiguration`: ClientLogConfiguration - fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.PutClientLogConfiguration`: %v\n", resp) + //resp, r, err := apiClient.V2025.ManagedClustersAPI.PutClientLogConfiguration(context.Background(), id).PutClientLogConfigurationRequest(putClientLogConfigurationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.PutClientLogConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutClientLogConfiguration`: ClientLogConfiguration + fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.PutClientLogConfiguration`: %v\n", resp) } ``` @@ -486,7 +485,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -494,18 +493,18 @@ import ( func main() { id := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | ID of managed cluster to trigger manual upgrade. # string | ID of managed cluster to trigger manual upgrade. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ManagedClustersAPI.Update(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.ManagedClustersAPI.Update(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.Update``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `Update`: ClusterManualUpgrade - fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.Update`: %v\n", resp) + //resp, r, err := apiClient.V2025.ManagedClustersAPI.Update(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.Update``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `Update`: ClusterManualUpgrade + fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.Update`: %v\n", resp) } ``` @@ -553,7 +552,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -562,24 +561,23 @@ func main() { id := `2c9180897de347a2017de8859e8c5039` // string | Managed cluster ID. # string | Managed cluster ID. jsonpatchoperation := []byte(``) // []JsonPatchOperation | JSONPatch payload used to update the object. - - var jsonPatchOperation v2025.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2025.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ManagedClustersAPI.UpdateManagedCluster(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2025.ManagedClustersAPI.UpdateManagedCluster(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.UpdateManagedCluster``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateManagedCluster`: ManagedCluster - fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.UpdateManagedCluster`: %v\n", resp) + //resp, r, err := apiClient.V2025.ManagedClustersAPI.UpdateManagedCluster(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.UpdateManagedCluster``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateManagedCluster`: ManagedCluster + fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.UpdateManagedCluster`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/MultiHostIntegrationAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/MultiHostIntegrationAPI.md index 109091811..9b43ed3fd 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/MultiHostIntegrationAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/MultiHostIntegrationAPI.md @@ -72,7 +72,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -105,24 +105,23 @@ func main() { "modified" : "2024-01-23T18:08:50.897Z" }`) // MultiHostIntegrationsCreate | The specifics of the Multi-Host Integration to create - - var multiHostIntegrationsCreate v2025.MultiHostIntegrationsCreate - if err := json.Unmarshal(multihostintegrationscreate, &multiHostIntegrationsCreate); err != nil { - fmt.Println("Error:", err) - return - } - + var multiHostIntegrationsCreate v2025.MultiHostIntegrationsCreate + if err := json.Unmarshal(multihostintegrationscreate, &multiHostIntegrationsCreate); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.CreateMultiHostIntegration(context.Background()).MultiHostIntegrationsCreate(multiHostIntegrationsCreate).Execute() - //resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.CreateMultiHostIntegration(context.Background()).MultiHostIntegrationsCreate(multiHostIntegrationsCreate).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.CreateMultiHostIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateMultiHostIntegration`: MultiHostIntegrations - fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.CreateMultiHostIntegration`: %v\n", resp) + //resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.CreateMultiHostIntegration(context.Background()).MultiHostIntegrationsCreate(multiHostIntegrationsCreate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.CreateMultiHostIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateMultiHostIntegration`: MultiHostIntegrations + fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.CreateMultiHostIntegration`: %v\n", resp) } ``` @@ -172,7 +171,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -181,22 +180,22 @@ func main() { multihostId := `2c91808568c529c60168cca6f90c1326` // string | ID of the Multi-Host Integration. # string | ID of the Multi-Host Integration. multihostintegrationscreatesources := []byte(``) // []MultiHostIntegrationsCreateSources | The specifics of the sources to create within Multi-Host Integration. - - var multiHostIntegrationsCreateSources v2025.[]MultiHostIntegrationsCreateSources - if err := json.Unmarshal(multihostintegrationscreatesources, &multiHostIntegrationsCreateSources); err != nil { - fmt.Println("Error:", err) - return - } - + var multiHostIntegrationsCreateSources []v2025.MultiHostIntegrationsCreateSources + if err := json.Unmarshal(multihostintegrationscreatesources, &multiHostIntegrationsCreateSources); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.MultiHostIntegrationAPI.CreateSourcesWithinMultiHost(context.Background(), multihostId).MultiHostIntegrationsCreateSources(multiHostIntegrationsCreateSources).Execute() - //r, err := apiClient.V2025.MultiHostIntegrationAPI.CreateSourcesWithinMultiHost(context.Background(), multihostId).MultiHostIntegrationsCreateSources(multiHostIntegrationsCreateSources).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.CreateSourcesWithinMultiHost``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.MultiHostIntegrationAPI.CreateSourcesWithinMultiHost(context.Background(), multihostId).MultiHostIntegrationsCreateSources(multiHostIntegrationsCreateSources).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.CreateSourcesWithinMultiHost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -245,7 +244,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -253,16 +252,17 @@ import ( func main() { multihostId := `2c91808568c529c60168cca6f90c1326` // string | ID of Multi-Host Integration to delete. # string | ID of Multi-Host Integration to delete. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.MultiHostIntegrationAPI.DeleteMultiHost(context.Background(), multihostId).Execute() - //r, err := apiClient.V2025.MultiHostIntegrationAPI.DeleteMultiHost(context.Background(), multihostId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.DeleteMultiHost``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.MultiHostIntegrationAPI.DeleteMultiHost(context.Background(), multihostId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.DeleteMultiHost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -312,7 +312,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -322,18 +322,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetAcctAggregationGroups(context.Background(), multihostId).Execute() - //resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetAcctAggregationGroups(context.Background(), multihostId).Offset(offset).Limit(limit).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetAcctAggregationGroups``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAcctAggregationGroups`: []MultiHostIntegrationsAggScheduleUpdate - fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetAcctAggregationGroups`: %v\n", resp) + //resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetAcctAggregationGroups(context.Background(), multihostId).Offset(offset).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetAcctAggregationGroups``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAcctAggregationGroups`: []MultiHostIntegrationsAggScheduleUpdate + fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetAcctAggregationGroups`: %v\n", resp) } ``` @@ -384,7 +384,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -394,18 +394,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetEntitlementAggregationGroups(context.Background(), multiHostId).Execute() - //resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetEntitlementAggregationGroups(context.Background(), multiHostId).Offset(offset).Limit(limit).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetEntitlementAggregationGroups``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetEntitlementAggregationGroups`: []MultiHostIntegrationsAggScheduleUpdate - fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetEntitlementAggregationGroups`: %v\n", resp) + //resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetEntitlementAggregationGroups(context.Background(), multiHostId).Offset(offset).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetEntitlementAggregationGroups``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetEntitlementAggregationGroups`: []MultiHostIntegrationsAggScheduleUpdate + fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetEntitlementAggregationGroups`: %v\n", resp) } ``` @@ -454,7 +454,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -462,18 +462,18 @@ import ( func main() { multihostId := `2c91808568c529c60168cca6f90c1326` // string | ID of the Multi-Host Integration. # string | ID of the Multi-Host Integration. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetMultiHostIntegrations(context.Background(), multihostId).Execute() - //resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetMultiHostIntegrations(context.Background(), multihostId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetMultiHostIntegrations``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMultiHostIntegrations`: MultiHostIntegrations - fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetMultiHostIntegrations`: %v\n", resp) + //resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetMultiHostIntegrations(context.Background(), multihostId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetMultiHostIntegrations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMultiHostIntegrations`: MultiHostIntegrations + fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetMultiHostIntegrations`: %v\n", resp) } ``` @@ -523,7 +523,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -536,18 +536,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) forSubadmin := `5168015d32f890ca15812c9180835d2e` // string | If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity or SOURCE_SUBADMIN identity. The value of the parameter is either an Identity ID, or the special value **me**, which is shorthand for the calling Identity's ID. A 400 Bad Request error is returned if the **for-subadmin** parameter is specified for an Identity that is not a subadmin. (optional) # string | If provided, filters the returned list according to what is visible to the indicated ROLE_SUBADMIN Identity or SOURCE_SUBADMIN identity. The value of the parameter is either an Identity ID, or the special value **me**, which is shorthand for the calling Identity's ID. A 400 Bad Request error is returned if the **for-subadmin** parameter is specified for an Identity that is not a subadmin. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetMultiHostIntegrationsList(context.Background()).Execute() - //resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetMultiHostIntegrationsList(context.Background()).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).ForSubadmin(forSubadmin).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetMultiHostIntegrationsList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMultiHostIntegrationsList`: []MultiHostIntegrations - fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetMultiHostIntegrationsList`: %v\n", resp) + //resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetMultiHostIntegrationsList(context.Background()).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).ForSubadmin(forSubadmin).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetMultiHostIntegrationsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMultiHostIntegrationsList`: []MultiHostIntegrations + fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetMultiHostIntegrationsList`: %v\n", resp) } ``` @@ -596,7 +596,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -604,18 +604,18 @@ import ( func main() { multiHostId := `004091cb79b04636b88662afa50a4440` // string | ID of the Multi-Host Integration # string | ID of the Multi-Host Integration - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetMultiHostSourceCreationErrors(context.Background(), multiHostId).Execute() - //resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetMultiHostSourceCreationErrors(context.Background(), multiHostId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetMultiHostSourceCreationErrors``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMultiHostSourceCreationErrors`: []SourceCreationErrors - fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetMultiHostSourceCreationErrors`: %v\n", resp) + //resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetMultiHostSourceCreationErrors(context.Background(), multiHostId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetMultiHostSourceCreationErrors``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMultiHostSourceCreationErrors`: []SourceCreationErrors + fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetMultiHostSourceCreationErrors`: %v\n", resp) } ``` @@ -656,25 +656,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetMultihostIntegrationTypes(context.Background()).Execute() - //resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetMultihostIntegrationTypes(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetMultihostIntegrationTypes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMultihostIntegrationTypes`: []MultiHostIntegrationTemplateType - fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetMultihostIntegrationTypes`: %v\n", resp) + //resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetMultihostIntegrationTypes(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetMultihostIntegrationTypes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMultihostIntegrationTypes`: []MultiHostIntegrationTemplateType + fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetMultihostIntegrationTypes`: %v\n", resp) } ``` @@ -728,7 +728,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -741,18 +741,18 @@ func main() { filters := `id eq 2c91808b6ef1d43e016efba0ce470904` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *in* (optional) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetSourcesWithinMultiHost(context.Background(), multihostId).Execute() - //resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetSourcesWithinMultiHost(context.Background(), multihostId).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetSourcesWithinMultiHost``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSourcesWithinMultiHost`: []MultiHostSources - fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetSourcesWithinMultiHost`: %v\n", resp) + //resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetSourcesWithinMultiHost(context.Background(), multihostId).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.GetSourcesWithinMultiHost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSourcesWithinMultiHost`: []MultiHostSources + fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.GetSourcesWithinMultiHost`: %v\n", resp) } ``` @@ -801,7 +801,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -809,16 +809,17 @@ import ( func main() { multihostId := `2c91808568c529c60168cca6f90c1324` // string | ID of the Multi-Host Integration # string | ID of the Multi-Host Integration - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.MultiHostIntegrationAPI.TestConnectionMultiHostSources(context.Background(), multihostId).Execute() - //r, err := apiClient.V2025.MultiHostIntegrationAPI.TestConnectionMultiHostSources(context.Background(), multihostId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.TestConnectionMultiHostSources``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.MultiHostIntegrationAPI.TestConnectionMultiHostSources(context.Background(), multihostId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.TestConnectionMultiHostSources``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -869,7 +870,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -878,18 +879,18 @@ func main() { multihostId := `2c91808568c529c60168cca6f90c1326` // string | ID of the Multi-Host Integration # string | ID of the Multi-Host Integration sourceId := `2c91808568c529f60168cca6f90c1324` // string | ID of the source within the Multi-Host Integration # string | ID of the source within the Multi-Host Integration - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.TestSourceConnectionMultihost(context.Background(), multihostId, sourceId).Execute() - //resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.TestSourceConnectionMultihost(context.Background(), multihostId, sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.TestSourceConnectionMultihost``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `TestSourceConnectionMultihost`: TestSourceConnectionMultihost200Response - fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.TestSourceConnectionMultihost`: %v\n", resp) + //resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.TestSourceConnectionMultihost(context.Background(), multihostId, sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.TestSourceConnectionMultihost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TestSourceConnectionMultihost`: TestSourceConnectionMultihost200Response + fmt.Fprintf(os.Stdout, "Response from `MultiHostIntegrationAPI.TestSourceConnectionMultihost`: %v\n", resp) } ``` @@ -939,7 +940,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -948,22 +949,22 @@ func main() { multihostId := `anId` // string | ID of the Multi-Host Integration to update. # string | ID of the Multi-Host Integration to update. updatemultihostsourcesrequestinner := []byte(`[{op=add, path=/description, value=MDK Multi-Host Integration 222 description}]`) // []UpdateMultiHostSourcesRequestInner | This endpoint allows you to update a Multi-Host Integration. - - var updateMultiHostSourcesRequestInner v2025.[]UpdateMultiHostSourcesRequestInner - if err := json.Unmarshal(updatemultihostsourcesrequestinner, &updateMultiHostSourcesRequestInner); err != nil { - fmt.Println("Error:", err) - return - } - + var updateMultiHostSourcesRequestInner []v2025.UpdateMultiHostSourcesRequestInner + if err := json.Unmarshal(updatemultihostsourcesrequestinner, &updateMultiHostSourcesRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.MultiHostIntegrationAPI.UpdateMultiHostSources(context.Background(), multihostId).UpdateMultiHostSourcesRequestInner(updateMultiHostSourcesRequestInner).Execute() - //r, err := apiClient.V2025.MultiHostIntegrationAPI.UpdateMultiHostSources(context.Background(), multihostId).UpdateMultiHostSourcesRequestInner(updateMultiHostSourcesRequestInner).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.UpdateMultiHostSources``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.MultiHostIntegrationAPI.UpdateMultiHostSources(context.Background(), multihostId).UpdateMultiHostSourcesRequestInner(updateMultiHostSourcesRequestInner).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MultiHostIntegrationAPI.UpdateMultiHostSources``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/NonEmployeeLifecycleManagementAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/NonEmployeeLifecycleManagementAPI.md index 975298910..8a31806c4 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/NonEmployeeLifecycleManagementAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/NonEmployeeLifecycleManagementAPI.md @@ -122,7 +122,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -133,24 +133,23 @@ func main() { "comment" : "Approved by manager" }`) // NonEmployeeApprovalDecision | - - var nonEmployeeApprovalDecision v2025.NonEmployeeApprovalDecision - if err := json.Unmarshal(nonemployeeapprovaldecision, &nonEmployeeApprovalDecision); err != nil { - fmt.Println("Error:", err) - return - } - + var nonEmployeeApprovalDecision v2025.NonEmployeeApprovalDecision + if err := json.Unmarshal(nonemployeeapprovaldecision, &nonEmployeeApprovalDecision); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest(context.Background(), id).NonEmployeeApprovalDecision(nonEmployeeApprovalDecision).Execute() - //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest(context.Background(), id).NonEmployeeApprovalDecision(nonEmployeeApprovalDecision).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ApproveNonEmployeeRequest`: NonEmployeeApprovalItem - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest`: %v\n", resp) + //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest(context.Background(), id).NonEmployeeApprovalDecision(nonEmployeeApprovalDecision).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApproveNonEmployeeRequest`: NonEmployeeApprovalItem + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest`: %v\n", resp) } ``` @@ -194,7 +193,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -216,24 +215,23 @@ func main() { "startDate" : "2020-03-24T00:00:00-05:00" }`) // NonEmployeeRequestBody | Non-Employee record creation request body. - - var nonEmployeeRequestBody v2025.NonEmployeeRequestBody - if err := json.Unmarshal(nonemployeerequestbody, &nonEmployeeRequestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var nonEmployeeRequestBody v2025.NonEmployeeRequestBody + if err := json.Unmarshal(nonemployeerequestbody, &nonEmployeeRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() - //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateNonEmployeeRecord`: NonEmployeeRecord - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord`: %v\n", resp) + //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateNonEmployeeRecord`: NonEmployeeRecord + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord`: %v\n", resp) } ``` @@ -276,7 +274,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -298,24 +296,23 @@ func main() { "startDate" : "2020-03-24T00:00:00-05:00" }`) // NonEmployeeRequestBody | Non-Employee creation request body - - var nonEmployeeRequestBody v2025.NonEmployeeRequestBody - if err := json.Unmarshal(nonemployeerequestbody, &nonEmployeeRequestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var nonEmployeeRequestBody v2025.NonEmployeeRequestBody + if err := json.Unmarshal(nonemployeerequestbody, &nonEmployeeRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() - //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateNonEmployeeRequest`: NonEmployeeRequest - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest`: %v\n", resp) + //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateNonEmployeeRequest`: NonEmployeeRequest + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest`: %v\n", resp) } ``` @@ -358,7 +355,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -391,24 +388,23 @@ func main() { } ] }`) // NonEmployeeSourceRequestBody | Non-Employee source creation request body. - - var nonEmployeeSourceRequestBody v2025.NonEmployeeSourceRequestBody - if err := json.Unmarshal(nonemployeesourcerequestbody, &nonEmployeeSourceRequestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var nonEmployeeSourceRequestBody v2025.NonEmployeeSourceRequestBody + if err := json.Unmarshal(nonemployeesourcerequestbody, &nonEmployeeSourceRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource(context.Background()).NonEmployeeSourceRequestBody(nonEmployeeSourceRequestBody).Execute() - //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource(context.Background()).NonEmployeeSourceRequestBody(nonEmployeeSourceRequestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateNonEmployeeSource`: NonEmployeeSourceWithCloudExternalId - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource`: %v\n", resp) + //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource(context.Background()).NonEmployeeSourceRequestBody(nonEmployeeSourceRequestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateNonEmployeeSource`: NonEmployeeSourceWithCloudExternalId + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource`: %v\n", resp) } ``` @@ -457,7 +453,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -473,24 +469,23 @@ func main() { "required" : true }`) // NonEmployeeSchemaAttributeBody | - - var nonEmployeeSchemaAttributeBody v2025.NonEmployeeSchemaAttributeBody - if err := json.Unmarshal(nonemployeeschemaattributebody, &nonEmployeeSchemaAttributeBody); err != nil { - fmt.Println("Error:", err) - return - } - + var nonEmployeeSchemaAttributeBody v2025.NonEmployeeSchemaAttributeBody + if err := json.Unmarshal(nonemployeeschemaattributebody, &nonEmployeeSchemaAttributeBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).NonEmployeeSchemaAttributeBody(nonEmployeeSchemaAttributeBody).Execute() - //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).NonEmployeeSchemaAttributeBody(nonEmployeeSchemaAttributeBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateNonEmployeeSourceSchemaAttributes`: NonEmployeeSchemaAttribute - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes`: %v\n", resp) + //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).NonEmployeeSchemaAttributeBody(nonEmployeeSchemaAttributeBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateNonEmployeeSourceSchemaAttributes`: NonEmployeeSchemaAttribute + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes`: %v\n", resp) } ``` @@ -538,7 +533,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -546,16 +541,17 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Non-Employee record id (UUID) # string | Non-Employee record id (UUID) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord(context.Background(), id).Execute() - //r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -598,7 +594,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -606,22 +602,22 @@ import ( func main() { deletenonemployeerecordsinbulkrequest := []byte(``) // DeleteNonEmployeeRecordsInBulkRequest | Non-Employee bulk delete request body. - - var deleteNonEmployeeRecordsInBulkRequest v2025.DeleteNonEmployeeRecordsInBulkRequest - if err := json.Unmarshal(deletenonemployeerecordsinbulkrequest, &deleteNonEmployeeRecordsInBulkRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var deleteNonEmployeeRecordsInBulkRequest v2025.DeleteNonEmployeeRecordsInBulkRequest + if err := json.Unmarshal(deletenonemployeerecordsinbulkrequest, &deleteNonEmployeeRecordsInBulkRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordsInBulk(context.Background()).DeleteNonEmployeeRecordsInBulkRequest(deleteNonEmployeeRecordsInBulkRequest).Execute() - //r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordsInBulk(context.Background()).DeleteNonEmployeeRecordsInBulkRequest(deleteNonEmployeeRecordsInBulkRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordsInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordsInBulk(context.Background()).DeleteNonEmployeeRecordsInBulkRequest(deleteNonEmployeeRecordsInBulkRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordsInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -669,7 +665,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -677,16 +673,17 @@ import ( func main() { id := `ac110005-7156-1150-8171-5b292e3e0084` // string | Non-Employee request id in the UUID format # string | Non-Employee request id in the UUID format - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest(context.Background(), id).Execute() - //r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -737,7 +734,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -746,16 +743,17 @@ func main() { attributeId := `ef38f94347e94562b5bb8424a56397d8` // string | The Schema Attribute Id (UUID) # string | The Schema Attribute Id (UUID) sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() - //r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -802,7 +800,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -810,16 +808,17 @@ import ( func main() { sourceId := `e136567de87e4d029e60b3c3c55db56d` // string | Source Id # string | Source Id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource(context.Background(), sourceId).Execute() - //r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -866,7 +865,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -874,16 +873,17 @@ import ( func main() { sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() - //r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -930,7 +930,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -938,16 +938,17 @@ import ( func main() { id := `e136567de87e4d029e60b3c3c55db56d` // string | Source Id (UUID) # string | Source Id (UUID) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords(context.Background(), id).Execute() - //r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -994,7 +995,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1002,16 +1003,17 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Source Id (UUID) # string | Source Id (UUID) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate(context.Background(), id).Execute() - //r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -1062,7 +1064,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1071,18 +1073,18 @@ func main() { id := `e136567de87e4d029e60b3c3c55db56d` // string | Non-Employee approval item id (UUID) # string | Non-Employee approval item id (UUID) includeDetail := true // bool | The object nonEmployeeRequest will not be included detail when set to false. *Default value is true* (optional) # bool | The object nonEmployeeRequest will not be included detail when set to false. *Default value is true* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval(context.Background(), id).IncludeDetail(includeDetail).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeApproval`: NonEmployeeApprovalItemDetail - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval`: %v\n", resp) + //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval(context.Background(), id).IncludeDetail(includeDetail).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeApproval`: NonEmployeeApprovalItemDetail + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval`: %v\n", resp) } ``` @@ -1133,7 +1135,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1141,18 +1143,18 @@ import ( func main() { requestedFor := `2c91808280430dfb0180431a59440460` // string | The identity (UUID) of the approver for whom for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. # string | The identity (UUID) of the approver for whom for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary(context.Background(), requestedFor).Execute() - //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary(context.Background(), requestedFor).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeApprovalSummary`: NonEmployeeApprovalSummary - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary`: %v\n", resp) + //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary(context.Background(), requestedFor).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeApprovalSummary`: NonEmployeeApprovalSummary + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary`: %v\n", resp) } ``` @@ -1201,7 +1203,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1209,18 +1211,18 @@ import ( func main() { id := `e136567de87e4d029e60b3c3c55db56d` // string | Source ID (UUID) # string | Source ID (UUID) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeBulkUploadStatus`: NonEmployeeBulkUploadStatus - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus`: %v\n", resp) + //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeBulkUploadStatus`: NonEmployeeBulkUploadStatus + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus`: %v\n", resp) } ``` @@ -1268,7 +1270,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1276,18 +1278,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Non-Employee record id (UUID) # string | Non-Employee record id (UUID) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeRecord`: NonEmployeeRecord - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord`: %v\n", resp) + //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeRecord`: NonEmployeeRecord + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord`: %v\n", resp) } ``` @@ -1338,7 +1340,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1346,18 +1348,18 @@ import ( func main() { id := `ac110005-7156-1150-8171-5b292e3e0084` // string | Non-Employee request id (UUID) # string | Non-Employee request id (UUID) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeRequest`: NonEmployeeRequest - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest`: %v\n", resp) + //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeRequest`: NonEmployeeRequest + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest`: %v\n", resp) } ``` @@ -1408,7 +1410,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1416,18 +1418,18 @@ import ( func main() { requestedFor := `2c91808280430dfb0180431a59440460` // string | The identity (UUID) of the non-employee account manager for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. # string | The identity (UUID) of the non-employee account manager for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary(context.Background(), requestedFor).Execute() - //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary(context.Background(), requestedFor).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeRequestSummary`: NonEmployeeRequestSummary - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary`: %v\n", resp) + //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary(context.Background(), requestedFor).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeRequestSummary`: NonEmployeeRequestSummary + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary`: %v\n", resp) } ``` @@ -1476,7 +1478,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1485,18 +1487,18 @@ func main() { attributeId := `ef38f94347e94562b5bb8424a56397d8` // string | The Schema Attribute Id (UUID) # string | The Schema Attribute Id (UUID) sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() - //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeSchemaAttribute`: NonEmployeeSchemaAttribute - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute`: %v\n", resp) + //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeSchemaAttribute`: NonEmployeeSchemaAttribute + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute`: %v\n", resp) } ``` @@ -1547,7 +1549,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1555,18 +1557,18 @@ import ( func main() { sourceId := `2c91808b7c28b350017c2a2ec5790aa1` // string | Source Id # string | Source Id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeSource`: NonEmployeeSource - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource`: %v\n", resp) + //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeSource`: NonEmployeeSource + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource`: %v\n", resp) } ``` @@ -1614,7 +1616,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1622,18 +1624,18 @@ import ( func main() { sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeSourceSchemaAttributes`: []NonEmployeeSchemaAttribute - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes`: %v\n", resp) + //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeSourceSchemaAttributes`: []NonEmployeeSchemaAttribute + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes`: %v\n", resp) } ``` @@ -1681,7 +1683,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1690,18 +1692,18 @@ func main() { id := `e136567de87e4d029e60b3c3c55db56d` // string | Source Id (UUID) # string | Source Id (UUID) data := BINARY_DATA_HERE // *os.File | # *os.File | - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk(context.Background(), id).Data(data).Execute() - //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk(context.Background(), id).Data(data).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportNonEmployeeRecordsInBulk`: NonEmployeeBulkUploadJob - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk`: %v\n", resp) + //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk(context.Background(), id).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportNonEmployeeRecordsInBulk`: NonEmployeeBulkUploadJob + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk`: %v\n", resp) } ``` @@ -1753,7 +1755,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1766,18 +1768,18 @@ func main() { filters := `approvalStatus eq "Pending"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **approvalStatus**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **approvalStatus**: *eq* (optional) sorters := `created` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals(context.Background()).Execute() - //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals(context.Background()).RequestedFor(requestedFor).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListNonEmployeeApprovals`: []NonEmployeeApprovalItem - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals`: %v\n", resp) + //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals(context.Background()).RequestedFor(requestedFor).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListNonEmployeeApprovals`: []NonEmployeeApprovalItem + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals`: %v\n", resp) } ``` @@ -1826,7 +1828,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1838,18 +1840,18 @@ func main() { sorters := `accountName,sourceId` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, accountName, sourceId, manager, firstName, lastName, email, phone, startDate, endDate, created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, accountName, sourceId, manager, firstName, lastName, email, phone, startDate, endDate, created, modified** (optional) filters := `sourceId eq "2c91808568c529c60168cca6f90c1313"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **sourceId**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **sourceId**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords(context.Background()).Execute() - //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords(context.Background()).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListNonEmployeeRecords`: []NonEmployeeRecord - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords`: %v\n", resp) + //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords(context.Background()).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListNonEmployeeRecords`: []NonEmployeeRecord + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords`: %v\n", resp) } ``` @@ -1901,7 +1903,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1914,18 +1916,18 @@ func main() { sorters := `created,approvalStatus` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, approvalStatus, firstName, lastName, email, phone, accountName, startDate, endDate** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, approvalStatus, firstName, lastName, email, phone, accountName, startDate, endDate** (optional) filters := `sourceId eq "2c91808568c529c60168cca6f90c1313"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **sourceId**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **sourceId**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests(context.Background()).RequestedFor(requestedFor).Execute() - //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests(context.Background()).RequestedFor(requestedFor).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListNonEmployeeRequests`: []NonEmployeeRequest - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests`: %v\n", resp) + //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests(context.Background()).RequestedFor(requestedFor).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListNonEmployeeRequests`: []NonEmployeeRequest + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests`: %v\n", resp) } ``` @@ -1975,7 +1977,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1988,18 +1990,18 @@ func main() { nonEmployeeCount := true // bool | Flag that determines whether the API will return a non-employee count associated with the source. (optional) (default to false) # bool | Flag that determines whether the API will return a non-employee count associated with the source. (optional) (default to false) sorters := `name,created` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, sourceId** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, sourceId** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources(context.Background()).Execute() - //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources(context.Background()).Limit(limit).Offset(offset).Count(count).RequestedFor(requestedFor).NonEmployeeCount(nonEmployeeCount).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListNonEmployeeSources`: []NonEmployeeSourceWithNECount - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources`: %v\n", resp) + //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources(context.Background()).Limit(limit).Offset(offset).Count(count).RequestedFor(requestedFor).NonEmployeeCount(nonEmployeeCount).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListNonEmployeeSources`: []NonEmployeeSourceWithNECount + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources`: %v\n", resp) } ``` @@ -2051,7 +2053,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2060,24 +2062,23 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Non-employee record id (UUID) # string | Non-employee record id (UUID) jsonpatchoperation := []byte(`[{op=replace, path=/endDate, value=2019-08-23T18:40:35.772Z}]`) // []JsonPatchOperation | A list of non-employee update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Attributes are restricted by user type. Owner of source can update end date. Organization admins can update all available fields. - - var jsonPatchOperation v2025.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2025.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchNonEmployeeRecord`: NonEmployeeRecord - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord`: %v\n", resp) + //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchNonEmployeeRecord`: NonEmployeeRecord + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord`: %v\n", resp) } ``` @@ -2129,7 +2130,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2139,24 +2140,23 @@ func main() { sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id jsonpatchoperation := []byte(`[{op=replace, path=/label, value={new attribute label=null}}]`) // []JsonPatchOperation | A list of schema attribute update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following properties are allowed for update ':' 'label', 'helpText', 'placeholder', 'required'. - - var jsonPatchOperation v2025.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2025.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchNonEmployeeSchemaAttribute`: NonEmployeeSchemaAttribute - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute`: %v\n", resp) + //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchNonEmployeeSchemaAttribute`: NonEmployeeSchemaAttribute + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute`: %v\n", resp) } ``` @@ -2204,7 +2204,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2213,24 +2213,23 @@ func main() { sourceId := `e136567de87e4d029e60b3c3c55db56d` // string | Source Id # string | Source Id jsonpatchoperation := []byte(`[{op=replace, path=/name, value={new name=null}}, {op=replace, path=/approvers, value=[2c91809f703bb37a017040a2fe8748c7, 48b1f463c9e8427db5a5071bd81914b8]}]`) // []JsonPatchOperation | A list of non-employee source update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - - var jsonPatchOperation v2025.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2025.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource(context.Background(), sourceId).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource(context.Background(), sourceId).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchNonEmployeeSource`: NonEmployeeSource - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource`: %v\n", resp) + //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource(context.Background(), sourceId).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchNonEmployeeSource`: NonEmployeeSource + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource`: %v\n", resp) } ``` @@ -2278,7 +2277,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2289,24 +2288,23 @@ func main() { "comment" : "approved" }`) // NonEmployeeRejectApprovalDecision | - - var nonEmployeeRejectApprovalDecision v2025.NonEmployeeRejectApprovalDecision - if err := json.Unmarshal(nonemployeerejectapprovaldecision, &nonEmployeeRejectApprovalDecision); err != nil { - fmt.Println("Error:", err) - return - } - + var nonEmployeeRejectApprovalDecision v2025.NonEmployeeRejectApprovalDecision + if err := json.Unmarshal(nonemployeerejectapprovaldecision, &nonEmployeeRejectApprovalDecision); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest(context.Background(), id).NonEmployeeRejectApprovalDecision(nonEmployeeRejectApprovalDecision).Execute() - //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest(context.Background(), id).NonEmployeeRejectApprovalDecision(nonEmployeeRejectApprovalDecision).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `RejectNonEmployeeRequest`: NonEmployeeApprovalItem - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest`: %v\n", resp) + //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest(context.Background(), id).NonEmployeeRejectApprovalDecision(nonEmployeeRejectApprovalDecision).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RejectNonEmployeeRequest`: NonEmployeeApprovalItem + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest`: %v\n", resp) } ``` @@ -2358,7 +2356,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -2381,24 +2379,23 @@ func main() { "startDate" : "2020-03-24T00:00:00-05:00" }`) // NonEmployeeRequestBody | Non-employee record creation request body. Attributes are restricted by user type. Owner of source can update end date. Organization admins can update all available fields. - - var nonEmployeeRequestBody v2025.NonEmployeeRequestBody - if err := json.Unmarshal(nonemployeerequestbody, &nonEmployeeRequestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var nonEmployeeRequestBody v2025.NonEmployeeRequestBody + if err := json.Unmarshal(nonemployeerequestbody, &nonEmployeeRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord(context.Background(), id).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() - //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord(context.Background(), id).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateNonEmployeeRecord`: NonEmployeeRecord - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord`: %v\n", resp) + //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord(context.Background(), id).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateNonEmployeeRecord`: NonEmployeeRecord + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/NotificationsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/NotificationsAPI.md index d6e515d40..7e2025cb3 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/NotificationsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/NotificationsAPI.md @@ -81,7 +81,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -92,24 +92,23 @@ func main() { "domain" : "sailpoint.com" }`) // DomainAddress | - - var domainAddress v2025.DomainAddress - if err := json.Unmarshal(domainaddress, &domainAddress); err != nil { - fmt.Println("Error:", err) - return - } - + var domainAddress v2025.DomainAddress + if err := json.Unmarshal(domainaddress, &domainAddress); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NotificationsAPI.CreateDomainDkim(context.Background()).XSailPointExperimental(xSailPointExperimental).DomainAddress(domainAddress).Execute() - //resp, r, err := apiClient.V2025.NotificationsAPI.CreateDomainDkim(context.Background()).XSailPointExperimental(xSailPointExperimental).DomainAddress(domainAddress).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.CreateDomainDkim``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateDomainDkim`: DomainStatusDto - fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.CreateDomainDkim`: %v\n", resp) + //resp, r, err := apiClient.V2025.NotificationsAPI.CreateDomainDkim(context.Background()).XSailPointExperimental(xSailPointExperimental).DomainAddress(domainAddress).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.CreateDomainDkim``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateDomainDkim`: DomainStatusDto + fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.CreateDomainDkim`: %v\n", resp) } ``` @@ -166,7 +165,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -192,24 +191,23 @@ func main() { "key" : "cloud_manual_work_item_summary" }`) // TemplateDto | - - var templateDto v2025.TemplateDto - if err := json.Unmarshal(templatedto, &templateDto); err != nil { - fmt.Println("Error:", err) - return - } - + var templateDto v2025.TemplateDto + if err := json.Unmarshal(templatedto, &templateDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NotificationsAPI.CreateNotificationTemplate(context.Background()).XSailPointExperimental(xSailPointExperimental).TemplateDto(templateDto).Execute() - //resp, r, err := apiClient.V2025.NotificationsAPI.CreateNotificationTemplate(context.Background()).XSailPointExperimental(xSailPointExperimental).TemplateDto(templateDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.CreateNotificationTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateNotificationTemplate`: TemplateDto - fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.CreateNotificationTemplate`: %v\n", resp) + //resp, r, err := apiClient.V2025.NotificationsAPI.CreateNotificationTemplate(context.Background()).XSailPointExperimental(xSailPointExperimental).TemplateDto(templateDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.CreateNotificationTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateNotificationTemplate`: TemplateDto + fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.CreateNotificationTemplate`: %v\n", resp) } ``` @@ -264,7 +262,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -278,24 +276,23 @@ func main() { "email" : "sender@example.com" }`) // EmailStatusDto | - - var emailStatusDto v2025.EmailStatusDto - if err := json.Unmarshal(emailstatusdto, &emailStatusDto); err != nil { - fmt.Println("Error:", err) - return - } - + var emailStatusDto v2025.EmailStatusDto + if err := json.Unmarshal(emailstatusdto, &emailStatusDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NotificationsAPI.CreateVerifiedFromAddress(context.Background()).XSailPointExperimental(xSailPointExperimental).EmailStatusDto(emailStatusDto).Execute() - //resp, r, err := apiClient.V2025.NotificationsAPI.CreateVerifiedFromAddress(context.Background()).XSailPointExperimental(xSailPointExperimental).EmailStatusDto(emailStatusDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.CreateVerifiedFromAddress``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateVerifiedFromAddress`: EmailStatusDto - fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.CreateVerifiedFromAddress`: %v\n", resp) + //resp, r, err := apiClient.V2025.NotificationsAPI.CreateVerifiedFromAddress(context.Background()).XSailPointExperimental(xSailPointExperimental).EmailStatusDto(emailStatusDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.CreateVerifiedFromAddress``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateVerifiedFromAddress`: EmailStatusDto + fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.CreateVerifiedFromAddress`: %v\n", resp) } ``` @@ -350,7 +347,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -359,22 +356,22 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") templatebulkdeletedto := []byte(``) // []TemplateBulkDeleteDto | - - var templateBulkDeleteDto v2025.[]TemplateBulkDeleteDto - if err := json.Unmarshal(templatebulkdeletedto, &templateBulkDeleteDto); err != nil { - fmt.Println("Error:", err) - return - } - + var templateBulkDeleteDto []v2025.TemplateBulkDeleteDto + if err := json.Unmarshal(templatebulkdeletedto, &templateBulkDeleteDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.NotificationsAPI.DeleteNotificationTemplatesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).TemplateBulkDeleteDto(templateBulkDeleteDto).Execute() - //r, err := apiClient.V2025.NotificationsAPI.DeleteNotificationTemplatesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).TemplateBulkDeleteDto(templateBulkDeleteDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.DeleteNotificationTemplatesInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.NotificationsAPI.DeleteNotificationTemplatesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).TemplateBulkDeleteDto(templateBulkDeleteDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.DeleteNotificationTemplatesInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -433,7 +430,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -442,16 +439,17 @@ func main() { id := `id_example` // string | # string | xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.NotificationsAPI.DeleteVerifiedFromAddress(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //r, err := apiClient.V2025.NotificationsAPI.DeleteVerifiedFromAddress(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.DeleteVerifiedFromAddress``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.NotificationsAPI.DeleteVerifiedFromAddress(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.DeleteVerifiedFromAddress``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -505,7 +503,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -513,18 +511,18 @@ import ( func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NotificationsAPI.GetDkimAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.NotificationsAPI.GetDkimAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.GetDkimAttributes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetDkimAttributes`: []DkimAttributes - fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.GetDkimAttributes`: %v\n", resp) + //resp, r, err := apiClient.V2025.NotificationsAPI.GetDkimAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.GetDkimAttributes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDkimAttributes`: []DkimAttributes + fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.GetDkimAttributes`: %v\n", resp) } ``` @@ -579,7 +577,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -588,18 +586,18 @@ func main() { id := `bobsmith@sailpoint.com` // string | Returns the MX and TXT record to be put in your DNS, as well as the MAIL FROM domain status # string | Returns the MX and TXT record to be put in your DNS, as well as the MAIL FROM domain status xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NotificationsAPI.GetMailFromAttributes(context.Background()).Id(id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.NotificationsAPI.GetMailFromAttributes(context.Background()).Id(id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.GetMailFromAttributes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMailFromAttributes`: MailFromAttributes - fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.GetMailFromAttributes`: %v\n", resp) + //resp, r, err := apiClient.V2025.NotificationsAPI.GetMailFromAttributes(context.Background()).Id(id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.GetMailFromAttributes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMailFromAttributes`: MailFromAttributes + fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.GetMailFromAttributes`: %v\n", resp) } ``` @@ -658,7 +656,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -667,18 +665,18 @@ func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the Notification Template # string | Id of the Notification Template xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NotificationsAPI.GetNotificationTemplate(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.NotificationsAPI.GetNotificationTemplate(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.GetNotificationTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNotificationTemplate`: TemplateDto - fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.GetNotificationTemplate`: %v\n", resp) + //resp, r, err := apiClient.V2025.NotificationsAPI.GetNotificationTemplate(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.GetNotificationTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNotificationTemplate`: TemplateDto + fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.GetNotificationTemplate`: %v\n", resp) } ``` @@ -733,7 +731,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -741,18 +739,18 @@ import ( func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NotificationsAPI.GetNotificationsTemplateContext(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.NotificationsAPI.GetNotificationsTemplateContext(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.GetNotificationsTemplateContext``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNotificationsTemplateContext`: NotificationTemplateContext - fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.GetNotificationsTemplateContext`: %v\n", resp) + //resp, r, err := apiClient.V2025.NotificationsAPI.GetNotificationsTemplateContext(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.GetNotificationsTemplateContext``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNotificationsTemplateContext`: NotificationTemplateContext + fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.GetNotificationsTemplateContext`: %v\n", resp) } ``` @@ -811,7 +809,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -824,18 +822,18 @@ func main() { filters := `email eq "john.doe@company.com"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **email**: *eq, ge, le, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **email**: *eq, ge, le, sw* (optional) sorters := `email` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **email** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **email** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NotificationsAPI.ListFromAddresses(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.NotificationsAPI.ListFromAddresses(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.ListFromAddresses``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListFromAddresses`: []EmailStatusDto - fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.ListFromAddresses`: %v\n", resp) + //resp, r, err := apiClient.V2025.NotificationsAPI.ListFromAddresses(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.ListFromAddresses``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListFromAddresses`: []EmailStatusDto + fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.ListFromAddresses`: %v\n", resp) } ``` @@ -889,7 +887,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -897,18 +895,18 @@ import ( func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NotificationsAPI.ListNotificationPreferences(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.NotificationsAPI.ListNotificationPreferences(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.ListNotificationPreferences``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListNotificationPreferences`: PreferencesDto - fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.ListNotificationPreferences`: %v\n", resp) + //resp, r, err := apiClient.V2025.NotificationsAPI.ListNotificationPreferences(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.ListNotificationPreferences``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListNotificationPreferences`: PreferencesDto + fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.ListNotificationPreferences`: %v\n", resp) } ``` @@ -965,7 +963,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -976,18 +974,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) filters := `key eq "cloud_manual_work_item_summary"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **key**: *eq, in, sw* **medium**: *eq, sw* **locale**: *eq, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **key**: *eq, in, sw* **medium**: *eq, sw* **locale**: *eq, sw* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NotificationsAPI.ListNotificationTemplateDefaults(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.NotificationsAPI.ListNotificationTemplateDefaults(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.ListNotificationTemplateDefaults``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListNotificationTemplateDefaults`: []TemplateDtoDefault - fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.ListNotificationTemplateDefaults`: %v\n", resp) + //resp, r, err := apiClient.V2025.NotificationsAPI.ListNotificationTemplateDefaults(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.ListNotificationTemplateDefaults``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListNotificationTemplateDefaults`: []TemplateDtoDefault + fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.ListNotificationTemplateDefaults`: %v\n", resp) } ``` @@ -1044,7 +1042,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1055,18 +1053,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) filters := `medium eq "EMAIL"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **key**: *eq, in, sw* **medium**: *eq, sw* **locale**: *eq, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **key**: *eq, in, sw* **medium**: *eq, sw* **locale**: *eq, sw* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NotificationsAPI.ListNotificationTemplates(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.NotificationsAPI.ListNotificationTemplates(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.ListNotificationTemplates``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListNotificationTemplates`: []TemplateDto - fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.ListNotificationTemplates`: %v\n", resp) + //resp, r, err := apiClient.V2025.NotificationsAPI.ListNotificationTemplates(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.ListNotificationTemplates``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListNotificationTemplates`: []TemplateDto + fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.ListNotificationTemplates`: %v\n", resp) } ``` @@ -1121,7 +1119,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1133,24 +1131,23 @@ func main() { "mailFromDomain" : "example.sailpoint.com" }`) // MailFromAttributesDto | - - var mailFromAttributesDto v2025.MailFromAttributesDto - if err := json.Unmarshal(mailfromattributesdto, &mailFromAttributesDto); err != nil { - fmt.Println("Error:", err) - return - } - + var mailFromAttributesDto v2025.MailFromAttributesDto + if err := json.Unmarshal(mailfromattributesdto, &mailFromAttributesDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NotificationsAPI.PutMailFromAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).MailFromAttributesDto(mailFromAttributesDto).Execute() - //resp, r, err := apiClient.V2025.NotificationsAPI.PutMailFromAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).MailFromAttributesDto(mailFromAttributesDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.PutMailFromAttributes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutMailFromAttributes`: MailFromAttributes - fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.PutMailFromAttributes`: %v\n", resp) + //resp, r, err := apiClient.V2025.NotificationsAPI.PutMailFromAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).MailFromAttributesDto(mailFromAttributesDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.PutMailFromAttributes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutMailFromAttributes`: MailFromAttributes + fmt.Fprintf(os.Stdout, "Response from `NotificationsAPI.PutMailFromAttributes`: %v\n", resp) } ``` @@ -1205,7 +1202,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1218,22 +1215,22 @@ func main() { "key" : "cloud_manual_work_item_summary" }`) // SendTestNotificationRequestDto | - - var sendTestNotificationRequestDto v2025.SendTestNotificationRequestDto - if err := json.Unmarshal(sendtestnotificationrequestdto, &sendTestNotificationRequestDto); err != nil { - fmt.Println("Error:", err) - return - } - + var sendTestNotificationRequestDto v2025.SendTestNotificationRequestDto + if err := json.Unmarshal(sendtestnotificationrequestdto, &sendTestNotificationRequestDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.NotificationsAPI.SendTestNotification(context.Background()).XSailPointExperimental(xSailPointExperimental).SendTestNotificationRequestDto(sendTestNotificationRequestDto).Execute() - //r, err := apiClient.V2025.NotificationsAPI.SendTestNotification(context.Background()).XSailPointExperimental(xSailPointExperimental).SendTestNotificationRequestDto(sendTestNotificationRequestDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.SendTestNotification``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.NotificationsAPI.SendTestNotification(context.Background()).XSailPointExperimental(xSailPointExperimental).SendTestNotificationRequestDto(sendTestNotificationRequestDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationsAPI.SendTestNotification``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/OAuthClientsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/OAuthClientsAPI.md index 611774f21..834b75cf1 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/OAuthClientsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/OAuthClientsAPI.md @@ -62,7 +62,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -86,24 +86,23 @@ func main() { "claimsSupported" : false }`) // CreateOAuthClientRequest | - - var createOAuthClientRequest v2025.CreateOAuthClientRequest - if err := json.Unmarshal(createoauthclientrequest, &createOAuthClientRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var createOAuthClientRequest v2025.CreateOAuthClientRequest + if err := json.Unmarshal(createoauthclientrequest, &createOAuthClientRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.OAuthClientsAPI.CreateOauthClient(context.Background()).CreateOAuthClientRequest(createOAuthClientRequest).Execute() - //resp, r, err := apiClient.V2025.OAuthClientsAPI.CreateOauthClient(context.Background()).CreateOAuthClientRequest(createOAuthClientRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.CreateOauthClient``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateOauthClient`: CreateOAuthClientResponse - fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.CreateOauthClient`: %v\n", resp) + //resp, r, err := apiClient.V2025.OAuthClientsAPI.CreateOauthClient(context.Background()).CreateOAuthClientRequest(createOAuthClientRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.CreateOauthClient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateOauthClient`: CreateOAuthClientResponse + fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.CreateOauthClient`: %v\n", resp) } ``` @@ -150,7 +149,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -158,16 +157,17 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The OAuth client id # string | The OAuth client id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.OAuthClientsAPI.DeleteOauthClient(context.Background(), id).Execute() - //r, err := apiClient.V2025.OAuthClientsAPI.DeleteOauthClient(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.DeleteOauthClient``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.OAuthClientsAPI.DeleteOauthClient(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.DeleteOauthClient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -214,7 +214,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -222,18 +222,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The OAuth client id # string | The OAuth client id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.OAuthClientsAPI.GetOauthClient(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.OAuthClientsAPI.GetOauthClient(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.GetOauthClient``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetOauthClient`: GetOAuthClientResponse - fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.GetOauthClient`: %v\n", resp) + //resp, r, err := apiClient.V2025.OAuthClientsAPI.GetOauthClient(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.GetOauthClient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetOauthClient`: GetOAuthClientResponse + fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.GetOauthClient`: %v\n", resp) } ``` @@ -276,7 +276,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -284,18 +284,18 @@ import ( func main() { filters := `lastUsed le 2023-02-05T10:59:27.214Z` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **lastUsed**: *le, isnull* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **lastUsed**: *le, isnull* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.OAuthClientsAPI.ListOauthClients(context.Background()).Execute() - //resp, r, err := apiClient.V2025.OAuthClientsAPI.ListOauthClients(context.Background()).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.ListOauthClients``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListOauthClients`: []GetOAuthClientResponse - fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.ListOauthClients`: %v\n", resp) + //resp, r, err := apiClient.V2025.OAuthClientsAPI.ListOauthClients(context.Background()).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.ListOauthClients``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListOauthClients`: []GetOAuthClientResponse + fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.ListOauthClients`: %v\n", resp) } ``` @@ -343,7 +343,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -352,24 +352,23 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The OAuth client id # string | The OAuth client id jsonpatchoperation := []byte(`[{op=replace, path=/strongAuthSupported, value=true}, {op=replace, path=/businessName, value=acme-solar}]`) // []JsonPatchOperation | A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * tenant * businessName * homepageUrl * name * description * accessTokenValiditySeconds * refreshTokenValiditySeconds * redirectUris * grantTypes * accessType * enabled * strongAuthSupported * claimsSupported - - var jsonPatchOperation v2025.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2025.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.OAuthClientsAPI.PatchOauthClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2025.OAuthClientsAPI.PatchOauthClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.PatchOauthClient``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchOauthClient`: GetOAuthClientResponse - fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.PatchOauthClient`: %v\n", resp) + //resp, r, err := apiClient.V2025.OAuthClientsAPI.PatchOauthClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.PatchOauthClient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchOauthClient`: GetOAuthClientResponse + fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.PatchOauthClient`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/OrgConfigAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/OrgConfigAPI.md index 307f06672..cdeec0640 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/OrgConfigAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/OrgConfigAPI.md @@ -70,7 +70,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -78,18 +78,18 @@ import ( func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.OrgConfigAPI.GetOrgConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.OrgConfigAPI.GetOrgConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OrgConfigAPI.GetOrgConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetOrgConfig`: OrgConfig - fmt.Fprintf(os.Stdout, "Response from `OrgConfigAPI.GetOrgConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.OrgConfigAPI.GetOrgConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrgConfigAPI.GetOrgConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetOrgConfig`: OrgConfig + fmt.Fprintf(os.Stdout, "Response from `OrgConfigAPI.GetOrgConfig`: %v\n", resp) } ``` @@ -146,7 +146,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -157,18 +157,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.OrgConfigAPI.GetValidTimeZones(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.OrgConfigAPI.GetValidTimeZones(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OrgConfigAPI.GetValidTimeZones``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetValidTimeZones`: []string - fmt.Fprintf(os.Stdout, "Response from `OrgConfigAPI.GetValidTimeZones`: %v\n", resp) + //resp, r, err := apiClient.V2025.OrgConfigAPI.GetValidTimeZones(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrgConfigAPI.GetValidTimeZones``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetValidTimeZones`: []string + fmt.Fprintf(os.Stdout, "Response from `OrgConfigAPI.GetValidTimeZones`: %v\n", resp) } ``` @@ -223,7 +223,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -232,24 +232,23 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") jsonpatchoperation := []byte(`[{op=replace, path=/timeZone, value=America/Toronto}]`) // []JsonPatchOperation | A list of schema attribute update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - - var jsonPatchOperation v2025.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2025.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.OrgConfigAPI.PatchOrgConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2025.OrgConfigAPI.PatchOrgConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OrgConfigAPI.PatchOrgConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchOrgConfig`: OrgConfig - fmt.Fprintf(os.Stdout, "Response from `OrgConfigAPI.PatchOrgConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.OrgConfigAPI.PatchOrgConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrgConfigAPI.PatchOrgConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchOrgConfig`: OrgConfig + fmt.Fprintf(os.Stdout, "Response from `OrgConfigAPI.PatchOrgConfig`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/PasswordConfigurationAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/PasswordConfigurationAPI.md index 53856aca2..ec406308a 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/PasswordConfigurationAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/PasswordConfigurationAPI.md @@ -65,7 +65,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -78,24 +78,23 @@ func main() { "customInstructionsEnabled" : true }`) // PasswordOrgConfig | - - var passwordOrgConfig v2025.PasswordOrgConfig - if err := json.Unmarshal(passwordorgconfig, &passwordOrgConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var passwordOrgConfig v2025.PasswordOrgConfig + if err := json.Unmarshal(passwordorgconfig, &passwordOrgConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PasswordConfigurationAPI.CreatePasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() - //resp, r, err := apiClient.V2025.PasswordConfigurationAPI.CreatePasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordConfigurationAPI.CreatePasswordOrgConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreatePasswordOrgConfig`: PasswordOrgConfig - fmt.Fprintf(os.Stdout, "Response from `PasswordConfigurationAPI.CreatePasswordOrgConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.PasswordConfigurationAPI.CreatePasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordConfigurationAPI.CreatePasswordOrgConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreatePasswordOrgConfig`: PasswordOrgConfig + fmt.Fprintf(os.Stdout, "Response from `PasswordConfigurationAPI.CreatePasswordOrgConfig`: %v\n", resp) } ``` @@ -134,25 +133,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PasswordConfigurationAPI.GetPasswordOrgConfig(context.Background()).Execute() - //resp, r, err := apiClient.V2025.PasswordConfigurationAPI.GetPasswordOrgConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordConfigurationAPI.GetPasswordOrgConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPasswordOrgConfig`: PasswordOrgConfig - fmt.Fprintf(os.Stdout, "Response from `PasswordConfigurationAPI.GetPasswordOrgConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.PasswordConfigurationAPI.GetPasswordOrgConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordConfigurationAPI.GetPasswordOrgConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPasswordOrgConfig`: PasswordOrgConfig + fmt.Fprintf(os.Stdout, "Response from `PasswordConfigurationAPI.GetPasswordOrgConfig`: %v\n", resp) } ``` @@ -197,7 +196,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -210,24 +209,23 @@ func main() { "customInstructionsEnabled" : true }`) // PasswordOrgConfig | - - var passwordOrgConfig v2025.PasswordOrgConfig - if err := json.Unmarshal(passwordorgconfig, &passwordOrgConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var passwordOrgConfig v2025.PasswordOrgConfig + if err := json.Unmarshal(passwordorgconfig, &passwordOrgConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PasswordConfigurationAPI.PutPasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() - //resp, r, err := apiClient.V2025.PasswordConfigurationAPI.PutPasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordConfigurationAPI.PutPasswordOrgConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutPasswordOrgConfig`: PasswordOrgConfig - fmt.Fprintf(os.Stdout, "Response from `PasswordConfigurationAPI.PutPasswordOrgConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.PasswordConfigurationAPI.PutPasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordConfigurationAPI.PutPasswordOrgConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutPasswordOrgConfig`: PasswordOrgConfig + fmt.Fprintf(os.Stdout, "Response from `PasswordConfigurationAPI.PutPasswordOrgConfig`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/PasswordDictionaryAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/PasswordDictionaryAPI.md index d809d7b1b..744c3babc 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/PasswordDictionaryAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/PasswordDictionaryAPI.md @@ -127,25 +127,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PasswordDictionaryAPI.GetPasswordDictionary(context.Background()).Execute() - //resp, r, err := apiClient.V2025.PasswordDictionaryAPI.GetPasswordDictionary(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordDictionaryAPI.GetPasswordDictionary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPasswordDictionary`: string - fmt.Fprintf(os.Stdout, "Response from `PasswordDictionaryAPI.GetPasswordDictionary`: %v\n", resp) + //resp, r, err := apiClient.V2025.PasswordDictionaryAPI.GetPasswordDictionary(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordDictionaryAPI.GetPasswordDictionary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPasswordDictionary`: string + fmt.Fprintf(os.Stdout, "Response from `PasswordDictionaryAPI.GetPasswordDictionary`: %v\n", resp) } ``` @@ -216,7 +216,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -224,16 +224,17 @@ import ( func main() { file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.PasswordDictionaryAPI.PutPasswordDictionary(context.Background()).Execute() - //r, err := apiClient.V2025.PasswordDictionaryAPI.PutPasswordDictionary(context.Background()).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordDictionaryAPI.PutPasswordDictionary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.PasswordDictionaryAPI.PutPasswordDictionary(context.Background()).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordDictionaryAPI.PutPasswordDictionary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/PasswordManagementAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/PasswordManagementAPI.md index 24fd9b094..8dec0757b 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/PasswordManagementAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/PasswordManagementAPI.md @@ -94,7 +94,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -107,24 +107,23 @@ func main() { "userId" : "Abby.Smith" }`) // PasswordDigitTokenReset | - - var passwordDigitTokenReset v2025.PasswordDigitTokenReset - if err := json.Unmarshal(passworddigittokenreset, &passwordDigitTokenReset); err != nil { - fmt.Println("Error:", err) - return - } - + var passwordDigitTokenReset v2025.PasswordDigitTokenReset + if err := json.Unmarshal(passworddigittokenreset, &passwordDigitTokenReset); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PasswordManagementAPI.CreateDigitToken(context.Background()).XSailPointExperimental(xSailPointExperimental).PasswordDigitTokenReset(passwordDigitTokenReset).Execute() - //resp, r, err := apiClient.V2025.PasswordManagementAPI.CreateDigitToken(context.Background()).XSailPointExperimental(xSailPointExperimental).PasswordDigitTokenReset(passwordDigitTokenReset).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordManagementAPI.CreateDigitToken``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateDigitToken`: PasswordDigitToken - fmt.Fprintf(os.Stdout, "Response from `PasswordManagementAPI.CreateDigitToken`: %v\n", resp) + //resp, r, err := apiClient.V2025.PasswordManagementAPI.CreateDigitToken(context.Background()).XSailPointExperimental(xSailPointExperimental).PasswordDigitTokenReset(passwordDigitTokenReset).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordManagementAPI.CreateDigitToken``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateDigitToken`: PasswordDigitToken + fmt.Fprintf(os.Stdout, "Response from `PasswordManagementAPI.CreateDigitToken`: %v\n", resp) } ``` @@ -171,7 +170,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -179,18 +178,18 @@ import ( func main() { id := `089899f13a8f4da7824996191587bab9` // string | Password change request ID # string | Password change request ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PasswordManagementAPI.GetPasswordChangeStatus(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.PasswordManagementAPI.GetPasswordChangeStatus(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordManagementAPI.GetPasswordChangeStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPasswordChangeStatus`: PasswordStatus - fmt.Fprintf(os.Stdout, "Response from `PasswordManagementAPI.GetPasswordChangeStatus`: %v\n", resp) + //resp, r, err := apiClient.V2025.PasswordManagementAPI.GetPasswordChangeStatus(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordManagementAPI.GetPasswordChangeStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPasswordChangeStatus`: PasswordStatus + fmt.Fprintf(os.Stdout, "Response from `PasswordManagementAPI.GetPasswordChangeStatus`: %v\n", resp) } ``` @@ -234,7 +233,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -245,24 +244,23 @@ func main() { "userName" : "Abby.Smith" }`) // PasswordInfoQueryDTO | - - var passwordInfoQueryDTO v2025.PasswordInfoQueryDTO - if err := json.Unmarshal(passwordinfoquerydto, &passwordInfoQueryDTO); err != nil { - fmt.Println("Error:", err) - return - } - + var passwordInfoQueryDTO v2025.PasswordInfoQueryDTO + if err := json.Unmarshal(passwordinfoquerydto, &passwordInfoQueryDTO); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PasswordManagementAPI.QueryPasswordInfo(context.Background()).PasswordInfoQueryDTO(passwordInfoQueryDTO).Execute() - //resp, r, err := apiClient.V2025.PasswordManagementAPI.QueryPasswordInfo(context.Background()).PasswordInfoQueryDTO(passwordInfoQueryDTO).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordManagementAPI.QueryPasswordInfo``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `QueryPasswordInfo`: PasswordInfo - fmt.Fprintf(os.Stdout, "Response from `PasswordManagementAPI.QueryPasswordInfo`: %v\n", resp) + //resp, r, err := apiClient.V2025.PasswordManagementAPI.QueryPasswordInfo(context.Background()).PasswordInfoQueryDTO(passwordInfoQueryDTO).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordManagementAPI.QueryPasswordInfo``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `QueryPasswordInfo`: PasswordInfo + fmt.Fprintf(os.Stdout, "Response from `PasswordManagementAPI.QueryPasswordInfo`: %v\n", resp) } ``` @@ -324,7 +322,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -338,24 +336,23 @@ func main() { "encryptedPassword" : "XzN+YwKgr2C+InkMYFMBG3UtjMEw5ZIql/XFlXo8cJNeslmkplx6vn4kd4/43IF9STBk5RnzR6XmjpEO+FwHDoiBwYZAkAZK/Iswxk4OdybG6Y4MStJCOCiK8osKr35IMMSV/mbO4wAeltoCk7daTWzTGLiI6UaT5tf+F2EgdjJZ7YqM8W8r7aUWsm3p2Xt01Y46ZRx0QaM91QruiIx2rECFT2pUO0wr+7oQ77jypATyGWRtADsu3YcvCk/6U5MqCnXMzKBcRas7NnZdSL/d5H1GglVGz3VLPMaivG4/oL4chOMmFCRl/zVsGxZ9RhN8rxsRGFFKn+rhExTi+bax3A==" }`) // PasswordChangeRequest | - - var passwordChangeRequest v2025.PasswordChangeRequest - if err := json.Unmarshal(passwordchangerequest, &passwordChangeRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var passwordChangeRequest v2025.PasswordChangeRequest + if err := json.Unmarshal(passwordchangerequest, &passwordChangeRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PasswordManagementAPI.SetPassword(context.Background()).PasswordChangeRequest(passwordChangeRequest).Execute() - //resp, r, err := apiClient.V2025.PasswordManagementAPI.SetPassword(context.Background()).PasswordChangeRequest(passwordChangeRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordManagementAPI.SetPassword``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetPassword`: PasswordChangeResponse - fmt.Fprintf(os.Stdout, "Response from `PasswordManagementAPI.SetPassword`: %v\n", resp) + //resp, r, err := apiClient.V2025.PasswordManagementAPI.SetPassword(context.Background()).PasswordChangeRequest(passwordChangeRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordManagementAPI.SetPassword``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetPassword`: PasswordChangeResponse + fmt.Fprintf(os.Stdout, "Response from `PasswordManagementAPI.SetPassword`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/PasswordPoliciesAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/PasswordPoliciesAPI.md index 5cbaf6a65..94d22a19d 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/PasswordPoliciesAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/PasswordPoliciesAPI.md @@ -67,7 +67,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -107,24 +107,23 @@ func main() { "maxLength" : 25 }`) // PasswordPolicyV3Dto | - - var passwordPolicyV3Dto v2025.PasswordPolicyV3Dto - if err := json.Unmarshal(passwordpolicyv3dto, &passwordPolicyV3Dto); err != nil { - fmt.Println("Error:", err) - return - } - + var passwordPolicyV3Dto v2025.PasswordPolicyV3Dto + if err := json.Unmarshal(passwordpolicyv3dto, &passwordPolicyV3Dto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PasswordPoliciesAPI.CreatePasswordPolicy(context.Background()).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() - //resp, r, err := apiClient.V2025.PasswordPoliciesAPI.CreatePasswordPolicy(context.Background()).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.CreatePasswordPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreatePasswordPolicy`: PasswordPolicyV3Dto - fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.CreatePasswordPolicy`: %v\n", resp) + //resp, r, err := apiClient.V2025.PasswordPoliciesAPI.CreatePasswordPolicy(context.Background()).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.CreatePasswordPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreatePasswordPolicy`: PasswordPolicyV3Dto + fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.CreatePasswordPolicy`: %v\n", resp) } ``` @@ -171,7 +170,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -179,16 +178,17 @@ import ( func main() { id := `ff808081838d9e9d01838da6a03e0002` // string | The ID of password policy to delete. # string | The ID of password policy to delete. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.PasswordPoliciesAPI.DeletePasswordPolicy(context.Background(), id).Execute() - //r, err := apiClient.V2025.PasswordPoliciesAPI.DeletePasswordPolicy(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.DeletePasswordPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.PasswordPoliciesAPI.DeletePasswordPolicy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.DeletePasswordPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -235,7 +235,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -243,18 +243,18 @@ import ( func main() { id := `ff808081838d9e9d01838da6a03e0005` // string | The ID of password policy to retrieve. # string | The ID of password policy to retrieve. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PasswordPoliciesAPI.GetPasswordPolicyById(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.PasswordPoliciesAPI.GetPasswordPolicyById(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.GetPasswordPolicyById``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPasswordPolicyById`: PasswordPolicyV3Dto - fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.GetPasswordPolicyById`: %v\n", resp) + //resp, r, err := apiClient.V2025.PasswordPoliciesAPI.GetPasswordPolicyById(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.GetPasswordPolicyById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPasswordPolicyById`: PasswordPolicyV3Dto + fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.GetPasswordPolicyById`: %v\n", resp) } ``` @@ -300,7 +300,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -310,18 +310,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PasswordPoliciesAPI.ListPasswordPolicies(context.Background()).Execute() - //resp, r, err := apiClient.V2025.PasswordPoliciesAPI.ListPasswordPolicies(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.ListPasswordPolicies``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListPasswordPolicies`: []PasswordPolicyV3Dto - fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.ListPasswordPolicies`: %v\n", resp) + //resp, r, err := apiClient.V2025.PasswordPoliciesAPI.ListPasswordPolicies(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.ListPasswordPolicies``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListPasswordPolicies`: []PasswordPolicyV3Dto + fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.ListPasswordPolicies`: %v\n", resp) } ``` @@ -369,7 +369,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -410,24 +410,23 @@ func main() { "maxLength" : 25 }`) // PasswordPolicyV3Dto | - - var passwordPolicyV3Dto v2025.PasswordPolicyV3Dto - if err := json.Unmarshal(passwordpolicyv3dto, &passwordPolicyV3Dto); err != nil { - fmt.Println("Error:", err) - return - } - + var passwordPolicyV3Dto v2025.PasswordPolicyV3Dto + if err := json.Unmarshal(passwordpolicyv3dto, &passwordPolicyV3Dto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PasswordPoliciesAPI.SetPasswordPolicy(context.Background(), id).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() - //resp, r, err := apiClient.V2025.PasswordPoliciesAPI.SetPasswordPolicy(context.Background(), id).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.SetPasswordPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetPasswordPolicy`: PasswordPolicyV3Dto - fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.SetPasswordPolicy`: %v\n", resp) + //resp, r, err := apiClient.V2025.PasswordPoliciesAPI.SetPasswordPolicy(context.Background(), id).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.SetPasswordPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetPasswordPolicy`: PasswordPolicyV3Dto + fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.SetPasswordPolicy`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/PasswordSyncGroupsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/PasswordSyncGroupsAPI.md index cd9d4defe..128934790 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/PasswordSyncGroupsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/PasswordSyncGroupsAPI.md @@ -91,7 +91,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -106,24 +106,23 @@ func main() { "sourceIds" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210500" ] }`) // PasswordSyncGroup | - - var passwordSyncGroup v2025.PasswordSyncGroup - if err := json.Unmarshal(passwordsyncgroup, &passwordSyncGroup); err != nil { - fmt.Println("Error:", err) - return - } - + var passwordSyncGroup v2025.PasswordSyncGroup + if err := json.Unmarshal(passwordsyncgroup, &passwordSyncGroup); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PasswordSyncGroupsAPI.CreatePasswordSyncGroup(context.Background()).PasswordSyncGroup(passwordSyncGroup).Execute() - //resp, r, err := apiClient.V2025.PasswordSyncGroupsAPI.CreatePasswordSyncGroup(context.Background()).PasswordSyncGroup(passwordSyncGroup).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.CreatePasswordSyncGroup``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreatePasswordSyncGroup`: PasswordSyncGroup - fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.CreatePasswordSyncGroup`: %v\n", resp) + //resp, r, err := apiClient.V2025.PasswordSyncGroupsAPI.CreatePasswordSyncGroup(context.Background()).PasswordSyncGroup(passwordSyncGroup).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.CreatePasswordSyncGroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreatePasswordSyncGroup`: PasswordSyncGroup + fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.CreatePasswordSyncGroup`: %v\n", resp) } ``` @@ -170,7 +169,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -178,16 +177,17 @@ import ( func main() { id := `6881f631-3bd5-4213-9c75-8e05cc3e35dd` // string | The ID of password sync group to delete. # string | The ID of password sync group to delete. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.PasswordSyncGroupsAPI.DeletePasswordSyncGroup(context.Background(), id).Execute() - //r, err := apiClient.V2025.PasswordSyncGroupsAPI.DeletePasswordSyncGroup(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.DeletePasswordSyncGroup``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.PasswordSyncGroupsAPI.DeletePasswordSyncGroup(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.DeletePasswordSyncGroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -234,7 +234,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -242,18 +242,18 @@ import ( func main() { id := `6881f631-3bd5-4213-9c75-8e05cc3e35dd` // string | The ID of password sync group to retrieve. # string | The ID of password sync group to retrieve. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PasswordSyncGroupsAPI.GetPasswordSyncGroup(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.PasswordSyncGroupsAPI.GetPasswordSyncGroup(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.GetPasswordSyncGroup``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPasswordSyncGroup`: PasswordSyncGroup - fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.GetPasswordSyncGroup`: %v\n", resp) + //resp, r, err := apiClient.V2025.PasswordSyncGroupsAPI.GetPasswordSyncGroup(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.GetPasswordSyncGroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPasswordSyncGroup`: PasswordSyncGroup + fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.GetPasswordSyncGroup`: %v\n", resp) } ``` @@ -298,7 +298,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -308,18 +308,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PasswordSyncGroupsAPI.GetPasswordSyncGroups(context.Background()).Execute() - //resp, r, err := apiClient.V2025.PasswordSyncGroupsAPI.GetPasswordSyncGroups(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.GetPasswordSyncGroups``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPasswordSyncGroups`: []PasswordSyncGroup - fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.GetPasswordSyncGroups`: %v\n", resp) + //resp, r, err := apiClient.V2025.PasswordSyncGroupsAPI.GetPasswordSyncGroups(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.GetPasswordSyncGroups``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPasswordSyncGroups`: []PasswordSyncGroup + fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.GetPasswordSyncGroups`: %v\n", resp) } ``` @@ -367,7 +367,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -383,24 +383,23 @@ func main() { "sourceIds" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210500" ] }`) // PasswordSyncGroup | - - var passwordSyncGroup v2025.PasswordSyncGroup - if err := json.Unmarshal(passwordsyncgroup, &passwordSyncGroup); err != nil { - fmt.Println("Error:", err) - return - } - + var passwordSyncGroup v2025.PasswordSyncGroup + if err := json.Unmarshal(passwordsyncgroup, &passwordSyncGroup); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PasswordSyncGroupsAPI.UpdatePasswordSyncGroup(context.Background(), id).PasswordSyncGroup(passwordSyncGroup).Execute() - //resp, r, err := apiClient.V2025.PasswordSyncGroupsAPI.UpdatePasswordSyncGroup(context.Background(), id).PasswordSyncGroup(passwordSyncGroup).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.UpdatePasswordSyncGroup``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdatePasswordSyncGroup`: PasswordSyncGroup - fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.UpdatePasswordSyncGroup`: %v\n", resp) + //resp, r, err := apiClient.V2025.PasswordSyncGroupsAPI.UpdatePasswordSyncGroup(context.Background(), id).PasswordSyncGroup(passwordSyncGroup).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.UpdatePasswordSyncGroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdatePasswordSyncGroup`: PasswordSyncGroup + fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.UpdatePasswordSyncGroup`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/PersonalAccessTokensAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/PersonalAccessTokensAPI.md index aa57dd26b..dd289e2ad 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/PersonalAccessTokensAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/PersonalAccessTokensAPI.md @@ -69,7 +69,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -81,24 +81,23 @@ func main() { "name" : "NodeJS Integration" }`) // CreatePersonalAccessTokenRequest | Name and scope of personal access token. - - var createPersonalAccessTokenRequest v2025.CreatePersonalAccessTokenRequest - if err := json.Unmarshal(createpersonalaccesstokenrequest, &createPersonalAccessTokenRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var createPersonalAccessTokenRequest v2025.CreatePersonalAccessTokenRequest + if err := json.Unmarshal(createpersonalaccesstokenrequest, &createPersonalAccessTokenRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PersonalAccessTokensAPI.CreatePersonalAccessToken(context.Background()).CreatePersonalAccessTokenRequest(createPersonalAccessTokenRequest).Execute() - //resp, r, err := apiClient.V2025.PersonalAccessTokensAPI.CreatePersonalAccessToken(context.Background()).CreatePersonalAccessTokenRequest(createPersonalAccessTokenRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.CreatePersonalAccessToken``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreatePersonalAccessToken`: CreatePersonalAccessTokenResponse - fmt.Fprintf(os.Stdout, "Response from `PersonalAccessTokensAPI.CreatePersonalAccessToken`: %v\n", resp) + //resp, r, err := apiClient.V2025.PersonalAccessTokensAPI.CreatePersonalAccessToken(context.Background()).CreatePersonalAccessTokenRequest(createPersonalAccessTokenRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.CreatePersonalAccessToken``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreatePersonalAccessToken`: CreatePersonalAccessTokenResponse + fmt.Fprintf(os.Stdout, "Response from `PersonalAccessTokensAPI.CreatePersonalAccessToken`: %v\n", resp) } ``` @@ -145,7 +144,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -153,16 +152,17 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The personal access token id # string | The personal access token id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.PersonalAccessTokensAPI.DeletePersonalAccessToken(context.Background(), id).Execute() - //r, err := apiClient.V2025.PersonalAccessTokensAPI.DeletePersonalAccessToken(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.DeletePersonalAccessToken``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.PersonalAccessTokensAPI.DeletePersonalAccessToken(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.DeletePersonalAccessToken``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -206,7 +206,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -215,18 +215,18 @@ func main() { ownerId := `2c9180867b50d088017b554662fb281e` // string | The identity ID of the owner whose personal access tokens should be listed. If \"me\", the caller should have the following right: 'idn:my-personal-access-tokens:read' If an actual owner ID or if the `owner-id` parameter is omitted in the request, the caller should have the following right: 'idn:all-personal-access-tokens:read'. If the caller has the following right, then managed personal access tokens associated with `owner-id` will be retrieved: 'idn:managed-personal-access-tokens:read' (optional) # string | The identity ID of the owner whose personal access tokens should be listed. If \"me\", the caller should have the following right: 'idn:my-personal-access-tokens:read' If an actual owner ID or if the `owner-id` parameter is omitted in the request, the caller should have the following right: 'idn:all-personal-access-tokens:read'. If the caller has the following right, then managed personal access tokens associated with `owner-id` will be retrieved: 'idn:managed-personal-access-tokens:read' (optional) filters := `lastUsed le 2023-02-05T10:59:27.214Z` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **lastUsed**: *le, isnull* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **lastUsed**: *le, isnull* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PersonalAccessTokensAPI.ListPersonalAccessTokens(context.Background()).Execute() - //resp, r, err := apiClient.V2025.PersonalAccessTokensAPI.ListPersonalAccessTokens(context.Background()).OwnerId(ownerId).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.ListPersonalAccessTokens``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListPersonalAccessTokens`: []GetPersonalAccessTokenResponse - fmt.Fprintf(os.Stdout, "Response from `PersonalAccessTokensAPI.ListPersonalAccessTokens`: %v\n", resp) + //resp, r, err := apiClient.V2025.PersonalAccessTokensAPI.ListPersonalAccessTokens(context.Background()).OwnerId(ownerId).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.ListPersonalAccessTokens``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListPersonalAccessTokens`: []GetPersonalAccessTokenResponse + fmt.Fprintf(os.Stdout, "Response from `PersonalAccessTokensAPI.ListPersonalAccessTokens`: %v\n", resp) } ``` @@ -275,7 +275,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -284,24 +284,23 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The Personal Access Token id # string | The Personal Access Token id jsonpatchoperation := []byte(`[{op=replace, path=/name, value=New name}, {op=replace, path=/scope, value=[sp:scopes:all]}]`) // []JsonPatchOperation | A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * scope - - var jsonPatchOperation v2025.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2025.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PersonalAccessTokensAPI.PatchPersonalAccessToken(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2025.PersonalAccessTokensAPI.PatchPersonalAccessToken(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.PatchPersonalAccessToken``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchPersonalAccessToken`: GetPersonalAccessTokenResponse - fmt.Fprintf(os.Stdout, "Response from `PersonalAccessTokensAPI.PatchPersonalAccessToken`: %v\n", resp) + //resp, r, err := apiClient.V2025.PersonalAccessTokensAPI.PatchPersonalAccessToken(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.PatchPersonalAccessToken``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchPersonalAccessToken`: GetPersonalAccessTokenResponse + fmt.Fprintf(os.Stdout, "Response from `PersonalAccessTokensAPI.PatchPersonalAccessToken`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/PublicIdentitiesAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/PublicIdentitiesAPI.md index d10743ddc..5ff097472 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/PublicIdentitiesAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/PublicIdentitiesAPI.md @@ -63,7 +63,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -76,18 +76,18 @@ func main() { addCoreFilters := false // bool | If *true*, only get identities which satisfy ALL the following criteria in addition to any criteria specified by *filters*: - Should be either correlated or protected. - Should not be \"spadmin\" or \"cloudadmin\". - uid should not be null. - lastname should not be null. - email should not be null. (optional) (default to false) # bool | If *true*, only get identities which satisfy ALL the following criteria in addition to any criteria specified by *filters*: - Should be either correlated or protected. - Should not be \"spadmin\" or \"cloudadmin\". - uid should not be null. - lastname should not be null. - email should not be null. (optional) (default to false) sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PublicIdentitiesAPI.GetPublicIdentities(context.Background()).Execute() - //resp, r, err := apiClient.V2025.PublicIdentitiesAPI.GetPublicIdentities(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).AddCoreFilters(addCoreFilters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PublicIdentitiesAPI.GetPublicIdentities``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPublicIdentities`: []PublicIdentity - fmt.Fprintf(os.Stdout, "Response from `PublicIdentitiesAPI.GetPublicIdentities`: %v\n", resp) + //resp, r, err := apiClient.V2025.PublicIdentitiesAPI.GetPublicIdentities(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).AddCoreFilters(addCoreFilters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PublicIdentitiesAPI.GetPublicIdentities``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPublicIdentities`: []PublicIdentity + fmt.Fprintf(os.Stdout, "Response from `PublicIdentitiesAPI.GetPublicIdentities`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/PublicIdentitiesConfigAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/PublicIdentitiesConfigAPI.md index 5ccb58565..6cedd9775 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/PublicIdentitiesConfigAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/PublicIdentitiesConfigAPI.md @@ -62,25 +62,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PublicIdentitiesConfigAPI.GetPublicIdentityConfig(context.Background()).Execute() - //resp, r, err := apiClient.V2025.PublicIdentitiesConfigAPI.GetPublicIdentityConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PublicIdentitiesConfigAPI.GetPublicIdentityConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPublicIdentityConfig`: PublicIdentityConfig - fmt.Fprintf(os.Stdout, "Response from `PublicIdentitiesConfigAPI.GetPublicIdentityConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.PublicIdentitiesConfigAPI.GetPublicIdentityConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PublicIdentitiesConfigAPI.GetPublicIdentityConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPublicIdentityConfig`: PublicIdentityConfig + fmt.Fprintf(os.Stdout, "Response from `PublicIdentitiesConfigAPI.GetPublicIdentityConfig`: %v\n", resp) } ``` @@ -123,7 +123,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -145,24 +145,23 @@ func main() { } }`) // PublicIdentityConfig | - - var publicIdentityConfig v2025.PublicIdentityConfig - if err := json.Unmarshal(publicidentityconfig, &publicIdentityConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var publicIdentityConfig v2025.PublicIdentityConfig + if err := json.Unmarshal(publicidentityconfig, &publicIdentityConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig(context.Background()).PublicIdentityConfig(publicIdentityConfig).Execute() - //resp, r, err := apiClient.V2025.PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig(context.Background()).PublicIdentityConfig(publicIdentityConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdatePublicIdentityConfig`: PublicIdentityConfig - fmt.Fprintf(os.Stdout, "Response from `PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig(context.Background()).PublicIdentityConfig(publicIdentityConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdatePublicIdentityConfig`: PublicIdentityConfig + fmt.Fprintf(os.Stdout, "Response from `PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/ReportsDataExtractionAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/ReportsDataExtractionAPI.md index 7533ac9d0..be3574137 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/ReportsDataExtractionAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/ReportsDataExtractionAPI.md @@ -65,7 +65,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -73,16 +73,17 @@ import ( func main() { id := `a1ed223247144cc29d23c632624b4767` // string | ID of the running Report to cancel # string | ID of the running Report to cancel - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.ReportsDataExtractionAPI.CancelReport(context.Background(), id).Execute() - //r, err := apiClient.V2025.ReportsDataExtractionAPI.CancelReport(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReportsDataExtractionAPI.CancelReport``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.ReportsDataExtractionAPI.CancelReport(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsDataExtractionAPI.CancelReport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -132,7 +133,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -143,18 +144,18 @@ func main() { name := `Identities Details Report` // string | preferred Report file name, by default will be used report name from task result. (optional) # string | preferred Report file name, by default will be used report name from task result. (optional) auditable := true // bool | Enables auditing for current report download. Will create an audit event and sent it to the REPORT cloud-audit kafka topic. Event will be created if there is any result present by requested taskResultId. (optional) (default to false) # bool | Enables auditing for current report download. Will create an audit event and sent it to the REPORT cloud-audit kafka topic. Event will be created if there is any result present by requested taskResultId. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ReportsDataExtractionAPI.GetReport(context.Background(), taskResultId).FileFormat(fileFormat).Execute() - //resp, r, err := apiClient.V2025.ReportsDataExtractionAPI.GetReport(context.Background(), taskResultId).FileFormat(fileFormat).Name(name).Auditable(auditable).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReportsDataExtractionAPI.GetReport``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetReport`: *os.File - fmt.Fprintf(os.Stdout, "Response from `ReportsDataExtractionAPI.GetReport`: %v\n", resp) + //resp, r, err := apiClient.V2025.ReportsDataExtractionAPI.GetReport(context.Background(), taskResultId).FileFormat(fileFormat).Name(name).Auditable(auditable).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsDataExtractionAPI.GetReport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetReport`: *os.File + fmt.Fprintf(os.Stdout, "Response from `ReportsDataExtractionAPI.GetReport`: %v\n", resp) } ``` @@ -202,7 +203,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -211,18 +212,18 @@ func main() { taskResultId := `ef38f94347e94562b5bb8424a56397d8` // string | Unique identifier of the task result which handled report # string | Unique identifier of the task result which handled report completed := true // bool | state of task result to apply ordering when results are fetching from the DB (optional) (default to false) # bool | state of task result to apply ordering when results are fetching from the DB (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ReportsDataExtractionAPI.GetReportResult(context.Background(), taskResultId).Execute() - //resp, r, err := apiClient.V2025.ReportsDataExtractionAPI.GetReportResult(context.Background(), taskResultId).Completed(completed).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReportsDataExtractionAPI.GetReportResult``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetReportResult`: ReportResults - fmt.Fprintf(os.Stdout, "Response from `ReportsDataExtractionAPI.GetReportResult`: %v\n", resp) + //resp, r, err := apiClient.V2025.ReportsDataExtractionAPI.GetReportResult(context.Background(), taskResultId).Completed(completed).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsDataExtractionAPI.GetReportResult``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetReportResult`: ReportResults + fmt.Fprintf(os.Stdout, "Response from `ReportsDataExtractionAPI.GetReportResult`: %v\n", resp) } ``` @@ -265,7 +266,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -279,24 +280,23 @@ func main() { } }`) // ReportDetails | - - var reportDetails v2025.ReportDetails - if err := json.Unmarshal(reportdetails, &reportDetails); err != nil { - fmt.Println("Error:", err) - return - } - + var reportDetails v2025.ReportDetails + if err := json.Unmarshal(reportdetails, &reportDetails); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ReportsDataExtractionAPI.StartReport(context.Background()).ReportDetails(reportDetails).Execute() - //resp, r, err := apiClient.V2025.ReportsDataExtractionAPI.StartReport(context.Background()).ReportDetails(reportDetails).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReportsDataExtractionAPI.StartReport``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartReport`: TaskResultDetails - fmt.Fprintf(os.Stdout, "Response from `ReportsDataExtractionAPI.StartReport`: %v\n", resp) + //resp, r, err := apiClient.V2025.ReportsDataExtractionAPI.StartReport(context.Background()).ReportDetails(reportDetails).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsDataExtractionAPI.StartReport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartReport`: TaskResultDetails + fmt.Fprintf(os.Stdout, "Response from `ReportsDataExtractionAPI.StartReport`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/RequestableObjectsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/RequestableObjectsAPI.md index 3092191a4..d17bcb80c 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/RequestableObjectsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/RequestableObjectsAPI.md @@ -67,7 +67,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -83,18 +83,18 @@ func main() { filters := `name sw "bob"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, sw* (optional) sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RequestableObjectsAPI.ListRequestableObjects(context.Background()).Execute() - //resp, r, err := apiClient.V2025.RequestableObjectsAPI.ListRequestableObjects(context.Background()).IdentityId(identityId).Types(types).Term(term).Statuses(statuses).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RequestableObjectsAPI.ListRequestableObjects``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListRequestableObjects`: []RequestableObject - fmt.Fprintf(os.Stdout, "Response from `RequestableObjectsAPI.ListRequestableObjects`: %v\n", resp) + //resp, r, err := apiClient.V2025.RequestableObjectsAPI.ListRequestableObjects(context.Background()).IdentityId(identityId).Types(types).Term(term).Statuses(statuses).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RequestableObjectsAPI.ListRequestableObjects``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListRequestableObjects`: []RequestableObject + fmt.Fprintf(os.Stdout, "Response from `RequestableObjectsAPI.ListRequestableObjects`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/RoleInsightsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/RoleInsightsAPI.md index 784f1cec5..89fa0a909 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/RoleInsightsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/RoleInsightsAPI.md @@ -77,7 +77,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -85,18 +85,18 @@ import ( func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RoleInsightsAPI.CreateRoleInsightRequests(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.RoleInsightsAPI.CreateRoleInsightRequests(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.CreateRoleInsightRequests``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateRoleInsightRequests`: RoleInsightsResponse - fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.CreateRoleInsightRequests`: %v\n", resp) + //resp, r, err := apiClient.V2025.RoleInsightsAPI.CreateRoleInsightRequests(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.CreateRoleInsightRequests``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateRoleInsightRequests`: RoleInsightsResponse + fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.CreateRoleInsightRequests`: %v\n", resp) } ``` @@ -157,7 +157,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -168,18 +168,18 @@ func main() { sorters := `identitiesWithAccess` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **identitiesWithAccess** The default sort is **identitiesWithAccess** in descending order. (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **identitiesWithAccess** The default sort is **identitiesWithAccess** in descending order. (optional) filters := `name sw "r"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *sw* **description**: *sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *sw* **description**: *sw* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RoleInsightsAPI.DownloadRoleInsightsEntitlementsChanges(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.RoleInsightsAPI.DownloadRoleInsightsEntitlementsChanges(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.DownloadRoleInsightsEntitlementsChanges``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DownloadRoleInsightsEntitlementsChanges`: string - fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.DownloadRoleInsightsEntitlementsChanges`: %v\n", resp) + //resp, r, err := apiClient.V2025.RoleInsightsAPI.DownloadRoleInsightsEntitlementsChanges(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.DownloadRoleInsightsEntitlementsChanges``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DownloadRoleInsightsEntitlementsChanges`: string + fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.DownloadRoleInsightsEntitlementsChanges`: %v\n", resp) } ``` @@ -246,7 +246,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -262,18 +262,18 @@ func main() { sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name** (optional) filters := `name sw "Jan"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *sw* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RoleInsightsAPI.GetEntitlementChangesIdentities(context.Background(), insightId, entitlementId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.RoleInsightsAPI.GetEntitlementChangesIdentities(context.Background(), insightId, entitlementId).XSailPointExperimental(xSailPointExperimental).HasEntitlement(hasEntitlement).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetEntitlementChangesIdentities``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetEntitlementChangesIdentities`: []RoleInsightsIdentities - fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetEntitlementChangesIdentities`: %v\n", resp) + //resp, r, err := apiClient.V2025.RoleInsightsAPI.GetEntitlementChangesIdentities(context.Background(), insightId, entitlementId).XSailPointExperimental(xSailPointExperimental).HasEntitlement(hasEntitlement).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetEntitlementChangesIdentities``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetEntitlementChangesIdentities`: []RoleInsightsIdentities + fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetEntitlementChangesIdentities`: %v\n", resp) } ``` @@ -332,7 +332,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -341,18 +341,18 @@ func main() { insightId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role insight id # string | The role insight id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsight(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsight(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetRoleInsight``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleInsight`: RoleInsight - fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetRoleInsight`: %v\n", resp) + //resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsight(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetRoleInsight``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleInsight`: RoleInsight + fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetRoleInsight`: %v\n", resp) } ``` @@ -411,7 +411,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -424,18 +424,18 @@ func main() { sorters := `numberOfUpdates` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **numberOfUpdates, identitiesWithAccess, totalNumberOfIdentities** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **numberOfUpdates, identitiesWithAccess, totalNumberOfIdentities** (optional) filters := `name sw "John"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *sw* **ownerName**: *sw* **description**: *sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *sw* **ownerName**: *sw* **description**: *sw* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsights(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsights(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetRoleInsights``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleInsights`: []RoleInsight - fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetRoleInsights`: %v\n", resp) + //resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsights(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetRoleInsights``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleInsights`: []RoleInsight + fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetRoleInsights`: %v\n", resp) } ``` @@ -495,7 +495,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -505,18 +505,18 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") filters := `name sw "r"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *sw* **description**: *sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *sw* **description**: *sw* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsightsCurrentEntitlements(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsightsCurrentEntitlements(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetRoleInsightsCurrentEntitlements``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleInsightsCurrentEntitlements`: []RoleInsightsEntitlement - fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetRoleInsightsCurrentEntitlements`: %v\n", resp) + //resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsightsCurrentEntitlements(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetRoleInsightsCurrentEntitlements``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleInsightsCurrentEntitlements`: []RoleInsightsEntitlement + fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetRoleInsightsCurrentEntitlements`: %v\n", resp) } ``` @@ -577,7 +577,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -588,18 +588,18 @@ func main() { sorters := `sorters_example` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **identitiesWithAccess, name** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **identitiesWithAccess, name** (optional) filters := `name sw "Admin"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *sw* **description**: *sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *sw* **description**: *sw* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsightsEntitlementsChanges(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsightsEntitlementsChanges(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetRoleInsightsEntitlementsChanges``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleInsightsEntitlementsChanges`: []RoleInsightsEntitlementChanges - fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetRoleInsightsEntitlementsChanges`: %v\n", resp) + //resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsightsEntitlementsChanges(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetRoleInsightsEntitlementsChanges``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleInsightsEntitlementsChanges`: []RoleInsightsEntitlementChanges + fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetRoleInsightsEntitlementsChanges`: %v\n", resp) } ``` @@ -661,7 +661,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -670,18 +670,18 @@ func main() { id := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | The role insights request id # string | The role insights request id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsightsRequests(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsightsRequests(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetRoleInsightsRequests``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleInsightsRequests`: RoleInsightsResponse - fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetRoleInsightsRequests`: %v\n", resp) + //resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsightsRequests(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetRoleInsightsRequests``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleInsightsRequests`: RoleInsightsResponse + fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetRoleInsightsRequests`: %v\n", resp) } ``` @@ -735,7 +735,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -743,18 +743,18 @@ import ( func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsightsSummary(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsightsSummary(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetRoleInsightsSummary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleInsightsSummary`: RoleInsightsSummary - fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetRoleInsightsSummary`: %v\n", resp) + //resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsightsSummary(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RoleInsightsAPI.GetRoleInsightsSummary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleInsightsSummary`: RoleInsightsSummary + fmt.Fprintf(os.Stdout, "Response from `RoleInsightsAPI.GetRoleInsightsSummary`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/RolesAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/RolesAPI.md index 9ea01cdf9..27602a551 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/RolesAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/RolesAPI.md @@ -113,7 +113,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -279,24 +279,23 @@ func main() { "requestable" : true }`) // Role | - - var role v2025.Role - if err := json.Unmarshal(role, &role); err != nil { - fmt.Println("Error:", err) - return - } - + var role v2025.Role + if err := json.Unmarshal(role, &role); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RolesAPI.CreateRole(context.Background()).Role(role).Execute() - //resp, r, err := apiClient.V2025.RolesAPI.CreateRole(context.Background()).Role(role).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.CreateRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateRole`: Role - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.CreateRole`: %v\n", resp) + //resp, r, err := apiClient.V2025.RolesAPI.CreateRole(context.Background()).Role(role).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.CreateRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateRole`: Role + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.CreateRole`: %v\n", resp) } ``` @@ -342,7 +341,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -352,24 +351,23 @@ func main() { "roleIds" : [ "2c9180847812e0b1017817051919ecca", "2c9180887812e0b201781e129f151816" ] }`) // RoleBulkDeleteRequest | - - var roleBulkDeleteRequest v2025.RoleBulkDeleteRequest - if err := json.Unmarshal(rolebulkdeleterequest, &roleBulkDeleteRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var roleBulkDeleteRequest v2025.RoleBulkDeleteRequest + if err := json.Unmarshal(rolebulkdeleterequest, &roleBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RolesAPI.DeleteBulkRoles(context.Background()).RoleBulkDeleteRequest(roleBulkDeleteRequest).Execute() - //resp, r, err := apiClient.V2025.RolesAPI.DeleteBulkRoles(context.Background()).RoleBulkDeleteRequest(roleBulkDeleteRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.DeleteBulkRoles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteBulkRoles`: TaskResultDto - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.DeleteBulkRoles`: %v\n", resp) + //resp, r, err := apiClient.V2025.RolesAPI.DeleteBulkRoles(context.Background()).RoleBulkDeleteRequest(roleBulkDeleteRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.DeleteBulkRoles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteBulkRoles`: TaskResultDto + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.DeleteBulkRoles`: %v\n", resp) } ``` @@ -420,7 +418,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -430,16 +428,17 @@ func main() { attributeKey := `iscPrivacy` // string | Technical name of the Attribute. # string | Technical name of the Attribute. attributeValue := `public` // string | Technical name of the Attribute Value. # string | Technical name of the Attribute Value. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.RolesAPI.DeleteMetadataFromRoleByKeyAndValue(context.Background(), id, attributeKey, attributeValue).Execute() - //r, err := apiClient.V2025.RolesAPI.DeleteMetadataFromRoleByKeyAndValue(context.Background(), id, attributeKey, attributeValue).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.DeleteMetadataFromRoleByKeyAndValue``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.RolesAPI.DeleteMetadataFromRoleByKeyAndValue(context.Background(), id, attributeKey, attributeValue).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.DeleteMetadataFromRoleByKeyAndValue``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -488,7 +487,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -496,16 +495,17 @@ import ( func main() { id := `2c91808a7813090a017814121e121518` // string | ID of the Role # string | ID of the Role - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.RolesAPI.DeleteRole(context.Background(), id).Execute() - //r, err := apiClient.V2025.RolesAPI.DeleteRole(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.DeleteRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.RolesAPI.DeleteRole(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.DeleteRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -544,25 +544,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RolesAPI.GetBulkUpdateStatus(context.Background()).Execute() - //resp, r, err := apiClient.V2025.RolesAPI.GetBulkUpdateStatus(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.GetBulkUpdateStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetBulkUpdateStatus`: []RoleGetAllBulkUpdateResponse - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.GetBulkUpdateStatus`: %v\n", resp) + //resp, r, err := apiClient.V2025.RolesAPI.GetBulkUpdateStatus(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.GetBulkUpdateStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetBulkUpdateStatus`: []RoleGetAllBulkUpdateResponse + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.GetBulkUpdateStatus`: %v\n", resp) } ``` @@ -611,7 +611,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -619,18 +619,18 @@ import ( func main() { id := `c24359c389374d0fb8585698a2189e3d` // string | The Id of the bulk update task. # string | The Id of the bulk update task. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RolesAPI.GetBulkUpdateStatusById(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.RolesAPI.GetBulkUpdateStatusById(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.GetBulkUpdateStatusById``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetBulkUpdateStatusById`: RoleBulkUpdateResponse - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.GetBulkUpdateStatusById`: %v\n", resp) + //resp, r, err := apiClient.V2025.RolesAPI.GetBulkUpdateStatusById(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.GetBulkUpdateStatusById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetBulkUpdateStatusById`: RoleBulkUpdateResponse + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.GetBulkUpdateStatusById`: %v\n", resp) } ``` @@ -678,7 +678,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -686,18 +686,18 @@ import ( func main() { id := `2c91808a7813090a017814121e121518` // string | ID of the Role # string | ID of the Role - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RolesAPI.GetRole(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.RolesAPI.GetRole(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.GetRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRole`: Role - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.GetRole`: %v\n", resp) + //resp, r, err := apiClient.V2025.RolesAPI.GetRole(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.GetRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRole`: Role + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.GetRole`: %v\n", resp) } ``` @@ -749,7 +749,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -762,18 +762,18 @@ func main() { filters := `name sw Joe` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **aliasName**: *eq, sw* **email**: *eq, sw* **name**: *eq, sw, co* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **aliasName**: *eq, sw* **email**: *eq, sw* **name**: *eq, sw, co* (optional) sorters := `aliasName,name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, aliasName, email** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, aliasName, email** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RolesAPI.GetRoleAssignedIdentities(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.RolesAPI.GetRoleAssignedIdentities(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.GetRoleAssignedIdentities``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleAssignedIdentities`: []RoleIdentity - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.GetRoleAssignedIdentities`: %v\n", resp) + //resp, r, err := apiClient.V2025.RolesAPI.GetRoleAssignedIdentities(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.GetRoleAssignedIdentities``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleAssignedIdentities`: []RoleIdentity + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.GetRoleAssignedIdentities`: %v\n", resp) } ``` @@ -837,7 +837,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -851,18 +851,18 @@ func main() { filters := `attribute eq "memberOf"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* (optional) sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, attribute, value, created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, attribute, value, created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RolesAPI.GetRoleEntitlements(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.RolesAPI.GetRoleEntitlements(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.GetRoleEntitlements``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleEntitlements`: []Entitlement - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.GetRoleEntitlements`: %v\n", resp) + //resp, r, err := apiClient.V2025.RolesAPI.GetRoleEntitlements(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.GetRoleEntitlements``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleEntitlements`: []Entitlement + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.GetRoleEntitlements`: %v\n", resp) } ``` @@ -914,7 +914,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -929,18 +929,18 @@ func main() { forSegmentIds := `0b5c9f25-83c6-4762-9073-e38f7bb2ae26,2e8d8180-24bc-4d21-91c6-7affdb473b0d` // string | If present and not empty, additionally filters Roles to those which are assigned to the Segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) # string | If present and not empty, additionally filters Roles to those which are assigned to the Segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) includeUnsegmented := false // bool | Whether or not the response list should contain unsegmented Roles. If *for-segment-ids* is absent or empty, specifying *include-unsegmented* as false results in an error. (optional) (default to true) # bool | Whether or not the response list should contain unsegmented Roles. If *for-segment-ids* is absent or empty, specifying *include-unsegmented* as false results in an error. (optional) (default to true) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RolesAPI.ListRoles(context.Background()).Execute() - //resp, r, err := apiClient.V2025.RolesAPI.ListRoles(context.Background()).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.ListRoles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListRoles`: []Role - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.ListRoles`: %v\n", resp) + //resp, r, err := apiClient.V2025.RolesAPI.ListRoles(context.Background()).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.ListRoles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListRoles`: []Role + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.ListRoles`: %v\n", resp) } ``` @@ -1008,7 +1008,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1017,24 +1017,23 @@ func main() { id := `2c91808a7813090a017814121e121518` // string | ID of the Role to patch # string | ID of the Role to patch jsonpatchoperation := []byte(`[{op=replace, path=/requestable, value=true}, {op=replace, path=/enabled, value=true}]`) // []JsonPatchOperation | - - var jsonPatchOperation v2025.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2025.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RolesAPI.PatchRole(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2025.RolesAPI.PatchRole(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.PatchRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchRole`: Role - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.PatchRole`: %v\n", resp) + //resp, r, err := apiClient.V2025.RolesAPI.PatchRole(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.PatchRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchRole`: Role + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.PatchRole`: %v\n", resp) } ``` @@ -1085,7 +1084,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1106,18 +1105,18 @@ func main() { "filters" : "dimensional eq false" }`) // RoleListFilterDTO | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RolesAPI.SearchRolesByFilter(context.Background()).Execute() - //resp, r, err := apiClient.V2025.RolesAPI.SearchRolesByFilter(context.Background()).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Sorters(sorters).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).RoleListFilterDTO(roleListFilterDTO).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.SearchRolesByFilter``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SearchRolesByFilter`: Role - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.SearchRolesByFilter`: %v\n", resp) + //resp, r, err := apiClient.V2025.RolesAPI.SearchRolesByFilter(context.Background()).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Sorters(sorters).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).RoleListFilterDTO(roleListFilterDTO).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.SearchRolesByFilter``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchRolesByFilter`: Role + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.SearchRolesByFilter`: %v\n", resp) } ``` @@ -1168,7 +1167,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1178,18 +1177,18 @@ func main() { attributeKey := `iscPrivacy` // string | Technical name of the Attribute. # string | Technical name of the Attribute. attributeValue := `public` // string | Technical name of the Attribute Value. # string | Technical name of the Attribute Value. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RolesAPI.UpdateAttributeKeyAndValueToRole(context.Background(), id, attributeKey, attributeValue).Execute() - //resp, r, err := apiClient.V2025.RolesAPI.UpdateAttributeKeyAndValueToRole(context.Background(), id, attributeKey, attributeValue).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.UpdateAttributeKeyAndValueToRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateAttributeKeyAndValueToRole`: Role - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.UpdateAttributeKeyAndValueToRole`: %v\n", resp) + //resp, r, err := apiClient.V2025.RolesAPI.UpdateAttributeKeyAndValueToRole(context.Background(), id, attributeKey, attributeValue).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.UpdateAttributeKeyAndValueToRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateAttributeKeyAndValueToRole`: Role + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.UpdateAttributeKeyAndValueToRole`: %v\n", resp) } ``` @@ -1235,7 +1234,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1251,24 +1250,23 @@ func main() { "operation" : "REPLACE" }`) // RoleMetadataBulkUpdateByFilterRequest | - - var roleMetadataBulkUpdateByFilterRequest v2025.RoleMetadataBulkUpdateByFilterRequest - if err := json.Unmarshal(rolemetadatabulkupdatebyfilterrequest, &roleMetadataBulkUpdateByFilterRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var roleMetadataBulkUpdateByFilterRequest v2025.RoleMetadataBulkUpdateByFilterRequest + if err := json.Unmarshal(rolemetadatabulkupdatebyfilterrequest, &roleMetadataBulkUpdateByFilterRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RolesAPI.UpdateRolesMetadataByFilter(context.Background()).RoleMetadataBulkUpdateByFilterRequest(roleMetadataBulkUpdateByFilterRequest).Execute() - //resp, r, err := apiClient.V2025.RolesAPI.UpdateRolesMetadataByFilter(context.Background()).RoleMetadataBulkUpdateByFilterRequest(roleMetadataBulkUpdateByFilterRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.UpdateRolesMetadataByFilter``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateRolesMetadataByFilter`: RoleBulkUpdateResponse - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.UpdateRolesMetadataByFilter`: %v\n", resp) + //resp, r, err := apiClient.V2025.RolesAPI.UpdateRolesMetadataByFilter(context.Background()).RoleMetadataBulkUpdateByFilterRequest(roleMetadataBulkUpdateByFilterRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.UpdateRolesMetadataByFilter``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateRolesMetadataByFilter`: RoleBulkUpdateResponse + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.UpdateRolesMetadataByFilter`: %v\n", resp) } ``` @@ -1314,7 +1312,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1330,24 +1328,23 @@ func main() { "operation" : "REPLACE" }`) // RoleMetadataBulkUpdateByIdRequest | - - var roleMetadataBulkUpdateByIdRequest v2025.RoleMetadataBulkUpdateByIdRequest - if err := json.Unmarshal(rolemetadatabulkupdatebyidrequest, &roleMetadataBulkUpdateByIdRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var roleMetadataBulkUpdateByIdRequest v2025.RoleMetadataBulkUpdateByIdRequest + if err := json.Unmarshal(rolemetadatabulkupdatebyidrequest, &roleMetadataBulkUpdateByIdRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RolesAPI.UpdateRolesMetadataByIds(context.Background()).RoleMetadataBulkUpdateByIdRequest(roleMetadataBulkUpdateByIdRequest).Execute() - //resp, r, err := apiClient.V2025.RolesAPI.UpdateRolesMetadataByIds(context.Background()).RoleMetadataBulkUpdateByIdRequest(roleMetadataBulkUpdateByIdRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.UpdateRolesMetadataByIds``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateRolesMetadataByIds`: RoleBulkUpdateResponse - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.UpdateRolesMetadataByIds`: %v\n", resp) + //resp, r, err := apiClient.V2025.RolesAPI.UpdateRolesMetadataByIds(context.Background()).RoleMetadataBulkUpdateByIdRequest(roleMetadataBulkUpdateByIdRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.UpdateRolesMetadataByIds``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateRolesMetadataByIds`: RoleBulkUpdateResponse + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.UpdateRolesMetadataByIds`: %v\n", resp) } ``` @@ -1393,7 +1390,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1424,24 +1421,23 @@ func main() { "operation" : "REPLACE" }`) // RoleMetadataBulkUpdateByQueryRequest | - - var roleMetadataBulkUpdateByQueryRequest v2025.RoleMetadataBulkUpdateByQueryRequest - if err := json.Unmarshal(rolemetadatabulkupdatebyqueryrequest, &roleMetadataBulkUpdateByQueryRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var roleMetadataBulkUpdateByQueryRequest v2025.RoleMetadataBulkUpdateByQueryRequest + if err := json.Unmarshal(rolemetadatabulkupdatebyqueryrequest, &roleMetadataBulkUpdateByQueryRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RolesAPI.UpdateRolesMetadataByQuery(context.Background()).RoleMetadataBulkUpdateByQueryRequest(roleMetadataBulkUpdateByQueryRequest).Execute() - //resp, r, err := apiClient.V2025.RolesAPI.UpdateRolesMetadataByQuery(context.Background()).RoleMetadataBulkUpdateByQueryRequest(roleMetadataBulkUpdateByQueryRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.UpdateRolesMetadataByQuery``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateRolesMetadataByQuery`: RoleBulkUpdateResponse - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.UpdateRolesMetadataByQuery`: %v\n", resp) + //resp, r, err := apiClient.V2025.RolesAPI.UpdateRolesMetadataByQuery(context.Background()).RoleMetadataBulkUpdateByQueryRequest(roleMetadataBulkUpdateByQueryRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.UpdateRolesMetadataByQuery``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateRolesMetadataByQuery`: RoleBulkUpdateResponse + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.UpdateRolesMetadataByQuery`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/SIMIntegrationsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/SIMIntegrationsAPI.md index b363643ef..e3ed87bc2 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/SIMIntegrationsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/SIMIntegrationsAPI.md @@ -80,7 +80,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -106,24 +106,23 @@ func main() { } }`) // SimIntegrationDetails | DTO containing the details of the SIM integration - - var simIntegrationDetails v2025.SimIntegrationDetails - if err := json.Unmarshal(simintegrationdetails, &simIntegrationDetails); err != nil { - fmt.Println("Error:", err) - return - } - + var simIntegrationDetails v2025.SimIntegrationDetails + if err := json.Unmarshal(simintegrationdetails, &simIntegrationDetails); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SIMIntegrationsAPI.CreateSIMIntegration(context.Background()).XSailPointExperimental(xSailPointExperimental).SimIntegrationDetails(simIntegrationDetails).Execute() - //resp, r, err := apiClient.V2025.SIMIntegrationsAPI.CreateSIMIntegration(context.Background()).XSailPointExperimental(xSailPointExperimental).SimIntegrationDetails(simIntegrationDetails).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.CreateSIMIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSIMIntegration`: ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `SIMIntegrationsAPI.CreateSIMIntegration`: %v\n", resp) + //resp, r, err := apiClient.V2025.SIMIntegrationsAPI.CreateSIMIntegration(context.Background()).XSailPointExperimental(xSailPointExperimental).SimIntegrationDetails(simIntegrationDetails).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.CreateSIMIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSIMIntegration`: ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `SIMIntegrationsAPI.CreateSIMIntegration`: %v\n", resp) } ``` @@ -182,7 +181,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -191,16 +190,17 @@ func main() { id := `12345` // string | The id of the integration to delete. # string | The id of the integration to delete. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.SIMIntegrationsAPI.DeleteSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //r, err := apiClient.V2025.SIMIntegrationsAPI.DeleteSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.DeleteSIMIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.SIMIntegrationsAPI.DeleteSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.DeleteSIMIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -259,7 +259,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -268,18 +268,18 @@ func main() { id := `12345` // string | The id of the integration. # string | The id of the integration. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SIMIntegrationsAPI.GetSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.SIMIntegrationsAPI.GetSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.GetSIMIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSIMIntegration`: ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `SIMIntegrationsAPI.GetSIMIntegration`: %v\n", resp) + //resp, r, err := apiClient.V2025.SIMIntegrationsAPI.GetSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.GetSIMIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSIMIntegration`: ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `SIMIntegrationsAPI.GetSIMIntegration`: %v\n", resp) } ``` @@ -333,7 +333,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -341,18 +341,18 @@ import ( func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SIMIntegrationsAPI.GetSIMIntegrations(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.SIMIntegrationsAPI.GetSIMIntegrations(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.GetSIMIntegrations``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSIMIntegrations`: []ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `SIMIntegrationsAPI.GetSIMIntegrations`: %v\n", resp) + //resp, r, err := apiClient.V2025.SIMIntegrationsAPI.GetSIMIntegrations(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.GetSIMIntegrations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSIMIntegrations`: []ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `SIMIntegrationsAPI.GetSIMIntegrations`: %v\n", resp) } ``` @@ -412,7 +412,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -432,24 +432,23 @@ func main() { } ] }`) // JsonPatch | The JsonPatch object that describes the changes of SIM beforeProvisioningRule. - - var jsonPatch v2025.JsonPatch - if err := json.Unmarshal(jsonpatch, &jsonPatch); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatch v2025.JsonPatch + if err := json.Unmarshal(jsonpatch, &jsonPatch); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SIMIntegrationsAPI.PatchBeforeProvisioningRule(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatch(jsonPatch).Execute() - //resp, r, err := apiClient.V2025.SIMIntegrationsAPI.PatchBeforeProvisioningRule(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatch(jsonPatch).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.PatchBeforeProvisioningRule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchBeforeProvisioningRule`: ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `SIMIntegrationsAPI.PatchBeforeProvisioningRule`: %v\n", resp) + //resp, r, err := apiClient.V2025.SIMIntegrationsAPI.PatchBeforeProvisioningRule(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatch(jsonPatch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.PatchBeforeProvisioningRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchBeforeProvisioningRule`: ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `SIMIntegrationsAPI.PatchBeforeProvisioningRule`: %v\n", resp) } ``` @@ -509,7 +508,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -529,24 +528,23 @@ func main() { } ] }`) // JsonPatch | The JsonPatch object that describes the changes of SIM - - var jsonPatch v2025.JsonPatch - if err := json.Unmarshal(jsonpatch, &jsonPatch); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatch v2025.JsonPatch + if err := json.Unmarshal(jsonpatch, &jsonPatch); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SIMIntegrationsAPI.PatchSIMAttributes(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatch(jsonPatch).Execute() - //resp, r, err := apiClient.V2025.SIMIntegrationsAPI.PatchSIMAttributes(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatch(jsonPatch).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.PatchSIMAttributes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchSIMAttributes`: ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `SIMIntegrationsAPI.PatchSIMAttributes`: %v\n", resp) + //resp, r, err := apiClient.V2025.SIMIntegrationsAPI.PatchSIMAttributes(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatch(jsonPatch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.PatchSIMAttributes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchSIMAttributes`: ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `SIMIntegrationsAPI.PatchSIMAttributes`: %v\n", resp) } ``` @@ -606,7 +604,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -633,24 +631,23 @@ func main() { } }`) // SimIntegrationDetails | The full DTO of the integration containing the updated model - - var simIntegrationDetails v2025.SimIntegrationDetails - if err := json.Unmarshal(simintegrationdetails, &simIntegrationDetails); err != nil { - fmt.Println("Error:", err) - return - } - + var simIntegrationDetails v2025.SimIntegrationDetails + if err := json.Unmarshal(simintegrationdetails, &simIntegrationDetails); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SIMIntegrationsAPI.PutSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SimIntegrationDetails(simIntegrationDetails).Execute() - //resp, r, err := apiClient.V2025.SIMIntegrationsAPI.PutSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SimIntegrationDetails(simIntegrationDetails).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.PutSIMIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutSIMIntegration`: ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `SIMIntegrationsAPI.PutSIMIntegration`: %v\n", resp) + //resp, r, err := apiClient.V2025.SIMIntegrationsAPI.PutSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SimIntegrationDetails(simIntegrationDetails).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SIMIntegrationsAPI.PutSIMIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutSIMIntegration`: ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `SIMIntegrationsAPI.PutSIMIntegration`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/SODPoliciesAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/SODPoliciesAPI.md index f6d57db15..aa1d95077 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/SODPoliciesAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/SODPoliciesAPI.md @@ -98,7 +98,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -161,24 +161,23 @@ func main() { "externalPolicyReference" : "XYZ policy" }`) // SodPolicy | - - var sodPolicy v2025.SodPolicy - if err := json.Unmarshal(sodpolicy, &sodPolicy); err != nil { - fmt.Println("Error:", err) - return - } - + var sodPolicy v2025.SodPolicy + if err := json.Unmarshal(sodpolicy, &sodPolicy); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SODPoliciesAPI.CreateSodPolicy(context.Background()).SodPolicy(sodPolicy).Execute() - //resp, r, err := apiClient.V2025.SODPoliciesAPI.CreateSodPolicy(context.Background()).SodPolicy(sodPolicy).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.CreateSodPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSodPolicy`: SodPolicy - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.CreateSodPolicy`: %v\n", resp) + //resp, r, err := apiClient.V2025.SODPoliciesAPI.CreateSodPolicy(context.Background()).SodPolicy(sodPolicy).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.CreateSodPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSodPolicy`: SodPolicy + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.CreateSodPolicy`: %v\n", resp) } ``` @@ -227,7 +226,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -236,16 +235,17 @@ func main() { id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The ID of the SOD Policy to delete. # string | The ID of the SOD Policy to delete. logical := true // bool | Indicates whether this is a soft delete (logical true) or a hard delete. Soft delete marks the policy as deleted and just save it with this status. It could be fully deleted or recovered further. Hard delete vise versa permanently delete SOD request during this call. (optional) (default to true) # bool | Indicates whether this is a soft delete (logical true) or a hard delete. Soft delete marks the policy as deleted and just save it with this status. It could be fully deleted or recovered further. Hard delete vise versa permanently delete SOD request during this call. (optional) (default to true) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.SODPoliciesAPI.DeleteSodPolicy(context.Background(), id).Execute() - //r, err := apiClient.V2025.SODPoliciesAPI.DeleteSodPolicy(context.Background(), id).Logical(logical).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.DeleteSodPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.SODPoliciesAPI.DeleteSodPolicy(context.Background(), id).Logical(logical).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.DeleteSodPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -292,7 +292,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -300,16 +300,17 @@ import ( func main() { id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The ID of the SOD policy the schedule must be deleted for. # string | The ID of the SOD policy the schedule must be deleted for. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.SODPoliciesAPI.DeleteSodPolicySchedule(context.Background(), id).Execute() - //r, err := apiClient.V2025.SODPoliciesAPI.DeleteSodPolicySchedule(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.DeleteSodPolicySchedule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.SODPoliciesAPI.DeleteSodPolicySchedule(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.DeleteSodPolicySchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -358,7 +359,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -367,18 +368,18 @@ func main() { reportResultId := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the report reference to download. # string | The ID of the report reference to download. fileName := `custom-name` // string | Custom Name for the file. # string | Custom Name for the file. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SODPoliciesAPI.GetCustomViolationReport(context.Background(), reportResultId, fileName).Execute() - //resp, r, err := apiClient.V2025.SODPoliciesAPI.GetCustomViolationReport(context.Background(), reportResultId, fileName).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetCustomViolationReport``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCustomViolationReport`: *os.File - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetCustomViolationReport`: %v\n", resp) + //resp, r, err := apiClient.V2025.SODPoliciesAPI.GetCustomViolationReport(context.Background(), reportResultId, fileName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetCustomViolationReport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCustomViolationReport`: *os.File + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetCustomViolationReport`: %v\n", resp) } ``` @@ -425,7 +426,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -433,18 +434,18 @@ import ( func main() { reportResultId := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the report reference to download. # string | The ID of the report reference to download. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SODPoliciesAPI.GetDefaultViolationReport(context.Background(), reportResultId).Execute() - //resp, r, err := apiClient.V2025.SODPoliciesAPI.GetDefaultViolationReport(context.Background(), reportResultId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetDefaultViolationReport``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetDefaultViolationReport`: *os.File - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetDefaultViolationReport`: %v\n", resp) + //resp, r, err := apiClient.V2025.SODPoliciesAPI.GetDefaultViolationReport(context.Background(), reportResultId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetDefaultViolationReport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDefaultViolationReport`: *os.File + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetDefaultViolationReport`: %v\n", resp) } ``` @@ -483,25 +484,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SODPoliciesAPI.GetSodAllReportRunStatus(context.Background()).Execute() - //resp, r, err := apiClient.V2025.SODPoliciesAPI.GetSodAllReportRunStatus(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodAllReportRunStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSodAllReportRunStatus`: ReportResultReference - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodAllReportRunStatus`: %v\n", resp) + //resp, r, err := apiClient.V2025.SODPoliciesAPI.GetSodAllReportRunStatus(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodAllReportRunStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSodAllReportRunStatus`: ReportResultReference + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodAllReportRunStatus`: %v\n", resp) } ``` @@ -549,7 +550,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -557,18 +558,18 @@ import ( func main() { id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The ID of the SOD Policy to retrieve. # string | The ID of the SOD Policy to retrieve. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SODPoliciesAPI.GetSodPolicy(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.SODPoliciesAPI.GetSodPolicy(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSodPolicy`: SodPolicy - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodPolicy`: %v\n", resp) + //resp, r, err := apiClient.V2025.SODPoliciesAPI.GetSodPolicy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSodPolicy`: SodPolicy + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodPolicy`: %v\n", resp) } ``` @@ -615,7 +616,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -623,18 +624,18 @@ import ( func main() { id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The ID of the SOD policy schedule to retrieve. # string | The ID of the SOD policy schedule to retrieve. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SODPoliciesAPI.GetSodPolicySchedule(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.SODPoliciesAPI.GetSodPolicySchedule(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodPolicySchedule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSodPolicySchedule`: SodPolicySchedule - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodPolicySchedule`: %v\n", resp) + //resp, r, err := apiClient.V2025.SODPoliciesAPI.GetSodPolicySchedule(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodPolicySchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSodPolicySchedule`: SodPolicySchedule + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodPolicySchedule`: %v\n", resp) } ``` @@ -681,7 +682,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -689,18 +690,18 @@ import ( func main() { reportResultId := `2e8d8180-24bc-4d21-91c6-7affdb473b0d` // string | The ID of the report reference to retrieve. # string | The ID of the report reference to retrieve. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SODPoliciesAPI.GetSodViolationReportRunStatus(context.Background(), reportResultId).Execute() - //resp, r, err := apiClient.V2025.SODPoliciesAPI.GetSodViolationReportRunStatus(context.Background(), reportResultId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodViolationReportRunStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSodViolationReportRunStatus`: ReportResultReference - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodViolationReportRunStatus`: %v\n", resp) + //resp, r, err := apiClient.V2025.SODPoliciesAPI.GetSodViolationReportRunStatus(context.Background(), reportResultId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodViolationReportRunStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSodViolationReportRunStatus`: ReportResultReference + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodViolationReportRunStatus`: %v\n", resp) } ``` @@ -747,7 +748,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -755,18 +756,18 @@ import ( func main() { id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The ID of the violation report to retrieve status for. # string | The ID of the violation report to retrieve status for. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SODPoliciesAPI.GetSodViolationReportStatus(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.SODPoliciesAPI.GetSodViolationReportStatus(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodViolationReportStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSodViolationReportStatus`: ReportResultReference - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodViolationReportStatus`: %v\n", resp) + //resp, r, err := apiClient.V2025.SODPoliciesAPI.GetSodViolationReportStatus(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodViolationReportStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSodViolationReportStatus`: ReportResultReference + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodViolationReportStatus`: %v\n", resp) } ``` @@ -814,7 +815,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -826,18 +827,18 @@ func main() { filters := `id eq "bc693f07e7b645539626c25954c58554"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in* **state**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in* **state**: *eq, in* (optional) sorters := `id,name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, description** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, description** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SODPoliciesAPI.ListSodPolicies(context.Background()).Execute() - //resp, r, err := apiClient.V2025.SODPoliciesAPI.ListSodPolicies(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.ListSodPolicies``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListSodPolicies`: []SodPolicy - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.ListSodPolicies`: %v\n", resp) + //resp, r, err := apiClient.V2025.SODPoliciesAPI.ListSodPolicies(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.ListSodPolicies``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListSodPolicies`: []SodPolicy + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.ListSodPolicies`: %v\n", resp) } ``` @@ -887,7 +888,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -896,24 +897,23 @@ func main() { id := `2c918083-5d19-1a86-015d-28455b4a2329` // string | The ID of the SOD policy being modified. # string | The ID of the SOD policy being modified. jsonpatchoperation := []byte(`[{op=replace, path=/description, value=Modified description}, {op=replace, path=/conflictingAccessCriteria/leftCriteria/name, value=money-in-modified}, {op=replace, path=/conflictingAccessCriteria/rightCriteria, value={name=money-out-modified, criteriaList=[{type=ENTITLEMENT, id=2c918087682f9a86016839c0509c1ab2}]}}]`) // []JsonPatchOperation | A list of SOD Policy update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * ownerRef * externalPolicyReference * compensatingControls * correctionAdvice * state * tags * violationOwnerAssignmentConfig * scheduled * conflictingAccessCriteria - - var jsonPatchOperation v2025.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2025.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SODPoliciesAPI.PatchSodPolicy(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2025.SODPoliciesAPI.PatchSodPolicy(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.PatchSodPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchSodPolicy`: SodPolicy - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.PatchSodPolicy`: %v\n", resp) + //resp, r, err := apiClient.V2025.SODPoliciesAPI.PatchSodPolicy(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.PatchSodPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchSodPolicy`: SodPolicy + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.PatchSodPolicy`: %v\n", resp) } ``` @@ -961,7 +961,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1055,24 +1055,23 @@ func main() { "emailEmptyResults" : false }`) // SodPolicySchedule | - - var sodPolicySchedule v2025.SodPolicySchedule - if err := json.Unmarshal(sodpolicyschedule, &sodPolicySchedule); err != nil { - fmt.Println("Error:", err) - return - } - + var sodPolicySchedule v2025.SodPolicySchedule + if err := json.Unmarshal(sodpolicyschedule, &sodPolicySchedule); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SODPoliciesAPI.PutPolicySchedule(context.Background(), id).SodPolicySchedule(sodPolicySchedule).Execute() - //resp, r, err := apiClient.V2025.SODPoliciesAPI.PutPolicySchedule(context.Background(), id).SodPolicySchedule(sodPolicySchedule).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.PutPolicySchedule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutPolicySchedule`: SodPolicySchedule - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.PutPolicySchedule`: %v\n", resp) + //resp, r, err := apiClient.V2025.SODPoliciesAPI.PutPolicySchedule(context.Background(), id).SodPolicySchedule(sodPolicySchedule).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.PutPolicySchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutPolicySchedule`: SodPolicySchedule + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.PutPolicySchedule`: %v\n", resp) } ``` @@ -1121,7 +1120,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1185,24 +1184,23 @@ func main() { "externalPolicyReference" : "XYZ policy" }`) // SodPolicy | - - var sodPolicy v2025.SodPolicy - if err := json.Unmarshal(sodpolicy, &sodPolicy); err != nil { - fmt.Println("Error:", err) - return - } - + var sodPolicy v2025.SodPolicy + if err := json.Unmarshal(sodpolicy, &sodPolicy); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SODPoliciesAPI.PutSodPolicy(context.Background(), id).SodPolicy(sodPolicy).Execute() - //resp, r, err := apiClient.V2025.SODPoliciesAPI.PutSodPolicy(context.Background(), id).SodPolicy(sodPolicy).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.PutSodPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutSodPolicy`: SodPolicy - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.PutSodPolicy`: %v\n", resp) + //resp, r, err := apiClient.V2025.SODPoliciesAPI.PutSodPolicy(context.Background(), id).SodPolicy(sodPolicy).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.PutSodPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutSodPolicy`: SodPolicy + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.PutSodPolicy`: %v\n", resp) } ``` @@ -1249,7 +1247,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1257,18 +1255,18 @@ import ( func main() { id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The SOD policy ID to run. # string | The SOD policy ID to run. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SODPoliciesAPI.StartEvaluateSodPolicy(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.SODPoliciesAPI.StartEvaluateSodPolicy(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.StartEvaluateSodPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartEvaluateSodPolicy`: ReportResultReference - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.StartEvaluateSodPolicy`: %v\n", resp) + //resp, r, err := apiClient.V2025.SODPoliciesAPI.StartEvaluateSodPolicy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.StartEvaluateSodPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartEvaluateSodPolicy`: ReportResultReference + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.StartEvaluateSodPolicy`: %v\n", resp) } ``` @@ -1311,7 +1309,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1321,18 +1319,18 @@ func main() { "filteredPolicyList" : [ "[b868cd40-ffa4-4337-9c07-1a51846cfa94, 63a07a7b-39a4-48aa-956d-50c827deba2a]", "[b868cd40-ffa4-4337-9c07-1a51846cfa94, 63a07a7b-39a4-48aa-956d-50c827deba2a]" ] }`) // MultiPolicyRequest | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SODPoliciesAPI.StartSodAllPoliciesForOrg(context.Background()).Execute() - //resp, r, err := apiClient.V2025.SODPoliciesAPI.StartSodAllPoliciesForOrg(context.Background()).MultiPolicyRequest(multiPolicyRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.StartSodAllPoliciesForOrg``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartSodAllPoliciesForOrg`: ReportResultReference - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.StartSodAllPoliciesForOrg`: %v\n", resp) + //resp, r, err := apiClient.V2025.SODPoliciesAPI.StartSodAllPoliciesForOrg(context.Background()).MultiPolicyRequest(multiPolicyRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.StartSodAllPoliciesForOrg``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartSodAllPoliciesForOrg`: ReportResultReference + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.StartSodAllPoliciesForOrg`: %v\n", resp) } ``` @@ -1379,7 +1377,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1387,18 +1385,18 @@ import ( func main() { id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The SOD policy ID to run. # string | The SOD policy ID to run. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SODPoliciesAPI.StartSodPolicy(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.SODPoliciesAPI.StartSodPolicy(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.StartSodPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartSodPolicy`: ReportResultReference - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.StartSodPolicy`: %v\n", resp) + //resp, r, err := apiClient.V2025.SODPoliciesAPI.StartSodPolicy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.StartSodPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartSodPolicy`: ReportResultReference + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.StartSodPolicy`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/SODViolationsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/SODViolationsAPI.md index 8fd7045d2..9eb6026ed 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/SODViolationsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/SODViolationsAPI.md @@ -74,7 +74,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -93,24 +93,23 @@ func main() { } ] }`) // IdentityWithNewAccess | - - var identityWithNewAccess v2025.IdentityWithNewAccess - if err := json.Unmarshal(identitywithnewaccess, &identityWithNewAccess); err != nil { - fmt.Println("Error:", err) - return - } - + var identityWithNewAccess v2025.IdentityWithNewAccess + if err := json.Unmarshal(identitywithnewaccess, &identityWithNewAccess); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SODViolationsAPI.StartPredictSodViolations(context.Background()).IdentityWithNewAccess(identityWithNewAccess).Execute() - //resp, r, err := apiClient.V2025.SODViolationsAPI.StartPredictSodViolations(context.Background()).IdentityWithNewAccess(identityWithNewAccess).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODViolationsAPI.StartPredictSodViolations``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartPredictSodViolations`: ViolationPrediction - fmt.Fprintf(os.Stdout, "Response from `SODViolationsAPI.StartPredictSodViolations`: %v\n", resp) + //resp, r, err := apiClient.V2025.SODViolationsAPI.StartPredictSodViolations(context.Background()).IdentityWithNewAccess(identityWithNewAccess).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODViolationsAPI.StartPredictSodViolations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartPredictSodViolations`: ViolationPrediction + fmt.Fprintf(os.Stdout, "Response from `SODViolationsAPI.StartPredictSodViolations`: %v\n", resp) } ``` @@ -153,7 +152,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -161,24 +160,23 @@ import ( func main() { identitywithnewaccess1 := []byte(`{identityId=2c91808568c529c60168cca6f90c1313, accessRefs=[{type=ENTITLEMENT, id=2c918087682f9a86016839c050861ab1, name=CN=Information Access,OU=test,OU=test-service,DC=TestAD,DC=local}, {type=ENTITLEMENT, id=2c918087682f9a86016839c0509c1ab2, name=CN=Information Technology,OU=test,OU=test-service,DC=TestAD,DC=local}], clientMetadata={additionalProp1=string, additionalProp2=string, additionalProp3=string}}`) // IdentityWithNewAccess1 | - - var identityWithNewAccess1 v2025.IdentityWithNewAccess1 - if err := json.Unmarshal(identitywithnewaccess1, &identityWithNewAccess1); err != nil { - fmt.Println("Error:", err) - return - } - + var identityWithNewAccess1 v2025.IdentityWithNewAccess1 + if err := json.Unmarshal(identitywithnewaccess1, &identityWithNewAccess1); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SODViolationsAPI.StartViolationCheck(context.Background()).IdentityWithNewAccess1(identityWithNewAccess1).Execute() - //resp, r, err := apiClient.V2025.SODViolationsAPI.StartViolationCheck(context.Background()).IdentityWithNewAccess1(identityWithNewAccess1).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODViolationsAPI.StartViolationCheck``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartViolationCheck`: SodViolationCheck - fmt.Fprintf(os.Stdout, "Response from `SODViolationsAPI.StartViolationCheck`: %v\n", resp) + //resp, r, err := apiClient.V2025.SODViolationsAPI.StartViolationCheck(context.Background()).IdentityWithNewAccess1(identityWithNewAccess1).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODViolationsAPI.StartViolationCheck``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartViolationCheck`: SodViolationCheck + fmt.Fprintf(os.Stdout, "Response from `SODViolationsAPI.StartViolationCheck`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/SPConfigAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/SPConfigAPI.md index 28d273fe4..7825e749f 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/SPConfigAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/SPConfigAPI.md @@ -62,7 +62,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -72,24 +72,23 @@ func main() { "description" : "Export Job 1 Test" }`) // ExportPayload | Export options control what will be included in the export. - - var exportPayload v2025.ExportPayload - if err := json.Unmarshal(exportpayload, &exportPayload); err != nil { - fmt.Println("Error:", err) - return - } - + var exportPayload v2025.ExportPayload + if err := json.Unmarshal(exportpayload, &exportPayload); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SPConfigAPI.ExportSpConfig(context.Background()).ExportPayload(exportPayload).Execute() - //resp, r, err := apiClient.V2025.SPConfigAPI.ExportSpConfig(context.Background()).ExportPayload(exportPayload).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.ExportSpConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExportSpConfig`: SpConfigExportJob - fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.ExportSpConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.SPConfigAPI.ExportSpConfig(context.Background()).ExportPayload(exportPayload).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.ExportSpConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExportSpConfig`: SpConfigExportJob + fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.ExportSpConfig`: %v\n", resp) } ``` @@ -138,7 +137,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -146,18 +145,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the export job whose results will be downloaded. # string | The ID of the export job whose results will be downloaded. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SPConfigAPI.GetSpConfigExport(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.SPConfigAPI.GetSpConfigExport(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.GetSpConfigExport``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSpConfigExport`: SpConfigExportResults - fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.GetSpConfigExport`: %v\n", resp) + //resp, r, err := apiClient.V2025.SPConfigAPI.GetSpConfigExport(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.GetSpConfigExport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSpConfigExport`: SpConfigExportResults + fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.GetSpConfigExport`: %v\n", resp) } ``` @@ -206,7 +205,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -214,18 +213,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the export job whose status will be returned. # string | The ID of the export job whose status will be returned. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SPConfigAPI.GetSpConfigExportStatus(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.SPConfigAPI.GetSpConfigExportStatus(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.GetSpConfigExportStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSpConfigExportStatus`: SpConfigExportJobStatus - fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.GetSpConfigExportStatus`: %v\n", resp) + //resp, r, err := apiClient.V2025.SPConfigAPI.GetSpConfigExportStatus(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.GetSpConfigExportStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSpConfigExportStatus`: SpConfigExportJobStatus + fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.GetSpConfigExportStatus`: %v\n", resp) } ``` @@ -274,7 +273,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -282,18 +281,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the import job whose results will be downloaded. # string | The ID of the import job whose results will be downloaded. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SPConfigAPI.GetSpConfigImport(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.SPConfigAPI.GetSpConfigImport(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.GetSpConfigImport``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSpConfigImport`: SpConfigImportResults - fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.GetSpConfigImport`: %v\n", resp) + //resp, r, err := apiClient.V2025.SPConfigAPI.GetSpConfigImport(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.GetSpConfigImport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSpConfigImport`: SpConfigImportResults + fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.GetSpConfigImport`: %v\n", resp) } ``` @@ -344,7 +343,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -352,18 +351,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the import job whose status will be returned. # string | The ID of the import job whose status will be returned. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SPConfigAPI.GetSpConfigImportStatus(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.SPConfigAPI.GetSpConfigImportStatus(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.GetSpConfigImportStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSpConfigImportStatus`: SpConfigImportJobStatus - fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.GetSpConfigImportStatus`: %v\n", resp) + //resp, r, err := apiClient.V2025.SPConfigAPI.GetSpConfigImportStatus(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.GetSpConfigImportStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSpConfigImportStatus`: SpConfigImportJobStatus + fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.GetSpConfigImportStatus`: %v\n", resp) } ``` @@ -418,7 +417,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -428,18 +427,18 @@ func main() { preview := true // bool | This option is intended to give the user information about how an import operation would proceed, without having any effect on the target tenant. If this parameter is \"true\", no objects will be imported. Instead, the import process will pre-process the import file and attempt to resolve references within imported objects. The import result file will contain messages pertaining to how specific references were resolved, any errors associated with the preprocessing, and messages indicating which objects would be imported. (optional) (default to false) # bool | This option is intended to give the user information about how an import operation would proceed, without having any effect on the target tenant. If this parameter is \"true\", no objects will be imported. Instead, the import process will pre-process the import file and attempt to resolve references within imported objects. The import result file will contain messages pertaining to how specific references were resolved, any errors associated with the preprocessing, and messages indicating which objects would be imported. (optional) (default to false) options := []byte(``) // ImportOptions | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SPConfigAPI.ImportSpConfig(context.Background()).Data(data).Execute() - //resp, r, err := apiClient.V2025.SPConfigAPI.ImportSpConfig(context.Background()).Data(data).Preview(preview).Options(options).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.ImportSpConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportSpConfig`: SpConfigJob - fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.ImportSpConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.SPConfigAPI.ImportSpConfig(context.Background()).Data(data).Preview(preview).Options(options).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.ImportSpConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportSpConfig`: SpConfigJob + fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.ImportSpConfig`: %v\n", resp) } ``` @@ -478,25 +477,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SPConfigAPI.ListSpConfigObjects(context.Background()).Execute() - //resp, r, err := apiClient.V2025.SPConfigAPI.ListSpConfigObjects(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.ListSpConfigObjects``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListSpConfigObjects`: []SpConfigObject - fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.ListSpConfigObjects`: %v\n", resp) + //resp, r, err := apiClient.V2025.SPConfigAPI.ListSpConfigObjects(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SPConfigAPI.ListSpConfigObjects``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListSpConfigObjects`: []SpConfigObject + fmt.Fprintf(os.Stdout, "Response from `SPConfigAPI.ListSpConfigObjects`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/SavedSearchAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/SavedSearchAPI.md index ce353a1a7..a1d9e8f98 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/SavedSearchAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/SavedSearchAPI.md @@ -71,7 +71,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -79,24 +79,23 @@ import ( func main() { createsavedsearchrequest := []byte(``) // CreateSavedSearchRequest | The saved search to persist. - - var createSavedSearchRequest v2025.CreateSavedSearchRequest - if err := json.Unmarshal(createsavedsearchrequest, &createSavedSearchRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var createSavedSearchRequest v2025.CreateSavedSearchRequest + if err := json.Unmarshal(createsavedsearchrequest, &createSavedSearchRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SavedSearchAPI.CreateSavedSearch(context.Background()).CreateSavedSearchRequest(createSavedSearchRequest).Execute() - //resp, r, err := apiClient.V2025.SavedSearchAPI.CreateSavedSearch(context.Background()).CreateSavedSearchRequest(createSavedSearchRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.CreateSavedSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSavedSearch`: SavedSearch - fmt.Fprintf(os.Stdout, "Response from `SavedSearchAPI.CreateSavedSearch`: %v\n", resp) + //resp, r, err := apiClient.V2025.SavedSearchAPI.CreateSavedSearch(context.Background()).CreateSavedSearchRequest(createSavedSearchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.CreateSavedSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSavedSearch`: SavedSearch + fmt.Fprintf(os.Stdout, "Response from `SavedSearchAPI.CreateSavedSearch`: %v\n", resp) } ``` @@ -144,7 +143,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -152,16 +151,17 @@ import ( func main() { id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.SavedSearchAPI.DeleteSavedSearch(context.Background(), id).Execute() - //r, err := apiClient.V2025.SavedSearchAPI.DeleteSavedSearch(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.DeleteSavedSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.SavedSearchAPI.DeleteSavedSearch(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.DeleteSavedSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -210,7 +210,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -229,22 +229,22 @@ func main() { "scheduleId" : "7a724640-0c17-4ce9-a8c3-4a89738459c8" }`) // SearchArguments | When saved search execution is triggered by a scheduled search, *scheduleId* will specify the ID of the triggering scheduled search. If *scheduleId* is not specified (when execution is triggered by a UI test), the *owner* and *recipients* arguments must be provided. - - var searchArguments v2025.SearchArguments - if err := json.Unmarshal(searcharguments, &searchArguments); err != nil { - fmt.Println("Error:", err) - return - } - + var searchArguments v2025.SearchArguments + if err := json.Unmarshal(searcharguments, &searchArguments); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.SavedSearchAPI.ExecuteSavedSearch(context.Background(), id).SearchArguments(searchArguments).Execute() - //r, err := apiClient.V2025.SavedSearchAPI.ExecuteSavedSearch(context.Background(), id).SearchArguments(searchArguments).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.ExecuteSavedSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.SavedSearchAPI.ExecuteSavedSearch(context.Background(), id).SearchArguments(searchArguments).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.ExecuteSavedSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -292,7 +292,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -300,18 +300,18 @@ import ( func main() { id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SavedSearchAPI.GetSavedSearch(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.SavedSearchAPI.GetSavedSearch(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.GetSavedSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSavedSearch`: SavedSearch - fmt.Fprintf(os.Stdout, "Response from `SavedSearchAPI.GetSavedSearch`: %v\n", resp) + //resp, r, err := apiClient.V2025.SavedSearchAPI.GetSavedSearch(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.GetSavedSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSavedSearch`: SavedSearch + fmt.Fprintf(os.Stdout, "Response from `SavedSearchAPI.GetSavedSearch`: %v\n", resp) } ``` @@ -358,7 +358,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -369,18 +369,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) filters := `owner.id eq "7a724640-0c17-4ce9-a8c3-4a89738459c8"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **owner.id**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **owner.id**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SavedSearchAPI.ListSavedSearches(context.Background()).Execute() - //resp, r, err := apiClient.V2025.SavedSearchAPI.ListSavedSearches(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.ListSavedSearches``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListSavedSearches`: []SavedSearch - fmt.Fprintf(os.Stdout, "Response from `SavedSearchAPI.ListSavedSearches`: %v\n", resp) + //resp, r, err := apiClient.V2025.SavedSearchAPI.ListSavedSearches(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.ListSavedSearches``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListSavedSearches`: []SavedSearch + fmt.Fprintf(os.Stdout, "Response from `SavedSearchAPI.ListSavedSearches`: %v\n", resp) } ``` @@ -431,7 +431,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -484,24 +484,23 @@ func main() { "fields" : [ "disabled" ] }`) // SavedSearch | The saved search to persist. - - var savedSearch v2025.SavedSearch - if err := json.Unmarshal(savedsearch, &savedSearch); err != nil { - fmt.Println("Error:", err) - return - } - + var savedSearch v2025.SavedSearch + if err := json.Unmarshal(savedsearch, &savedSearch); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SavedSearchAPI.PutSavedSearch(context.Background(), id).SavedSearch(savedSearch).Execute() - //resp, r, err := apiClient.V2025.SavedSearchAPI.PutSavedSearch(context.Background(), id).SavedSearch(savedSearch).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.PutSavedSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutSavedSearch`: SavedSearch - fmt.Fprintf(os.Stdout, "Response from `SavedSearchAPI.PutSavedSearch`: %v\n", resp) + //resp, r, err := apiClient.V2025.SavedSearchAPI.PutSavedSearch(context.Background(), id).SavedSearch(savedSearch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.PutSavedSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutSavedSearch`: SavedSearch + fmt.Fprintf(os.Stdout, "Response from `SavedSearchAPI.PutSavedSearch`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/ScheduledSearchAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/ScheduledSearchAPI.md index a049bd0a1..e07d58464 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/ScheduledSearchAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/ScheduledSearchAPI.md @@ -87,7 +87,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -95,24 +95,23 @@ import ( func main() { createscheduledsearchrequest := []byte(`{savedSearchId=9c620e13-cd33-4804-a13d-403bd7bcdbad, schedule={type=DAILY, hours={type=LIST, values=[9]}}, recipients=[{type=IDENTITY, id=2c9180867624cbd7017642d8c8c81f67}]}`) // CreateScheduledSearchRequest | The scheduled search to persist. - - var createScheduledSearchRequest v2025.CreateScheduledSearchRequest - if err := json.Unmarshal(createscheduledsearchrequest, &createScheduledSearchRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var createScheduledSearchRequest v2025.CreateScheduledSearchRequest + if err := json.Unmarshal(createscheduledsearchrequest, &createScheduledSearchRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ScheduledSearchAPI.CreateScheduledSearch(context.Background()).CreateScheduledSearchRequest(createScheduledSearchRequest).Execute() - //resp, r, err := apiClient.V2025.ScheduledSearchAPI.CreateScheduledSearch(context.Background()).CreateScheduledSearchRequest(createScheduledSearchRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.CreateScheduledSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateScheduledSearch`: ScheduledSearch - fmt.Fprintf(os.Stdout, "Response from `ScheduledSearchAPI.CreateScheduledSearch`: %v\n", resp) + //resp, r, err := apiClient.V2025.ScheduledSearchAPI.CreateScheduledSearch(context.Background()).CreateScheduledSearchRequest(createScheduledSearchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.CreateScheduledSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateScheduledSearch`: ScheduledSearch + fmt.Fprintf(os.Stdout, "Response from `ScheduledSearchAPI.CreateScheduledSearch`: %v\n", resp) } ``` @@ -160,7 +159,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -168,16 +167,17 @@ import ( func main() { id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.ScheduledSearchAPI.DeleteScheduledSearch(context.Background(), id).Execute() - //r, err := apiClient.V2025.ScheduledSearchAPI.DeleteScheduledSearch(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.DeleteScheduledSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.ScheduledSearchAPI.DeleteScheduledSearch(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.DeleteScheduledSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -224,7 +224,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -232,18 +232,18 @@ import ( func main() { id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ScheduledSearchAPI.GetScheduledSearch(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.ScheduledSearchAPI.GetScheduledSearch(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.GetScheduledSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetScheduledSearch`: ScheduledSearch - fmt.Fprintf(os.Stdout, "Response from `ScheduledSearchAPI.GetScheduledSearch`: %v\n", resp) + //resp, r, err := apiClient.V2025.ScheduledSearchAPI.GetScheduledSearch(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.GetScheduledSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetScheduledSearch`: ScheduledSearch + fmt.Fprintf(os.Stdout, "Response from `ScheduledSearchAPI.GetScheduledSearch`: %v\n", resp) } ``` @@ -290,7 +290,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -301,18 +301,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) filters := `savedSearchId eq "6cc0945d-9eeb-4948-9033-72d066e1153e"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **owner.id**: *eq* **savedSearchId**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **owner.id**: *eq* **savedSearchId**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ScheduledSearchAPI.ListScheduledSearch(context.Background()).Execute() - //resp, r, err := apiClient.V2025.ScheduledSearchAPI.ListScheduledSearch(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.ListScheduledSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListScheduledSearch`: []ScheduledSearch - fmt.Fprintf(os.Stdout, "Response from `ScheduledSearchAPI.ListScheduledSearch`: %v\n", resp) + //resp, r, err := apiClient.V2025.ScheduledSearchAPI.ListScheduledSearch(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.ListScheduledSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListScheduledSearch`: []ScheduledSearch + fmt.Fprintf(os.Stdout, "Response from `ScheduledSearchAPI.ListScheduledSearch`: %v\n", resp) } ``` @@ -361,7 +361,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -373,22 +373,22 @@ func main() { "type" : "IDENTITY" }`) // TypedReference | The recipient to be removed from the scheduled search. - - var typedReference v2025.TypedReference - if err := json.Unmarshal(typedreference, &typedReference); err != nil { - fmt.Println("Error:", err) - return - } - + var typedReference v2025.TypedReference + if err := json.Unmarshal(typedreference, &typedReference); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.ScheduledSearchAPI.UnsubscribeScheduledSearch(context.Background(), id).TypedReference(typedReference).Execute() - //r, err := apiClient.V2025.ScheduledSearchAPI.UnsubscribeScheduledSearch(context.Background(), id).TypedReference(typedReference).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.UnsubscribeScheduledSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.ScheduledSearchAPI.UnsubscribeScheduledSearch(context.Background(), id).TypedReference(typedReference).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.UnsubscribeScheduledSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -437,7 +437,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -536,24 +536,23 @@ func main() { "emailEmptyResults" : false }`) // ScheduledSearch | The scheduled search to persist. - - var scheduledSearch v2025.ScheduledSearch - if err := json.Unmarshal(scheduledsearch, &scheduledSearch); err != nil { - fmt.Println("Error:", err) - return - } - + var scheduledSearch v2025.ScheduledSearch + if err := json.Unmarshal(scheduledsearch, &scheduledSearch); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ScheduledSearchAPI.UpdateScheduledSearch(context.Background(), id).ScheduledSearch(scheduledSearch).Execute() - //resp, r, err := apiClient.V2025.ScheduledSearchAPI.UpdateScheduledSearch(context.Background(), id).ScheduledSearch(scheduledSearch).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.UpdateScheduledSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateScheduledSearch`: ScheduledSearch - fmt.Fprintf(os.Stdout, "Response from `ScheduledSearchAPI.UpdateScheduledSearch`: %v\n", resp) + //resp, r, err := apiClient.V2025.ScheduledSearchAPI.UpdateScheduledSearch(context.Background(), id).ScheduledSearch(scheduledSearch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.UpdateScheduledSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateScheduledSearch`: ScheduledSearch + fmt.Fprintf(os.Stdout, "Response from `ScheduledSearchAPI.UpdateScheduledSearch`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/SearchAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/SearchAPI.md index 78dae7b2b..5c81cdcff 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/SearchAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/SearchAPI.md @@ -84,7 +84,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -211,24 +211,23 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - - var search v2025.Search - if err := json.Unmarshal(search, &search); err != nil { - fmt.Println("Error:", err) - return - } - + var search v2025.Search + if err := json.Unmarshal(search, &search); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SearchAPI.SearchAggregate(context.Background()).Search(search).Execute() - //resp, r, err := apiClient.V2025.SearchAPI.SearchAggregate(context.Background()).Search(search).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.SearchAggregate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SearchAggregate`: AggregationResult - fmt.Fprintf(os.Stdout, "Response from `SearchAPI.SearchAggregate`: %v\n", resp) + //resp, r, err := apiClient.V2025.SearchAPI.SearchAggregate(context.Background()).Search(search).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.SearchAggregate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchAggregate`: AggregationResult + fmt.Fprintf(os.Stdout, "Response from `SearchAPI.SearchAggregate`: %v\n", resp) } ``` @@ -271,7 +270,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -395,22 +394,22 @@ func main() { } }`) // Search | - - var search v2025.Search - if err := json.Unmarshal(search, &search); err != nil { - fmt.Println("Error:", err) - return - } - + var search v2025.Search + if err := json.Unmarshal(search, &search); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.SearchAPI.SearchCount(context.Background()).Search(search).Execute() - //r, err := apiClient.V2025.SearchAPI.SearchCount(context.Background()).Search(search).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.SearchCount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.SearchAPI.SearchCount(context.Background()).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.SearchCount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -459,7 +458,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -468,18 +467,18 @@ func main() { index := `identities` // string | The index from which to fetch the specified document. The currently supported index names are: *accessprofiles*, *accountactivities*, *entitlements*, *events*, *identities*, and *roles*. # string | The index from which to fetch the specified document. The currently supported index names are: *accessprofiles*, *accountactivities*, *entitlements*, *events*, *identities*, and *roles*. id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SearchAPI.SearchGet(context.Background(), index, id).Execute() - //resp, r, err := apiClient.V2025.SearchAPI.SearchGet(context.Background(), index, id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.SearchGet``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SearchGet`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `SearchAPI.SearchGet`: %v\n", resp) + //resp, r, err := apiClient.V2025.SearchAPI.SearchGet(context.Background(), index, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.SearchGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchGet`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `SearchAPI.SearchGet`: %v\n", resp) } ``` @@ -525,7 +524,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -652,24 +651,23 @@ func main() { limit := 10000 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - - var search v2025.Search - if err := json.Unmarshal(search, &search); err != nil { - fmt.Println("Error:", err) - return - } - + var search v2025.Search + if err := json.Unmarshal(search, &search); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SearchAPI.SearchPost(context.Background()).Search(search).Execute() - //resp, r, err := apiClient.V2025.SearchAPI.SearchPost(context.Background()).Search(search).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.SearchPost``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SearchPost`: []map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `SearchAPI.SearchPost`: %v\n", resp) + //resp, r, err := apiClient.V2025.SearchAPI.SearchPost(context.Background()).Search(search).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.SearchPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchPost`: []map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `SearchAPI.SearchPost`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/SearchAttributeConfigurationAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/SearchAttributeConfigurationAPI.md index 97b607f10..38273e919 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/SearchAttributeConfigurationAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/SearchAttributeConfigurationAPI.md @@ -90,7 +90,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -106,24 +106,23 @@ func main() { } }`) // SearchAttributeConfig | - - var searchAttributeConfig v2025.SearchAttributeConfig - if err := json.Unmarshal(searchattributeconfig, &searchAttributeConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var searchAttributeConfig v2025.SearchAttributeConfig + if err := json.Unmarshal(searchattributeconfig, &searchAttributeConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SearchAttributeConfigurationAPI.CreateSearchAttributeConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).SearchAttributeConfig(searchAttributeConfig).Execute() - //resp, r, err := apiClient.V2025.SearchAttributeConfigurationAPI.CreateSearchAttributeConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).SearchAttributeConfig(searchAttributeConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.CreateSearchAttributeConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSearchAttributeConfig`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.CreateSearchAttributeConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.SearchAttributeConfigurationAPI.CreateSearchAttributeConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).SearchAttributeConfig(searchAttributeConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.CreateSearchAttributeConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSearchAttributeConfig`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.CreateSearchAttributeConfig`: %v\n", resp) } ``` @@ -182,7 +181,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -191,16 +190,17 @@ func main() { name := `newMailAttribute` // string | Name of the extended search attribute configuration to delete. # string | Name of the extended search attribute configuration to delete. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() - //r, err := apiClient.V2025.SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -256,7 +256,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -266,18 +266,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SearchAttributeConfigurationAPI.GetSearchAttributeConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.SearchAttributeConfigurationAPI.GetSearchAttributeConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.GetSearchAttributeConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSearchAttributeConfig`: []SearchAttributeConfig - fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.GetSearchAttributeConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.SearchAttributeConfigurationAPI.GetSearchAttributeConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.GetSearchAttributeConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSearchAttributeConfig`: []SearchAttributeConfig + fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.GetSearchAttributeConfig`: %v\n", resp) } ``` @@ -336,7 +336,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -345,18 +345,18 @@ func main() { name := `newMailAttribute` // string | Name of the extended search attribute configuration to get. # string | Name of the extended search attribute configuration to get. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSingleSearchAttributeConfig`: SearchAttributeConfig - fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSingleSearchAttributeConfig`: SearchAttributeConfig + fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig`: %v\n", resp) } ``` @@ -418,7 +418,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -428,24 +428,23 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") jsonpatchoperation := []byte(`[{op=replace, path=/name, value=newAttributeName}, {op=replace, path=/displayName, value=new attribute display name}, {op=add, path=/applicationAttributes, value={2c91808b79fd2422017a0b35d30f3968=employeeNumber}}]`) // []JsonPatchOperation | - - var jsonPatchOperation v2025.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2025.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SearchAttributeConfigurationAPI.PatchSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2025.SearchAttributeConfigurationAPI.PatchSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.PatchSearchAttributeConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchSearchAttributeConfig`: SearchAttributeConfig - fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.PatchSearchAttributeConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.SearchAttributeConfigurationAPI.PatchSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.PatchSearchAttributeConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchSearchAttributeConfig`: SearchAttributeConfig + fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.PatchSearchAttributeConfig`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/SegmentsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/SegmentsAPI.md index 2e323bcad..9d36c8e67 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/SegmentsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/SegmentsAPI.md @@ -77,7 +77,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -108,24 +108,23 @@ func main() { "id" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde" }`) // Segment | - - var segment v2025.Segment - if err := json.Unmarshal(segment, &segment); err != nil { - fmt.Println("Error:", err) - return - } - + var segment v2025.Segment + if err := json.Unmarshal(segment, &segment); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SegmentsAPI.CreateSegment(context.Background()).Segment(segment).Execute() - //resp, r, err := apiClient.V2025.SegmentsAPI.CreateSegment(context.Background()).Segment(segment).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.CreateSegment``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSegment`: Segment - fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.CreateSegment`: %v\n", resp) + //resp, r, err := apiClient.V2025.SegmentsAPI.CreateSegment(context.Background()).Segment(segment).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.CreateSegment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSegment`: Segment + fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.CreateSegment`: %v\n", resp) } ``` @@ -173,7 +172,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -181,16 +180,17 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The segment ID to delete. # string | The segment ID to delete. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.SegmentsAPI.DeleteSegment(context.Background(), id).Execute() - //r, err := apiClient.V2025.SegmentsAPI.DeleteSegment(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.DeleteSegment``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.SegmentsAPI.DeleteSegment(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.DeleteSegment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -237,7 +237,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -245,18 +245,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The segment ID to retrieve. # string | The segment ID to retrieve. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SegmentsAPI.GetSegment(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.SegmentsAPI.GetSegment(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.GetSegment``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSegment`: Segment - fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.GetSegment`: %v\n", resp) + //resp, r, err := apiClient.V2025.SegmentsAPI.GetSegment(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.GetSegment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSegment`: Segment + fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.GetSegment`: %v\n", resp) } ``` @@ -301,7 +301,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -311,18 +311,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SegmentsAPI.ListSegments(context.Background()).Execute() - //resp, r, err := apiClient.V2025.SegmentsAPI.ListSegments(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.ListSegments``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListSegments`: []Segment - fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.ListSegments`: %v\n", resp) + //resp, r, err := apiClient.V2025.SegmentsAPI.ListSegments(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.ListSegments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListSegments`: []Segment + fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.ListSegments`: %v\n", resp) } ``` @@ -371,7 +371,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -380,24 +380,23 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The segment ID to modify. # string | The segment ID to modify. requestbody := []byte(`[{op=replace, path=/visibilityCriteria, value={expression={operator=AND, children=[{operator=EQUALS, attribute=location, value={type=STRING, value=Philadelphia}}, {operator=EQUALS, attribute=department, value={type=STRING, value=HR}}]}}}]`) // []map[string]interface{} | A list of segment update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * owner * visibilityCriteria * active - - var requestBody v2025.[]RequestBody - if err := json.Unmarshal(requestbody, &requestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var requestBody []v2025.RequestBody + if err := json.Unmarshal(requestbody, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SegmentsAPI.PatchSegment(context.Background(), id).RequestBody(requestBody).Execute() - //resp, r, err := apiClient.V2025.SegmentsAPI.PatchSegment(context.Background(), id).RequestBody(requestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.PatchSegment``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchSegment`: Segment - fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.PatchSegment`: %v\n", resp) + //resp, r, err := apiClient.V2025.SegmentsAPI.PatchSegment(context.Background(), id).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.PatchSegment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchSegment`: Segment + fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.PatchSegment`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/ServiceDeskIntegrationAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/ServiceDeskIntegrationAPI.md index 1270e721e..93ba1a6eb 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/ServiceDeskIntegrationAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/ServiceDeskIntegrationAPI.md @@ -88,7 +88,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -129,24 +129,23 @@ func main() { "beforeProvisioningRule" : "" }`) // ServiceDeskIntegrationDto | The specifics of a new integration to create - - var serviceDeskIntegrationDto v2025.ServiceDeskIntegrationDto - if err := json.Unmarshal(servicedeskintegrationdto, &serviceDeskIntegrationDto); err != nil { - fmt.Println("Error:", err) - return - } - + var serviceDeskIntegrationDto v2025.ServiceDeskIntegrationDto + if err := json.Unmarshal(servicedeskintegrationdto, &serviceDeskIntegrationDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.CreateServiceDeskIntegration(context.Background()).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() - //resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.CreateServiceDeskIntegration(context.Background()).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.CreateServiceDeskIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateServiceDeskIntegration`: ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.CreateServiceDeskIntegration`: %v\n", resp) + //resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.CreateServiceDeskIntegration(context.Background()).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.CreateServiceDeskIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateServiceDeskIntegration`: ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.CreateServiceDeskIntegration`: %v\n", resp) } ``` @@ -193,7 +192,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -201,16 +200,17 @@ import ( func main() { id := `anId` // string | ID of Service Desk integration to delete # string | ID of Service Desk integration to delete - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration(context.Background(), id).Execute() - //r, err := apiClient.V2025.ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -257,7 +257,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -265,18 +265,18 @@ import ( func main() { id := `anId` // string | ID of the Service Desk integration to get # string | ID of the Service Desk integration to get - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.GetServiceDeskIntegration(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.GetServiceDeskIntegration(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetServiceDeskIntegration`: ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegration`: %v\n", resp) + //resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.GetServiceDeskIntegration(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetServiceDeskIntegration`: ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegration`: %v\n", resp) } ``` @@ -323,7 +323,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -331,18 +331,18 @@ import ( func main() { scriptName := `aScriptName` // string | The scriptName value of the Service Desk integration template to get # string | The scriptName value of the Service Desk integration template to get - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate(context.Background(), scriptName).Execute() - //resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate(context.Background(), scriptName).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetServiceDeskIntegrationTemplate`: ServiceDeskIntegrationTemplateDto - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate`: %v\n", resp) + //resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate(context.Background(), scriptName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetServiceDeskIntegrationTemplate`: ServiceDeskIntegrationTemplateDto + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate`: %v\n", resp) } ``` @@ -381,25 +381,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes(context.Background()).Execute() - //resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetServiceDeskIntegrationTypes`: []ServiceDeskIntegrationTemplateType - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes`: %v\n", resp) + //resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetServiceDeskIntegrationTypes`: []ServiceDeskIntegrationTemplateType + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes`: %v\n", resp) } ``` @@ -446,7 +446,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -458,18 +458,18 @@ func main() { filters := `name eq "John Doe"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq* **type**: *eq, in* **cluster**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq* **type**: *eq, in* **cluster**: *eq, in* (optional) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.GetServiceDeskIntegrations(context.Background()).Execute() - //resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.GetServiceDeskIntegrations(context.Background()).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegrations``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetServiceDeskIntegrations`: []ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegrations`: %v\n", resp) + //resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.GetServiceDeskIntegrations(context.Background()).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegrations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetServiceDeskIntegrations`: []ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegrations`: %v\n", resp) } ``` @@ -508,25 +508,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.GetStatusCheckDetails(context.Background()).Execute() - //resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.GetStatusCheckDetails(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetStatusCheckDetails``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetStatusCheckDetails`: QueuedCheckConfigDetails - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetStatusCheckDetails`: %v\n", resp) + //resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.GetStatusCheckDetails(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetStatusCheckDetails``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetStatusCheckDetails`: QueuedCheckConfigDetails + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetStatusCheckDetails`: %v\n", resp) } ``` @@ -574,7 +574,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -583,24 +583,23 @@ func main() { id := `anId` // string | ID of the Service Desk integration to update # string | ID of the Service Desk integration to update jsonpatchoperation := []byte(``) // []JsonPatchOperation | A list of SDIM update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Only `replace` operations are accepted by this endpoint. A 403 Forbidden Error indicates that a PATCH operation was attempted that is not allowed. - - var jsonPatchOperation v2025.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2025.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.PatchServiceDeskIntegration(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.PatchServiceDeskIntegration(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.PatchServiceDeskIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchServiceDeskIntegration`: ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.PatchServiceDeskIntegration`: %v\n", resp) + //resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.PatchServiceDeskIntegration(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.PatchServiceDeskIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchServiceDeskIntegration`: ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.PatchServiceDeskIntegration`: %v\n", resp) } ``` @@ -648,7 +647,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -690,24 +689,23 @@ func main() { "beforeProvisioningRule" : "" }`) // ServiceDeskIntegrationDto | The specifics of the integration to update - - var serviceDeskIntegrationDto v2025.ServiceDeskIntegrationDto - if err := json.Unmarshal(servicedeskintegrationdto, &serviceDeskIntegrationDto); err != nil { - fmt.Println("Error:", err) - return - } - + var serviceDeskIntegrationDto v2025.ServiceDeskIntegrationDto + if err := json.Unmarshal(servicedeskintegrationdto, &serviceDeskIntegrationDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.PutServiceDeskIntegration(context.Background(), id).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() - //resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.PutServiceDeskIntegration(context.Background(), id).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.PutServiceDeskIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutServiceDeskIntegration`: ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.PutServiceDeskIntegration`: %v\n", resp) + //resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.PutServiceDeskIntegration(context.Background(), id).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.PutServiceDeskIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutServiceDeskIntegration`: ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.PutServiceDeskIntegration`: %v\n", resp) } ``` @@ -750,7 +748,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -761,24 +759,23 @@ func main() { "provisioningMaxStatusCheckDays" : "2" }`) // QueuedCheckConfigDetails | The modified time check configuration - - var queuedCheckConfigDetails v2025.QueuedCheckConfigDetails - if err := json.Unmarshal(queuedcheckconfigdetails, &queuedCheckConfigDetails); err != nil { - fmt.Println("Error:", err) - return - } - + var queuedCheckConfigDetails v2025.QueuedCheckConfigDetails + if err := json.Unmarshal(queuedcheckconfigdetails, &queuedCheckConfigDetails); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.UpdateStatusCheckDetails(context.Background()).QueuedCheckConfigDetails(queuedCheckConfigDetails).Execute() - //resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.UpdateStatusCheckDetails(context.Background()).QueuedCheckConfigDetails(queuedCheckConfigDetails).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.UpdateStatusCheckDetails``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateStatusCheckDetails`: QueuedCheckConfigDetails - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.UpdateStatusCheckDetails`: %v\n", resp) + //resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.UpdateStatusCheckDetails(context.Background()).QueuedCheckConfigDetails(queuedCheckConfigDetails).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.UpdateStatusCheckDetails``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateStatusCheckDetails`: QueuedCheckConfigDetails + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.UpdateStatusCheckDetails`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/SourceUsagesAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/SourceUsagesAPI.md index 21d3c02ba..f9fe23e90 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/SourceUsagesAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/SourceUsagesAPI.md @@ -63,7 +63,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -71,18 +71,18 @@ import ( func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | ID of IDN source # string | ID of IDN source - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourceUsagesAPI.GetStatusBySourceId(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.V2025.SourceUsagesAPI.GetStatusBySourceId(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourceUsagesAPI.GetStatusBySourceId``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetStatusBySourceId`: SourceUsageStatus - fmt.Fprintf(os.Stdout, "Response from `SourceUsagesAPI.GetStatusBySourceId`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourceUsagesAPI.GetStatusBySourceId(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourceUsagesAPI.GetStatusBySourceId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetStatusBySourceId`: SourceUsageStatus + fmt.Fprintf(os.Stdout, "Response from `SourceUsagesAPI.GetStatusBySourceId`: %v\n", resp) } ``` @@ -133,7 +133,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -145,18 +145,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) sorters := `-date` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **date** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **date** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourceUsagesAPI.GetUsagesBySourceId(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.V2025.SourceUsagesAPI.GetUsagesBySourceId(context.Background(), sourceId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourceUsagesAPI.GetUsagesBySourceId``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetUsagesBySourceId`: []SourceUsage - fmt.Fprintf(os.Stdout, "Response from `SourceUsagesAPI.GetUsagesBySourceId`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourceUsagesAPI.GetUsagesBySourceId(context.Background(), sourceId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourceUsagesAPI.GetUsagesBySourceId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetUsagesBySourceId`: []SourceUsage + fmt.Fprintf(os.Stdout, "Response from `SourceUsagesAPI.GetUsagesBySourceId`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/SourcesAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/SourcesAPI.md index a42fc1f48..f5cf0a375 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/SourcesAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/SourcesAPI.md @@ -168,7 +168,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -216,24 +216,23 @@ func main() { "usageType" : "CREATE" }`) // ProvisioningPolicyDto | - - var provisioningPolicyDto v2025.ProvisioningPolicyDto - if err := json.Unmarshal(provisioningpolicydto, &provisioningPolicyDto); err != nil { - fmt.Println("Error:", err) - return - } - + var provisioningPolicyDto v2025.ProvisioningPolicyDto + if err := json.Unmarshal(provisioningpolicydto, &provisioningPolicyDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.CreateProvisioningPolicy(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.CreateProvisioningPolicy(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.CreateProvisioningPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateProvisioningPolicy`: ProvisioningPolicyDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.CreateProvisioningPolicy`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.CreateProvisioningPolicy(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.CreateProvisioningPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateProvisioningPolicy`: ProvisioningPolicyDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.CreateProvisioningPolicy`: %v\n", resp) } ``` @@ -277,7 +276,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -368,24 +367,23 @@ func main() { }`) // Source | provisionAsCsv := false // bool | If this parameter is `true`, it configures the source as a Delimited File (CSV) source. Setting this to `true` will automatically set the `type` of the source to `DelimitedFile`. You must use this query parameter to create a Delimited File source as you would in the UI. If you don't set this query parameter and you attempt to set the `type` attribute directly, the request won't correctly generate the source. (optional) # bool | If this parameter is `true`, it configures the source as a Delimited File (CSV) source. Setting this to `true` will automatically set the `type` of the source to `DelimitedFile`. You must use this query parameter to create a Delimited File source as you would in the UI. If you don't set this query parameter and you attempt to set the `type` attribute directly, the request won't correctly generate the source. (optional) - - var source v2025.Source - if err := json.Unmarshal(source, &source); err != nil { - fmt.Println("Error:", err) - return - } - + var source v2025.Source + if err := json.Unmarshal(source, &source); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.CreateSource(context.Background()).Source(source).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.CreateSource(context.Background()).Source(source).ProvisionAsCsv(provisionAsCsv).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.CreateSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSource`: Source - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.CreateSource`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.CreateSource(context.Background()).Source(source).ProvisionAsCsv(provisionAsCsv).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.CreateSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSource`: Source + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.CreateSource`: %v\n", resp) } ``` @@ -434,7 +432,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -443,24 +441,23 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. schedule1 := []byte(``) // Schedule1 | - - var schedule1 v2025.Schedule1 - if err := json.Unmarshal(schedule1, &schedule1); err != nil { - fmt.Println("Error:", err) - return - } - + var schedule1 v2025.Schedule1 + if err := json.Unmarshal(schedule1, &schedule1); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.CreateSourceSchedule(context.Background(), sourceId).Schedule1(schedule1).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.CreateSourceSchedule(context.Background(), sourceId).Schedule1(schedule1).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.CreateSourceSchedule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSourceSchedule`: Schedule1 - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.CreateSourceSchedule`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.CreateSourceSchedule(context.Background(), sourceId).Schedule1(schedule1).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.CreateSourceSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSourceSchedule`: Schedule1 + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.CreateSourceSchedule`: %v\n", resp) } ``` @@ -509,7 +506,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -551,24 +548,23 @@ func main() { "identityAttribute" : "sAMAccountName" }`) // Schema | - - var schema v2025.Schema - if err := json.Unmarshal(schema, &schema); err != nil { - fmt.Println("Error:", err) - return - } - + var schema v2025.Schema + if err := json.Unmarshal(schema, &schema); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.CreateSourceSchema(context.Background(), sourceId).Schema(schema).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.CreateSourceSchema(context.Background(), sourceId).Schema(schema).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.CreateSourceSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSourceSchema`: Schema - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.CreateSourceSchema`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.CreateSourceSchema(context.Background(), sourceId).Schema(schema).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.CreateSourceSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSourceSchema`: Schema + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.CreateSourceSchema`: %v\n", resp) } ``` @@ -633,7 +629,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -642,18 +638,18 @@ func main() { id := `ebbf35756e1140699ce52b233121384a` // string | The source id # string | The source id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.DeleteAccountsAsync(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.DeleteAccountsAsync(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteAccountsAsync``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteAccountsAsync`: TaskResultDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.DeleteAccountsAsync`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.DeleteAccountsAsync(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteAccountsAsync``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteAccountsAsync`: TaskResultDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.DeleteAccountsAsync`: %v\n", resp) } ``` @@ -712,7 +708,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -721,16 +717,17 @@ func main() { id := `2c9180835d191a86015d28455b4a2329` // string | The source id # string | The source id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.SourcesAPI.DeleteNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //r, err := apiClient.V2025.SourcesAPI.DeleteNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteNativeChangeDetectionConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.SourcesAPI.DeleteNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteNativeChangeDetectionConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -779,7 +776,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -788,16 +785,17 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source ID. # string | The Source ID. usageType := CREATE // UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.SourcesAPI.DeleteProvisioningPolicy(context.Background(), sourceId, usageType).Execute() - //r, err := apiClient.V2025.SourcesAPI.DeleteProvisioningPolicy(context.Background(), sourceId, usageType).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteProvisioningPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.SourcesAPI.DeleteProvisioningPolicy(context.Background(), sourceId, usageType).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteProvisioningPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -845,7 +843,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -853,18 +851,18 @@ import ( func main() { id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.DeleteSource(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.DeleteSource(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteSource`: DeleteSource202Response - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.DeleteSource`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.DeleteSource(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteSource`: DeleteSource202Response + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.DeleteSource`: %v\n", resp) } ``` @@ -913,7 +911,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -922,16 +920,17 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. scheduleType := `ACCOUNT_AGGREGATION` // string | The Schedule type. # string | The Schedule type. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.SourcesAPI.DeleteSourceSchedule(context.Background(), sourceId, scheduleType).Execute() - //r, err := apiClient.V2025.SourcesAPI.DeleteSourceSchedule(context.Background(), sourceId, scheduleType).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteSourceSchedule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.SourcesAPI.DeleteSourceSchedule(context.Background(), sourceId, scheduleType).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteSourceSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -980,7 +979,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -989,16 +988,17 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. schemaId := `2c9180835d191a86015d28455b4a2329` // string | The Schema id. # string | The Schema id. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.SourcesAPI.DeleteSourceSchema(context.Background(), sourceId, schemaId).Execute() - //r, err := apiClient.V2025.SourcesAPI.DeleteSourceSchema(context.Background(), sourceId, schemaId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteSourceSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.SourcesAPI.DeleteSourceSchema(context.Background(), sourceId, schemaId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteSourceSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -1046,7 +1046,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1054,16 +1054,17 @@ import ( func main() { id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The Source id # string | The Source id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.SourcesAPI.GetAccountsSchema(context.Background(), id).Execute() - //r, err := apiClient.V2025.SourcesAPI.GetAccountsSchema(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetAccountsSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.SourcesAPI.GetAccountsSchema(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetAccountsSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -1110,7 +1111,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1118,18 +1119,18 @@ import ( func main() { id := `2c9180835d191a86015d28455b4a2329` // string | The source id # string | The source id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.GetCorrelationConfig(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.GetCorrelationConfig(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetCorrelationConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCorrelationConfig`: CorrelationConfig - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetCorrelationConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.GetCorrelationConfig(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetCorrelationConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCorrelationConfig`: CorrelationConfig + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetCorrelationConfig`: %v\n", resp) } ``` @@ -1179,7 +1180,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1188,16 +1189,17 @@ func main() { id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The Source id # string | The Source id schemaName := `?schemaName=group` // string | Name of entitlement schema (optional) # string | Name of entitlement schema (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.SourcesAPI.GetEntitlementsSchema(context.Background(), id).Execute() - //r, err := apiClient.V2025.SourcesAPI.GetEntitlementsSchema(context.Background(), id).SchemaName(schemaName).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetEntitlementsSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.SourcesAPI.GetEntitlementsSchema(context.Background(), id).SchemaName(schemaName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetEntitlementsSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -1256,7 +1258,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1265,18 +1267,18 @@ func main() { id := `2c9180835d191a86015d28455b4a2329` // string | The source id # string | The source id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.GetNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.GetNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetNativeChangeDetectionConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNativeChangeDetectionConfig`: NativeChangeDetectionConfig - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetNativeChangeDetectionConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.GetNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetNativeChangeDetectionConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNativeChangeDetectionConfig`: NativeChangeDetectionConfig + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetNativeChangeDetectionConfig`: %v\n", resp) } ``` @@ -1325,7 +1327,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1334,18 +1336,18 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source ID. # string | The Source ID. usageType := CREATE // UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.GetProvisioningPolicy(context.Background(), sourceId, usageType).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.GetProvisioningPolicy(context.Background(), sourceId, usageType).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetProvisioningPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetProvisioningPolicy`: ProvisioningPolicyDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetProvisioningPolicy`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.GetProvisioningPolicy(context.Background(), sourceId, usageType).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetProvisioningPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetProvisioningPolicy`: ProvisioningPolicyDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetProvisioningPolicy`: %v\n", resp) } ``` @@ -1392,7 +1394,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1400,18 +1402,18 @@ import ( func main() { id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.GetSource(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.GetSource(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSource`: Source - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSource`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.GetSource(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSource`: Source + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSource`: %v\n", resp) } ``` @@ -1470,7 +1472,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1479,18 +1481,18 @@ func main() { id := `2c9180835d191a86015d28455b4a2329` // string | The source id # string | The source id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.GetSourceAttrSyncConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.GetSourceAttrSyncConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceAttrSyncConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSourceAttrSyncConfig`: AttrSyncSourceConfig - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceAttrSyncConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.GetSourceAttrSyncConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceAttrSyncConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSourceAttrSyncConfig`: AttrSyncSourceConfig + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceAttrSyncConfig`: %v\n", resp) } ``` @@ -1538,7 +1540,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1547,18 +1549,18 @@ func main() { id := `cef3ee201db947c5912551015ba0c679` // string | The Source id # string | The Source id locale := `en` // string | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) # string | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.GetSourceConfig(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.GetSourceConfig(context.Background(), id).Locale(locale).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSourceConfig`: ConnectorDetail - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.GetSourceConfig(context.Background(), id).Locale(locale).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSourceConfig`: ConnectorDetail + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceConfig`: %v\n", resp) } ``` @@ -1605,7 +1607,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1613,18 +1615,18 @@ import ( func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.GetSourceConnections(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.GetSourceConnections(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceConnections``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSourceConnections`: SourceConnectionsDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceConnections`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.GetSourceConnections(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceConnections``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSourceConnections`: SourceConnectionsDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceConnections`: %v\n", resp) } ``` @@ -1682,7 +1684,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1690,18 +1692,18 @@ import ( func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.GetSourceEntitlementRequestConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.GetSourceEntitlementRequestConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceEntitlementRequestConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSourceEntitlementRequestConfig`: SourceEntitlementRequestConfig - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceEntitlementRequestConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.GetSourceEntitlementRequestConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceEntitlementRequestConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSourceEntitlementRequestConfig`: SourceEntitlementRequestConfig + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceEntitlementRequestConfig`: %v\n", resp) } ``` @@ -1748,7 +1750,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1756,18 +1758,18 @@ import ( func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.GetSourceHealth(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.GetSourceHealth(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceHealth``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSourceHealth`: SourceHealthDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceHealth`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.GetSourceHealth(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceHealth``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSourceHealth`: SourceHealthDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceHealth`: %v\n", resp) } ``` @@ -1817,7 +1819,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1826,18 +1828,18 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. scheduleType := `ACCOUNT_AGGREGATION` // string | The Schedule type. # string | The Schedule type. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.GetSourceSchedule(context.Background(), sourceId, scheduleType).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.GetSourceSchedule(context.Background(), sourceId, scheduleType).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceSchedule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSourceSchedule`: Schedule1 - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceSchedule`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.GetSourceSchedule(context.Background(), sourceId, scheduleType).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSourceSchedule`: Schedule1 + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceSchedule`: %v\n", resp) } ``` @@ -1892,7 +1894,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1900,18 +1902,18 @@ import ( func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.GetSourceSchedules(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.GetSourceSchedules(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceSchedules``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSourceSchedules`: []Schedule1 - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceSchedules`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.GetSourceSchedules(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceSchedules``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSourceSchedules`: []Schedule1 + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceSchedules`: %v\n", resp) } ``` @@ -1961,7 +1963,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1970,18 +1972,18 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. schemaId := `2c9180835d191a86015d28455b4a2329` // string | The Schema id. # string | The Schema id. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.GetSourceSchema(context.Background(), sourceId, schemaId).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.GetSourceSchema(context.Background(), sourceId, schemaId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSourceSchema`: Schema - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceSchema`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.GetSourceSchema(context.Background(), sourceId, schemaId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSourceSchema`: Schema + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceSchema`: %v\n", resp) } ``` @@ -2030,7 +2032,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2040,18 +2042,18 @@ func main() { includeTypes := `group` // string | If set to 'group', then the account schema is filtered and only group schemas are returned. Only a value of 'group' is recognized presently. Note: The API will check whether include-types is group or not, if not, it will list schemas based on include-names, if include-names is not provided, it will list all schemas. (optional) # string | If set to 'group', then the account schema is filtered and only group schemas are returned. Only a value of 'group' is recognized presently. Note: The API will check whether include-types is group or not, if not, it will list schemas based on include-names, if include-names is not provided, it will list all schemas. (optional) includeNames := `account` // string | A comma-separated list of schema names to filter result. (optional) # string | A comma-separated list of schema names to filter result. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.GetSourceSchemas(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.GetSourceSchemas(context.Background(), sourceId).IncludeTypes(includeTypes).IncludeNames(includeNames).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceSchemas``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSourceSchemas`: []Schema - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceSchemas`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.GetSourceSchemas(context.Background(), sourceId).IncludeTypes(includeTypes).IncludeNames(includeNames).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceSchemas``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSourceSchemas`: []Schema + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceSchemas`: %v\n", resp) } ``` @@ -2102,7 +2104,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2112,18 +2114,18 @@ func main() { file := BINARY_DATA_HERE // *os.File | The CSV file containing the source accounts to aggregate. (optional) # *os.File | The CSV file containing the source accounts to aggregate. (optional) disableOptimization := `disableOptimization_example` // string | Use this flag to reprocess every account whether or not the data has changed. (optional) # string | Use this flag to reprocess every account whether or not the data has changed. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.ImportAccounts(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.ImportAccounts(context.Background(), id).File(file).DisableOptimization(disableOptimization).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportAccounts``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportAccounts`: LoadAccountsTask - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportAccounts`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.ImportAccounts(context.Background(), id).File(file).DisableOptimization(disableOptimization).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportAccounts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportAccounts`: LoadAccountsTask + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportAccounts`: %v\n", resp) } ``` @@ -2177,7 +2179,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2186,18 +2188,18 @@ func main() { id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The Source id # string | The Source id file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.ImportAccountsSchema(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.ImportAccountsSchema(context.Background(), id).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportAccountsSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportAccountsSchema`: Schema - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportAccountsSchema`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.ImportAccountsSchema(context.Background(), id).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportAccountsSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportAccountsSchema`: Schema + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportAccountsSchema`: %v\n", resp) } ``` @@ -2245,7 +2247,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2254,18 +2256,18 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.ImportConnectorFile(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.ImportConnectorFile(context.Background(), sourceId).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportConnectorFile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportConnectorFile`: Source - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportConnectorFile`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.ImportConnectorFile(context.Background(), sourceId).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportConnectorFile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportConnectorFile`: Source + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportConnectorFile`: %v\n", resp) } ``` @@ -2320,7 +2322,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2330,18 +2332,18 @@ func main() { schemaName := `?schemaName=group` // string | Name of entitlement schema (optional) # string | Name of entitlement schema (optional) file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.ImportEntitlementsSchema(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.ImportEntitlementsSchema(context.Background(), id).SchemaName(schemaName).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportEntitlementsSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportEntitlementsSchema`: Schema - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportEntitlementsSchema`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.ImportEntitlementsSchema(context.Background(), id).SchemaName(schemaName).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportEntitlementsSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportEntitlementsSchema`: Schema + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportEntitlementsSchema`: %v\n", resp) } ``` @@ -2401,7 +2403,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2411,18 +2413,18 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.ImportUncorrelatedAccounts(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.ImportUncorrelatedAccounts(context.Background(), id).XSailPointExperimental(xSailPointExperimental).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportUncorrelatedAccounts``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportUncorrelatedAccounts`: LoadUncorrelatedAccountsTask - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportUncorrelatedAccounts`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.ImportUncorrelatedAccounts(context.Background(), id).XSailPointExperimental(xSailPointExperimental).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportUncorrelatedAccounts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportUncorrelatedAccounts`: LoadUncorrelatedAccountsTask + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportUncorrelatedAccounts`: %v\n", resp) } ``` @@ -2469,7 +2471,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2477,18 +2479,18 @@ import ( func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id # string | The Source id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.ListProvisioningPolicies(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.ListProvisioningPolicies(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ListProvisioningPolicies``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListProvisioningPolicies`: []ProvisioningPolicyDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ListProvisioningPolicies`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.ListProvisioningPolicies(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ListProvisioningPolicies``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListProvisioningPolicies`: []ProvisioningPolicyDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ListProvisioningPolicies`: %v\n", resp) } ``` @@ -2537,7 +2539,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2551,18 +2553,18 @@ func main() { forSubadmin := `name` // string | Filter the returned list of sources for the identity specified by the parameter, which is the id of an identity with the role SOURCE_SUBADMIN. By convention, the value **me** indicates the identity id of the current user. Subadmins may only view Sources which they are able to administer; all other Sources will be filtered out when this parameter is set. If the current user is a SOURCE_SUBADMIN but fails to pass a valid value for this parameter, a 403 Forbidden is returned. (optional) # string | Filter the returned list of sources for the identity specified by the parameter, which is the id of an identity with the role SOURCE_SUBADMIN. By convention, the value **me** indicates the identity id of the current user. Subadmins may only view Sources which they are able to administer; all other Sources will be filtered out when this parameter is set. If the current user is a SOURCE_SUBADMIN but fails to pass a valid value for this parameter, a 403 Forbidden is returned. (optional) includeIDNSource := true // bool | Include the IdentityNow source in the response. (optional) (default to false) # bool | Include the IdentityNow source in the response. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.ListSources(context.Background()).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.ListSources(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSubadmin(forSubadmin).IncludeIDNSource(includeIDNSource).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ListSources``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListSources`: []Source - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ListSources`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.ListSources(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSubadmin(forSubadmin).IncludeIDNSource(includeIDNSource).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ListSources``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListSources`: []Source + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ListSources`: %v\n", resp) } ``` @@ -2609,7 +2611,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2617,18 +2619,18 @@ import ( func main() { sourceId := `cef3ee201db947c5912551015ba0c679` // string | The ID of the Source # string | The ID of the Source - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.PingCluster(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.PingCluster(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PingCluster``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PingCluster`: StatusResponse - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PingCluster`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.PingCluster(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PingCluster``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PingCluster`: StatusResponse + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PingCluster`: %v\n", resp) } ``` @@ -2676,7 +2678,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2705,24 +2707,23 @@ func main() { "id" : "2c9180835d191a86015d28455b4a2329" }`) // CorrelationConfig | - - var correlationConfig v2025.CorrelationConfig - if err := json.Unmarshal(correlationconfig, &correlationConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var correlationConfig v2025.CorrelationConfig + if err := json.Unmarshal(correlationconfig, &correlationConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.PutCorrelationConfig(context.Background(), id).CorrelationConfig(correlationConfig).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.PutCorrelationConfig(context.Background(), id).CorrelationConfig(correlationConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutCorrelationConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutCorrelationConfig`: CorrelationConfig - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutCorrelationConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.PutCorrelationConfig(context.Background(), id).CorrelationConfig(correlationConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutCorrelationConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutCorrelationConfig`: CorrelationConfig + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutCorrelationConfig`: %v\n", resp) } ``` @@ -2782,7 +2783,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2799,24 +2800,23 @@ func main() { "enabled" : true }`) // NativeChangeDetectionConfig | - - var nativeChangeDetectionConfig v2025.NativeChangeDetectionConfig - if err := json.Unmarshal(nativechangedetectionconfig, &nativeChangeDetectionConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var nativeChangeDetectionConfig v2025.NativeChangeDetectionConfig + if err := json.Unmarshal(nativechangedetectionconfig, &nativeChangeDetectionConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.PutNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).NativeChangeDetectionConfig(nativeChangeDetectionConfig).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.PutNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).NativeChangeDetectionConfig(nativeChangeDetectionConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutNativeChangeDetectionConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutNativeChangeDetectionConfig`: NativeChangeDetectionConfig - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutNativeChangeDetectionConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.PutNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).NativeChangeDetectionConfig(nativeChangeDetectionConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutNativeChangeDetectionConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutNativeChangeDetectionConfig`: NativeChangeDetectionConfig + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutNativeChangeDetectionConfig`: %v\n", resp) } ``` @@ -2868,7 +2868,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2917,24 +2917,23 @@ func main() { "usageType" : "CREATE" }`) // ProvisioningPolicyDto | - - var provisioningPolicyDto v2025.ProvisioningPolicyDto - if err := json.Unmarshal(provisioningpolicydto, &provisioningPolicyDto); err != nil { - fmt.Println("Error:", err) - return - } - + var provisioningPolicyDto v2025.ProvisioningPolicyDto + if err := json.Unmarshal(provisioningpolicydto, &provisioningPolicyDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.PutProvisioningPolicy(context.Background(), sourceId, usageType).ProvisioningPolicyDto(provisioningPolicyDto).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.PutProvisioningPolicy(context.Background(), sourceId, usageType).ProvisioningPolicyDto(provisioningPolicyDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutProvisioningPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutProvisioningPolicy`: ProvisioningPolicyDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutProvisioningPolicy`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.PutProvisioningPolicy(context.Background(), sourceId, usageType).ProvisioningPolicyDto(provisioningPolicyDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutProvisioningPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutProvisioningPolicy`: ProvisioningPolicyDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutProvisioningPolicy`: %v\n", resp) } ``` @@ -2994,7 +2993,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3085,24 +3084,23 @@ func main() { "since" : "2021-09-28T15:48:29.3801666300Z" }`) // Source | - - var source v2025.Source - if err := json.Unmarshal(source, &source); err != nil { - fmt.Println("Error:", err) - return - } - + var source v2025.Source + if err := json.Unmarshal(source, &source); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.PutSource(context.Background(), id).Source(source).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.PutSource(context.Background(), id).Source(source).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutSource`: Source - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutSource`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.PutSource(context.Background(), id).Source(source).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutSource`: Source + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutSource`: %v\n", resp) } ``` @@ -3163,7 +3161,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3190,24 +3188,23 @@ func main() { } }`) // AttrSyncSourceConfig | - - var attrSyncSourceConfig v2025.AttrSyncSourceConfig - if err := json.Unmarshal(attrsyncsourceconfig, &attrSyncSourceConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var attrSyncSourceConfig v2025.AttrSyncSourceConfig + if err := json.Unmarshal(attrsyncsourceconfig, &attrSyncSourceConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.PutSourceAttrSyncConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).AttrSyncSourceConfig(attrSyncSourceConfig).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.PutSourceAttrSyncConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).AttrSyncSourceConfig(attrSyncSourceConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutSourceAttrSyncConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutSourceAttrSyncConfig`: AttrSyncSourceConfig - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutSourceAttrSyncConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.PutSourceAttrSyncConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).AttrSyncSourceConfig(attrSyncSourceConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutSourceAttrSyncConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutSourceAttrSyncConfig`: AttrSyncSourceConfig + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutSourceAttrSyncConfig`: %v\n", resp) } ``` @@ -3267,7 +3264,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3310,24 +3307,23 @@ func main() { "identityAttribute" : "sAMAccountName" }`) // Schema | - - var schema v2025.Schema - if err := json.Unmarshal(schema, &schema); err != nil { - fmt.Println("Error:", err) - return - } - + var schema v2025.Schema + if err := json.Unmarshal(schema, &schema); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.PutSourceSchema(context.Background(), sourceId, schemaId).Schema(schema).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.PutSourceSchema(context.Background(), sourceId, schemaId).Schema(schema).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutSourceSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutSourceSchema`: Schema - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutSourceSchema`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.PutSourceSchema(context.Background(), sourceId, schemaId).Schema(schema).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutSourceSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutSourceSchema`: Schema + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutSourceSchema`: %v\n", resp) } ``` @@ -3375,7 +3371,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3387,24 +3383,23 @@ func main() { "objectType" : "group" }`) // ResourceObjectsRequest | - - var resourceObjectsRequest v2025.ResourceObjectsRequest - if err := json.Unmarshal(resourceobjectsrequest, &resourceObjectsRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var resourceObjectsRequest v2025.ResourceObjectsRequest + if err := json.Unmarshal(resourceobjectsrequest, &resourceObjectsRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.SearchResourceObjects(context.Background(), sourceId).ResourceObjectsRequest(resourceObjectsRequest).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.SearchResourceObjects(context.Background(), sourceId).ResourceObjectsRequest(resourceObjectsRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.SearchResourceObjects``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SearchResourceObjects`: ResourceObjectsResponse - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.SearchResourceObjects`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.SearchResourceObjects(context.Background(), sourceId).ResourceObjectsRequest(resourceObjectsRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.SearchResourceObjects``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchResourceObjects`: ResourceObjectsResponse + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.SearchResourceObjects`: %v\n", resp) } ``` @@ -3463,7 +3458,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3472,18 +3467,18 @@ func main() { id := `id_example` // string | The Source id # string | The Source id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.SyncAttributesForSource(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.SyncAttributesForSource(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.SyncAttributesForSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SyncAttributesForSource`: SourceSyncJob - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.SyncAttributesForSource`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.SyncAttributesForSource(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.SyncAttributesForSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SyncAttributesForSource`: SourceSyncJob + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.SyncAttributesForSource`: %v\n", resp) } ``` @@ -3530,7 +3525,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3538,18 +3533,18 @@ import ( func main() { sourceId := `cef3ee201db947c5912551015ba0c679` // string | The ID of the Source # string | The ID of the Source - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.TestSourceConfiguration(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.TestSourceConfiguration(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.TestSourceConfiguration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `TestSourceConfiguration`: StatusResponse - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.TestSourceConfiguration`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.TestSourceConfiguration(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.TestSourceConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TestSourceConfiguration`: StatusResponse + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.TestSourceConfiguration`: %v\n", resp) } ``` @@ -3596,7 +3591,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3604,18 +3599,18 @@ import ( func main() { sourceId := `cef3ee201db947c5912551015ba0c679` // string | The ID of the Source. # string | The ID of the Source. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.TestSourceConnection(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.TestSourceConnection(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.TestSourceConnection``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `TestSourceConnection`: StatusResponse - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.TestSourceConnection`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.TestSourceConnection(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.TestSourceConnection``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TestSourceConnection`: StatusResponse + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.TestSourceConnection`: %v\n", resp) } ``` @@ -3665,7 +3660,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3674,24 +3669,23 @@ func main() { sourceId := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The Source id # string | The Source id passwordpolicyholdersdtoinner := []byte(``) // []PasswordPolicyHoldersDtoInner | - - var passwordPolicyHoldersDtoInner v2025.[]PasswordPolicyHoldersDtoInner - if err := json.Unmarshal(passwordpolicyholdersdtoinner, &passwordPolicyHoldersDtoInner); err != nil { - fmt.Println("Error:", err) - return - } - + var passwordPolicyHoldersDtoInner []v2025.PasswordPolicyHoldersDtoInner + if err := json.Unmarshal(passwordpolicyholdersdtoinner, &passwordPolicyHoldersDtoInner); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.UpdatePasswordPolicyHolders(context.Background(), sourceId).PasswordPolicyHoldersDtoInner(passwordPolicyHoldersDtoInner).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.UpdatePasswordPolicyHolders(context.Background(), sourceId).PasswordPolicyHoldersDtoInner(passwordPolicyHoldersDtoInner).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdatePasswordPolicyHolders``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdatePasswordPolicyHolders`: []PasswordPolicyHoldersDtoInner - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdatePasswordPolicyHolders`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.UpdatePasswordPolicyHolders(context.Background(), sourceId).PasswordPolicyHoldersDtoInner(passwordPolicyHoldersDtoInner).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdatePasswordPolicyHolders``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdatePasswordPolicyHolders`: []PasswordPolicyHoldersDtoInner + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdatePasswordPolicyHolders`: %v\n", resp) } ``` @@ -3739,7 +3733,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3748,24 +3742,23 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. provisioningpolicydto := []byte(``) // []ProvisioningPolicyDto | - - var provisioningPolicyDto v2025.[]ProvisioningPolicyDto - if err := json.Unmarshal(provisioningpolicydto, &provisioningPolicyDto); err != nil { - fmt.Println("Error:", err) - return - } - + var provisioningPolicyDto []v2025.ProvisioningPolicyDto + if err := json.Unmarshal(provisioningpolicydto, &provisioningPolicyDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.UpdateProvisioningPoliciesInBulk(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.UpdateProvisioningPoliciesInBulk(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateProvisioningPoliciesInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateProvisioningPoliciesInBulk`: []ProvisioningPolicyDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateProvisioningPoliciesInBulk`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.UpdateProvisioningPoliciesInBulk(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateProvisioningPoliciesInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateProvisioningPoliciesInBulk`: []ProvisioningPolicyDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateProvisioningPoliciesInBulk`: %v\n", resp) } ``` @@ -3817,7 +3810,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3827,24 +3820,23 @@ func main() { usageType := CREATE // UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. jsonpatchoperation := []byte(`[{op=add, path=/fields/0, value={name=email, transform={type=identityAttribute, attributes={name=email}}, attributes={}, isRequired=false, type=string, isMultiValued=false}}]`) // []JsonPatchOperation | The JSONPatch payload used to update the schema. - - var jsonPatchOperation v2025.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2025.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.UpdateProvisioningPolicy(context.Background(), sourceId, usageType).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.UpdateProvisioningPolicy(context.Background(), sourceId, usageType).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateProvisioningPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateProvisioningPolicy`: ProvisioningPolicyDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateProvisioningPolicy`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.UpdateProvisioningPolicy(context.Background(), sourceId, usageType).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateProvisioningPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateProvisioningPolicy`: ProvisioningPolicyDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateProvisioningPolicy`: %v\n", resp) } ``` @@ -3907,7 +3899,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3916,24 +3908,23 @@ func main() { id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. jsonpatchoperation := []byte(`[{op=replace, path=/description, value=new description}]`) // []JsonPatchOperation | A list of account update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Any password changes are submitted as plain-text and encrypted upon receipt in Identity Security Cloud (ISC). - - var jsonPatchOperation v2025.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2025.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.UpdateSource(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.UpdateSource(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateSource`: Source - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateSource`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.UpdateSource(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateSource`: Source + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateSource`: %v\n", resp) } ``` @@ -3992,7 +3983,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4009,28 +4000,37 @@ func main() { "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", "approverType" : "GOVERNANCE_GROUP" } ], + "reauthorizationRequired" : false, "requestCommentRequired" : true + }, + "revocationRequestConfig" : { + "approvalSchemes" : [ { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + }, { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + } ] } }`) // SourceEntitlementRequestConfig | - - var sourceEntitlementRequestConfig v2025.SourceEntitlementRequestConfig - if err := json.Unmarshal(sourceentitlementrequestconfig, &sourceEntitlementRequestConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var sourceEntitlementRequestConfig v2025.SourceEntitlementRequestConfig + if err := json.Unmarshal(sourceentitlementrequestconfig, &sourceEntitlementRequestConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.UpdateSourceEntitlementRequestConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).SourceEntitlementRequestConfig(sourceEntitlementRequestConfig).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.UpdateSourceEntitlementRequestConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).SourceEntitlementRequestConfig(sourceEntitlementRequestConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateSourceEntitlementRequestConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateSourceEntitlementRequestConfig`: SourceEntitlementRequestConfig - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateSourceEntitlementRequestConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.UpdateSourceEntitlementRequestConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).SourceEntitlementRequestConfig(sourceEntitlementRequestConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateSourceEntitlementRequestConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateSourceEntitlementRequestConfig`: SourceEntitlementRequestConfig + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateSourceEntitlementRequestConfig`: %v\n", resp) } ``` @@ -4085,7 +4085,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4095,24 +4095,23 @@ func main() { scheduleType := `ACCOUNT_AGGREGATION` // string | The Schedule type. # string | The Schedule type. jsonpatchoperation := []byte(`[{op=replace, path=/cronExpression, value=0 0 6 * * ?}]`) // []JsonPatchOperation | The JSONPatch payload used to update the schedule. - - var jsonPatchOperation v2025.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2025.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.UpdateSourceSchedule(context.Background(), sourceId, scheduleType).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.UpdateSourceSchedule(context.Background(), sourceId, scheduleType).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateSourceSchedule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateSourceSchedule`: Schedule1 - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateSourceSchedule`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.UpdateSourceSchedule(context.Background(), sourceId, scheduleType).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateSourceSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateSourceSchedule`: Schedule1 + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateSourceSchedule`: %v\n", resp) } ``` @@ -4191,7 +4190,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4201,24 +4200,23 @@ func main() { schemaId := `2c9180835d191a86015d28455b4a2329` // string | The Schema id. # string | The Schema id. jsonpatchoperation := []byte(`[{op=add, path=/attributes/-, value={name=location, type=STRING, schema=null, description=Employee location, isMulti=false, isEntitlement=false, isGroup=false}}]`) // []JsonPatchOperation | The JSONPatch payload used to update the schema. - - var jsonPatchOperation v2025.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2025.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.UpdateSourceSchema(context.Background(), sourceId, schemaId).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2025.SourcesAPI.UpdateSourceSchema(context.Background(), sourceId, schemaId).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateSourceSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateSourceSchema`: Schema - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateSourceSchema`: %v\n", resp) + //resp, r, err := apiClient.V2025.SourcesAPI.UpdateSourceSchema(context.Background(), sourceId, schemaId).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateSourceSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateSourceSchema`: Schema + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateSourceSchema`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/SuggestedEntitlementDescriptionAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/SuggestedEntitlementDescriptionAPI.md index a20990dbb..f6c0ba63d 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/SuggestedEntitlementDescriptionAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/SuggestedEntitlementDescriptionAPI.md @@ -72,7 +72,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -80,18 +80,18 @@ import ( func main() { batchId := `8c190e67-87aa-4ed9-a90b-d9d5344523fb` // string | Batch Id # string | Batch Id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.GetSedBatchStats(context.Background(), batchId).Execute() - //resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.GetSedBatchStats(context.Background(), batchId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.GetSedBatchStats``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSedBatchStats`: SedBatchStats - fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.GetSedBatchStats`: %v\n", resp) + //resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.GetSedBatchStats(context.Background(), batchId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.GetSedBatchStats``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSedBatchStats`: SedBatchStats + fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.GetSedBatchStats`: %v\n", resp) } ``` @@ -131,25 +131,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.GetSedBatches(context.Background()).Execute() - //resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.GetSedBatches(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.GetSedBatches``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSedBatches`: SedBatchStatus - fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.GetSedBatches`: %v\n", resp) + //resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.GetSedBatches(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.GetSedBatches``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSedBatches`: SedBatchStatus + fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.GetSedBatches`: %v\n", resp) } ``` @@ -213,7 +213,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -228,18 +228,18 @@ func main() { requestedByAnyone := requested-by-anyone=true // bool | By default, the ListSeds API will only return items that you have requested to be generated. This option will allow you to see all items that have been requested (optional) (default to false) # bool | By default, the ListSeds API will only return items that you have requested to be generated. This option will allow you to see all items that have been requested (optional) (default to false) showPendingStatusOnly := show-pending-status-only=true // bool | Will limit records to items that are in \"suggested\" or \"approved\" status (optional) (default to false) # bool | Will limit records to items that are in \"suggested\" or \"approved\" status (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.ListSeds(context.Background()).Execute() - //resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.ListSeds(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).CountOnly(countOnly).RequestedByAnyone(requestedByAnyone).ShowPendingStatusOnly(showPendingStatusOnly).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.ListSeds``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListSeds`: []Sed - fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.ListSeds`: %v\n", resp) + //resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.ListSeds(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).CountOnly(countOnly).RequestedByAnyone(requestedByAnyone).ShowPendingStatusOnly(showPendingStatusOnly).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.ListSeds``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListSeds`: []Sed + fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.ListSeds`: %v\n", resp) } ``` @@ -287,7 +287,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -296,24 +296,23 @@ func main() { id := `ebab396f-0af1-4050-89b7-dafc63ec70e7` // string | id is sed id # string | id is sed id sedpatch := []byte(``) // []SedPatch | Sed Patch Request - - var sedPatch v2025.[]SedPatch - if err := json.Unmarshal(sedpatch, &sedPatch); err != nil { - fmt.Println("Error:", err) - return - } - + var sedPatch []v2025.SedPatch + if err := json.Unmarshal(sedpatch, &sedPatch); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.PatchSed(context.Background(), id).SedPatch(sedPatch).Execute() - //resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.PatchSed(context.Background(), id).SedPatch(sedPatch).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.PatchSed``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchSed`: Sed - fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.PatchSed`: %v\n", resp) + //resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.PatchSed(context.Background(), id).SedPatch(sedPatch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.PatchSed``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchSed`: Sed + fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.PatchSed`: %v\n", resp) } ``` @@ -357,7 +356,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -365,24 +364,23 @@ import ( func main() { sedapproval := []byte(``) // []SedApproval | Sed Approval - - var sedApproval v2025.[]SedApproval - if err := json.Unmarshal(sedapproval, &sedApproval); err != nil { - fmt.Println("Error:", err) - return - } - + var sedApproval []v2025.SedApproval + if err := json.Unmarshal(sedapproval, &sedApproval); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.SubmitSedApproval(context.Background()).SedApproval(sedApproval).Execute() - //resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.SubmitSedApproval(context.Background()).SedApproval(sedApproval).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.SubmitSedApproval``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SubmitSedApproval`: []SedApprovalStatus - fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.SubmitSedApproval`: %v\n", resp) + //resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.SubmitSedApproval(context.Background()).SedApproval(sedApproval).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.SubmitSedApproval``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SubmitSedApproval`: []SedApprovalStatus + fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.SubmitSedApproval`: %v\n", resp) } ``` @@ -426,7 +424,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -440,24 +438,23 @@ func main() { "items" : [ "016629d1-1d25-463f-97f3-0c6686846650", "016629d1-1d25-463f-97f3-0c6686846650" ] }`) // SedAssignment | Sed Assignment Request - - var sedAssignment v2025.SedAssignment - if err := json.Unmarshal(sedassignment, &sedAssignment); err != nil { - fmt.Println("Error:", err) - return - } - + var sedAssignment v2025.SedAssignment + if err := json.Unmarshal(sedassignment, &sedAssignment); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.SubmitSedAssignment(context.Background()).SedAssignment(sedAssignment).Execute() - //resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.SubmitSedAssignment(context.Background()).SedAssignment(sedAssignment).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.SubmitSedAssignment``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SubmitSedAssignment`: SedAssignmentResponse - fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.SubmitSedAssignment`: %v\n", resp) + //resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.SubmitSedAssignment(context.Background()).SedAssignment(sedAssignment).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.SubmitSedAssignment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SubmitSedAssignment`: SedAssignmentResponse + fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.SubmitSedAssignment`: %v\n", resp) } ``` @@ -501,7 +498,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -512,18 +509,18 @@ func main() { "seds" : [ "016629d1-1d25-463f-97f3-c6686846650", "016629d1-1d25-463f-97f3-c6686846650" ] }`) // SedBatchRequest | Sed Batch Request (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.SubmitSedBatchRequest(context.Background()).Execute() - //resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.SubmitSedBatchRequest(context.Background()).SedBatchRequest(sedBatchRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.SubmitSedBatchRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SubmitSedBatchRequest`: SedBatchResponse - fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.SubmitSedBatchRequest`: %v\n", resp) + //resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.SubmitSedBatchRequest(context.Background()).SedBatchRequest(sedBatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SuggestedEntitlementDescriptionAPI.SubmitSedBatchRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SubmitSedBatchRequest`: SedBatchResponse + fmt.Fprintf(os.Stdout, "Response from `SuggestedEntitlementDescriptionAPI.SubmitSedBatchRequest`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/TaggedObjectsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/TaggedObjectsAPI.md index 7db98030e..5d3c84dc3 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/TaggedObjectsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/TaggedObjectsAPI.md @@ -121,7 +121,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -130,16 +130,17 @@ func main() { type_ := `ROLE` // string | The type of object to delete tags from. # string | The type of object to delete tags from. id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the object to delete tags from. # string | The ID of the object to delete tags from. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.TaggedObjectsAPI.DeleteTaggedObject(context.Background(), type_, id).Execute() - //r, err := apiClient.V2025.TaggedObjectsAPI.DeleteTaggedObject(context.Background(), type_, id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.DeleteTaggedObject``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.TaggedObjectsAPI.DeleteTaggedObject(context.Background(), type_, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.DeleteTaggedObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -182,7 +183,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -201,22 +202,22 @@ func main() { "tags" : [ "BU_FINANCE", "PCI" ] }`) // BulkRemoveTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. - - var bulkRemoveTaggedObject v2025.BulkRemoveTaggedObject - if err := json.Unmarshal(bulkremovetaggedobject, &bulkRemoveTaggedObject); err != nil { - fmt.Println("Error:", err) - return - } - + var bulkRemoveTaggedObject v2025.BulkRemoveTaggedObject + if err := json.Unmarshal(bulkremovetaggedobject, &bulkRemoveTaggedObject); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.TaggedObjectsAPI.DeleteTagsToManyObject(context.Background()).BulkRemoveTaggedObject(bulkRemoveTaggedObject).Execute() - //r, err := apiClient.V2025.TaggedObjectsAPI.DeleteTagsToManyObject(context.Background()).BulkRemoveTaggedObject(bulkRemoveTaggedObject).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.DeleteTagsToManyObject``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.TaggedObjectsAPI.DeleteTagsToManyObject(context.Background()).BulkRemoveTaggedObject(bulkRemoveTaggedObject).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.DeleteTagsToManyObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -265,7 +266,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -274,18 +275,18 @@ func main() { type_ := `ROLE` // string | The type of tagged object to retrieve. # string | The type of tagged object to retrieve. id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the object reference to retrieve. # string | The ID of the object reference to retrieve. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TaggedObjectsAPI.GetTaggedObject(context.Background(), type_, id).Execute() - //resp, r, err := apiClient.V2025.TaggedObjectsAPI.GetTaggedObject(context.Background(), type_, id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.GetTaggedObject``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetTaggedObject`: TaggedObject - fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.GetTaggedObject`: %v\n", resp) + //resp, r, err := apiClient.V2025.TaggedObjectsAPI.GetTaggedObject(context.Background(), type_, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.GetTaggedObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTaggedObject`: TaggedObject + fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.GetTaggedObject`: %v\n", resp) } ``` @@ -333,7 +334,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -344,18 +345,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) filters := `tagName eq "BU_FINANCE"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **objectRef.id**: *eq, in* **objectRef.type**: *eq, in* **tagName**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **objectRef.id**: *eq, in* **objectRef.type**: *eq, in* **tagName**: *eq, in* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TaggedObjectsAPI.ListTaggedObjects(context.Background()).Execute() - //resp, r, err := apiClient.V2025.TaggedObjectsAPI.ListTaggedObjects(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.ListTaggedObjects``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListTaggedObjects`: []TaggedObject - fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.ListTaggedObjects`: %v\n", resp) + //resp, r, err := apiClient.V2025.TaggedObjectsAPI.ListTaggedObjects(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.ListTaggedObjects``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListTaggedObjects`: []TaggedObject + fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.ListTaggedObjects`: %v\n", resp) } ``` @@ -408,7 +409,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -420,18 +421,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) filters := `objectRef.id eq "2c91808568c529c60168cca6f90c1313"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **objectRef.id**: *eq* **objectRef.type**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **objectRef.id**: *eq* **objectRef.type**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TaggedObjectsAPI.ListTaggedObjectsByType(context.Background(), type_).Execute() - //resp, r, err := apiClient.V2025.TaggedObjectsAPI.ListTaggedObjectsByType(context.Background(), type_).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.ListTaggedObjectsByType``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListTaggedObjectsByType`: []TaggedObject - fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.ListTaggedObjectsByType`: %v\n", resp) + //resp, r, err := apiClient.V2025.TaggedObjectsAPI.ListTaggedObjectsByType(context.Background(), type_).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.ListTaggedObjectsByType``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListTaggedObjectsByType`: []TaggedObject + fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.ListTaggedObjectsByType`: %v\n", resp) } ``` @@ -481,7 +482,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -498,24 +499,23 @@ func main() { "tags" : [ "BU_FINANCE", "PCI" ] }`) // TaggedObject | - - var taggedObject v2025.TaggedObject - if err := json.Unmarshal(taggedobject, &taggedObject); err != nil { - fmt.Println("Error:", err) - return - } - + var taggedObject v2025.TaggedObject + if err := json.Unmarshal(taggedobject, &taggedObject); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TaggedObjectsAPI.PutTaggedObject(context.Background(), type_, id).TaggedObject(taggedObject).Execute() - //resp, r, err := apiClient.V2025.TaggedObjectsAPI.PutTaggedObject(context.Background(), type_, id).TaggedObject(taggedObject).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.PutTaggedObject``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutTaggedObject`: TaggedObject - fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.PutTaggedObject`: %v\n", resp) + //resp, r, err := apiClient.V2025.TaggedObjectsAPI.PutTaggedObject(context.Background(), type_, id).TaggedObject(taggedObject).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.PutTaggedObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutTaggedObject`: TaggedObject + fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.PutTaggedObject`: %v\n", resp) } ``` @@ -560,7 +560,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -575,22 +575,22 @@ func main() { "tags" : [ "BU_FINANCE", "PCI" ] }`) // TaggedObject | - - var taggedObject v2025.TaggedObject - if err := json.Unmarshal(taggedobject, &taggedObject); err != nil { - fmt.Println("Error:", err) - return - } - + var taggedObject v2025.TaggedObject + if err := json.Unmarshal(taggedobject, &taggedObject); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.TaggedObjectsAPI.SetTagToObject(context.Background()).TaggedObject(taggedObject).Execute() - //r, err := apiClient.V2025.TaggedObjectsAPI.SetTagToObject(context.Background()).TaggedObject(taggedObject).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.SetTagToObject``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.TaggedObjectsAPI.SetTagToObject(context.Background()).TaggedObject(taggedObject).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.SetTagToObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -633,7 +633,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -653,24 +653,23 @@ func main() { "tags" : [ "BU_FINANCE", "PCI" ] }`) // BulkAddTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. - - var bulkAddTaggedObject v2025.BulkAddTaggedObject - if err := json.Unmarshal(bulkaddtaggedobject, &bulkAddTaggedObject); err != nil { - fmt.Println("Error:", err) - return - } - + var bulkAddTaggedObject v2025.BulkAddTaggedObject + if err := json.Unmarshal(bulkaddtaggedobject, &bulkAddTaggedObject); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TaggedObjectsAPI.SetTagsToManyObjects(context.Background()).BulkAddTaggedObject(bulkAddTaggedObject).Execute() - //resp, r, err := apiClient.V2025.TaggedObjectsAPI.SetTagsToManyObjects(context.Background()).BulkAddTaggedObject(bulkAddTaggedObject).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.SetTagsToManyObjects``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetTagsToManyObjects`: []BulkTaggedObjectResponse - fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.SetTagsToManyObjects`: %v\n", resp) + //resp, r, err := apiClient.V2025.TaggedObjectsAPI.SetTagsToManyObjects(context.Background()).BulkAddTaggedObject(bulkAddTaggedObject).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.SetTagsToManyObjects``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetTagsToManyObjects`: []BulkTaggedObjectResponse + fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.SetTagsToManyObjects`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/TaskManagementAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/TaskManagementAPI.md index d4c83fbb4..6a04f63f4 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/TaskManagementAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/TaskManagementAPI.md @@ -73,7 +73,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -84,16 +84,17 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.TaskManagementAPI.GetPendingTaskHeaders(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //r, err := apiClient.V2025.TaskManagementAPI.GetPendingTaskHeaders(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaskManagementAPI.GetPendingTaskHeaders``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.TaskManagementAPI.GetPendingTaskHeaders(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaskManagementAPI.GetPendingTaskHeaders``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -150,7 +151,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -161,18 +162,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TaskManagementAPI.GetPendingTasks(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.TaskManagementAPI.GetPendingTasks(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaskManagementAPI.GetPendingTasks``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPendingTasks`: []TaskStatus - fmt.Fprintf(os.Stdout, "Response from `TaskManagementAPI.GetPendingTasks`: %v\n", resp) + //resp, r, err := apiClient.V2025.TaskManagementAPI.GetPendingTasks(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaskManagementAPI.GetPendingTasks``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPendingTasks`: []TaskStatus + fmt.Fprintf(os.Stdout, "Response from `TaskManagementAPI.GetPendingTasks`: %v\n", resp) } ``` @@ -231,7 +232,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -240,18 +241,18 @@ func main() { id := `00eebcf881994e419d72e757fd30dc0e` // string | Task ID. # string | Task ID. xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TaskManagementAPI.GetTaskStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.TaskManagementAPI.GetTaskStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaskManagementAPI.GetTaskStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetTaskStatus`: TaskStatus - fmt.Fprintf(os.Stdout, "Response from `TaskManagementAPI.GetTaskStatus`: %v\n", resp) + //resp, r, err := apiClient.V2025.TaskManagementAPI.GetTaskStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaskManagementAPI.GetTaskStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTaskStatus`: TaskStatus + fmt.Fprintf(os.Stdout, "Response from `TaskManagementAPI.GetTaskStatus`: %v\n", resp) } ``` @@ -311,7 +312,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -324,18 +325,18 @@ func main() { filters := `completionStatus eq "Success"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **sourceId**: *eq, in* **completionStatus**: *eq, in* **type**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **sourceId**: *eq, in* **completionStatus**: *eq, in* **type**: *eq, in* (optional) sorters := `-created` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TaskManagementAPI.GetTaskStatusList(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.TaskManagementAPI.GetTaskStatusList(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaskManagementAPI.GetTaskStatusList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetTaskStatusList`: []TaskStatus - fmt.Fprintf(os.Stdout, "Response from `TaskManagementAPI.GetTaskStatusList`: %v\n", resp) + //resp, r, err := apiClient.V2025.TaskManagementAPI.GetTaskStatusList(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaskManagementAPI.GetTaskStatusList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTaskStatusList`: []TaskStatus + fmt.Fprintf(os.Stdout, "Response from `TaskManagementAPI.GetTaskStatusList`: %v\n", resp) } ``` @@ -395,7 +396,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -405,24 +406,23 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") jsonpatchoperation := []byte(``) // []JsonPatchOperation | The JSONPatch payload used to update the object. - - var jsonPatchOperation v2025.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2025.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TaskManagementAPI.UpdateTaskStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2025.TaskManagementAPI.UpdateTaskStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaskManagementAPI.UpdateTaskStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateTaskStatus`: TaskStatus - fmt.Fprintf(os.Stdout, "Response from `TaskManagementAPI.UpdateTaskStatus`: %v\n", resp) + //resp, r, err := apiClient.V2025.TaskManagementAPI.UpdateTaskStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaskManagementAPI.UpdateTaskStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateTaskStatus`: TaskStatus + fmt.Fprintf(os.Stdout, "Response from `TaskManagementAPI.UpdateTaskStatus`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/TenantAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/TenantAPI.md index 8c96678d2..e2b6d36aa 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/TenantAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/TenantAPI.md @@ -51,25 +51,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TenantAPI.GetTenant(context.Background()).Execute() - //resp, r, err := apiClient.V2025.TenantAPI.GetTenant(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenantAPI.GetTenant``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetTenant`: Tenant - fmt.Fprintf(os.Stdout, "Response from `TenantAPI.GetTenant`: %v\n", resp) + //resp, r, err := apiClient.V2025.TenantAPI.GetTenant(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TenantAPI.GetTenant``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTenant`: Tenant + fmt.Fprintf(os.Stdout, "Response from `TenantAPI.GetTenant`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/TenantContextAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/TenantContextAPI.md index 23982e353..aa30e315c 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/TenantContextAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/TenantContextAPI.md @@ -70,7 +70,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -78,18 +78,18 @@ import ( func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TenantContextAPI.GetTenantContext(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.TenantContextAPI.GetTenantContext(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenantContextAPI.GetTenantContext``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetTenantContext`: []GetTenantContext200ResponseInner - fmt.Fprintf(os.Stdout, "Response from `TenantContextAPI.GetTenantContext`: %v\n", resp) + //resp, r, err := apiClient.V2025.TenantContextAPI.GetTenantContext(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TenantContextAPI.GetTenantContext``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTenantContext`: []GetTenantContext200ResponseInner + fmt.Fprintf(os.Stdout, "Response from `TenantContextAPI.GetTenantContext`: %v\n", resp) } ``` @@ -149,7 +149,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -162,22 +162,22 @@ func main() { "value" : "New description" }`) // JsonPatchOperation | - - var jsonPatchOperation v2025.JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation v2025.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.TenantContextAPI.PatchTenantContext(context.Background()).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() - //r, err := apiClient.V2025.TenantContextAPI.PatchTenantContext(context.Background()).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenantContextAPI.PatchTenantContext``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.TenantContextAPI.PatchTenantContext(context.Background()).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TenantContextAPI.PatchTenantContext``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/TransformsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/TransformsAPI.md index 36ddd3de7..fb2e6ecb9 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/TransformsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/TransformsAPI.md @@ -64,7 +64,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -76,24 +76,23 @@ func main() { "type" : "dateFormat" }`) // Transform | The transform to be created. - - var transform v2025.Transform - if err := json.Unmarshal(transform, &transform); err != nil { - fmt.Println("Error:", err) - return - } - + var transform v2025.Transform + if err := json.Unmarshal(transform, &transform); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TransformsAPI.CreateTransform(context.Background()).Transform(transform).Execute() - //resp, r, err := apiClient.V2025.TransformsAPI.CreateTransform(context.Background()).Transform(transform).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.CreateTransform``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateTransform`: TransformRead - fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.CreateTransform`: %v\n", resp) + //resp, r, err := apiClient.V2025.TransformsAPI.CreateTransform(context.Background()).Transform(transform).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.CreateTransform``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateTransform`: TransformRead + fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.CreateTransform`: %v\n", resp) } ``` @@ -140,7 +139,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -148,16 +147,17 @@ import ( func main() { id := `2cd78adghjkja34jh2b1hkjhasuecd` // string | ID of the transform to delete # string | ID of the transform to delete - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.TransformsAPI.DeleteTransform(context.Background(), id).Execute() - //r, err := apiClient.V2025.TransformsAPI.DeleteTransform(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.DeleteTransform``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.TransformsAPI.DeleteTransform(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.DeleteTransform``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -204,7 +204,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -212,18 +212,18 @@ import ( func main() { id := `2cd78adghjkja34jh2b1hkjhasuecd` // string | ID of the transform to retrieve # string | ID of the transform to retrieve - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TransformsAPI.GetTransform(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.TransformsAPI.GetTransform(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.GetTransform``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetTransform`: TransformRead - fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.GetTransform`: %v\n", resp) + //resp, r, err := apiClient.V2025.TransformsAPI.GetTransform(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.GetTransform``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTransform`: TransformRead + fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.GetTransform`: %v\n", resp) } ``` @@ -270,7 +270,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -282,18 +282,18 @@ func main() { name := `ExampleTransformName123` // string | Name of the transform to retrieve from the list. (optional) # string | Name of the transform to retrieve from the list. (optional) filters := `name eq "Uppercase"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **internal**: *eq* **name**: *eq, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **internal**: *eq* **name**: *eq, sw* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TransformsAPI.ListTransforms(context.Background()).Execute() - //resp, r, err := apiClient.V2025.TransformsAPI.ListTransforms(context.Background()).Offset(offset).Limit(limit).Count(count).Name(name).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.ListTransforms``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListTransforms`: []TransformRead - fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.ListTransforms`: %v\n", resp) + //resp, r, err := apiClient.V2025.TransformsAPI.ListTransforms(context.Background()).Offset(offset).Limit(limit).Count(count).Name(name).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.ListTransforms``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListTransforms`: []TransformRead + fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.ListTransforms`: %v\n", resp) } ``` @@ -341,7 +341,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -354,18 +354,18 @@ func main() { "type" : "dateFormat" }`) // Transform | The updated transform object. Must include \"name\", \"type\", and \"attributes\" fields, but \"name\" and \"type\" must not be modified. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TransformsAPI.UpdateTransform(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.TransformsAPI.UpdateTransform(context.Background(), id).Transform(transform).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.UpdateTransform``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateTransform`: TransformRead - fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.UpdateTransform`: %v\n", resp) + //resp, r, err := apiClient.V2025.TransformsAPI.UpdateTransform(context.Background(), id).Transform(transform).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.UpdateTransform``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateTransform`: TransformRead + fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.UpdateTransform`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/TriggersAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/TriggersAPI.md index 69c297fe4..76335556e 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/TriggersAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/TriggersAPI.md @@ -122,7 +122,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -138,22 +138,22 @@ func main() { "error" : "Access request is denied." }`) // CompleteInvocation | - - var completeInvocation v2025.CompleteInvocation - if err := json.Unmarshal(completeinvocation, &completeInvocation); err != nil { - fmt.Println("Error:", err) - return - } - + var completeInvocation v2025.CompleteInvocation + if err := json.Unmarshal(completeinvocation, &completeInvocation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.TriggersAPI.CompleteTriggerInvocation(context.Background(), id).XSailPointExperimental(xSailPointExperimental).CompleteInvocation(completeInvocation).Execute() - //r, err := apiClient.V2025.TriggersAPI.CompleteTriggerInvocation(context.Background(), id).XSailPointExperimental(xSailPointExperimental).CompleteInvocation(completeInvocation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.CompleteTriggerInvocation``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.TriggersAPI.CompleteTriggerInvocation(context.Background(), id).XSailPointExperimental(xSailPointExperimental).CompleteInvocation(completeInvocation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.CompleteTriggerInvocation``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -210,7 +210,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -243,24 +243,23 @@ func main() { "enabled" : true }`) // SubscriptionPostRequest | - - var subscriptionPostRequest v2025.SubscriptionPostRequest - if err := json.Unmarshal(subscriptionpostrequest, &subscriptionPostRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var subscriptionPostRequest v2025.SubscriptionPostRequest + if err := json.Unmarshal(subscriptionpostrequest, &subscriptionPostRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TriggersAPI.CreateSubscription(context.Background()).XSailPointExperimental(xSailPointExperimental).SubscriptionPostRequest(subscriptionPostRequest).Execute() - //resp, r, err := apiClient.V2025.TriggersAPI.CreateSubscription(context.Background()).XSailPointExperimental(xSailPointExperimental).SubscriptionPostRequest(subscriptionPostRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.CreateSubscription``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSubscription`: Subscription - fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.CreateSubscription`: %v\n", resp) + //resp, r, err := apiClient.V2025.TriggersAPI.CreateSubscription(context.Background()).XSailPointExperimental(xSailPointExperimental).SubscriptionPostRequest(subscriptionPostRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.CreateSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSubscription`: Subscription + fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.CreateSubscription`: %v\n", resp) } ``` @@ -319,7 +318,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -328,16 +327,17 @@ func main() { id := `0f11f2a4-7c94-4bf3-a2bd-742580fe3bde` // string | Subscription ID # string | Subscription ID xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.TriggersAPI.DeleteSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - //r, err := apiClient.V2025.TriggersAPI.DeleteSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.DeleteSubscription``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.TriggersAPI.DeleteSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.DeleteSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -396,7 +396,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -409,18 +409,18 @@ func main() { filters := `id eq "12cff757-c0c0-413b-8ad7-2a47956d1e89"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* **triggerId**: *eq* **type**: *eq, le* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* **triggerId**: *eq* **type**: *eq, le* (optional) sorters := `triggerName` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **triggerId, triggerName** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **triggerId, triggerName** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TriggersAPI.ListSubscriptions(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.TriggersAPI.ListSubscriptions(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.ListSubscriptions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListSubscriptions`: []Subscription - fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.ListSubscriptions`: %v\n", resp) + //resp, r, err := apiClient.V2025.TriggersAPI.ListSubscriptions(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.ListSubscriptions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListSubscriptions`: []Subscription + fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.ListSubscriptions`: %v\n", resp) } ``` @@ -481,7 +481,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -494,18 +494,18 @@ func main() { filters := `triggerId eq "idn:access-request-dynamic-approver"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **triggerId**: *eq* **subscriptionId**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **triggerId**: *eq* **subscriptionId**: *eq* (optional) sorters := `created` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **triggerId, subscriptionName, created, completed** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **triggerId, subscriptionName, created, completed** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TriggersAPI.ListTriggerInvocationStatus(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.TriggersAPI.ListTriggerInvocationStatus(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.ListTriggerInvocationStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListTriggerInvocationStatus`: []InvocationStatus - fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.ListTriggerInvocationStatus`: %v\n", resp) + //resp, r, err := apiClient.V2025.TriggersAPI.ListTriggerInvocationStatus(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.ListTriggerInvocationStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListTriggerInvocationStatus`: []InvocationStatus + fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.ListTriggerInvocationStatus`: %v\n", resp) } ``` @@ -564,7 +564,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -577,18 +577,18 @@ func main() { filters := `id eq "idn:access-request-post-approval"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, ge, le* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, ge, le* (optional) sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TriggersAPI.ListTriggers(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.TriggersAPI.ListTriggers(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.ListTriggers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListTriggers`: []Trigger - fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.ListTriggers`: %v\n", resp) + //resp, r, err := apiClient.V2025.TriggersAPI.ListTriggers(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.ListTriggers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListTriggers`: []Trigger + fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.ListTriggers`: %v\n", resp) } ``` @@ -650,7 +650,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -660,24 +660,23 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") subscriptionpatchrequestinner := []byte(``) // []SubscriptionPatchRequestInner | - - var subscriptionPatchRequestInner v2025.[]SubscriptionPatchRequestInner - if err := json.Unmarshal(subscriptionpatchrequestinner, &subscriptionPatchRequestInner); err != nil { - fmt.Println("Error:", err) - return - } - + var subscriptionPatchRequestInner []v2025.SubscriptionPatchRequestInner + if err := json.Unmarshal(subscriptionpatchrequestinner, &subscriptionPatchRequestInner); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TriggersAPI.PatchSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SubscriptionPatchRequestInner(subscriptionPatchRequestInner).Execute() - //resp, r, err := apiClient.V2025.TriggersAPI.PatchSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SubscriptionPatchRequestInner(subscriptionPatchRequestInner).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.PatchSubscription``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchSubscription`: Subscription - fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.PatchSubscription`: %v\n", resp) + //resp, r, err := apiClient.V2025.TriggersAPI.PatchSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SubscriptionPatchRequestInner(subscriptionPatchRequestInner).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.PatchSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchSubscription`: Subscription + fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.PatchSubscription`: %v\n", resp) } ``` @@ -732,7 +731,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -750,24 +749,23 @@ func main() { } }`) // TestInvocation | - - var testInvocation v2025.TestInvocation - if err := json.Unmarshal(testinvocation, &testInvocation); err != nil { - fmt.Println("Error:", err) - return - } - + var testInvocation v2025.TestInvocation + if err := json.Unmarshal(testinvocation, &testInvocation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TriggersAPI.StartTestTriggerInvocation(context.Background()).XSailPointExperimental(xSailPointExperimental).TestInvocation(testInvocation).Execute() - //resp, r, err := apiClient.V2025.TriggersAPI.StartTestTriggerInvocation(context.Background()).XSailPointExperimental(xSailPointExperimental).TestInvocation(testInvocation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.StartTestTriggerInvocation``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartTestTriggerInvocation`: []Invocation - fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.StartTestTriggerInvocation`: %v\n", resp) + //resp, r, err := apiClient.V2025.TriggersAPI.StartTestTriggerInvocation(context.Background()).XSailPointExperimental(xSailPointExperimental).TestInvocation(testInvocation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.StartTestTriggerInvocation``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartTestTriggerInvocation`: []Invocation + fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.StartTestTriggerInvocation`: %v\n", resp) } ``` @@ -823,7 +821,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -837,24 +835,23 @@ func main() { } }`) // ValidateFilterInputDto | - - var validateFilterInputDto v2025.ValidateFilterInputDto - if err := json.Unmarshal(validatefilterinputdto, &validateFilterInputDto); err != nil { - fmt.Println("Error:", err) - return - } - + var validateFilterInputDto v2025.ValidateFilterInputDto + if err := json.Unmarshal(validatefilterinputdto, &validateFilterInputDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TriggersAPI.TestSubscriptionFilter(context.Background()).XSailPointExperimental(xSailPointExperimental).ValidateFilterInputDto(validateFilterInputDto).Execute() - //resp, r, err := apiClient.V2025.TriggersAPI.TestSubscriptionFilter(context.Background()).XSailPointExperimental(xSailPointExperimental).ValidateFilterInputDto(validateFilterInputDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.TestSubscriptionFilter``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `TestSubscriptionFilter`: ValidateFilterOutputDto - fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.TestSubscriptionFilter`: %v\n", resp) + //resp, r, err := apiClient.V2025.TriggersAPI.TestSubscriptionFilter(context.Background()).XSailPointExperimental(xSailPointExperimental).ValidateFilterInputDto(validateFilterInputDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.TestSubscriptionFilter``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TestSubscriptionFilter`: ValidateFilterOutputDto + fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.TestSubscriptionFilter`: %v\n", resp) } ``` @@ -923,7 +920,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -956,24 +953,23 @@ func main() { "enabled" : true }`) // SubscriptionPutRequest | - - var subscriptionPutRequest v2025.SubscriptionPutRequest - if err := json.Unmarshal(subscriptionputrequest, &subscriptionPutRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var subscriptionPutRequest v2025.SubscriptionPutRequest + if err := json.Unmarshal(subscriptionputrequest, &subscriptionPutRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TriggersAPI.UpdateSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SubscriptionPutRequest(subscriptionPutRequest).Execute() - //resp, r, err := apiClient.V2025.TriggersAPI.UpdateSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SubscriptionPutRequest(subscriptionPutRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.UpdateSubscription``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateSubscription`: Subscription - fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.UpdateSubscription`: %v\n", resp) + //resp, r, err := apiClient.V2025.TriggersAPI.UpdateSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SubscriptionPutRequest(subscriptionPutRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TriggersAPI.UpdateSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateSubscription`: Subscription + fmt.Fprintf(os.Stdout, "Response from `TriggersAPI.UpdateSubscription`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/UIMetadataAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/UIMetadataAPI.md index c19e55c9b..226cc100d 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/UIMetadataAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/UIMetadataAPI.md @@ -68,7 +68,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -76,18 +76,18 @@ import ( func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.UIMetadataAPI.GetTenantUiMetadata(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.UIMetadataAPI.GetTenantUiMetadata(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UIMetadataAPI.GetTenantUiMetadata``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetTenantUiMetadata`: TenantUiMetadataItemResponse - fmt.Fprintf(os.Stdout, "Response from `UIMetadataAPI.GetTenantUiMetadata`: %v\n", resp) + //resp, r, err := apiClient.V2025.UIMetadataAPI.GetTenantUiMetadata(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UIMetadataAPI.GetTenantUiMetadata``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTenantUiMetadata`: TenantUiMetadataItemResponse + fmt.Fprintf(os.Stdout, "Response from `UIMetadataAPI.GetTenantUiMetadata`: %v\n", resp) } ``` @@ -142,7 +142,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -155,24 +155,23 @@ func main() { "iframeWhiteList" : "http://example.com http://example2.com" }`) // TenantUiMetadataItemUpdateRequest | - - var tenantUiMetadataItemUpdateRequest v2025.TenantUiMetadataItemUpdateRequest - if err := json.Unmarshal(tenantuimetadataitemupdaterequest, &tenantUiMetadataItemUpdateRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var tenantUiMetadataItemUpdateRequest v2025.TenantUiMetadataItemUpdateRequest + if err := json.Unmarshal(tenantuimetadataitemupdaterequest, &tenantUiMetadataItemUpdateRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.UIMetadataAPI.SetTenantUiMetadata(context.Background()).XSailPointExperimental(xSailPointExperimental).TenantUiMetadataItemUpdateRequest(tenantUiMetadataItemUpdateRequest).Execute() - //resp, r, err := apiClient.V2025.UIMetadataAPI.SetTenantUiMetadata(context.Background()).XSailPointExperimental(xSailPointExperimental).TenantUiMetadataItemUpdateRequest(tenantUiMetadataItemUpdateRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UIMetadataAPI.SetTenantUiMetadata``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetTenantUiMetadata`: TenantUiMetadataItemResponse - fmt.Fprintf(os.Stdout, "Response from `UIMetadataAPI.SetTenantUiMetadata`: %v\n", resp) + //resp, r, err := apiClient.V2025.UIMetadataAPI.SetTenantUiMetadata(context.Background()).XSailPointExperimental(xSailPointExperimental).TenantUiMetadataItemUpdateRequest(tenantUiMetadataItemUpdateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UIMetadataAPI.SetTenantUiMetadata``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetTenantUiMetadata`: TenantUiMetadataItemResponse + fmt.Fprintf(os.Stdout, "Response from `UIMetadataAPI.SetTenantUiMetadata`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/VendorConnectorMappingsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/VendorConnectorMappingsAPI.md index 793ecf548..c2aa20dd9 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/VendorConnectorMappingsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/VendorConnectorMappingsAPI.md @@ -62,7 +62,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -92,24 +92,23 @@ func main() { } }`) // VendorConnectorMapping | - - var vendorConnectorMapping v2025.VendorConnectorMapping - if err := json.Unmarshal(vendorconnectormapping, &vendorConnectorMapping); err != nil { - fmt.Println("Error:", err) - return - } - + var vendorConnectorMapping v2025.VendorConnectorMapping + if err := json.Unmarshal(vendorconnectormapping, &vendorConnectorMapping); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.VendorConnectorMappingsAPI.CreateVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() - //resp, r, err := apiClient.V2025.VendorConnectorMappingsAPI.CreateVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VendorConnectorMappingsAPI.CreateVendorConnectorMapping``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateVendorConnectorMapping`: VendorConnectorMapping - fmt.Fprintf(os.Stdout, "Response from `VendorConnectorMappingsAPI.CreateVendorConnectorMapping`: %v\n", resp) + //resp, r, err := apiClient.V2025.VendorConnectorMappingsAPI.CreateVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VendorConnectorMappingsAPI.CreateVendorConnectorMapping``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateVendorConnectorMapping`: VendorConnectorMapping + fmt.Fprintf(os.Stdout, "Response from `VendorConnectorMappingsAPI.CreateVendorConnectorMapping`: %v\n", resp) } ``` @@ -153,7 +152,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -183,24 +182,23 @@ func main() { } }`) // VendorConnectorMapping | - - var vendorConnectorMapping v2025.VendorConnectorMapping - if err := json.Unmarshal(vendorconnectormapping, &vendorConnectorMapping); err != nil { - fmt.Println("Error:", err) - return - } - + var vendorConnectorMapping v2025.VendorConnectorMapping + if err := json.Unmarshal(vendorconnectormapping, &vendorConnectorMapping); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.VendorConnectorMappingsAPI.DeleteVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() - //resp, r, err := apiClient.V2025.VendorConnectorMappingsAPI.DeleteVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VendorConnectorMappingsAPI.DeleteVendorConnectorMapping``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteVendorConnectorMapping`: DeleteVendorConnectorMapping200Response - fmt.Fprintf(os.Stdout, "Response from `VendorConnectorMappingsAPI.DeleteVendorConnectorMapping`: %v\n", resp) + //resp, r, err := apiClient.V2025.VendorConnectorMappingsAPI.DeleteVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VendorConnectorMappingsAPI.DeleteVendorConnectorMapping``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteVendorConnectorMapping`: DeleteVendorConnectorMapping200Response + fmt.Fprintf(os.Stdout, "Response from `VendorConnectorMappingsAPI.DeleteVendorConnectorMapping`: %v\n", resp) } ``` @@ -240,25 +238,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.VendorConnectorMappingsAPI.GetVendorConnectorMappings(context.Background()).Execute() - //resp, r, err := apiClient.V2025.VendorConnectorMappingsAPI.GetVendorConnectorMappings(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VendorConnectorMappingsAPI.GetVendorConnectorMappings``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetVendorConnectorMappings`: []VendorConnectorMapping - fmt.Fprintf(os.Stdout, "Response from `VendorConnectorMappingsAPI.GetVendorConnectorMappings`: %v\n", resp) + //resp, r, err := apiClient.V2025.VendorConnectorMappingsAPI.GetVendorConnectorMappings(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VendorConnectorMappingsAPI.GetVendorConnectorMappings``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetVendorConnectorMappings`: []VendorConnectorMapping + fmt.Fprintf(os.Stdout, "Response from `VendorConnectorMappingsAPI.GetVendorConnectorMappings`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/WorkItemsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/WorkItemsAPI.md index bf2ee38e1..29e9b6abc 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/WorkItemsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/WorkItemsAPI.md @@ -87,7 +87,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -96,18 +96,18 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item approvalItemId := `1211bcaa32112bcef6122adb21cef1ac` // string | The ID of the approval item. # string | The ID of the approval item. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkItemsAPI.ApproveApprovalItem(context.Background(), id, approvalItemId).Execute() - //resp, r, err := apiClient.V2025.WorkItemsAPI.ApproveApprovalItem(context.Background(), id, approvalItemId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.ApproveApprovalItem``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ApproveApprovalItem`: WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.ApproveApprovalItem`: %v\n", resp) + //resp, r, err := apiClient.V2025.WorkItemsAPI.ApproveApprovalItem(context.Background(), id, approvalItemId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.ApproveApprovalItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApproveApprovalItem`: WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.ApproveApprovalItem`: %v\n", resp) } ``` @@ -154,7 +154,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -162,18 +162,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkItemsAPI.ApproveApprovalItemsInBulk(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.WorkItemsAPI.ApproveApprovalItemsInBulk(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.ApproveApprovalItemsInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ApproveApprovalItemsInBulk`: WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.ApproveApprovalItemsInBulk`: %v\n", resp) + //resp, r, err := apiClient.V2025.WorkItemsAPI.ApproveApprovalItemsInBulk(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.ApproveApprovalItemsInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApproveApprovalItemsInBulk`: WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.ApproveApprovalItemsInBulk`: %v\n", resp) } ``` @@ -221,7 +221,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -230,18 +230,18 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item body := `body_example` // string | Body is the request payload to create form definition request (optional) # string | Body is the request payload to create form definition request (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkItemsAPI.CompleteWorkItem(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.WorkItemsAPI.CompleteWorkItem(context.Background(), id).Body(body).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.CompleteWorkItem``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CompleteWorkItem`: WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.CompleteWorkItem`: %v\n", resp) + //resp, r, err := apiClient.V2025.WorkItemsAPI.CompleteWorkItem(context.Background(), id).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.CompleteWorkItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CompleteWorkItem`: WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.CompleteWorkItem`: %v\n", resp) } ``` @@ -301,7 +301,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -315,22 +315,22 @@ func main() { "sendNotifications" : true }`) // WorkItemForward | - - var workItemForward v2025.WorkItemForward - if err := json.Unmarshal(workitemforward, &workItemForward); err != nil { - fmt.Println("Error:", err) - return - } - + var workItemForward v2025.WorkItemForward + if err := json.Unmarshal(workitemforward, &workItemForward); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.WorkItemsAPI.ForwardWorkItem(context.Background(), id).XSailPointExperimental(xSailPointExperimental).WorkItemForward(workItemForward).Execute() - //r, err := apiClient.V2025.WorkItemsAPI.ForwardWorkItem(context.Background(), id).XSailPointExperimental(xSailPointExperimental).WorkItemForward(workItemForward).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.ForwardWorkItem``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.WorkItemsAPI.ForwardWorkItem(context.Background(), id).XSailPointExperimental(xSailPointExperimental).WorkItemForward(workItemForward).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.ForwardWorkItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -376,7 +376,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -387,18 +387,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkItemsAPI.GetCompletedWorkItems(context.Background()).Execute() - //resp, r, err := apiClient.V2025.WorkItemsAPI.GetCompletedWorkItems(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetCompletedWorkItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCompletedWorkItems`: []WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetCompletedWorkItems`: %v\n", resp) + //resp, r, err := apiClient.V2025.WorkItemsAPI.GetCompletedWorkItems(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetCompletedWorkItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCompletedWorkItems`: []WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetCompletedWorkItems`: %v\n", resp) } ``` @@ -453,7 +453,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -462,18 +462,18 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") ownerId := `ownerId_example` // string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkItemsAPI.GetCountCompletedWorkItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.WorkItemsAPI.GetCountCompletedWorkItems(context.Background()).XSailPointExperimental(xSailPointExperimental).OwnerId(ownerId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetCountCompletedWorkItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCountCompletedWorkItems`: WorkItemsCount - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetCountCompletedWorkItems`: %v\n", resp) + //resp, r, err := apiClient.V2025.WorkItemsAPI.GetCountCompletedWorkItems(context.Background()).XSailPointExperimental(xSailPointExperimental).OwnerId(ownerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetCountCompletedWorkItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCountCompletedWorkItems`: WorkItemsCount + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetCountCompletedWorkItems`: %v\n", resp) } ``` @@ -516,7 +516,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -524,18 +524,18 @@ import ( func main() { ownerId := `ef38f94347e94562b5bb8424a56397d8` // string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkItemsAPI.GetCountWorkItems(context.Background()).Execute() - //resp, r, err := apiClient.V2025.WorkItemsAPI.GetCountWorkItems(context.Background()).OwnerId(ownerId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetCountWorkItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCountWorkItems`: WorkItemsCount - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetCountWorkItems`: %v\n", resp) + //resp, r, err := apiClient.V2025.WorkItemsAPI.GetCountWorkItems(context.Background()).OwnerId(ownerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetCountWorkItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCountWorkItems`: WorkItemsCount + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetCountWorkItems`: %v\n", resp) } ``` @@ -582,7 +582,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -590,18 +590,18 @@ import ( func main() { id := `2c9180835d191a86015d28455b4a2329` // string | ID of the work item. # string | ID of the work item. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkItemsAPI.GetWorkItem(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.WorkItemsAPI.GetWorkItem(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetWorkItem``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetWorkItem`: WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetWorkItem`: %v\n", resp) + //resp, r, err := apiClient.V2025.WorkItemsAPI.GetWorkItem(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetWorkItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkItem`: WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetWorkItem`: %v\n", resp) } ``` @@ -644,7 +644,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -652,18 +652,18 @@ import ( func main() { ownerId := `1211bcaa32112bcef6122adb21cef1ac` // string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkItemsAPI.GetWorkItemsSummary(context.Background()).Execute() - //resp, r, err := apiClient.V2025.WorkItemsAPI.GetWorkItemsSummary(context.Background()).OwnerId(ownerId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetWorkItemsSummary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetWorkItemsSummary`: WorkItemsSummary - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetWorkItemsSummary`: %v\n", resp) + //resp, r, err := apiClient.V2025.WorkItemsAPI.GetWorkItemsSummary(context.Background()).OwnerId(ownerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetWorkItemsSummary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkItemsSummary`: WorkItemsSummary + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetWorkItemsSummary`: %v\n", resp) } ``` @@ -709,7 +709,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -720,18 +720,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) ownerId := `1211bcaa32112bcef6122adb21cef1ac` // string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkItemsAPI.ListWorkItems(context.Background()).Execute() - //resp, r, err := apiClient.V2025.WorkItemsAPI.ListWorkItems(context.Background()).Limit(limit).Offset(offset).Count(count).OwnerId(ownerId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.ListWorkItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListWorkItems`: []WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.ListWorkItems`: %v\n", resp) + //resp, r, err := apiClient.V2025.WorkItemsAPI.ListWorkItems(context.Background()).Limit(limit).Offset(offset).Count(count).OwnerId(ownerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.ListWorkItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListWorkItems`: []WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.ListWorkItems`: %v\n", resp) } ``` @@ -780,7 +780,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -789,18 +789,18 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item approvalItemId := `1211bcaa32112bcef6122adb21cef1ac` // string | The ID of the approval item. # string | The ID of the approval item. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkItemsAPI.RejectApprovalItem(context.Background(), id, approvalItemId).Execute() - //resp, r, err := apiClient.V2025.WorkItemsAPI.RejectApprovalItem(context.Background(), id, approvalItemId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.RejectApprovalItem``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `RejectApprovalItem`: WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.RejectApprovalItem`: %v\n", resp) + //resp, r, err := apiClient.V2025.WorkItemsAPI.RejectApprovalItem(context.Background(), id, approvalItemId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.RejectApprovalItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RejectApprovalItem`: WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.RejectApprovalItem`: %v\n", resp) } ``` @@ -847,7 +847,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -855,18 +855,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkItemsAPI.RejectApprovalItemsInBulk(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.WorkItemsAPI.RejectApprovalItemsInBulk(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.RejectApprovalItemsInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `RejectApprovalItemsInBulk`: WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.RejectApprovalItemsInBulk`: %v\n", resp) + //resp, r, err := apiClient.V2025.WorkItemsAPI.RejectApprovalItemsInBulk(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.RejectApprovalItemsInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RejectApprovalItemsInBulk`: WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.RejectApprovalItemsInBulk`: %v\n", resp) } ``` @@ -914,7 +914,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -923,24 +923,23 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item requestBody := {fieldName=fieldValue} // map[string]interface{} | Account Selection Data map, keyed on fieldName # map[string]interface{} | Account Selection Data map, keyed on fieldName - - var requestBody v2025.RequestBody - if err := json.Unmarshal(requestbody, &requestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var requestBody v2025.RequestBody + if err := json.Unmarshal(requestbody, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkItemsAPI.SubmitAccountSelection(context.Background(), id).RequestBody(requestBody).Execute() - //resp, r, err := apiClient.V2025.WorkItemsAPI.SubmitAccountSelection(context.Background(), id).RequestBody(requestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.SubmitAccountSelection``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SubmitAccountSelection`: WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.SubmitAccountSelection`: %v\n", resp) + //resp, r, err := apiClient.V2025.WorkItemsAPI.SubmitAccountSelection(context.Background(), id).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.SubmitAccountSelection``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SubmitAccountSelection`: WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.SubmitAccountSelection`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/WorkReassignmentAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/WorkReassignmentAPI.md index cc94efcb7..e0568d83d 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/WorkReassignmentAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/WorkReassignmentAPI.md @@ -85,7 +85,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -100,24 +100,23 @@ func main() { "startDate" : "2022-07-21T11:13:12.345Z" }`) // ConfigurationItemRequest | - - var configurationItemRequest v2025.ConfigurationItemRequest - if err := json.Unmarshal(configurationitemrequest, &configurationItemRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var configurationItemRequest v2025.ConfigurationItemRequest + if err := json.Unmarshal(configurationitemrequest, &configurationItemRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkReassignmentAPI.CreateReassignmentConfiguration(context.Background()).XSailPointExperimental(xSailPointExperimental).ConfigurationItemRequest(configurationItemRequest).Execute() - //resp, r, err := apiClient.V2025.WorkReassignmentAPI.CreateReassignmentConfiguration(context.Background()).XSailPointExperimental(xSailPointExperimental).ConfigurationItemRequest(configurationItemRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.CreateReassignmentConfiguration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateReassignmentConfiguration`: ConfigurationItemResponse - fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.CreateReassignmentConfiguration`: %v\n", resp) + //resp, r, err := apiClient.V2025.WorkReassignmentAPI.CreateReassignmentConfiguration(context.Background()).XSailPointExperimental(xSailPointExperimental).ConfigurationItemRequest(configurationItemRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.CreateReassignmentConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateReassignmentConfiguration`: ConfigurationItemResponse + fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.CreateReassignmentConfiguration`: %v\n", resp) } ``` @@ -178,7 +177,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -188,16 +187,17 @@ func main() { configType := // ConfigTypeEnum | # ConfigTypeEnum | xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.WorkReassignmentAPI.DeleteReassignmentConfiguration(context.Background(), identityId, configType).XSailPointExperimental(xSailPointExperimental).Execute() - //r, err := apiClient.V2025.WorkReassignmentAPI.DeleteReassignmentConfiguration(context.Background(), identityId, configType).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.DeleteReassignmentConfiguration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.WorkReassignmentAPI.DeleteReassignmentConfiguration(context.Background(), identityId, configType).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.DeleteReassignmentConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -259,7 +259,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -270,18 +270,18 @@ func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") exclusionfilters := []byte(`SELF_REVIEW_DELEGATION`) // []string | Exclusion filters that disable parts of the reassignment evaluation. Possible values are listed below: - `SELF_REVIEW_DELEGATION`: This will exclude delegations of self-review reassignments (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkReassignmentAPI.GetEvaluateReassignmentConfiguration(context.Background(), identityId, configType).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.WorkReassignmentAPI.GetEvaluateReassignmentConfiguration(context.Background(), identityId, configType).XSailPointExperimental(xSailPointExperimental).ExclusionFilters(exclusionFilters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.GetEvaluateReassignmentConfiguration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetEvaluateReassignmentConfiguration`: []EvaluateResponse - fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.GetEvaluateReassignmentConfiguration`: %v\n", resp) + //resp, r, err := apiClient.V2025.WorkReassignmentAPI.GetEvaluateReassignmentConfiguration(context.Background(), identityId, configType).XSailPointExperimental(xSailPointExperimental).ExclusionFilters(exclusionFilters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.GetEvaluateReassignmentConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetEvaluateReassignmentConfiguration`: []EvaluateResponse + fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.GetEvaluateReassignmentConfiguration`: %v\n", resp) } ``` @@ -335,7 +335,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -343,18 +343,18 @@ import ( func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkReassignmentAPI.GetReassignmentConfigTypes(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.WorkReassignmentAPI.GetReassignmentConfigTypes(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.GetReassignmentConfigTypes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetReassignmentConfigTypes`: []ConfigType - fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.GetReassignmentConfigTypes`: %v\n", resp) + //resp, r, err := apiClient.V2025.WorkReassignmentAPI.GetReassignmentConfigTypes(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.GetReassignmentConfigTypes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetReassignmentConfigTypes`: []ConfigType + fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.GetReassignmentConfigTypes`: %v\n", resp) } ``` @@ -413,7 +413,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -422,18 +422,18 @@ func main() { identityId := `2c91808781a71ddb0181b9090b5c504f` // string | unique identity id # string | unique identity id xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkReassignmentAPI.GetReassignmentConfiguration(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.WorkReassignmentAPI.GetReassignmentConfiguration(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.GetReassignmentConfiguration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetReassignmentConfiguration`: ConfigurationResponse - fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.GetReassignmentConfiguration`: %v\n", resp) + //resp, r, err := apiClient.V2025.WorkReassignmentAPI.GetReassignmentConfiguration(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.GetReassignmentConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetReassignmentConfiguration`: ConfigurationResponse + fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.GetReassignmentConfiguration`: %v\n", resp) } ``` @@ -487,7 +487,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -495,18 +495,18 @@ import ( func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkReassignmentAPI.GetTenantConfigConfiguration(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.WorkReassignmentAPI.GetTenantConfigConfiguration(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.GetTenantConfigConfiguration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetTenantConfigConfiguration`: TenantConfigurationResponse - fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.GetTenantConfigConfiguration`: %v\n", resp) + //resp, r, err := apiClient.V2025.WorkReassignmentAPI.GetTenantConfigConfiguration(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.GetTenantConfigConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTenantConfigConfiguration`: TenantConfigurationResponse + fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.GetTenantConfigConfiguration`: %v\n", resp) } ``` @@ -560,7 +560,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -568,18 +568,18 @@ import ( func main() { xSailPointExperimental := `true` // string | Use this header to enable this experimental API. (default to "true") # string | Use this header to enable this experimental API. (default to "true") - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkReassignmentAPI.ListReassignmentConfigurations(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - //resp, r, err := apiClient.V2025.WorkReassignmentAPI.ListReassignmentConfigurations(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.ListReassignmentConfigurations``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListReassignmentConfigurations`: []ConfigurationResponse - fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.ListReassignmentConfigurations`: %v\n", resp) + //resp, r, err := apiClient.V2025.WorkReassignmentAPI.ListReassignmentConfigurations(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.ListReassignmentConfigurations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListReassignmentConfigurations`: []ConfigurationResponse + fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.ListReassignmentConfigurations`: %v\n", resp) } ``` @@ -639,7 +639,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -655,24 +655,23 @@ func main() { "startDate" : "2022-07-21T11:13:12.345Z" }`) // ConfigurationItemRequest | - - var configurationItemRequest v2025.ConfigurationItemRequest - if err := json.Unmarshal(configurationitemrequest, &configurationItemRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var configurationItemRequest v2025.ConfigurationItemRequest + if err := json.Unmarshal(configurationitemrequest, &configurationItemRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkReassignmentAPI.PutReassignmentConfig(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).ConfigurationItemRequest(configurationItemRequest).Execute() - //resp, r, err := apiClient.V2025.WorkReassignmentAPI.PutReassignmentConfig(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).ConfigurationItemRequest(configurationItemRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.PutReassignmentConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutReassignmentConfig`: ConfigurationItemResponse - fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.PutReassignmentConfig`: %v\n", resp) + //resp, r, err := apiClient.V2025.WorkReassignmentAPI.PutReassignmentConfig(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).ConfigurationItemRequest(configurationItemRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.PutReassignmentConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutReassignmentConfig`: ConfigurationItemResponse + fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.PutReassignmentConfig`: %v\n", resp) } ``` @@ -727,7 +726,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -740,24 +739,23 @@ func main() { } }`) // TenantConfigurationRequest | - - var tenantConfigurationRequest v2025.TenantConfigurationRequest - if err := json.Unmarshal(tenantconfigurationrequest, &tenantConfigurationRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var tenantConfigurationRequest v2025.TenantConfigurationRequest + if err := json.Unmarshal(tenantconfigurationrequest, &tenantConfigurationRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkReassignmentAPI.PutTenantConfiguration(context.Background()).XSailPointExperimental(xSailPointExperimental).TenantConfigurationRequest(tenantConfigurationRequest).Execute() - //resp, r, err := apiClient.V2025.WorkReassignmentAPI.PutTenantConfiguration(context.Background()).XSailPointExperimental(xSailPointExperimental).TenantConfigurationRequest(tenantConfigurationRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.PutTenantConfiguration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutTenantConfiguration`: TenantConfigurationResponse - fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.PutTenantConfiguration`: %v\n", resp) + //resp, r, err := apiClient.V2025.WorkReassignmentAPI.PutTenantConfiguration(context.Background()).XSailPointExperimental(xSailPointExperimental).TenantConfigurationRequest(tenantConfigurationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.PutTenantConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutTenantConfiguration`: TenantConfigurationResponse + fmt.Fprintf(os.Stdout, "Response from `WorkReassignmentAPI.PutTenantConfiguration`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Methods/WorkflowsAPI.md b/docs/tools/sdk/go/Reference/V2025/Methods/WorkflowsAPI.md index 743f91904..c4a02a934 100644 --- a/docs/tools/sdk/go/Reference/V2025/Methods/WorkflowsAPI.md +++ b/docs/tools/sdk/go/Reference/V2025/Methods/WorkflowsAPI.md @@ -77,7 +77,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -85,16 +85,17 @@ import ( func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | The workflow execution ID # string | The workflow execution ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.WorkflowsAPI.CancelWorkflowExecution(context.Background(), id).Execute() - //r, err := apiClient.V2025.WorkflowsAPI.CancelWorkflowExecution(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.CancelWorkflowExecution``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.WorkflowsAPI.CancelWorkflowExecution(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.CancelWorkflowExecution``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -142,7 +143,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -151,18 +152,18 @@ func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow createexternalexecuteworkflowrequest := []byte(``) // CreateExternalExecuteWorkflowRequest | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkflowsAPI.CreateExternalExecuteWorkflow(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.WorkflowsAPI.CreateExternalExecuteWorkflow(context.Background(), id).CreateExternalExecuteWorkflowRequest(createExternalExecuteWorkflowRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.CreateExternalExecuteWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateExternalExecuteWorkflow`: CreateExternalExecuteWorkflow200Response - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.CreateExternalExecuteWorkflow`: %v\n", resp) + //resp, r, err := apiClient.V2025.WorkflowsAPI.CreateExternalExecuteWorkflow(context.Background(), id).CreateExternalExecuteWorkflowRequest(createExternalExecuteWorkflowRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.CreateExternalExecuteWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateExternalExecuteWorkflow`: CreateExternalExecuteWorkflow200Response + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.CreateExternalExecuteWorkflow`: %v\n", resp) } ``` @@ -205,7 +206,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -213,24 +214,23 @@ import ( func main() { createworkflowrequest := []byte(`{name=Send Email, owner={type=IDENTITY, id=2c91808568c529c60168cca6f90c1313, name=William Wilson}, description=Send an email to the identity who's attributes changed., definition={start=Send Email Test, steps={Send Email={actionId=sp:send-email, attributes={body=This is a test, from=sailpoint@sailpoint.com, recipientId.$=$.identity.id, subject=test}, nextStep=success, selectResult=null, type=action}, success={type=success}}}, enabled=false, trigger={type=EVENT, attributes={id=idn:identity-attributes-changed, filter=$.changes[?(@.attribute == 'manager')]}}}`) // CreateWorkflowRequest | - - var createWorkflowRequest v2025.CreateWorkflowRequest - if err := json.Unmarshal(createworkflowrequest, &createWorkflowRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var createWorkflowRequest v2025.CreateWorkflowRequest + if err := json.Unmarshal(createworkflowrequest, &createWorkflowRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkflowsAPI.CreateWorkflow(context.Background()).CreateWorkflowRequest(createWorkflowRequest).Execute() - //resp, r, err := apiClient.V2025.WorkflowsAPI.CreateWorkflow(context.Background()).CreateWorkflowRequest(createWorkflowRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.CreateWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateWorkflow`: Workflow - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.CreateWorkflow`: %v\n", resp) + //resp, r, err := apiClient.V2025.WorkflowsAPI.CreateWorkflow(context.Background()).CreateWorkflowRequest(createWorkflowRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.CreateWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateWorkflow`: Workflow + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.CreateWorkflow`: %v\n", resp) } ``` @@ -277,7 +277,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -285,18 +285,18 @@ import ( func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkflowsAPI.CreateWorkflowExternalTrigger(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.WorkflowsAPI.CreateWorkflowExternalTrigger(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.CreateWorkflowExternalTrigger``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateWorkflowExternalTrigger`: WorkflowOAuthClient - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.CreateWorkflowExternalTrigger`: %v\n", resp) + //resp, r, err := apiClient.V2025.WorkflowsAPI.CreateWorkflowExternalTrigger(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.CreateWorkflowExternalTrigger``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateWorkflowExternalTrigger`: WorkflowOAuthClient + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.CreateWorkflowExternalTrigger`: %v\n", resp) } ``` @@ -343,7 +343,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -351,16 +351,17 @@ import ( func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the Workflow # string | Id of the Workflow - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.WorkflowsAPI.DeleteWorkflow(context.Background(), id).Execute() - //r, err := apiClient.V2025.WorkflowsAPI.DeleteWorkflow(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.DeleteWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V2025.WorkflowsAPI.DeleteWorkflow(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.DeleteWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -407,7 +408,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -415,18 +416,18 @@ import ( func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkflowsAPI.GetWorkflow(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.WorkflowsAPI.GetWorkflow(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetWorkflow`: Workflow - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflow`: %v\n", resp) + //resp, r, err := apiClient.V2025.WorkflowsAPI.GetWorkflow(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkflow`: Workflow + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflow`: %v\n", resp) } ``` @@ -473,7 +474,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -481,18 +482,18 @@ import ( func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Workflow execution ID. # string | Workflow execution ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkflowsAPI.GetWorkflowExecution(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.WorkflowsAPI.GetWorkflowExecution(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflowExecution``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetWorkflowExecution`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflowExecution`: %v\n", resp) + //resp, r, err := apiClient.V2025.WorkflowsAPI.GetWorkflowExecution(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflowExecution``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkflowExecution`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflowExecution`: %v\n", resp) } ``` @@ -539,7 +540,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -547,18 +548,18 @@ import ( func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow execution # string | Id of the workflow execution - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkflowsAPI.GetWorkflowExecutionHistory(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.WorkflowsAPI.GetWorkflowExecutionHistory(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflowExecutionHistory``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetWorkflowExecutionHistory`: []WorkflowExecutionEvent - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflowExecutionHistory`: %v\n", resp) + //resp, r, err := apiClient.V2025.WorkflowsAPI.GetWorkflowExecutionHistory(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflowExecutionHistory``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkflowExecutionHistory`: []WorkflowExecutionEvent + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflowExecutionHistory`: %v\n", resp) } ``` @@ -619,7 +620,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -631,18 +632,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) filters := `status eq "Failed"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **start_time**: *eq, lt, le, gt, ge* **status**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **start_time**: *eq, lt, le, gt, ge* **status**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkflowsAPI.GetWorkflowExecutions(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.WorkflowsAPI.GetWorkflowExecutions(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflowExecutions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetWorkflowExecutions`: []WorkflowExecution - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflowExecutions`: %v\n", resp) + //resp, r, err := apiClient.V2025.WorkflowsAPI.GetWorkflowExecutions(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflowExecutions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkflowExecutions`: []WorkflowExecution + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflowExecutions`: %v\n", resp) } ``` @@ -686,7 +687,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -695,18 +696,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkflowsAPI.ListCompleteWorkflowLibrary(context.Background()).Execute() - //resp, r, err := apiClient.V2025.WorkflowsAPI.ListCompleteWorkflowLibrary(context.Background()).Limit(limit).Offset(offset).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListCompleteWorkflowLibrary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListCompleteWorkflowLibrary`: []ListCompleteWorkflowLibrary200ResponseInner - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListCompleteWorkflowLibrary`: %v\n", resp) + //resp, r, err := apiClient.V2025.WorkflowsAPI.ListCompleteWorkflowLibrary(context.Background()).Limit(limit).Offset(offset).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListCompleteWorkflowLibrary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCompleteWorkflowLibrary`: []ListCompleteWorkflowLibrary200ResponseInner + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListCompleteWorkflowLibrary`: %v\n", resp) } ``` @@ -751,7 +752,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -761,18 +762,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) filters := `id eq "sp:create-campaign"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkflowsAPI.ListWorkflowLibraryActions(context.Background()).Execute() - //resp, r, err := apiClient.V2025.WorkflowsAPI.ListWorkflowLibraryActions(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflowLibraryActions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListWorkflowLibraryActions`: []WorkflowLibraryAction - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflowLibraryActions`: %v\n", resp) + //resp, r, err := apiClient.V2025.WorkflowsAPI.ListWorkflowLibraryActions(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflowLibraryActions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListWorkflowLibraryActions`: []WorkflowLibraryAction + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflowLibraryActions`: %v\n", resp) } ``` @@ -811,25 +812,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkflowsAPI.ListWorkflowLibraryOperators(context.Background()).Execute() - //resp, r, err := apiClient.V2025.WorkflowsAPI.ListWorkflowLibraryOperators(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflowLibraryOperators``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListWorkflowLibraryOperators`: []WorkflowLibraryOperator - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflowLibraryOperators`: %v\n", resp) + //resp, r, err := apiClient.V2025.WorkflowsAPI.ListWorkflowLibraryOperators(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflowLibraryOperators``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListWorkflowLibraryOperators`: []WorkflowLibraryOperator + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflowLibraryOperators`: %v\n", resp) } ``` @@ -874,7 +875,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -884,18 +885,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) filters := `id eq "idn:identity-attributes-changed"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkflowsAPI.ListWorkflowLibraryTriggers(context.Background()).Execute() - //resp, r, err := apiClient.V2025.WorkflowsAPI.ListWorkflowLibraryTriggers(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflowLibraryTriggers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListWorkflowLibraryTriggers`: []WorkflowLibraryTrigger - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflowLibraryTriggers`: %v\n", resp) + //resp, r, err := apiClient.V2025.WorkflowsAPI.ListWorkflowLibraryTriggers(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflowLibraryTriggers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListWorkflowLibraryTriggers`: []WorkflowLibraryTrigger + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflowLibraryTriggers`: %v\n", resp) } ``` @@ -934,25 +935,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkflowsAPI.ListWorkflows(context.Background()).Execute() - //resp, r, err := apiClient.V2025.WorkflowsAPI.ListWorkflows(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflows``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListWorkflows`: []Workflow - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflows`: %v\n", resp) + //resp, r, err := apiClient.V2025.WorkflowsAPI.ListWorkflows(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflows``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListWorkflows`: []Workflow + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflows`: %v\n", resp) } ``` @@ -1000,7 +1001,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1009,24 +1010,23 @@ func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the Workflow # string | Id of the Workflow jsonpatchoperation := []byte(`[{op=replace, path=/name, value=Send Email}, {op=replace, path=/owner, value={type=IDENTITY, id=2c91808568c529c60168cca6f90c1313, name=William Wilson}}, {op=replace, path=/description, value=Send an email to the identity who's attributes changed.}, {op=replace, path=/enabled, value=false}, {op=replace, path=/definition, value={start=Send Email Test, steps={Send Email={actionId=sp:send-email, attributes={body=This is a test, from=sailpoint@sailpoint.com, recipientId.$=$.identity.id, subject=test}, nextStep=success, selectResult=null, type=action}, success={type=success}}}}, {op=replace, path=/trigger, value={type=EVENT, attributes={id=idn:identity-attributes-changed}}}]`) // []JsonPatchOperation | - - var jsonPatchOperation v2025.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v2025.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkflowsAPI.PatchWorkflow(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V2025.WorkflowsAPI.PatchWorkflow(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.PatchWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchWorkflow`: Workflow - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.PatchWorkflow`: %v\n", resp) + //resp, r, err := apiClient.V2025.WorkflowsAPI.PatchWorkflow(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.PatchWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchWorkflow`: Workflow + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.PatchWorkflow`: %v\n", resp) } ``` @@ -1074,7 +1074,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1116,24 +1116,23 @@ func main() { "enabled" : false }`) // WorkflowBody | - - var workflowBody v2025.WorkflowBody - if err := json.Unmarshal(workflowbody, &workflowBody); err != nil { - fmt.Println("Error:", err) - return - } - + var workflowBody v2025.WorkflowBody + if err := json.Unmarshal(workflowbody, &workflowBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkflowsAPI.PutWorkflow(context.Background(), id).WorkflowBody(workflowBody).Execute() - //resp, r, err := apiClient.V2025.WorkflowsAPI.PutWorkflow(context.Background(), id).WorkflowBody(workflowBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.PutWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutWorkflow`: Workflow - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.PutWorkflow`: %v\n", resp) + //resp, r, err := apiClient.V2025.WorkflowsAPI.PutWorkflow(context.Background(), id).WorkflowBody(workflowBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.PutWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutWorkflow`: Workflow + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.PutWorkflow`: %v\n", resp) } ``` @@ -1181,7 +1180,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1190,18 +1189,18 @@ func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow testexternalexecuteworkflowrequest := []byte(``) // TestExternalExecuteWorkflowRequest | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkflowsAPI.TestExternalExecuteWorkflow(context.Background(), id).Execute() - //resp, r, err := apiClient.V2025.WorkflowsAPI.TestExternalExecuteWorkflow(context.Background(), id).TestExternalExecuteWorkflowRequest(testExternalExecuteWorkflowRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.TestExternalExecuteWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `TestExternalExecuteWorkflow`: TestExternalExecuteWorkflow200Response - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.TestExternalExecuteWorkflow`: %v\n", resp) + //resp, r, err := apiClient.V2025.WorkflowsAPI.TestExternalExecuteWorkflow(context.Background(), id).TestExternalExecuteWorkflowRequest(testExternalExecuteWorkflowRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.TestExternalExecuteWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TestExternalExecuteWorkflow`: TestExternalExecuteWorkflow200Response + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.TestExternalExecuteWorkflow`: %v\n", resp) } ``` @@ -1260,7 +1259,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1269,24 +1268,23 @@ func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow testworkflowrequest := []byte(`{input={identity={id=ee769173319b41d19ccec6cea52f237b, name=john.doe, type=IDENTITY}, changes=[{attribute=department, oldValue=sales, newValue=marketing}, {attribute=manager, oldValue={id=ee769173319b41d19ccec6c235423237b, name=nice.guy, type=IDENTITY}, newValue={id=ee769173319b41d19ccec6c235423236c, name=mean.guy, type=IDENTITY}}, {attribute=email, oldValue=john.doe@hotmail.com, newValue=john.doe@gmail.com}]}}`) // TestWorkflowRequest | - - var testWorkflowRequest v2025.TestWorkflowRequest - if err := json.Unmarshal(testworkflowrequest, &testWorkflowRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var testWorkflowRequest v2025.TestWorkflowRequest + if err := json.Unmarshal(testworkflowrequest, &testWorkflowRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkflowsAPI.TestWorkflow(context.Background(), id).TestWorkflowRequest(testWorkflowRequest).Execute() - //resp, r, err := apiClient.V2025.WorkflowsAPI.TestWorkflow(context.Background(), id).TestWorkflowRequest(testWorkflowRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.TestWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `TestWorkflow`: TestWorkflow200Response - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.TestWorkflow`: %v\n", resp) + //resp, r, err := apiClient.V2025.WorkflowsAPI.TestWorkflow(context.Background(), id).TestWorkflowRequest(testWorkflowRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.TestWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TestWorkflow`: TestWorkflow200Response + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.TestWorkflow`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V2025/Models/AccessRequest.md b/docs/tools/sdk/go/Reference/V2025/Models/AccessRequest.md index e96520864..8eaeb2402 100644 --- a/docs/tools/sdk/go/Reference/V2025/Models/AccessRequest.md +++ b/docs/tools/sdk/go/Reference/V2025/Models/AccessRequest.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes **RequestType** | Pointer to [**NullableAccessRequestType**](access-request-type) | | [optional] **RequestedItems** | [**[]AccessRequestItem**](access-request-item) | | **ClientMetadata** | Pointer to **map[string]string** | Arbitrary key-value pairs. They will never be processed by the IdentityNow system but will be returned on associated APIs such as /account-activities. | [optional] -**RequestedForWithRequestedItems** | Pointer to [**[]RequestedForDtoRef**](requested-for-dto-ref) | Additional submit data structure with requestedFor containing requestedItems allowing distinction for each request item and Identity. * Can only be used when 'requestedFor' and 'requestedItems' are not separately provided * Adds ability to specify which account the user wants the access on, in case they have multiple accounts on a source * Allows the ability to request items with different remove dates * Also allows different combinations of request items and identities in the same request | [optional] +**RequestedForWithRequestedItems** | Pointer to [**[]RequestedForDtoRef**](requested-for-dto-ref) | Additional submit data structure with requestedFor containing requestedItems allowing distinction for each request item and Identity. * Can only be used when 'requestedFor' and 'requestedItems' are not separately provided * Adds ability to specify which account the user wants the access on, in case they have multiple accounts on a source * Allows the ability to request items with different remove dates * Also allows different combinations of request items and identities in the same request * Only for use in GRANT_ACCESS type requests | [optional] ## Methods diff --git a/docs/tools/sdk/go/Reference/V2025/Models/AccessRequestItem.md b/docs/tools/sdk/go/Reference/V2025/Models/AccessRequestItem.md index ca861611b..5fa0a2639 100644 --- a/docs/tools/sdk/go/Reference/V2025/Models/AccessRequestItem.md +++ b/docs/tools/sdk/go/Reference/V2025/Models/AccessRequestItem.md @@ -20,6 +20,8 @@ Name | Type | Description | Notes **Comment** | Pointer to **string** | Comment provided by requester. * Comment is required when the request is of type Revoke Access. | [optional] **ClientMetadata** | Pointer to **map[string]string** | Arbitrary key-value pairs. They will never be processed by the IdentityNow system but will be returned on associated APIs such as /account-activities and /access-request-status. | [optional] **RemoveDate** | Pointer to **SailPointTime** | The date the role or access profile or entitlement is no longer assigned to the specified identity. Also known as the expiration date. * Specify a date in the future. * The current SLA for the deprovisioning is 24 hours. * This date can be modified to either extend or decrease the duration of access item assignments for the specified identity. You can change the expiration date for requests for yourself or direct reports, but you cannot remove an expiration date on an already approved item. If the access request has not been approved, you can cancel it and submit a new one without the expiration. If it has already been approved, then you have to revoke the access and then re-request without the expiration. | [optional] +**AssignmentId** | Pointer to **NullableString** | The assignmentId for a specific role assignment on the identity. This id is used to revoke that specific roleAssignment on that identity. * For use with REVOKE_ACCESS requests for roles for identities with multiple accounts on a single source. | [optional] +**NativeIdentity** | Pointer to **NullableString** | The unique identifier for an account on the identity, designated as the account ID attribute in the source's account schema. This is used to revoke a specific attributeAssignment on the identity. * For use with REVOKE_ACCESS requests for entitlements for identities with multiple accounts on a single source. | [optional] ## Methods @@ -155,4 +157,74 @@ SetRemoveDate sets RemoveDate field to given value. HasRemoveDate returns a boolean if a field has been set. +### GetAssignmentId + +`func (o *AccessRequestItem) GetAssignmentId() string` + +GetAssignmentId returns the AssignmentId field if non-nil, zero value otherwise. + +### GetAssignmentIdOk + +`func (o *AccessRequestItem) GetAssignmentIdOk() (*string, bool)` + +GetAssignmentIdOk returns a tuple with the AssignmentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignmentId + +`func (o *AccessRequestItem) SetAssignmentId(v string)` + +SetAssignmentId sets AssignmentId field to given value. + +### HasAssignmentId + +`func (o *AccessRequestItem) HasAssignmentId() bool` + +HasAssignmentId returns a boolean if a field has been set. + +### SetAssignmentIdNil + +`func (o *AccessRequestItem) SetAssignmentIdNil(b bool)` + + SetAssignmentIdNil sets the value for AssignmentId to be an explicit nil + +### UnsetAssignmentId +`func (o *AccessRequestItem) UnsetAssignmentId()` + +UnsetAssignmentId ensures that no value is present for AssignmentId, not even an explicit nil +### GetNativeIdentity + +`func (o *AccessRequestItem) GetNativeIdentity() string` + +GetNativeIdentity returns the NativeIdentity field if non-nil, zero value otherwise. + +### GetNativeIdentityOk + +`func (o *AccessRequestItem) GetNativeIdentityOk() (*string, bool)` + +GetNativeIdentityOk returns a tuple with the NativeIdentity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNativeIdentity + +`func (o *AccessRequestItem) SetNativeIdentity(v string)` + +SetNativeIdentity sets NativeIdentity field to given value. + +### HasNativeIdentity + +`func (o *AccessRequestItem) HasNativeIdentity() bool` + +HasNativeIdentity returns a boolean if a field has been set. + +### SetNativeIdentityNil + +`func (o *AccessRequestItem) SetNativeIdentityNil(b bool)` + + SetNativeIdentityNil sets the value for NativeIdentity to be an explicit nil + +### UnsetNativeIdentity +`func (o *AccessRequestItem) UnsetNativeIdentity()` + +UnsetNativeIdentity ensures that no value is present for NativeIdentity, not even an explicit nil diff --git a/docs/tools/sdk/go/Reference/V2025/Models/AccessRequestItem1.md b/docs/tools/sdk/go/Reference/V2025/Models/AccessRequestItem1.md deleted file mode 100644 index f8e122406..000000000 --- a/docs/tools/sdk/go/Reference/V2025/Models/AccessRequestItem1.md +++ /dev/null @@ -1,230 +0,0 @@ ---- -id: v2025-access-request-item1 -title: AccessRequestItem1 -pagination_label: AccessRequestItem1 -sidebar_label: AccessRequestItem1 -sidebar_class_name: gosdk -keywords: ['go', 'Golang', 'sdk', 'AccessRequestItem1', 'V2025AccessRequestItem1'] -slug: /tools/sdk/go/v2025/models/access-request-item1 -tags: ['SDK', 'Software Development Kit', 'AccessRequestItem1', 'V2025AccessRequestItem1'] ---- - -# AccessRequestItem1 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | The type of the item being requested. | -**Id** | **string** | ID of Role, Access Profile or Entitlement being requested. | -**Comment** | Pointer to **string** | Comment provided by requester. * Comment is required when the request is of type Revoke Access. | [optional] -**ClientMetadata** | Pointer to **map[string]string** | Arbitrary key-value pairs. They will never be processed by the IdentityNow system but will be returned on associated APIs such as /account-activities and /access-request-status. | [optional] -**RemoveDate** | Pointer to **SailPointTime** | The date the role or access profile or entitlement is no longer assigned to the specified identity. Also known as the expiration date. * Specify a date in the future. * The current SLA for the deprovisioning is 24 hours. * This date can be modified to either extend or decrease the duration of access item assignments for the specified identity. You can change the expiration date for requests for yourself or direct reports, but you cannot remove an expiration date on an already approved item. If the access request has not been approved, you can cancel it and submit a new one without the expiration. If it has already been approved, then you have to revoke the access and then re-request without the expiration. | [optional] -**AssignmentId** | Pointer to **NullableString** | The assignmentId for a specific role assignment on the identity. This id is used to revoke that specific roleAssignment on that identity. * For use with REVOKE_ACCESS requests for roles for identities with multiple accounts on a single source. | [optional] -**NativeIdentity** | Pointer to **NullableString** | The 'distinguishedName' field for an account on the identity, also called nativeIdentity. This nativeIdentity is used to revoke a specific attributeAssignment on the identity. * For use with REVOKE_ACCESS requests for entitlements for identities with multiple accounts on a single source. | [optional] - -## Methods - -### NewAccessRequestItem1 - -`func NewAccessRequestItem1(type_ string, id string, ) *AccessRequestItem1` - -NewAccessRequestItem1 instantiates a new AccessRequestItem1 object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewAccessRequestItem1WithDefaults - -`func NewAccessRequestItem1WithDefaults() *AccessRequestItem1` - -NewAccessRequestItem1WithDefaults instantiates a new AccessRequestItem1 object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *AccessRequestItem1) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *AccessRequestItem1) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *AccessRequestItem1) SetType(v string)` - -SetType sets Type field to given value. - - -### GetId - -`func (o *AccessRequestItem1) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *AccessRequestItem1) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *AccessRequestItem1) SetId(v string)` - -SetId sets Id field to given value. - - -### GetComment - -`func (o *AccessRequestItem1) GetComment() string` - -GetComment returns the Comment field if non-nil, zero value otherwise. - -### GetCommentOk - -`func (o *AccessRequestItem1) GetCommentOk() (*string, bool)` - -GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComment - -`func (o *AccessRequestItem1) SetComment(v string)` - -SetComment sets Comment field to given value. - -### HasComment - -`func (o *AccessRequestItem1) HasComment() bool` - -HasComment returns a boolean if a field has been set. - -### GetClientMetadata - -`func (o *AccessRequestItem1) GetClientMetadata() map[string]string` - -GetClientMetadata returns the ClientMetadata field if non-nil, zero value otherwise. - -### GetClientMetadataOk - -`func (o *AccessRequestItem1) GetClientMetadataOk() (*map[string]string, bool)` - -GetClientMetadataOk returns a tuple with the ClientMetadata field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClientMetadata - -`func (o *AccessRequestItem1) SetClientMetadata(v map[string]string)` - -SetClientMetadata sets ClientMetadata field to given value. - -### HasClientMetadata - -`func (o *AccessRequestItem1) HasClientMetadata() bool` - -HasClientMetadata returns a boolean if a field has been set. - -### GetRemoveDate - -`func (o *AccessRequestItem1) GetRemoveDate() SailPointTime` - -GetRemoveDate returns the RemoveDate field if non-nil, zero value otherwise. - -### GetRemoveDateOk - -`func (o *AccessRequestItem1) GetRemoveDateOk() (*SailPointTime, bool)` - -GetRemoveDateOk returns a tuple with the RemoveDate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRemoveDate - -`func (o *AccessRequestItem1) SetRemoveDate(v SailPointTime)` - -SetRemoveDate sets RemoveDate field to given value. - -### HasRemoveDate - -`func (o *AccessRequestItem1) HasRemoveDate() bool` - -HasRemoveDate returns a boolean if a field has been set. - -### GetAssignmentId - -`func (o *AccessRequestItem1) GetAssignmentId() string` - -GetAssignmentId returns the AssignmentId field if non-nil, zero value otherwise. - -### GetAssignmentIdOk - -`func (o *AccessRequestItem1) GetAssignmentIdOk() (*string, bool)` - -GetAssignmentIdOk returns a tuple with the AssignmentId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAssignmentId - -`func (o *AccessRequestItem1) SetAssignmentId(v string)` - -SetAssignmentId sets AssignmentId field to given value. - -### HasAssignmentId - -`func (o *AccessRequestItem1) HasAssignmentId() bool` - -HasAssignmentId returns a boolean if a field has been set. - -### SetAssignmentIdNil - -`func (o *AccessRequestItem1) SetAssignmentIdNil(b bool)` - - SetAssignmentIdNil sets the value for AssignmentId to be an explicit nil - -### UnsetAssignmentId -`func (o *AccessRequestItem1) UnsetAssignmentId()` - -UnsetAssignmentId ensures that no value is present for AssignmentId, not even an explicit nil -### GetNativeIdentity - -`func (o *AccessRequestItem1) GetNativeIdentity() string` - -GetNativeIdentity returns the NativeIdentity field if non-nil, zero value otherwise. - -### GetNativeIdentityOk - -`func (o *AccessRequestItem1) GetNativeIdentityOk() (*string, bool)` - -GetNativeIdentityOk returns a tuple with the NativeIdentity field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNativeIdentity - -`func (o *AccessRequestItem1) SetNativeIdentity(v string)` - -SetNativeIdentity sets NativeIdentity field to given value. - -### HasNativeIdentity - -`func (o *AccessRequestItem1) HasNativeIdentity() bool` - -HasNativeIdentity returns a boolean if a field has been set. - -### SetNativeIdentityNil - -`func (o *AccessRequestItem1) SetNativeIdentityNil(b bool)` - - SetNativeIdentityNil sets the value for NativeIdentity to be an explicit nil - -### UnsetNativeIdentity -`func (o *AccessRequestItem1) UnsetNativeIdentity()` - -UnsetNativeIdentity ensures that no value is present for NativeIdentity, not even an explicit nil - diff --git a/docs/tools/sdk/go/Reference/V2025/Models/AccountsSelectionRequest.md b/docs/tools/sdk/go/Reference/V2025/Models/AccountsSelectionRequest.md index cdf3980c5..7b4dc8bff 100644 --- a/docs/tools/sdk/go/Reference/V2025/Models/AccountsSelectionRequest.md +++ b/docs/tools/sdk/go/Reference/V2025/Models/AccountsSelectionRequest.md @@ -17,14 +17,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **RequestedFor** | **[]string** | A list of Identity IDs for whom the Access is requested. | **RequestType** | Pointer to [**NullableAccessRequestType**](access-request-type) | | [optional] -**RequestedItems** | [**[]AccessRequestItem1**](access-request-item1) | | +**RequestedItems** | [**[]AccessRequestItem**](access-request-item) | | **ClientMetadata** | Pointer to **map[string]string** | Arbitrary key-value pairs. They will never be processed by the IdentityNow system but will be returned on associated APIs such as /account-activities. | [optional] ## Methods ### NewAccountsSelectionRequest -`func NewAccountsSelectionRequest(requestedFor []string, requestedItems []AccessRequestItem1, ) *AccountsSelectionRequest` +`func NewAccountsSelectionRequest(requestedFor []string, requestedItems []AccessRequestItem, ) *AccountsSelectionRequest` NewAccountsSelectionRequest instantiates a new AccountsSelectionRequest object This constructor will assign default values to properties that have it defined, @@ -96,20 +96,20 @@ HasRequestType returns a boolean if a field has been set. UnsetRequestType ensures that no value is present for RequestType, not even an explicit nil ### GetRequestedItems -`func (o *AccountsSelectionRequest) GetRequestedItems() []AccessRequestItem1` +`func (o *AccountsSelectionRequest) GetRequestedItems() []AccessRequestItem` GetRequestedItems returns the RequestedItems field if non-nil, zero value otherwise. ### GetRequestedItemsOk -`func (o *AccountsSelectionRequest) GetRequestedItemsOk() (*[]AccessRequestItem1, bool)` +`func (o *AccountsSelectionRequest) GetRequestedItemsOk() (*[]AccessRequestItem, bool)` GetRequestedItemsOk returns a tuple with the RequestedItems field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRequestedItems -`func (o *AccountsSelectionRequest) SetRequestedItems(v []AccessRequestItem1)` +`func (o *AccountsSelectionRequest) SetRequestedItems(v []AccessRequestItem)` SetRequestedItems sets RequestedItems field to given value. diff --git a/docs/tools/sdk/go/Reference/V2025/Models/EntitlementAccessRequestConfig.md b/docs/tools/sdk/go/Reference/V2025/Models/EntitlementAccessRequestConfig.md index e2420472a..231521433 100644 --- a/docs/tools/sdk/go/Reference/V2025/Models/EntitlementAccessRequestConfig.md +++ b/docs/tools/sdk/go/Reference/V2025/Models/EntitlementAccessRequestConfig.md @@ -18,6 +18,7 @@ Name | Type | Description | Notes **ApprovalSchemes** | Pointer to [**[]EntitlementApprovalScheme**](entitlement-approval-scheme) | Ordered list of approval steps for the access request. Empty when no approval is required. | [optional] **RequestCommentRequired** | Pointer to **bool** | If the requester must provide a comment during access request. | [optional] [default to false] **DenialCommentRequired** | Pointer to **bool** | If the reviewer must provide a comment when denying the access request. | [optional] [default to false] +**ReauthorizationRequired** | Pointer to **bool** | Is Reauthorization Required | [optional] [default to false] ## Methods @@ -113,4 +114,29 @@ SetDenialCommentRequired sets DenialCommentRequired field to given value. HasDenialCommentRequired returns a boolean if a field has been set. +### GetReauthorizationRequired + +`func (o *EntitlementAccessRequestConfig) GetReauthorizationRequired() bool` + +GetReauthorizationRequired returns the ReauthorizationRequired field if non-nil, zero value otherwise. + +### GetReauthorizationRequiredOk + +`func (o *EntitlementAccessRequestConfig) GetReauthorizationRequiredOk() (*bool, bool)` + +GetReauthorizationRequiredOk returns a tuple with the ReauthorizationRequired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReauthorizationRequired + +`func (o *EntitlementAccessRequestConfig) SetReauthorizationRequired(v bool)` + +SetReauthorizationRequired sets ReauthorizationRequired field to given value. + +### HasReauthorizationRequired + +`func (o *EntitlementAccessRequestConfig) HasReauthorizationRequired() bool` + +HasReauthorizationRequired returns a boolean if a field has been set. + diff --git a/docs/tools/sdk/go/Reference/V2025/Models/EntitlementRequestConfig.md b/docs/tools/sdk/go/Reference/V2025/Models/EntitlementRequestConfig.md index 6f35aeae3..e24d2ad04 100644 --- a/docs/tools/sdk/go/Reference/V2025/Models/EntitlementRequestConfig.md +++ b/docs/tools/sdk/go/Reference/V2025/Models/EntitlementRequestConfig.md @@ -16,6 +16,7 @@ tags: ['SDK', 'Software Development Kit', 'EntitlementRequestConfig', 'V2025Enti Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **AccessRequestConfig** | Pointer to [**EntitlementAccessRequestConfig**](entitlement-access-request-config) | | [optional] +**RevocationRequestConfig** | Pointer to [**EntitlementRevocationRequestConfig**](entitlement-revocation-request-config) | | [optional] ## Methods @@ -61,4 +62,29 @@ SetAccessRequestConfig sets AccessRequestConfig field to given value. HasAccessRequestConfig returns a boolean if a field has been set. +### GetRevocationRequestConfig + +`func (o *EntitlementRequestConfig) GetRevocationRequestConfig() EntitlementRevocationRequestConfig` + +GetRevocationRequestConfig returns the RevocationRequestConfig field if non-nil, zero value otherwise. + +### GetRevocationRequestConfigOk + +`func (o *EntitlementRequestConfig) GetRevocationRequestConfigOk() (*EntitlementRevocationRequestConfig, bool)` + +GetRevocationRequestConfigOk returns a tuple with the RevocationRequestConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRevocationRequestConfig + +`func (o *EntitlementRequestConfig) SetRevocationRequestConfig(v EntitlementRevocationRequestConfig)` + +SetRevocationRequestConfig sets RevocationRequestConfig field to given value. + +### HasRevocationRequestConfig + +`func (o *EntitlementRequestConfig) HasRevocationRequestConfig() bool` + +HasRevocationRequestConfig returns a boolean if a field has been set. + diff --git a/docs/tools/sdk/go/Reference/V2025/Models/EntitlementRevocationRequestConfig.md b/docs/tools/sdk/go/Reference/V2025/Models/EntitlementRevocationRequestConfig.md new file mode 100644 index 000000000..6b1e3594f --- /dev/null +++ b/docs/tools/sdk/go/Reference/V2025/Models/EntitlementRevocationRequestConfig.md @@ -0,0 +1,64 @@ +--- +id: v2025-entitlement-revocation-request-config +title: EntitlementRevocationRequestConfig +pagination_label: EntitlementRevocationRequestConfig +sidebar_label: EntitlementRevocationRequestConfig +sidebar_class_name: gosdk +keywords: ['go', 'Golang', 'sdk', 'EntitlementRevocationRequestConfig', 'V2025EntitlementRevocationRequestConfig'] +slug: /tools/sdk/go/v2025/models/entitlement-revocation-request-config +tags: ['SDK', 'Software Development Kit', 'EntitlementRevocationRequestConfig', 'V2025EntitlementRevocationRequestConfig'] +--- + +# EntitlementRevocationRequestConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApprovalSchemes** | Pointer to [**[]EntitlementApprovalScheme**](entitlement-approval-scheme) | Ordered list of approval steps for the access request. Empty when no approval is required. | [optional] + +## Methods + +### NewEntitlementRevocationRequestConfig + +`func NewEntitlementRevocationRequestConfig() *EntitlementRevocationRequestConfig` + +NewEntitlementRevocationRequestConfig instantiates a new EntitlementRevocationRequestConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEntitlementRevocationRequestConfigWithDefaults + +`func NewEntitlementRevocationRequestConfigWithDefaults() *EntitlementRevocationRequestConfig` + +NewEntitlementRevocationRequestConfigWithDefaults instantiates a new EntitlementRevocationRequestConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetApprovalSchemes + +`func (o *EntitlementRevocationRequestConfig) GetApprovalSchemes() []EntitlementApprovalScheme` + +GetApprovalSchemes returns the ApprovalSchemes field if non-nil, zero value otherwise. + +### GetApprovalSchemesOk + +`func (o *EntitlementRevocationRequestConfig) GetApprovalSchemesOk() (*[]EntitlementApprovalScheme, bool)` + +GetApprovalSchemesOk returns a tuple with the ApprovalSchemes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApprovalSchemes + +`func (o *EntitlementRevocationRequestConfig) SetApprovalSchemes(v []EntitlementApprovalScheme)` + +SetApprovalSchemes sets ApprovalSchemes field to given value. + +### HasApprovalSchemes + +`func (o *EntitlementRevocationRequestConfig) HasApprovalSchemes() bool` + +HasApprovalSchemes returns a boolean if a field has been set. + + diff --git a/docs/tools/sdk/go/Reference/V2025/Models/RequestedItemDtoRef.md b/docs/tools/sdk/go/Reference/V2025/Models/RequestedItemDtoRef.md index 1d1907fdc..53f9a2b4b 100644 --- a/docs/tools/sdk/go/Reference/V2025/Models/RequestedItemDtoRef.md +++ b/docs/tools/sdk/go/Reference/V2025/Models/RequestedItemDtoRef.md @@ -20,8 +20,6 @@ Name | Type | Description | Notes **Comment** | Pointer to **string** | Comment provided by requester. * Comment is required when the request is of type Revoke Access. | [optional] **ClientMetadata** | Pointer to **map[string]string** | Arbitrary key-value pairs. They will never be processed by the IdentityNow system but will be returned on associated APIs such as /account-activities and /access-request-status. | [optional] **RemoveDate** | Pointer to **SailPointTime** | The date the role or access profile or entitlement is no longer assigned to the specified identity. Also known as the expiration date. * Specify a date in the future. * The current SLA for the deprovisioning is 24 hours. * This date can be modified to either extend or decrease the duration of access item assignments for the specified identity. You can change the expiration date for requests for yourself or direct reports, but you cannot remove an expiration date on an already approved item. If the access request has not been approved, you can cancel it and submit a new one without the expiration. If it has already been approved, then you have to revoke the access and then re-request without the expiration. | [optional] -**AssignmentId** | Pointer to **NullableString** | The assignmentId for a specific role assignment on the identity. This id is used to revoke that specific roleAssignment on that identity. * For use with REVOKE_ACCESS requests for roles for identities with multiple accounts on a single source. | [optional] -**NativeIdentity** | Pointer to **NullableString** | The 'distinguishedName' field for an account on the identity, also called nativeIdentity. This nativeIdentity is used to revoke a specific attributeAssignment on the identity. * For use with REVOKE_ACCESS requests for entitlements for identities with multiple accounts on a single source. | [optional] **AccountSelection** | Pointer to [**[]SourceItemRef**](source-item-ref) | The accounts where the access item will be provisioned to * Includes selections performed by the user in the event of multiple accounts existing on the same source * Also includes details for sources where user only has one account | [optional] ## Methods @@ -158,76 +156,6 @@ SetRemoveDate sets RemoveDate field to given value. HasRemoveDate returns a boolean if a field has been set. -### GetAssignmentId - -`func (o *RequestedItemDtoRef) GetAssignmentId() string` - -GetAssignmentId returns the AssignmentId field if non-nil, zero value otherwise. - -### GetAssignmentIdOk - -`func (o *RequestedItemDtoRef) GetAssignmentIdOk() (*string, bool)` - -GetAssignmentIdOk returns a tuple with the AssignmentId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAssignmentId - -`func (o *RequestedItemDtoRef) SetAssignmentId(v string)` - -SetAssignmentId sets AssignmentId field to given value. - -### HasAssignmentId - -`func (o *RequestedItemDtoRef) HasAssignmentId() bool` - -HasAssignmentId returns a boolean if a field has been set. - -### SetAssignmentIdNil - -`func (o *RequestedItemDtoRef) SetAssignmentIdNil(b bool)` - - SetAssignmentIdNil sets the value for AssignmentId to be an explicit nil - -### UnsetAssignmentId -`func (o *RequestedItemDtoRef) UnsetAssignmentId()` - -UnsetAssignmentId ensures that no value is present for AssignmentId, not even an explicit nil -### GetNativeIdentity - -`func (o *RequestedItemDtoRef) GetNativeIdentity() string` - -GetNativeIdentity returns the NativeIdentity field if non-nil, zero value otherwise. - -### GetNativeIdentityOk - -`func (o *RequestedItemDtoRef) GetNativeIdentityOk() (*string, bool)` - -GetNativeIdentityOk returns a tuple with the NativeIdentity field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNativeIdentity - -`func (o *RequestedItemDtoRef) SetNativeIdentity(v string)` - -SetNativeIdentity sets NativeIdentity field to given value. - -### HasNativeIdentity - -`func (o *RequestedItemDtoRef) HasNativeIdentity() bool` - -HasNativeIdentity returns a boolean if a field has been set. - -### SetNativeIdentityNil - -`func (o *RequestedItemDtoRef) SetNativeIdentityNil(b bool)` - - SetNativeIdentityNil sets the value for NativeIdentity to be an explicit nil - -### UnsetNativeIdentity -`func (o *RequestedItemDtoRef) UnsetNativeIdentity()` - -UnsetNativeIdentity ensures that no value is present for NativeIdentity, not even an explicit nil ### GetAccountSelection `func (o *RequestedItemDtoRef) GetAccountSelection() []SourceItemRef` diff --git a/docs/tools/sdk/go/Reference/V2025/Models/SourceEntitlementRequestConfig.md b/docs/tools/sdk/go/Reference/V2025/Models/SourceEntitlementRequestConfig.md index de0f01546..e96392d18 100644 --- a/docs/tools/sdk/go/Reference/V2025/Models/SourceEntitlementRequestConfig.md +++ b/docs/tools/sdk/go/Reference/V2025/Models/SourceEntitlementRequestConfig.md @@ -16,6 +16,7 @@ tags: ['SDK', 'Software Development Kit', 'SourceEntitlementRequestConfig', 'V20 Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **AccessRequestConfig** | Pointer to [**EntitlementAccessRequestConfig**](entitlement-access-request-config) | | [optional] +**RevocationRequestConfig** | Pointer to [**EntitlementRevocationRequestConfig**](entitlement-revocation-request-config) | | [optional] ## Methods @@ -61,4 +62,29 @@ SetAccessRequestConfig sets AccessRequestConfig field to given value. HasAccessRequestConfig returns a boolean if a field has been set. +### GetRevocationRequestConfig + +`func (o *SourceEntitlementRequestConfig) GetRevocationRequestConfig() EntitlementRevocationRequestConfig` + +GetRevocationRequestConfig returns the RevocationRequestConfig field if non-nil, zero value otherwise. + +### GetRevocationRequestConfigOk + +`func (o *SourceEntitlementRequestConfig) GetRevocationRequestConfigOk() (*EntitlementRevocationRequestConfig, bool)` + +GetRevocationRequestConfigOk returns a tuple with the RevocationRequestConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRevocationRequestConfig + +`func (o *SourceEntitlementRequestConfig) SetRevocationRequestConfig(v EntitlementRevocationRequestConfig)` + +SetRevocationRequestConfig sets RevocationRequestConfig field to given value. + +### HasRevocationRequestConfig + +`func (o *SourceEntitlementRequestConfig) HasRevocationRequestConfig() bool` + +HasRevocationRequestConfig returns a boolean if a field has been set. + diff --git a/docs/tools/sdk/go/Reference/V3/Methods/AccessProfilesAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/AccessProfilesAPI.md index cece978ca..5eb5708f4 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/AccessProfilesAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/AccessProfilesAPI.md @@ -98,7 +98,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -191,24 +191,23 @@ func main() { "requestable" : true }`) // AccessProfile | - - var accessProfile v3.AccessProfile - if err := json.Unmarshal(accessprofile, &accessProfile); err != nil { - fmt.Println("Error:", err) - return - } - + var accessProfile v3.AccessProfile + if err := json.Unmarshal(accessprofile, &accessProfile); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccessProfilesAPI.CreateAccessProfile(context.Background()).AccessProfile(accessProfile).Execute() - //resp, r, err := apiClient.V3.AccessProfilesAPI.CreateAccessProfile(context.Background()).AccessProfile(accessProfile).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.CreateAccessProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateAccessProfile`: AccessProfile - fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.CreateAccessProfile`: %v\n", resp) + //resp, r, err := apiClient.V3.AccessProfilesAPI.CreateAccessProfile(context.Background()).AccessProfile(accessProfile).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.CreateAccessProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAccessProfile`: AccessProfile + fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.CreateAccessProfile`: %v\n", resp) } ``` @@ -259,7 +258,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -267,16 +266,17 @@ import ( func main() { id := `2c91808a7813090a017814121919ecca` // string | ID of the Access Profile to delete # string | ID of the Access Profile to delete - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.AccessProfilesAPI.DeleteAccessProfile(context.Background(), id).Execute() - //r, err := apiClient.V3.AccessProfilesAPI.DeleteAccessProfile(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.DeleteAccessProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.AccessProfilesAPI.DeleteAccessProfile(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.DeleteAccessProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -323,7 +323,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -334,24 +334,23 @@ func main() { "bestEffortOnly" : true }`) // AccessProfileBulkDeleteRequest | - - var accessProfileBulkDeleteRequest v3.AccessProfileBulkDeleteRequest - if err := json.Unmarshal(accessprofilebulkdeleterequest, &accessProfileBulkDeleteRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var accessProfileBulkDeleteRequest v3.AccessProfileBulkDeleteRequest + if err := json.Unmarshal(accessprofilebulkdeleterequest, &accessProfileBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccessProfilesAPI.DeleteAccessProfilesInBulk(context.Background()).AccessProfileBulkDeleteRequest(accessProfileBulkDeleteRequest).Execute() - //resp, r, err := apiClient.V3.AccessProfilesAPI.DeleteAccessProfilesInBulk(context.Background()).AccessProfileBulkDeleteRequest(accessProfileBulkDeleteRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.DeleteAccessProfilesInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteAccessProfilesInBulk`: AccessProfileBulkDeleteResponse - fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.DeleteAccessProfilesInBulk`: %v\n", resp) + //resp, r, err := apiClient.V3.AccessProfilesAPI.DeleteAccessProfilesInBulk(context.Background()).AccessProfileBulkDeleteRequest(accessProfileBulkDeleteRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.DeleteAccessProfilesInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteAccessProfilesInBulk`: AccessProfileBulkDeleteResponse + fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.DeleteAccessProfilesInBulk`: %v\n", resp) } ``` @@ -398,7 +397,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -406,18 +405,18 @@ import ( func main() { id := `2c9180837ca6693d017ca8d097500149` // string | ID of the Access Profile # string | ID of the Access Profile - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccessProfilesAPI.GetAccessProfile(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.AccessProfilesAPI.GetAccessProfile(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.GetAccessProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessProfile`: AccessProfile - fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.GetAccessProfile`: %v\n", resp) + //resp, r, err := apiClient.V3.AccessProfilesAPI.GetAccessProfile(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.GetAccessProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessProfile`: AccessProfile + fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.GetAccessProfile`: %v\n", resp) } ``` @@ -471,7 +470,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -484,18 +483,18 @@ func main() { filters := `attribute eq "memberOf"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* Filtering is not supported for access profiles and entitlements that have the '+' symbol in their names. (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created**: *gt, lt, ge, le* **modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in* Filtering is not supported for access profiles and entitlements that have the '+' symbol in their names. (optional) sorters := `name,-modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, attribute, value, created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, attribute, value, created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccessProfilesAPI.GetAccessProfileEntitlements(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.AccessProfilesAPI.GetAccessProfileEntitlements(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.GetAccessProfileEntitlements``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessProfileEntitlements`: []Entitlement - fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.GetAccessProfileEntitlements`: %v\n", resp) + //resp, r, err := apiClient.V3.AccessProfilesAPI.GetAccessProfileEntitlements(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.GetAccessProfileEntitlements``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessProfileEntitlements`: []Entitlement + fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.GetAccessProfileEntitlements`: %v\n", resp) } ``` @@ -546,7 +545,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -561,18 +560,18 @@ func main() { forSegmentIds := `0b5c9f25-83c6-4762-9073-e38f7bb2ae26,2e8d8180-24bc-4d21-91c6-7affdb473b0d` // string | Filters access profiles to only those assigned to the segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) # string | Filters access profiles to only those assigned to the segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) includeUnsegmented := false // bool | Indicates whether the response list should contain unsegmented access profiles. If `for-segment-ids` is absent or empty, specifying *include-unsegmented* as `false` results in an error. (optional) (default to true) # bool | Indicates whether the response list should contain unsegmented access profiles. If `for-segment-ids` is absent or empty, specifying *include-unsegmented* as `false` results in an error. (optional) (default to true) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccessProfilesAPI.ListAccessProfiles(context.Background()).Execute() - //resp, r, err := apiClient.V3.AccessProfilesAPI.ListAccessProfiles(context.Background()).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.ListAccessProfiles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAccessProfiles`: []AccessProfile - fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.ListAccessProfiles`: %v\n", resp) + //resp, r, err := apiClient.V3.AccessProfilesAPI.ListAccessProfiles(context.Background()).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.ListAccessProfiles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAccessProfiles`: []AccessProfile + fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.ListAccessProfiles`: %v\n", resp) } ``` @@ -649,7 +648,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -658,24 +657,23 @@ func main() { id := `2c91808a7813090a017814121919ecca` // string | ID of the Access Profile to patch # string | ID of the Access Profile to patch jsonpatchoperation := []byte(`[{op=add, path=/entitlements, value=[{id=2c9180857725c14301772a93bb77242d, type=ENTITLEMENT, name=AD User Group}]}]`) // []JsonPatchOperation | - - var jsonPatchOperation v3.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v3.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccessProfilesAPI.PatchAccessProfile(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V3.AccessProfilesAPI.PatchAccessProfile(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.PatchAccessProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchAccessProfile`: AccessProfile - fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.PatchAccessProfile`: %v\n", resp) + //resp, r, err := apiClient.V3.AccessProfilesAPI.PatchAccessProfile(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessProfilesAPI.PatchAccessProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchAccessProfile`: AccessProfile + fmt.Fprintf(os.Stdout, "Response from `AccessProfilesAPI.PatchAccessProfile`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/AccessRequestApprovalsAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/AccessRequestApprovalsAPI.md index 38e1e6c70..5e40dc87b 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/AccessRequestApprovalsAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/AccessRequestApprovalsAPI.md @@ -82,7 +82,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -99,18 +99,18 @@ func main() { "comment" : "This is a comment." }`) // CommentDto | Reviewer's comment. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.ApproveAccessRequest(context.Background(), approvalId).Execute() - //resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.ApproveAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.ApproveAccessRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ApproveAccessRequest`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.ApproveAccessRequest`: %v\n", resp) + //resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.ApproveAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.ApproveAccessRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApproveAccessRequest`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.ApproveAccessRequest`: %v\n", resp) } ``` @@ -158,7 +158,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -170,24 +170,23 @@ func main() { "comment" : "2c91808568c529c60168cca6f90c1313" }`) // ForwardApprovalDto | Information about the forwarded approval. - - var forwardApprovalDto v3.ForwardApprovalDto - if err := json.Unmarshal(forwardapprovaldto, &forwardApprovalDto); err != nil { - fmt.Println("Error:", err) - return - } - + var forwardApprovalDto v3.ForwardApprovalDto + if err := json.Unmarshal(forwardapprovaldto, &forwardApprovalDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.ForwardAccessRequest(context.Background(), approvalId).ForwardApprovalDto(forwardApprovalDto).Execute() - //resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.ForwardAccessRequest(context.Background(), approvalId).ForwardApprovalDto(forwardApprovalDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.ForwardAccessRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ForwardAccessRequest`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.ForwardAccessRequest`: %v\n", resp) + //resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.ForwardAccessRequest(context.Background(), approvalId).ForwardApprovalDto(forwardApprovalDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.ForwardAccessRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ForwardAccessRequest`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.ForwardAccessRequest`: %v\n", resp) } ``` @@ -231,7 +230,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -240,18 +239,18 @@ func main() { ownerId := `2c91808568c529c60168cca6f90c1313` // string | The ID of the owner or approver identity of the approvals. If present, the value returns approval summary for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN user can also fetch all the approvals in the org, when owner-id is not used. * Non ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) # string | The ID of the owner or approver identity of the approvals. If present, the value returns approval summary for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN user can also fetch all the approvals in the org, when owner-id is not used. * Non ORG_ADMIN users can only specify *me* or pass their own identity ID value. (optional) fromDate := `from-date=2020-03-19T19:59:11Z` // string | This is the date and time the results will be shown from. It must be in a valid ISO-8601 format. (optional) # string | This is the date and time the results will be shown from. It must be in a valid ISO-8601 format. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary(context.Background()).Execute() - //resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary(context.Background()).OwnerId(ownerId).FromDate(fromDate).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessRequestApprovalSummary`: ApprovalSummary - fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary`: %v\n", resp) + //resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary(context.Background()).OwnerId(ownerId).FromDate(fromDate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessRequestApprovalSummary`: ApprovalSummary + fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary`: %v\n", resp) } ``` @@ -299,7 +298,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -312,18 +311,18 @@ func main() { filters := `id eq "2c91808568c529c60168cca6f90c1313"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **requestedFor.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **requestedFor.id**: *eq, in, ge, gt, le, lt, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, sw* (optional) sorters := `modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.ListCompletedApprovals(context.Background()).Execute() - //resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.ListCompletedApprovals(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.ListCompletedApprovals``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListCompletedApprovals`: []CompletedApproval - fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.ListCompletedApprovals`: %v\n", resp) + //resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.ListCompletedApprovals(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.ListCompletedApprovals``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCompletedApprovals`: []CompletedApproval + fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.ListCompletedApprovals`: %v\n", resp) } ``` @@ -371,7 +370,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -384,18 +383,18 @@ func main() { filters := `id eq "2c91808568c529c60168cca6f90c1313"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **requestedFor.id**: *eq, in* **modified**: *gt, lt, ge, le, eq, in* **accessRequestId**: *eq, in* **created**: *gt, lt, ge, le, eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **requestedFor.id**: *eq, in* **modified**: *gt, lt, ge, le, eq, in* **accessRequestId**: *eq, in* **created**: *gt, lt, ge, le, eq, in* (optional) sorters := `modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.ListPendingApprovals(context.Background()).Execute() - //resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.ListPendingApprovals(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.ListPendingApprovals``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListPendingApprovals`: []PendingApproval - fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.ListPendingApprovals`: %v\n", resp) + //resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.ListPendingApprovals(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.ListPendingApprovals``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListPendingApprovals`: []PendingApproval + fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.ListPendingApprovals`: %v\n", resp) } ``` @@ -443,7 +442,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -460,24 +459,23 @@ func main() { "comment" : "This is a comment." }`) // CommentDto | Reviewer's comment. - - var commentDto v3.CommentDto - if err := json.Unmarshal(commentdto, &commentDto); err != nil { - fmt.Println("Error:", err) - return - } - + var commentDto v3.CommentDto + if err := json.Unmarshal(commentdto, &commentDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.RejectAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() - //resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.RejectAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.RejectAccessRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `RejectAccessRequest`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.RejectAccessRequest`: %v\n", resp) + //resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.RejectAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestApprovalsAPI.RejectAccessRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RejectAccessRequest`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AccessRequestApprovalsAPI.RejectAccessRequest`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/AccessRequestsAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/AccessRequestsAPI.md index a9ae8eadf..60b6a4807 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/AccessRequestsAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/AccessRequestsAPI.md @@ -75,7 +75,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -86,24 +86,23 @@ func main() { "comment" : "I requested this role by mistake." }`) // CancelAccessRequest | - - var cancelAccessRequest v3.CancelAccessRequest - if err := json.Unmarshal(cancelaccessrequest, &cancelAccessRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var cancelAccessRequest v3.CancelAccessRequest + if err := json.Unmarshal(cancelaccessrequest, &cancelAccessRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccessRequestsAPI.CancelAccessRequest(context.Background()).CancelAccessRequest(cancelAccessRequest).Execute() - //resp, r, err := apiClient.V3.AccessRequestsAPI.CancelAccessRequest(context.Background()).CancelAccessRequest(cancelAccessRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.CancelAccessRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CancelAccessRequest`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.CancelAccessRequest`: %v\n", resp) + //resp, r, err := apiClient.V3.AccessRequestsAPI.CancelAccessRequest(context.Background()).CancelAccessRequest(cancelAccessRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.CancelAccessRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CancelAccessRequest`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.CancelAccessRequest`: %v\n", resp) } ``` @@ -142,7 +141,8 @@ __REVOKE_ACCESS__ * Revoke requests for entitlements are limited to 1 entitlement per access request currently. * You can specify a `removeDate` if the access doesn't already have a sunset date. The `removeDate` must be a future date, in the UTC timezone. * Allows a manager to request to revoke access for direct employees. A user with ORG_ADMIN authority can also request to revoke access from anyone. -* Now supports REVOKE_ACCESS requests for identities with multiple accounts on a single source, with the help of 'assignmentId' and 'nativeIdentity' fields. +* Now supports REVOKE_ACCESS requests for identities with multiple accounts on a single source, with the help of 'assignmentId' and 'nativeIdentity' fields. These fields should be used within the 'requestedItems' section for the revoke requests. +* Usage of 'requestedForWithRequestedItems' field is not supported for revoke requests. [API Spec](https://developer.sailpoint.com/docs/api/v3/create-access-request) @@ -178,7 +178,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -276,9 +276,7 @@ func main() { } ], "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE", - "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", - "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + "type" : "ACCESS_PROFILE" }, { "clientMetadata" : { "requestedAppName" : "test-app", @@ -306,9 +304,7 @@ func main() { } ], "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE", - "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", - "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + "type" : "ACCESS_PROFILE" } ] }, { "identityId" : "cb89bc2f1ee6445fbea12224c526ba3a", @@ -339,9 +335,7 @@ func main() { } ], "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE", - "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", - "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + "type" : "ACCESS_PROFILE" }, { "clientMetadata" : { "requestedAppName" : "test-app", @@ -369,31 +363,28 @@ func main() { } ], "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE", - "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", - "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + "type" : "ACCESS_PROFILE" } ] } ] }`) // AccessRequest | - - var accessRequest v3.AccessRequest - if err := json.Unmarshal(accessrequest, &accessRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var accessRequest v3.AccessRequest + if err := json.Unmarshal(accessrequest, &accessRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccessRequestsAPI.CreateAccessRequest(context.Background()).AccessRequest(accessRequest).Execute() - //resp, r, err := apiClient.V3.AccessRequestsAPI.CreateAccessRequest(context.Background()).AccessRequest(accessRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.CreateAccessRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateAccessRequest`: AccessRequestResponse - fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.CreateAccessRequest`: %v\n", resp) + //resp, r, err := apiClient.V3.AccessRequestsAPI.CreateAccessRequest(context.Background()).AccessRequest(accessRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.CreateAccessRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAccessRequest`: AccessRequestResponse + fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.CreateAccessRequest`: %v\n", resp) } ``` @@ -432,25 +423,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccessRequestsAPI.GetAccessRequestConfig(context.Background()).Execute() - //resp, r, err := apiClient.V3.AccessRequestsAPI.GetAccessRequestConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.GetAccessRequestConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccessRequestConfig`: AccessRequestConfig - fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.GetAccessRequestConfig`: %v\n", resp) + //resp, r, err := apiClient.V3.AccessRequestsAPI.GetAccessRequestConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.GetAccessRequestConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessRequestConfig`: AccessRequestConfig + fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.GetAccessRequestConfig`: %v\n", resp) } ``` @@ -504,7 +495,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -521,18 +512,18 @@ func main() { sorters := `created` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified, accountActivityItemId, name** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified, accountActivityItemId, name** (optional) requestState := `request-state=EXECUTING` // string | Filter the results by the state of the request. The only valid value is *EXECUTING*. (optional) # string | Filter the results by the state of the request. The only valid value is *EXECUTING*. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccessRequestsAPI.ListAccessRequestStatus(context.Background()).Execute() - //resp, r, err := apiClient.V3.AccessRequestsAPI.ListAccessRequestStatus(context.Background()).RequestedFor(requestedFor).RequestedBy(requestedBy).RegardingIdentity(regardingIdentity).AssignedTo(assignedTo).Count(count).Limit(limit).Offset(offset).Filters(filters).Sorters(sorters).RequestState(requestState).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.ListAccessRequestStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAccessRequestStatus`: []RequestedItemStatus - fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.ListAccessRequestStatus`: %v\n", resp) + //resp, r, err := apiClient.V3.AccessRequestsAPI.ListAccessRequestStatus(context.Background()).RequestedFor(requestedFor).RequestedBy(requestedBy).RegardingIdentity(regardingIdentity).AssignedTo(assignedTo).Count(count).Limit(limit).Offset(offset).Filters(filters).Sorters(sorters).RequestState(requestState).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.ListAccessRequestStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAccessRequestStatus`: []RequestedItemStatus + fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.ListAccessRequestStatus`: %v\n", resp) } ``` @@ -575,7 +566,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -608,24 +599,23 @@ func main() { "approvalsMustBeExternal" : true }`) // AccessRequestConfig | - - var accessRequestConfig v3.AccessRequestConfig - if err := json.Unmarshal(accessrequestconfig, &accessRequestConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var accessRequestConfig v3.AccessRequestConfig + if err := json.Unmarshal(accessrequestconfig, &accessRequestConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccessRequestsAPI.SetAccessRequestConfig(context.Background()).AccessRequestConfig(accessRequestConfig).Execute() - //resp, r, err := apiClient.V3.AccessRequestsAPI.SetAccessRequestConfig(context.Background()).AccessRequestConfig(accessRequestConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.SetAccessRequestConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetAccessRequestConfig`: AccessRequestConfig - fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.SetAccessRequestConfig`: %v\n", resp) + //resp, r, err := apiClient.V3.AccessRequestsAPI.SetAccessRequestConfig(context.Background()).AccessRequestConfig(accessRequestConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRequestsAPI.SetAccessRequestConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetAccessRequestConfig`: AccessRequestConfig + fmt.Fprintf(os.Stdout, "Response from `AccessRequestsAPI.SetAccessRequestConfig`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/AccountActivitiesAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/AccountActivitiesAPI.md index 8ca3ee7f4..eebbed188 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/AccountActivitiesAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/AccountActivitiesAPI.md @@ -93,7 +93,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -101,18 +101,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The account activity id # string | The account activity id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccountActivitiesAPI.GetAccountActivity(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.AccountActivitiesAPI.GetAccountActivity(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountActivitiesAPI.GetAccountActivity``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccountActivity`: AccountActivity - fmt.Fprintf(os.Stdout, "Response from `AccountActivitiesAPI.GetAccountActivity`: %v\n", resp) + //resp, r, err := apiClient.V3.AccountActivitiesAPI.GetAccountActivity(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountActivitiesAPI.GetAccountActivity``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccountActivity`: AccountActivity + fmt.Fprintf(os.Stdout, "Response from `AccountActivitiesAPI.GetAccountActivity`: %v\n", resp) } ``` @@ -162,7 +162,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -177,18 +177,18 @@ func main() { filters := `type eq "Identity Refresh"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **type**: *eq, in, ge, le, lt, ne, isnull, sw* **created**: *gt, lt, ge, le, eq, in, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, isnull, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **type**: *eq, in, ge, le, lt, ne, isnull, sw* **created**: *gt, lt, ge, le, eq, in, ne, isnull, sw* **modified**: *gt, lt, ge, le, eq, in, ne, isnull, sw* (optional) sorters := `created` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **type, created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **type, created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccountActivitiesAPI.ListAccountActivities(context.Background()).Execute() - //resp, r, err := apiClient.V3.AccountActivitiesAPI.ListAccountActivities(context.Background()).RequestedFor(requestedFor).RequestedBy(requestedBy).RegardingIdentity(regardingIdentity).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountActivitiesAPI.ListAccountActivities``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAccountActivities`: []AccountActivity - fmt.Fprintf(os.Stdout, "Response from `AccountActivitiesAPI.ListAccountActivities`: %v\n", resp) + //resp, r, err := apiClient.V3.AccountActivitiesAPI.ListAccountActivities(context.Background()).RequestedFor(requestedFor).RequestedBy(requestedBy).RegardingIdentity(regardingIdentity).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountActivitiesAPI.ListAccountActivities``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAccountActivities`: []AccountActivity + fmt.Fprintf(os.Stdout, "Response from `AccountActivitiesAPI.ListAccountActivities`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/AccountUsagesAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/AccountUsagesAPI.md index b2254bba7..d87010fd3 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/AccountUsagesAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/AccountUsagesAPI.md @@ -66,7 +66,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -78,18 +78,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) sorters := `-date` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **date** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **date** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccountUsagesAPI.GetUsagesByAccountId(context.Background(), accountId).Execute() - //resp, r, err := apiClient.V3.AccountUsagesAPI.GetUsagesByAccountId(context.Background(), accountId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountUsagesAPI.GetUsagesByAccountId``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetUsagesByAccountId`: []AccountUsage - fmt.Fprintf(os.Stdout, "Response from `AccountUsagesAPI.GetUsagesByAccountId`: %v\n", resp) + //resp, r, err := apiClient.V3.AccountUsagesAPI.GetUsagesByAccountId(context.Background(), accountId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountUsagesAPI.GetUsagesByAccountId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetUsagesByAccountId`: []AccountUsage + fmt.Fprintf(os.Stdout, "Response from `AccountUsagesAPI.GetUsagesByAccountId`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/AccountsAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/AccountsAPI.md index a30b8e983..741c7c80a 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/AccountsAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/AccountsAPI.md @@ -103,7 +103,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -120,24 +120,23 @@ func main() { } }`) // AccountAttributesCreate | - - var accountAttributesCreate v3.AccountAttributesCreate - if err := json.Unmarshal(accountattributescreate, &accountAttributesCreate); err != nil { - fmt.Println("Error:", err) - return - } - + var accountAttributesCreate v3.AccountAttributesCreate + if err := json.Unmarshal(accountattributescreate, &accountAttributesCreate); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccountsAPI.CreateAccount(context.Background()).AccountAttributesCreate(accountAttributesCreate).Execute() - //resp, r, err := apiClient.V3.AccountsAPI.CreateAccount(context.Background()).AccountAttributesCreate(accountAttributesCreate).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.CreateAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateAccount`: AccountsAsyncResult - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.CreateAccount`: %v\n", resp) + //resp, r, err := apiClient.V3.AccountsAPI.CreateAccount(context.Background()).AccountAttributesCreate(accountAttributesCreate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.CreateAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAccount`: AccountsAsyncResult + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.CreateAccount`: %v\n", resp) } ``` @@ -187,7 +186,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -195,18 +194,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccountsAPI.DeleteAccount(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.AccountsAPI.DeleteAccount(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.DeleteAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteAccount`: AccountsAsyncResult - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.DeleteAccount`: %v\n", resp) + //resp, r, err := apiClient.V3.AccountsAPI.DeleteAccount(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.DeleteAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteAccount`: AccountsAsyncResult + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.DeleteAccount`: %v\n", resp) } ``` @@ -254,7 +253,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -266,24 +265,23 @@ func main() { "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581" }`) // AccountToggleRequest | - - var accountToggleRequest v3.AccountToggleRequest - if err := json.Unmarshal(accounttogglerequest, &accountToggleRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var accountToggleRequest v3.AccountToggleRequest + if err := json.Unmarshal(accounttogglerequest, &accountToggleRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccountsAPI.DisableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() - //resp, r, err := apiClient.V3.AccountsAPI.DisableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.DisableAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DisableAccount`: AccountsAsyncResult - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.DisableAccount`: %v\n", resp) + //resp, r, err := apiClient.V3.AccountsAPI.DisableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.DisableAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DisableAccount`: AccountsAsyncResult + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.DisableAccount`: %v\n", resp) } ``` @@ -331,7 +329,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -343,24 +341,23 @@ func main() { "externalVerificationId" : "3f9180835d2e5168015d32f890ca1581" }`) // AccountToggleRequest | - - var accountToggleRequest v3.AccountToggleRequest - if err := json.Unmarshal(accounttogglerequest, &accountToggleRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var accountToggleRequest v3.AccountToggleRequest + if err := json.Unmarshal(accounttogglerequest, &accountToggleRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccountsAPI.EnableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() - //resp, r, err := apiClient.V3.AccountsAPI.EnableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.EnableAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `EnableAccount`: AccountsAsyncResult - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.EnableAccount`: %v\n", resp) + //resp, r, err := apiClient.V3.AccountsAPI.EnableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.EnableAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `EnableAccount`: AccountsAsyncResult + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.EnableAccount`: %v\n", resp) } ``` @@ -407,7 +404,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -415,18 +412,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccountsAPI.GetAccount(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.AccountsAPI.GetAccount(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.GetAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccount`: Account - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.GetAccount`: %v\n", resp) + //resp, r, err := apiClient.V3.AccountsAPI.GetAccount(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.GetAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccount`: Account + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.GetAccount`: %v\n", resp) } ``` @@ -476,7 +473,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -487,18 +484,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccountsAPI.GetAccountEntitlements(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.AccountsAPI.GetAccountEntitlements(context.Background(), id).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.GetAccountEntitlements``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAccountEntitlements`: []Entitlement - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.GetAccountEntitlements`: %v\n", resp) + //resp, r, err := apiClient.V3.AccountsAPI.GetAccountEntitlements(context.Background(), id).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.GetAccountEntitlements``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccountEntitlements`: []Entitlement + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.GetAccountEntitlements`: %v\n", resp) } ``` @@ -546,7 +543,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -559,18 +556,18 @@ func main() { filters := `identityId eq "2c9180858082150f0180893dbaf44201"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in, sw* **identityId**: *eq, in, sw* **name**: *eq, in, sw* **nativeIdentity**: *eq, in, sw* **hasEntitlements**: *eq* **sourceId**: *eq, in, sw* **uncorrelated**: *eq* **entitlements**: *eq* **origin**: *eq, in* **manuallyCorrelated**: *eq* **identity.name**: *eq, in, sw* **identity.correlated**: *eq* **identity.identityState**: *eq, in* **source.displayableName**: *eq, in* **source.authoritative**: *eq* **source.connectionType**: *eq, in* **recommendation.method**: *eq, in, isnull* **created**: *eq, ge, gt, le, lt* **modified**: *eq, ge, gt, le, lt* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in, sw* **identityId**: *eq, in, sw* **name**: *eq, in, sw* **nativeIdentity**: *eq, in, sw* **hasEntitlements**: *eq* **sourceId**: *eq, in, sw* **uncorrelated**: *eq* **entitlements**: *eq* **origin**: *eq, in* **manuallyCorrelated**: *eq* **identity.name**: *eq, in, sw* **identity.correlated**: *eq* **identity.identityState**: *eq, in* **source.displayableName**: *eq, in* **source.authoritative**: *eq* **source.connectionType**: *eq, in* **recommendation.method**: *eq, in, isnull* **created**: *eq, ge, gt, le, lt* **modified**: *eq, ge, gt, le, lt* (optional) sorters := `id,name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, sourceId, identityId, nativeIdentity, uuid, manuallyCorrelated, entitlements, origin, identity.name, identity.identityState, identity.correlated, source.displayableName, source.authoritative, source.connectionType** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, sourceId, identityId, nativeIdentity, uuid, manuallyCorrelated, entitlements, origin, identity.name, identity.identityState, identity.correlated, source.displayableName, source.authoritative, source.connectionType** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccountsAPI.ListAccounts(context.Background()).Execute() - //resp, r, err := apiClient.V3.AccountsAPI.ListAccounts(context.Background()).Limit(limit).Offset(offset).Count(count).DetailLevel(detailLevel).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.ListAccounts``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListAccounts`: []Account - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.ListAccounts`: %v\n", resp) + //resp, r, err := apiClient.V3.AccountsAPI.ListAccounts(context.Background()).Limit(limit).Offset(offset).Count(count).DetailLevel(detailLevel).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.ListAccounts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListAccounts`: []Account + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.ListAccounts`: %v\n", resp) } ``` @@ -623,7 +620,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -640,24 +637,23 @@ func main() { } }`) // AccountAttributes | - - var accountAttributes v3.AccountAttributes - if err := json.Unmarshal(accountattributes, &accountAttributes); err != nil { - fmt.Println("Error:", err) - return - } - + var accountAttributes v3.AccountAttributes + if err := json.Unmarshal(accountattributes, &accountAttributes); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccountsAPI.PutAccount(context.Background(), id).AccountAttributes(accountAttributes).Execute() - //resp, r, err := apiClient.V3.AccountsAPI.PutAccount(context.Background(), id).AccountAttributes(accountAttributes).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.PutAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutAccount`: AccountsAsyncResult - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.PutAccount`: %v\n", resp) + //resp, r, err := apiClient.V3.AccountsAPI.PutAccount(context.Background(), id).AccountAttributes(accountAttributes).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.PutAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutAccount`: AccountsAsyncResult + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.PutAccount`: %v\n", resp) } ``` @@ -704,7 +700,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -712,18 +708,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The account id # string | The account id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccountsAPI.SubmitReloadAccount(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.AccountsAPI.SubmitReloadAccount(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.SubmitReloadAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SubmitReloadAccount`: AccountsAsyncResult - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.SubmitReloadAccount`: %v\n", resp) + //resp, r, err := apiClient.V3.AccountsAPI.SubmitReloadAccount(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.SubmitReloadAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SubmitReloadAccount`: AccountsAsyncResult + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.SubmitReloadAccount`: %v\n", resp) } ``` @@ -772,7 +768,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -785,24 +781,23 @@ func main() { "unlockIDNAccount" : false }`) // AccountUnlockRequest | - - var accountUnlockRequest v3.AccountUnlockRequest - if err := json.Unmarshal(accountunlockrequest, &accountUnlockRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var accountUnlockRequest v3.AccountUnlockRequest + if err := json.Unmarshal(accountunlockrequest, &accountUnlockRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccountsAPI.UnlockAccount(context.Background(), id).AccountUnlockRequest(accountUnlockRequest).Execute() - //resp, r, err := apiClient.V3.AccountsAPI.UnlockAccount(context.Background(), id).AccountUnlockRequest(accountUnlockRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.UnlockAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UnlockAccount`: AccountsAsyncResult - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.UnlockAccount`: %v\n", resp) + //resp, r, err := apiClient.V3.AccountsAPI.UnlockAccount(context.Background(), id).AccountUnlockRequest(accountUnlockRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.UnlockAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UnlockAccount`: AccountsAsyncResult + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.UnlockAccount`: %v\n", resp) } ``` @@ -860,7 +855,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -869,24 +864,23 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Account ID. # string | Account ID. requestbody := []byte(`[{op=remove, path=/identityId}]`) // []map[string]interface{} | A list of account update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - - var requestBody v3.[]RequestBody - if err := json.Unmarshal(requestbody, &requestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var requestBody []v3.RequestBody + if err := json.Unmarshal(requestbody, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccountsAPI.UpdateAccount(context.Background(), id).RequestBody(requestBody).Execute() - //resp, r, err := apiClient.V3.AccountsAPI.UpdateAccount(context.Background(), id).RequestBody(requestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.UpdateAccount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateAccount`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.UpdateAccount`: %v\n", resp) + //resp, r, err := apiClient.V3.AccountsAPI.UpdateAccount(context.Background(), id).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.UpdateAccount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateAccount`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.UpdateAccount`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/ApplicationDiscoveryAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/ApplicationDiscoveryAPI.md index 78a22af8e..18894881e 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/ApplicationDiscoveryAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/ApplicationDiscoveryAPI.md @@ -64,7 +64,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -76,18 +76,18 @@ func main() { filter := `name eq "Okta" and description co "Okta" and discoverySource in ("csv", "Okta Saas")` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *eq, sw, co* **description**: *eq, sw, co* **createdAtStart**: *eq, le, ge* **createdAtEnd**: *eq, le, ge* **discoveredAtStart**: *eq, le, ge* **discoveredAtEnd**: *eq, le, ge* **discoverySource**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *eq, sw, co* **description**: *eq, sw, co* **createdAtStart**: *eq, le, ge* **createdAtEnd**: *eq, le, ge* **discoveredAtStart**: *eq, le, ge* **discoveredAtEnd**: *eq, le, ge* **discoverySource**: *eq, in* (optional) sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, description, discoveredAt, discoverySource** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, description, discoveredAt, discoverySource** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ApplicationDiscoveryAPI.GetDiscoveredApplications(context.Background()).Execute() - //resp, r, err := apiClient.V3.ApplicationDiscoveryAPI.GetDiscoveredApplications(context.Background()).Limit(limit).Offset(offset).Detail(detail).Filter(filter).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ApplicationDiscoveryAPI.GetDiscoveredApplications``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetDiscoveredApplications`: []GetDiscoveredApplications200ResponseInner - fmt.Fprintf(os.Stdout, "Response from `ApplicationDiscoveryAPI.GetDiscoveredApplications`: %v\n", resp) + //resp, r, err := apiClient.V3.ApplicationDiscoveryAPI.GetDiscoveredApplications(context.Background()).Limit(limit).Offset(offset).Detail(detail).Filter(filter).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApplicationDiscoveryAPI.GetDiscoveredApplications``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDiscoveredApplications`: []GetDiscoveredApplications200ResponseInner + fmt.Fprintf(os.Stdout, "Response from `ApplicationDiscoveryAPI.GetDiscoveredApplications`: %v\n", resp) } ``` @@ -129,25 +129,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() - //resp, r, err := apiClient.V3.ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetManualDiscoverApplicationsCsvTemplate`: ManualDiscoverApplicationsTemplate - fmt.Fprintf(os.Stdout, "Response from `ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate`: %v\n", resp) + //resp, r, err := apiClient.V3.ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetManualDiscoverApplicationsCsvTemplate`: ManualDiscoverApplicationsTemplate + fmt.Fprintf(os.Stdout, "Response from `ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate`: %v\n", resp) } ``` @@ -191,7 +191,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -199,16 +199,17 @@ import ( func main() { file := BINARY_DATA_HERE // *os.File | The CSV file to upload containing `application_name` and `description` columns. Each row represents an application to be discovered. # *os.File | The CSV file to upload containing `application_name` and `description` columns. Each row represents an application to be discovered. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate(context.Background()).File(file).Execute() - //r, err := apiClient.V3.ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate(context.Background()).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate(context.Background()).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/AuthUsersAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/AuthUsersAPI.md index 26a584530..51420a167 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/AuthUsersAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/AuthUsersAPI.md @@ -65,7 +65,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -73,18 +73,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Identity ID # string | Identity ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AuthUsersAPI.GetAuthUser(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.AuthUsersAPI.GetAuthUser(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AuthUsersAPI.GetAuthUser``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAuthUser`: AuthUser - fmt.Fprintf(os.Stdout, "Response from `AuthUsersAPI.GetAuthUser`: %v\n", resp) + //resp, r, err := apiClient.V3.AuthUsersAPI.GetAuthUser(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthUsersAPI.GetAuthUser``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAuthUser`: AuthUser + fmt.Fprintf(os.Stdout, "Response from `AuthUsersAPI.GetAuthUser`: %v\n", resp) } ``` @@ -136,7 +136,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -145,24 +145,23 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Identity ID # string | Identity ID jsonpatchoperation := []byte(`[{op=replace, path=/capabilities, value=[ORG_ADMIN]}]`) // []JsonPatchOperation | A list of auth user update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - - var jsonPatchOperation v3.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v3.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AuthUsersAPI.PatchAuthUser(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V3.AuthUsersAPI.PatchAuthUser(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AuthUsersAPI.PatchAuthUser``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchAuthUser`: AuthUser - fmt.Fprintf(os.Stdout, "Response from `AuthUsersAPI.PatchAuthUser`: %v\n", resp) + //resp, r, err := apiClient.V3.AuthUsersAPI.PatchAuthUser(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AuthUsersAPI.PatchAuthUser``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchAuthUser`: AuthUser + fmt.Fprintf(os.Stdout, "Response from `AuthUsersAPI.PatchAuthUser`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/BrandingAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/BrandingAPI.md index ae41d2749..15cddf3a7 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/BrandingAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/BrandingAPI.md @@ -71,7 +71,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -86,18 +86,18 @@ func main() { loginInformationalMessage := `loginInformationalMessage_example` // string | login information message (optional) # string | login information message (optional) fileStandard := BINARY_DATA_HERE // *os.File | png file with logo (optional) # *os.File | png file with logo (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.BrandingAPI.CreateBrandingItem(context.Background()).Name(name).ProductName(productName).Execute() - //resp, r, err := apiClient.V3.BrandingAPI.CreateBrandingItem(context.Background()).Name(name).ProductName(productName).ActionButtonColor(actionButtonColor).ActiveLinkColor(activeLinkColor).NavigationColor(navigationColor).EmailFromAddress(emailFromAddress).LoginInformationalMessage(loginInformationalMessage).FileStandard(fileStandard).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `BrandingAPI.CreateBrandingItem``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateBrandingItem`: BrandingItem - fmt.Fprintf(os.Stdout, "Response from `BrandingAPI.CreateBrandingItem`: %v\n", resp) + //resp, r, err := apiClient.V3.BrandingAPI.CreateBrandingItem(context.Background()).Name(name).ProductName(productName).ActionButtonColor(actionButtonColor).ActiveLinkColor(activeLinkColor).NavigationColor(navigationColor).EmailFromAddress(emailFromAddress).LoginInformationalMessage(loginInformationalMessage).FileStandard(fileStandard).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BrandingAPI.CreateBrandingItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateBrandingItem`: BrandingItem + fmt.Fprintf(os.Stdout, "Response from `BrandingAPI.CreateBrandingItem`: %v\n", resp) } ``` @@ -144,7 +144,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -152,16 +152,17 @@ import ( func main() { name := `default` // string | The name of the branding item to be deleted # string | The name of the branding item to be deleted - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.BrandingAPI.DeleteBranding(context.Background(), name).Execute() - //r, err := apiClient.V3.BrandingAPI.DeleteBranding(context.Background(), name).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `BrandingAPI.DeleteBranding``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.BrandingAPI.DeleteBranding(context.Background(), name).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BrandingAPI.DeleteBranding``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -208,7 +209,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -216,18 +217,18 @@ import ( func main() { name := `default` // string | The name of the branding item to be retrieved # string | The name of the branding item to be retrieved - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.BrandingAPI.GetBranding(context.Background(), name).Execute() - //resp, r, err := apiClient.V3.BrandingAPI.GetBranding(context.Background(), name).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `BrandingAPI.GetBranding``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetBranding`: BrandingItem - fmt.Fprintf(os.Stdout, "Response from `BrandingAPI.GetBranding`: %v\n", resp) + //resp, r, err := apiClient.V3.BrandingAPI.GetBranding(context.Background(), name).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BrandingAPI.GetBranding``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetBranding`: BrandingItem + fmt.Fprintf(os.Stdout, "Response from `BrandingAPI.GetBranding`: %v\n", resp) } ``` @@ -266,25 +267,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.BrandingAPI.GetBrandingList(context.Background()).Execute() - //resp, r, err := apiClient.V3.BrandingAPI.GetBrandingList(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `BrandingAPI.GetBrandingList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetBrandingList`: []BrandingItem - fmt.Fprintf(os.Stdout, "Response from `BrandingAPI.GetBrandingList`: %v\n", resp) + //resp, r, err := apiClient.V3.BrandingAPI.GetBrandingList(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BrandingAPI.GetBrandingList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetBrandingList`: []BrandingItem + fmt.Fprintf(os.Stdout, "Response from `BrandingAPI.GetBrandingList`: %v\n", resp) } ``` @@ -339,7 +340,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -355,18 +356,18 @@ func main() { loginInformationalMessage := `loginInformationalMessage_example` // string | login information message (optional) # string | login information message (optional) fileStandard := BINARY_DATA_HERE // *os.File | png file with logo (optional) # *os.File | png file with logo (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.BrandingAPI.SetBrandingItem(context.Background(), name).Name2(name2).ProductName(productName).Execute() - //resp, r, err := apiClient.V3.BrandingAPI.SetBrandingItem(context.Background(), name).Name2(name2).ProductName(productName).ActionButtonColor(actionButtonColor).ActiveLinkColor(activeLinkColor).NavigationColor(navigationColor).EmailFromAddress(emailFromAddress).LoginInformationalMessage(loginInformationalMessage).FileStandard(fileStandard).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `BrandingAPI.SetBrandingItem``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetBrandingItem`: BrandingItem - fmt.Fprintf(os.Stdout, "Response from `BrandingAPI.SetBrandingItem`: %v\n", resp) + //resp, r, err := apiClient.V3.BrandingAPI.SetBrandingItem(context.Background(), name).Name2(name2).ProductName(productName).ActionButtonColor(actionButtonColor).ActiveLinkColor(activeLinkColor).NavigationColor(navigationColor).EmailFromAddress(emailFromAddress).LoginInformationalMessage(loginInformationalMessage).FileStandard(fileStandard).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BrandingAPI.SetBrandingItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetBrandingItem`: BrandingItem + fmt.Fprintf(os.Stdout, "Response from `BrandingAPI.SetBrandingItem`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/CertificationCampaignFiltersAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/CertificationCampaignFiltersAPI.md index a63471532..615c422ca 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/CertificationCampaignFiltersAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/CertificationCampaignFiltersAPI.md @@ -86,7 +86,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -111,24 +111,23 @@ func main() { } ] }`) // CampaignFilterDetails | - - var campaignFilterDetails v3.CampaignFilterDetails - if err := json.Unmarshal(campaignfilterdetails, &campaignFilterDetails); err != nil { - fmt.Println("Error:", err) - return - } - + var campaignFilterDetails v3.CampaignFilterDetails + if err := json.Unmarshal(campaignfilterdetails, &campaignFilterDetails); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignFiltersAPI.CreateCampaignFilter(context.Background()).CampaignFilterDetails(campaignFilterDetails).Execute() - //resp, r, err := apiClient.V3.CertificationCampaignFiltersAPI.CreateCampaignFilter(context.Background()).CampaignFilterDetails(campaignFilterDetails).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignFiltersAPI.CreateCampaignFilter``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateCampaignFilter`: CampaignFilterDetails - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignFiltersAPI.CreateCampaignFilter`: %v\n", resp) + //resp, r, err := apiClient.V3.CertificationCampaignFiltersAPI.CreateCampaignFilter(context.Background()).CampaignFilterDetails(campaignFilterDetails).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignFiltersAPI.CreateCampaignFilter``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCampaignFilter`: CampaignFilterDetails + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignFiltersAPI.CreateCampaignFilter`: %v\n", resp) } ``` @@ -171,7 +170,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -179,22 +178,22 @@ import ( func main() { requestbody := []byte(``) // []string | A json list of IDs of campaign filters to delete. - - var requestBody v3.[]RequestBody - if err := json.Unmarshal(requestbody, &requestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var requestBody []v3.RequestBody + if err := json.Unmarshal(requestbody, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.CertificationCampaignFiltersAPI.DeleteCampaignFilters(context.Background()).RequestBody(requestBody).Execute() - //r, err := apiClient.V3.CertificationCampaignFiltersAPI.DeleteCampaignFilters(context.Background()).RequestBody(requestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignFiltersAPI.DeleteCampaignFilters``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.CertificationCampaignFiltersAPI.DeleteCampaignFilters(context.Background()).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignFiltersAPI.DeleteCampaignFilters``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -241,7 +240,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -249,18 +248,18 @@ import ( func main() { id := `e9f9a1397b842fd5a65842087040d3ac` // string | The ID of the campaign filter to be retrieved. # string | The ID of the campaign filter to be retrieved. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignFiltersAPI.GetCampaignFilterById(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.CertificationCampaignFiltersAPI.GetCampaignFilterById(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignFiltersAPI.GetCampaignFilterById``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCampaignFilterById`: CampaignFilterDetails - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignFiltersAPI.GetCampaignFilterById`: %v\n", resp) + //resp, r, err := apiClient.V3.CertificationCampaignFiltersAPI.GetCampaignFilterById(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignFiltersAPI.GetCampaignFilterById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCampaignFilterById`: CampaignFilterDetails + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignFiltersAPI.GetCampaignFilterById`: %v\n", resp) } ``` @@ -305,7 +304,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -315,18 +314,18 @@ func main() { start := 0 // int32 | Start/Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Start/Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) includeSystemFilters := true // bool | If this is true, the API includes system filters in the count and results. Otherwise it excludes them. If no value is provided, the default is true. (optional) (default to true) # bool | If this is true, the API includes system filters in the count and results. Otherwise it excludes them. If no value is provided, the default is true. (optional) (default to true) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignFiltersAPI.ListCampaignFilters(context.Background()).Execute() - //resp, r, err := apiClient.V3.CertificationCampaignFiltersAPI.ListCampaignFilters(context.Background()).Limit(limit).Start(start).IncludeSystemFilters(includeSystemFilters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignFiltersAPI.ListCampaignFilters``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListCampaignFilters`: ListCampaignFilters200Response - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignFiltersAPI.ListCampaignFilters`: %v\n", resp) + //resp, r, err := apiClient.V3.CertificationCampaignFiltersAPI.ListCampaignFilters(context.Background()).Limit(limit).Start(start).IncludeSystemFilters(includeSystemFilters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignFiltersAPI.ListCampaignFilters``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCampaignFilters`: ListCampaignFilters200Response + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignFiltersAPI.ListCampaignFilters`: %v\n", resp) } ``` @@ -374,7 +373,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -400,24 +399,23 @@ func main() { } ] }`) // CampaignFilterDetails | A campaign filter details with updated field values. - - var campaignFilterDetails v3.CampaignFilterDetails - if err := json.Unmarshal(campaignfilterdetails, &campaignFilterDetails); err != nil { - fmt.Println("Error:", err) - return - } - + var campaignFilterDetails v3.CampaignFilterDetails + if err := json.Unmarshal(campaignfilterdetails, &campaignFilterDetails); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignFiltersAPI.UpdateCampaignFilter(context.Background(), filterId).CampaignFilterDetails(campaignFilterDetails).Execute() - //resp, r, err := apiClient.V3.CertificationCampaignFiltersAPI.UpdateCampaignFilter(context.Background(), filterId).CampaignFilterDetails(campaignFilterDetails).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignFiltersAPI.UpdateCampaignFilter``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateCampaignFilter`: CampaignFilterDetails - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignFiltersAPI.UpdateCampaignFilter`: %v\n", resp) + //resp, r, err := apiClient.V3.CertificationCampaignFiltersAPI.UpdateCampaignFilter(context.Background(), filterId).CampaignFilterDetails(campaignFilterDetails).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignFiltersAPI.UpdateCampaignFilter``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateCampaignFilter`: CampaignFilterDetails + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignFiltersAPI.UpdateCampaignFilter`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/CertificationCampaignsAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/CertificationCampaignsAPI.md index 4c05a04cf..c1cdf2358 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/CertificationCampaignsAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/CertificationCampaignsAPI.md @@ -156,7 +156,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -167,18 +167,18 @@ func main() { "autoCompleteAction" : "REVOKE" }`) // CampaignCompleteOptions | Optional. Default behavior is for the campaign to auto-approve upon completion, unless autoCompleteAction=REVOKE (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.CompleteCampaign(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.CertificationCampaignsAPI.CompleteCampaign(context.Background(), id).CampaignCompleteOptions(campaignCompleteOptions).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.CompleteCampaign``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CompleteCampaign`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.CompleteCampaign`: %v\n", resp) + //resp, r, err := apiClient.V3.CertificationCampaignsAPI.CompleteCampaign(context.Background(), id).CampaignCompleteOptions(campaignCompleteOptions).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.CompleteCampaign``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CompleteCampaign`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.CompleteCampaign`: %v\n", resp) } ``` @@ -222,7 +222,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -338,24 +338,23 @@ func main() { "correlatedStatus" : "CORRELATED" }`) // Campaign | - - var campaign v3.Campaign - if err := json.Unmarshal(campaign, &campaign); err != nil { - fmt.Println("Error:", err) - return - } - + var campaign v3.Campaign + if err := json.Unmarshal(campaign, &campaign); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.CreateCampaign(context.Background()).Campaign(campaign).Execute() - //resp, r, err := apiClient.V3.CertificationCampaignsAPI.CreateCampaign(context.Background()).Campaign(campaign).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.CreateCampaign``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateCampaign`: Campaign - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.CreateCampaign`: %v\n", resp) + //resp, r, err := apiClient.V3.CertificationCampaignsAPI.CreateCampaign(context.Background()).Campaign(campaign).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.CreateCampaign``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCampaign`: Campaign + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.CreateCampaign`: %v\n", resp) } ``` @@ -399,7 +398,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -531,24 +530,23 @@ func main() { "id" : "2c9079b270a266a60170a277bb960008" }`) // CampaignTemplate | - - var campaignTemplate v3.CampaignTemplate - if err := json.Unmarshal(campaigntemplate, &campaignTemplate); err != nil { - fmt.Println("Error:", err) - return - } - + var campaignTemplate v3.CampaignTemplate + if err := json.Unmarshal(campaigntemplate, &campaignTemplate); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.CreateCampaignTemplate(context.Background()).CampaignTemplate(campaignTemplate).Execute() - //resp, r, err := apiClient.V3.CertificationCampaignsAPI.CreateCampaignTemplate(context.Background()).CampaignTemplate(campaignTemplate).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.CreateCampaignTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateCampaignTemplate`: CampaignTemplate - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.CreateCampaignTemplate`: %v\n", resp) + //resp, r, err := apiClient.V3.CertificationCampaignsAPI.CreateCampaignTemplate(context.Background()).CampaignTemplate(campaignTemplate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.CreateCampaignTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCampaignTemplate`: CampaignTemplate + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.CreateCampaignTemplate`: %v\n", resp) } ``` @@ -596,7 +594,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -604,16 +602,17 @@ import ( func main() { id := `2c9180835d191a86015d28455b4a2329` // string | ID of the campaign template being deleted. # string | ID of the campaign template being deleted. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.CertificationCampaignsAPI.DeleteCampaignTemplate(context.Background(), id).Execute() - //r, err := apiClient.V3.CertificationCampaignsAPI.DeleteCampaignTemplate(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.DeleteCampaignTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.CertificationCampaignsAPI.DeleteCampaignTemplate(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.DeleteCampaignTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -661,7 +660,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -669,16 +668,17 @@ import ( func main() { id := `04bedce387bd47b2ae1f86eb0bb36dee` // string | ID of the campaign template whose schedule is being deleted. # string | ID of the campaign template whose schedule is being deleted. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.CertificationCampaignsAPI.DeleteCampaignTemplateSchedule(context.Background(), id).Execute() - //r, err := apiClient.V3.CertificationCampaignsAPI.DeleteCampaignTemplateSchedule(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.DeleteCampaignTemplateSchedule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.CertificationCampaignsAPI.DeleteCampaignTemplateSchedule(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.DeleteCampaignTemplateSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -722,7 +722,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -732,24 +732,23 @@ func main() { "ids" : [ "2c9180887335cee10173490db1776c26", "2c9180836a712436016a7125a90c0021" ] }`) // CampaignsDeleteRequest | IDs of the campaigns to delete. - - var campaignsDeleteRequest v3.CampaignsDeleteRequest - if err := json.Unmarshal(campaignsdeleterequest, &campaignsDeleteRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var campaignsDeleteRequest v3.CampaignsDeleteRequest + if err := json.Unmarshal(campaignsdeleterequest, &campaignsDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.DeleteCampaigns(context.Background()).CampaignsDeleteRequest(campaignsDeleteRequest).Execute() - //resp, r, err := apiClient.V3.CertificationCampaignsAPI.DeleteCampaigns(context.Background()).CampaignsDeleteRequest(campaignsDeleteRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.DeleteCampaigns``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteCampaigns`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.DeleteCampaigns`: %v\n", resp) + //resp, r, err := apiClient.V3.CertificationCampaignsAPI.DeleteCampaigns(context.Background()).CampaignsDeleteRequest(campaignsDeleteRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.DeleteCampaigns``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteCampaigns`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.DeleteCampaigns`: %v\n", resp) } ``` @@ -798,7 +797,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -811,18 +810,18 @@ func main() { filters := `name eq "Manager Campaign"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **status**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **status**: *eq, in* (optional) sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetActiveCampaigns(context.Background()).Execute() - //resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetActiveCampaigns(context.Background()).Detail(detail).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetActiveCampaigns``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetActiveCampaigns`: []GetActiveCampaigns200ResponseInner - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetActiveCampaigns`: %v\n", resp) + //resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetActiveCampaigns(context.Background()).Detail(detail).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetActiveCampaigns``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetActiveCampaigns`: []GetActiveCampaigns200ResponseInner + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetActiveCampaigns`: %v\n", resp) } ``` @@ -871,7 +870,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -880,18 +879,18 @@ func main() { id := `2c91808571bcfcf80171c23e4b4221fc` // string | ID of the campaign to be retrieved. # string | ID of the campaign to be retrieved. detail := `FULL` // string | Determines whether slim, or increased level of detail is provided for each campaign in the returned list. Slim is the default behavior. (optional) # string | Determines whether slim, or increased level of detail is provided for each campaign in the returned list. Slim is the default behavior. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaign(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaign(context.Background(), id).Detail(detail).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaign``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCampaign`: GetCampaign200Response - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaign`: %v\n", resp) + //resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaign(context.Background(), id).Detail(detail).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaign``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCampaign`: GetCampaign200Response + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaign`: %v\n", resp) } ``` @@ -939,7 +938,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -947,18 +946,18 @@ import ( func main() { id := `2c91808571bcfcf80171c23e4b4221fc` // string | ID of the campaign whose reports are being fetched. # string | ID of the campaign whose reports are being fetched. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaignReports(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaignReports(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignReports``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCampaignReports`: []CampaignReport - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignReports`: %v\n", resp) + //resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaignReports(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignReports``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCampaignReports`: []CampaignReport + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignReports`: %v\n", resp) } ``` @@ -998,25 +997,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaignReportsConfig(context.Background()).Execute() - //resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaignReportsConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignReportsConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCampaignReportsConfig`: CampaignReportsConfig - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignReportsConfig`: %v\n", resp) + //resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaignReportsConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignReportsConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCampaignReportsConfig`: CampaignReportsConfig + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignReportsConfig`: %v\n", resp) } ``` @@ -1064,7 +1063,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1072,18 +1071,18 @@ import ( func main() { id := `2c9180835d191a86015d28455b4a2329` // string | Requested campaign template's ID. # string | Requested campaign template's ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaignTemplate(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaignTemplate(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCampaignTemplate`: CampaignTemplate - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignTemplate`: %v\n", resp) + //resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaignTemplate(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCampaignTemplate`: CampaignTemplate + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignTemplate`: %v\n", resp) } ``` @@ -1131,7 +1130,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1139,18 +1138,18 @@ import ( func main() { id := `04bedce387bd47b2ae1f86eb0bb36dee` // string | ID of the campaign template whose schedule is being fetched. # string | ID of the campaign template whose schedule is being fetched. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaignTemplateSchedule(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaignTemplateSchedule(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignTemplateSchedule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCampaignTemplateSchedule`: Schedule - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignTemplateSchedule`: %v\n", resp) + //resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaignTemplateSchedule(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignTemplateSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCampaignTemplateSchedule`: Schedule + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignTemplateSchedule`: %v\n", resp) } ``` @@ -1200,7 +1199,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1212,18 +1211,18 @@ func main() { sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, modified** (optional) filters := `name eq "manager template"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *eq, ge, gt, in, le, lt, ne, sw* **id**: *eq, ge, gt, in, le, lt, ne, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **name**: *eq, ge, gt, in, le, lt, ne, sw* **id**: *eq, ge, gt, in, le, lt, ne, sw* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaignTemplates(context.Background()).Execute() - //resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaignTemplates(context.Background()).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignTemplates``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCampaignTemplates`: []CampaignTemplate - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignTemplates`: %v\n", resp) + //resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaignTemplates(context.Background()).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.GetCampaignTemplates``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCampaignTemplates`: []CampaignTemplate + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.GetCampaignTemplates`: %v\n", resp) } ``` @@ -1272,7 +1271,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1288,24 +1287,23 @@ func main() { } }`) // AdminReviewReassign | - - var adminReviewReassign v3.AdminReviewReassign - if err := json.Unmarshal(adminreviewreassign, &adminReviewReassign); err != nil { - fmt.Println("Error:", err) - return - } - + var adminReviewReassign v3.AdminReviewReassign + if err := json.Unmarshal(adminreviewreassign, &adminReviewReassign); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.Move(context.Background(), id).AdminReviewReassign(adminReviewReassign).Execute() - //resp, r, err := apiClient.V3.CertificationCampaignsAPI.Move(context.Background(), id).AdminReviewReassign(adminReviewReassign).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.Move``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `Move`: CertificationTask - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.Move`: %v\n", resp) + //resp, r, err := apiClient.V3.CertificationCampaignsAPI.Move(context.Background(), id).AdminReviewReassign(adminReviewReassign).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.Move``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `Move`: CertificationTask + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.Move`: %v\n", resp) } ``` @@ -1354,7 +1352,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1363,24 +1361,23 @@ func main() { id := `2c9180835d191a86015d28455b4a2329` // string | ID of the campaign template being modified. # string | ID of the campaign template being modified. jsonpatchoperation := []byte(`[{op=replace, path=/description, value=Updated description!}, {op=replace, path=/campaign/filter/id, value=ff80818155fe8c080155fe8d925b0316}]`) // []JsonPatchOperation | A list of campaign update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * deadlineDuration * campaign (all fields that are allowed during create) - - var jsonPatchOperation v3.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v3.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.PatchCampaignTemplate(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V3.CertificationCampaignsAPI.PatchCampaignTemplate(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.PatchCampaignTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchCampaignTemplate`: CampaignTemplate - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.PatchCampaignTemplate`: %v\n", resp) + //resp, r, err := apiClient.V3.CertificationCampaignsAPI.PatchCampaignTemplate(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.PatchCampaignTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchCampaignTemplate`: CampaignTemplate + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.PatchCampaignTemplate`: %v\n", resp) } ``` @@ -1424,7 +1421,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1434,24 +1431,23 @@ func main() { "identityAttributeColumns" : [ "firstname", "lastname" ] }`) // CampaignReportsConfig | Campaign report configuration. - - var campaignReportsConfig v3.CampaignReportsConfig - if err := json.Unmarshal(campaignreportsconfig, &campaignReportsConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var campaignReportsConfig v3.CampaignReportsConfig + if err := json.Unmarshal(campaignreportsconfig, &campaignReportsConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.SetCampaignReportsConfig(context.Background()).CampaignReportsConfig(campaignReportsConfig).Execute() - //resp, r, err := apiClient.V3.CertificationCampaignsAPI.SetCampaignReportsConfig(context.Background()).CampaignReportsConfig(campaignReportsConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.SetCampaignReportsConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetCampaignReportsConfig`: CampaignReportsConfig - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.SetCampaignReportsConfig`: %v\n", resp) + //resp, r, err := apiClient.V3.CertificationCampaignsAPI.SetCampaignReportsConfig(context.Background()).CampaignReportsConfig(campaignReportsConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.SetCampaignReportsConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetCampaignReportsConfig`: CampaignReportsConfig + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.SetCampaignReportsConfig`: %v\n", resp) } ``` @@ -1500,7 +1496,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1528,16 +1524,17 @@ func main() { "type" : "WEEKLY" }`) // Schedule | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.CertificationCampaignsAPI.SetCampaignTemplateSchedule(context.Background(), id).Execute() - //r, err := apiClient.V3.CertificationCampaignsAPI.SetCampaignTemplateSchedule(context.Background(), id).Schedule(schedule).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.SetCampaignTemplateSchedule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.CertificationCampaignsAPI.SetCampaignTemplateSchedule(context.Background(), id).Schedule(schedule).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.SetCampaignTemplateSchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -1586,7 +1583,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1597,18 +1594,18 @@ func main() { "timeZone" : "-05:00" }`) // ActivateCampaignOptions | Optional. If no timezone is specified, the standard UTC timezone is used (i.e. UTC+00:00). Although this can take any timezone, the intended value is the caller's timezone. The activation time calculated from the given timezone may cause the campaign deadline time to be modified, but it will remain within the original date. The timezone must be in a valid ISO 8601 format. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.StartCampaign(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.CertificationCampaignsAPI.StartCampaign(context.Background(), id).ActivateCampaignOptions(activateCampaignOptions).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.StartCampaign``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartCampaign`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.StartCampaign`: %v\n", resp) + //resp, r, err := apiClient.V3.CertificationCampaignsAPI.StartCampaign(context.Background(), id).ActivateCampaignOptions(activateCampaignOptions).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.StartCampaign``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartCampaign`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.StartCampaign`: %v\n", resp) } ``` @@ -1656,7 +1653,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1664,18 +1661,18 @@ import ( func main() { id := `2c91808571bcfcf80171c23e4b4221fc` // string | ID of the campaign the remediation scan is being run for. # string | ID of the campaign the remediation scan is being run for. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.StartCampaignRemediationScan(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.CertificationCampaignsAPI.StartCampaignRemediationScan(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.StartCampaignRemediationScan``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartCampaignRemediationScan`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.StartCampaignRemediationScan`: %v\n", resp) + //resp, r, err := apiClient.V3.CertificationCampaignsAPI.StartCampaignRemediationScan(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.StartCampaignRemediationScan``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartCampaignRemediationScan`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.StartCampaignRemediationScan`: %v\n", resp) } ``` @@ -1725,7 +1722,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1734,18 +1731,18 @@ func main() { id := `2c91808571bcfcf80171c23e4b4221fc` // string | ID of the campaign the report is being run for. # string | ID of the campaign the report is being run for. type_ := // ReportType | Type of the report to run. # ReportType | Type of the report to run. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.StartCampaignReport(context.Background(), id, type_).Execute() - //resp, r, err := apiClient.V3.CertificationCampaignsAPI.StartCampaignReport(context.Background(), id, type_).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.StartCampaignReport``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartCampaignReport`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.StartCampaignReport`: %v\n", resp) + //resp, r, err := apiClient.V3.CertificationCampaignsAPI.StartCampaignReport(context.Background(), id, type_).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.StartCampaignReport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartCampaignReport`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.StartCampaignReport`: %v\n", resp) } ``` @@ -1803,7 +1800,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1811,18 +1808,18 @@ import ( func main() { id := `2c9180835d191a86015d28455b4a2329` // string | ID of the campaign template to use for generation. # string | ID of the campaign template to use for generation. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.StartGenerateCampaignTemplate(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.CertificationCampaignsAPI.StartGenerateCampaignTemplate(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.StartGenerateCampaignTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartGenerateCampaignTemplate`: CampaignReference - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.StartGenerateCampaignTemplate`: %v\n", resp) + //resp, r, err := apiClient.V3.CertificationCampaignsAPI.StartGenerateCampaignTemplate(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.StartGenerateCampaignTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartGenerateCampaignTemplate`: CampaignReference + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.StartGenerateCampaignTemplate`: %v\n", resp) } ``` @@ -1871,7 +1868,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1880,24 +1877,23 @@ func main() { id := `2c91808571bcfcf80171c23e4b4221fc` // string | ID of the campaign template being modified. # string | ID of the campaign template being modified. jsonpatchoperation := []byte(`[{op=replace, path=/name, value=This field has been updated!}, {op=copy, from=/name, path=/description}]`) // []JsonPatchOperation | A list of campaign update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The fields that can be patched differ based on the status of the campaign. When the campaign is in the *STAGED* status, you can patch these fields: * name * description * recommendationsEnabled * deadline * emailNotificationEnabled * autoRevokeAllowed When the campaign is in the *ACTIVE* status, you can patch these fields: * deadline - - var jsonPatchOperation v3.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v3.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.UpdateCampaign(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V3.CertificationCampaignsAPI.UpdateCampaign(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.UpdateCampaign``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateCampaign`: SlimCampaign - fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.UpdateCampaign`: %v\n", resp) + //resp, r, err := apiClient.V3.CertificationCampaignsAPI.UpdateCampaign(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationCampaignsAPI.UpdateCampaign``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateCampaign`: SlimCampaign + fmt.Fprintf(os.Stdout, "Response from `CertificationCampaignsAPI.UpdateCampaign`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/CertificationSummariesAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/CertificationSummariesAPI.md index c0fc609eb..2b67e9461 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/CertificationSummariesAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/CertificationSummariesAPI.md @@ -83,7 +83,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -97,18 +97,18 @@ func main() { filters := `access.id eq "ef38f94347e94562b5bb8424a56397d8"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **completed**: *eq, ne* **access.id**: *eq, in* **access.name**: *eq, sw* **entitlement.sourceName**: *eq, sw* **accessProfile.sourceName**: *eq, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **completed**: *eq, ne* **access.id**: *eq, in* **access.name**: *eq, sw* **entitlement.sourceName**: *eq, sw* **accessProfile.sourceName**: *eq, sw* (optional) sorters := `access.name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.name** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.name** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationSummariesAPI.GetIdentityAccessSummaries(context.Background(), id, type_).Execute() - //resp, r, err := apiClient.V3.CertificationSummariesAPI.GetIdentityAccessSummaries(context.Background(), id, type_).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationSummariesAPI.GetIdentityAccessSummaries``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentityAccessSummaries`: []AccessSummary - fmt.Fprintf(os.Stdout, "Response from `CertificationSummariesAPI.GetIdentityAccessSummaries`: %v\n", resp) + //resp, r, err := apiClient.V3.CertificationSummariesAPI.GetIdentityAccessSummaries(context.Background(), id, type_).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationSummariesAPI.GetIdentityAccessSummaries``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityAccessSummaries`: []AccessSummary + fmt.Fprintf(os.Stdout, "Response from `CertificationSummariesAPI.GetIdentityAccessSummaries`: %v\n", resp) } ``` @@ -156,7 +156,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -165,18 +165,18 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The certification ID # string | The certification ID filters := `identitySummary.id eq "ef38f94347e94562b5bb8424a56397d8"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **identitySummary.id**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **identitySummary.id**: *eq, in* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationSummariesAPI.GetIdentityDecisionSummary(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.CertificationSummariesAPI.GetIdentityDecisionSummary(context.Background(), id).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationSummariesAPI.GetIdentityDecisionSummary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentityDecisionSummary`: IdentityCertDecisionSummary - fmt.Fprintf(os.Stdout, "Response from `CertificationSummariesAPI.GetIdentityDecisionSummary`: %v\n", resp) + //resp, r, err := apiClient.V3.CertificationSummariesAPI.GetIdentityDecisionSummary(context.Background(), id).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationSummariesAPI.GetIdentityDecisionSummary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityDecisionSummary`: IdentityCertDecisionSummary + fmt.Fprintf(os.Stdout, "Response from `CertificationSummariesAPI.GetIdentityDecisionSummary`: %v\n", resp) } ``` @@ -228,7 +228,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -241,18 +241,18 @@ func main() { filters := `id eq "ef38f94347e94562b5bb8424a56397d8"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **completed**: *eq, ne* **name**: *eq, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **completed**: *eq, ne* **name**: *eq, sw* (optional) sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationSummariesAPI.GetIdentitySummaries(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.CertificationSummariesAPI.GetIdentitySummaries(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationSummariesAPI.GetIdentitySummaries``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentitySummaries`: []CertificationIdentitySummary - fmt.Fprintf(os.Stdout, "Response from `CertificationSummariesAPI.GetIdentitySummaries`: %v\n", resp) + //resp, r, err := apiClient.V3.CertificationSummariesAPI.GetIdentitySummaries(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationSummariesAPI.GetIdentitySummaries``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentitySummaries`: []CertificationIdentitySummary + fmt.Fprintf(os.Stdout, "Response from `CertificationSummariesAPI.GetIdentitySummaries`: %v\n", resp) } ``` @@ -301,7 +301,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -310,18 +310,18 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The identity campaign certification ID # string | The identity campaign certification ID identitySummaryId := `2c91808772a504f50172a9540e501ba8` // string | The identity summary ID # string | The identity summary ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationSummariesAPI.GetIdentitySummary(context.Background(), id, identitySummaryId).Execute() - //resp, r, err := apiClient.V3.CertificationSummariesAPI.GetIdentitySummary(context.Background(), id, identitySummaryId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationSummariesAPI.GetIdentitySummary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentitySummary`: CertificationIdentitySummary - fmt.Fprintf(os.Stdout, "Response from `CertificationSummariesAPI.GetIdentitySummary`: %v\n", resp) + //resp, r, err := apiClient.V3.CertificationSummariesAPI.GetIdentitySummary(context.Background(), id, identitySummaryId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationSummariesAPI.GetIdentitySummary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentitySummary`: CertificationIdentitySummary + fmt.Fprintf(os.Stdout, "Response from `CertificationSummariesAPI.GetIdentitySummary`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/CertificationsAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/CertificationsAPI.md index 0db095db6..51a16b85c 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/CertificationsAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/CertificationsAPI.md @@ -92,7 +92,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -100,18 +100,18 @@ import ( func main() { id := `63b32151-26c0-42f4-9299-8898dc1c9daa` // string | The task ID # string | The task ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationsAPI.GetCertificationTask(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.CertificationsAPI.GetCertificationTask(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.GetCertificationTask``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCertificationTask`: CertificationTask - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.GetCertificationTask`: %v\n", resp) + //resp, r, err := apiClient.V3.CertificationsAPI.GetCertificationTask(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.GetCertificationTask``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCertificationTask`: CertificationTask + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.GetCertificationTask`: %v\n", resp) } ``` @@ -158,7 +158,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -166,18 +166,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The certification id # string | The certification id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationsAPI.GetIdentityCertification(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.CertificationsAPI.GetIdentityCertification(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.GetIdentityCertification``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentityCertification`: IdentityCertificationDto - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.GetIdentityCertification`: %v\n", resp) + //resp, r, err := apiClient.V3.CertificationsAPI.GetIdentityCertification(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.GetIdentityCertification``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityCertification`: IdentityCertificationDto + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.GetIdentityCertification`: %v\n", resp) } ``` @@ -230,7 +230,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -243,18 +243,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationsAPI.GetIdentityCertificationItemPermissions(context.Background(), certificationId, itemId).Execute() - //resp, r, err := apiClient.V3.CertificationsAPI.GetIdentityCertificationItemPermissions(context.Background(), certificationId, itemId).Filters(filters).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.GetIdentityCertificationItemPermissions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentityCertificationItemPermissions`: []PermissionDto - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.GetIdentityCertificationItemPermissions`: %v\n", resp) + //resp, r, err := apiClient.V3.CertificationsAPI.GetIdentityCertificationItemPermissions(context.Background(), certificationId, itemId).Filters(filters).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.GetIdentityCertificationItemPermissions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityCertificationItemPermissions`: []PermissionDto + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.GetIdentityCertificationItemPermissions`: %v\n", resp) } ``` @@ -301,7 +301,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -313,18 +313,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) filters := `type eq "ADMIN_REASSIGN"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **targetId**: *eq, in* **type**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **targetId**: *eq, in* **type**: *eq, in* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationsAPI.GetPendingCertificationTasks(context.Background()).Execute() - //resp, r, err := apiClient.V3.CertificationsAPI.GetPendingCertificationTasks(context.Background()).ReviewerIdentity(reviewerIdentity).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.GetPendingCertificationTasks``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPendingCertificationTasks`: []CertificationTask - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.GetPendingCertificationTasks`: %v\n", resp) + //resp, r, err := apiClient.V3.CertificationsAPI.GetPendingCertificationTasks(context.Background()).ReviewerIdentity(reviewerIdentity).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.GetPendingCertificationTasks``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPendingCertificationTasks`: []CertificationTask + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.GetPendingCertificationTasks`: %v\n", resp) } ``` @@ -376,7 +376,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -389,18 +389,18 @@ func main() { filters := `name eq "Bob"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **email**: *eq, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, sw* **email**: *eq, sw* (optional) sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, email** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, email** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationsAPI.ListCertificationReviewers(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.CertificationsAPI.ListCertificationReviewers(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.ListCertificationReviewers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListCertificationReviewers`: []IdentityReferenceWithNameAndEmail - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.ListCertificationReviewers`: %v\n", resp) + //resp, r, err := apiClient.V3.CertificationsAPI.ListCertificationReviewers(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.ListCertificationReviewers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCertificationReviewers`: []IdentityReferenceWithNameAndEmail + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.ListCertificationReviewers`: %v\n", resp) } ``` @@ -455,7 +455,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -471,18 +471,18 @@ func main() { accessProfiles := `accessProfile1` // string | Filter results to view access review items that pertain to any of the specified comma-separated access-profle IDs. An error will occur if this param is used with **entitlements** or **roles** as only one of these query params can be used at a time. (optional) # string | Filter results to view access review items that pertain to any of the specified comma-separated access-profle IDs. An error will occur if this param is used with **entitlements** or **roles** as only one of these query params can be used at a time. (optional) roles := `userRole` // string | Filter results to view access review items that pertain to any of the specified comma-separated role IDs. An error will occur if this param is used with **entitlements** or **access-profiles** as only one of these query params can be used at a time. (optional) # string | Filter results to view access review items that pertain to any of the specified comma-separated role IDs. An error will occur if this param is used with **entitlements** or **access-profiles** as only one of these query params can be used at a time. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationsAPI.ListIdentityAccessReviewItems(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.CertificationsAPI.ListIdentityAccessReviewItems(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Entitlements(entitlements).AccessProfiles(accessProfiles).Roles(roles).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.ListIdentityAccessReviewItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListIdentityAccessReviewItems`: []AccessReviewItem - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.ListIdentityAccessReviewItems`: %v\n", resp) + //resp, r, err := apiClient.V3.CertificationsAPI.ListIdentityAccessReviewItems(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Entitlements(entitlements).AccessProfiles(accessProfiles).Roles(roles).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.ListIdentityAccessReviewItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListIdentityAccessReviewItems`: []AccessReviewItem + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.ListIdentityAccessReviewItems`: %v\n", resp) } ``` @@ -530,7 +530,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -543,18 +543,18 @@ func main() { filters := `id eq "ef38f94347e94562b5bb8424a56397d8"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **campaign.id**: *eq, in* **phase**: *eq* **completed**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **campaign.id**: *eq, in* **phase**: *eq* **completed**: *eq* (optional) sorters := `name,due` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, due, signed** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, due, signed** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationsAPI.ListIdentityCertifications(context.Background()).Execute() - //resp, r, err := apiClient.V3.CertificationsAPI.ListIdentityCertifications(context.Background()).ReviewerIdentity(reviewerIdentity).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.ListIdentityCertifications``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListIdentityCertifications`: []IdentityCertificationDto - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.ListIdentityCertifications`: %v\n", resp) + //resp, r, err := apiClient.V3.CertificationsAPI.ListIdentityCertifications(context.Background()).ReviewerIdentity(reviewerIdentity).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.ListIdentityCertifications``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListIdentityCertifications`: []IdentityCertificationDto + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.ListIdentityCertifications`: %v\n", resp) } ``` @@ -602,7 +602,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -611,24 +611,23 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the identity campaign certification on which to make decisions # string | The ID of the identity campaign certification on which to make decisions reviewdecision := []byte(`[{id=ef38f94347e94562b5bb8424a56396b5, decision=APPROVE, bulk=true, comments=This user still needs access to this source.}, {id=ef38f94347e94562b5bb8424a56397d8, decision=APPROVE, bulk=true, comments=This user still needs access to this source too.}]`) // []ReviewDecision | A non-empty array of decisions to be made. - - var reviewDecision v3.[]ReviewDecision - if err := json.Unmarshal(reviewdecision, &reviewDecision); err != nil { - fmt.Println("Error:", err) - return - } - + var reviewDecision []v3.ReviewDecision + if err := json.Unmarshal(reviewdecision, &reviewDecision); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationsAPI.MakeIdentityDecision(context.Background(), id).ReviewDecision(reviewDecision).Execute() - //resp, r, err := apiClient.V3.CertificationsAPI.MakeIdentityDecision(context.Background(), id).ReviewDecision(reviewDecision).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.MakeIdentityDecision``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `MakeIdentityDecision`: IdentityCertificationDto - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.MakeIdentityDecision`: %v\n", resp) + //resp, r, err := apiClient.V3.CertificationsAPI.MakeIdentityDecision(context.Background(), id).ReviewDecision(reviewDecision).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.MakeIdentityDecision``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `MakeIdentityDecision`: IdentityCertificationDto + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.MakeIdentityDecision`: %v\n", resp) } ``` @@ -676,7 +675,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -695,24 +694,23 @@ func main() { } ] }`) // ReviewReassign | - - var reviewReassign v3.ReviewReassign - if err := json.Unmarshal(reviewreassign, &reviewReassign); err != nil { - fmt.Println("Error:", err) - return - } - + var reviewReassign v3.ReviewReassign + if err := json.Unmarshal(reviewreassign, &reviewReassign); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationsAPI.ReassignIdentityCertifications(context.Background(), id).ReviewReassign(reviewReassign).Execute() - //resp, r, err := apiClient.V3.CertificationsAPI.ReassignIdentityCertifications(context.Background(), id).ReviewReassign(reviewReassign).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.ReassignIdentityCertifications``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ReassignIdentityCertifications`: IdentityCertificationDto - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.ReassignIdentityCertifications`: %v\n", resp) + //resp, r, err := apiClient.V3.CertificationsAPI.ReassignIdentityCertifications(context.Background(), id).ReviewReassign(reviewReassign).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.ReassignIdentityCertifications``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReassignIdentityCertifications`: IdentityCertificationDto + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.ReassignIdentityCertifications`: %v\n", resp) } ``` @@ -759,7 +757,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -767,18 +765,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The identity campaign certification ID # string | The identity campaign certification ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationsAPI.SignOffIdentityCertification(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.CertificationsAPI.SignOffIdentityCertification(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.SignOffIdentityCertification``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SignOffIdentityCertification`: IdentityCertificationDto - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.SignOffIdentityCertification`: %v\n", resp) + //resp, r, err := apiClient.V3.CertificationsAPI.SignOffIdentityCertification(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.SignOffIdentityCertification``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SignOffIdentityCertification`: IdentityCertificationDto + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.SignOffIdentityCertification`: %v\n", resp) } ``` @@ -831,7 +829,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -850,24 +848,23 @@ func main() { } ] }`) // ReviewReassign | - - var reviewReassign v3.ReviewReassign - if err := json.Unmarshal(reviewreassign, &reviewReassign); err != nil { - fmt.Println("Error:", err) - return - } - + var reviewReassign v3.ReviewReassign + if err := json.Unmarshal(reviewreassign, &reviewReassign); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationsAPI.SubmitReassignCertsAsync(context.Background(), id).ReviewReassign(reviewReassign).Execute() - //resp, r, err := apiClient.V3.CertificationsAPI.SubmitReassignCertsAsync(context.Background(), id).ReviewReassign(reviewReassign).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.SubmitReassignCertsAsync``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SubmitReassignCertsAsync`: CertificationTask - fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.SubmitReassignCertsAsync`: %v\n", resp) + //resp, r, err := apiClient.V3.CertificationsAPI.SubmitReassignCertsAsync(context.Background(), id).ReviewReassign(reviewReassign).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CertificationsAPI.SubmitReassignCertsAsync``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SubmitReassignCertsAsync`: CertificationTask + fmt.Fprintf(os.Stdout, "Response from `CertificationsAPI.SubmitReassignCertsAsync`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/ConfigurationHubAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/ConfigurationHubAPI.md index 1aca691f5..66da4466e 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/ConfigurationHubAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/ConfigurationHubAPI.md @@ -80,7 +80,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -95,24 +95,23 @@ func main() { "objectType" : "IDENTITY" }`) // ObjectMappingRequest | The object mapping request body. - - var objectMappingRequest v3.ObjectMappingRequest - if err := json.Unmarshal(objectmappingrequest, &objectMappingRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var objectMappingRequest v3.ObjectMappingRequest + if err := json.Unmarshal(objectmappingrequest, &objectMappingRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ConfigurationHubAPI.CreateObjectMapping(context.Background(), sourceOrg).ObjectMappingRequest(objectMappingRequest).Execute() - //resp, r, err := apiClient.V3.ConfigurationHubAPI.CreateObjectMapping(context.Background(), sourceOrg).ObjectMappingRequest(objectMappingRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.CreateObjectMapping``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateObjectMapping`: ObjectMappingResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.CreateObjectMapping`: %v\n", resp) + //resp, r, err := apiClient.V3.ConfigurationHubAPI.CreateObjectMapping(context.Background(), sourceOrg).ObjectMappingRequest(objectMappingRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.CreateObjectMapping``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateObjectMapping`: ObjectMappingResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.CreateObjectMapping`: %v\n", resp) } ``` @@ -163,7 +162,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -186,24 +185,23 @@ func main() { } ] }`) // ObjectMappingBulkCreateRequest | The bulk create object mapping request body. - - var objectMappingBulkCreateRequest v3.ObjectMappingBulkCreateRequest - if err := json.Unmarshal(objectmappingbulkcreaterequest, &objectMappingBulkCreateRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var objectMappingBulkCreateRequest v3.ObjectMappingBulkCreateRequest + if err := json.Unmarshal(objectmappingbulkcreaterequest, &objectMappingBulkCreateRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ConfigurationHubAPI.CreateObjectMappings(context.Background(), sourceOrg).ObjectMappingBulkCreateRequest(objectMappingBulkCreateRequest).Execute() - //resp, r, err := apiClient.V3.ConfigurationHubAPI.CreateObjectMappings(context.Background(), sourceOrg).ObjectMappingBulkCreateRequest(objectMappingBulkCreateRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.CreateObjectMappings``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateObjectMappings`: ObjectMappingBulkCreateResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.CreateObjectMappings`: %v\n", resp) + //resp, r, err := apiClient.V3.ConfigurationHubAPI.CreateObjectMappings(context.Background(), sourceOrg).ObjectMappingBulkCreateRequest(objectMappingBulkCreateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.CreateObjectMappings``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateObjectMappings`: ObjectMappingBulkCreateResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.CreateObjectMappings`: %v\n", resp) } ``` @@ -251,7 +249,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -260,18 +258,18 @@ func main() { data := BINARY_DATA_HERE // *os.File | JSON file containing the objects to be imported. # *os.File | JSON file containing the objects to be imported. name := `name_example` // string | Name that will be assigned to the uploaded configuration file. # string | Name that will be assigned to the uploaded configuration file. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ConfigurationHubAPI.CreateUploadedConfiguration(context.Background()).Data(data).Name(name).Execute() - //resp, r, err := apiClient.V3.ConfigurationHubAPI.CreateUploadedConfiguration(context.Background()).Data(data).Name(name).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.CreateUploadedConfiguration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateUploadedConfiguration`: BackupResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.CreateUploadedConfiguration`: %v\n", resp) + //resp, r, err := apiClient.V3.ConfigurationHubAPI.CreateUploadedConfiguration(context.Background()).Data(data).Name(name).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.CreateUploadedConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateUploadedConfiguration`: BackupResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.CreateUploadedConfiguration`: %v\n", resp) } ``` @@ -323,7 +321,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -332,16 +330,17 @@ func main() { sourceOrg := `source-org` // string | The name of the source org. # string | The name of the source org. objectMappingId := `3d6e0144-963f-4bd6-8d8d-d77b4e507ce4` // string | The id of the object mapping to be deleted. # string | The id of the object mapping to be deleted. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.ConfigurationHubAPI.DeleteObjectMapping(context.Background(), sourceOrg, objectMappingId).Execute() - //r, err := apiClient.V3.ConfigurationHubAPI.DeleteObjectMapping(context.Background(), sourceOrg, objectMappingId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.DeleteObjectMapping``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.ConfigurationHubAPI.DeleteObjectMapping(context.Background(), sourceOrg, objectMappingId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.DeleteObjectMapping``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -392,7 +391,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -400,16 +399,17 @@ import ( func main() { id := `3d0fe04b-57df-4a46-a83b-8f04b0f9d10b` // string | The id of the uploaded configuration. # string | The id of the uploaded configuration. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.ConfigurationHubAPI.DeleteUploadedConfiguration(context.Background(), id).Execute() - //r, err := apiClient.V3.ConfigurationHubAPI.DeleteUploadedConfiguration(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.DeleteUploadedConfiguration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.ConfigurationHubAPI.DeleteUploadedConfiguration(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.DeleteUploadedConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -459,7 +459,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -467,18 +467,18 @@ import ( func main() { sourceOrg := `source-org` // string | The name of the source org. # string | The name of the source org. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ConfigurationHubAPI.GetObjectMappings(context.Background(), sourceOrg).Execute() - //resp, r, err := apiClient.V3.ConfigurationHubAPI.GetObjectMappings(context.Background(), sourceOrg).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.GetObjectMappings``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetObjectMappings`: []ObjectMappingResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.GetObjectMappings`: %v\n", resp) + //resp, r, err := apiClient.V3.ConfigurationHubAPI.GetObjectMappings(context.Background(), sourceOrg).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.GetObjectMappings``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetObjectMappings`: []ObjectMappingResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.GetObjectMappings`: %v\n", resp) } ``` @@ -525,7 +525,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -533,18 +533,18 @@ import ( func main() { id := `3d0fe04b-57df-4a46-a83b-8f04b0f9d10b` // string | The id of the uploaded configuration. # string | The id of the uploaded configuration. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ConfigurationHubAPI.GetUploadedConfiguration(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.ConfigurationHubAPI.GetUploadedConfiguration(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.GetUploadedConfiguration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetUploadedConfiguration`: BackupResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.GetUploadedConfiguration`: %v\n", resp) + //resp, r, err := apiClient.V3.ConfigurationHubAPI.GetUploadedConfiguration(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.GetUploadedConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetUploadedConfiguration`: BackupResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.GetUploadedConfiguration`: %v\n", resp) } ``` @@ -587,7 +587,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -595,18 +595,18 @@ import ( func main() { filters := `status eq "COMPLETE"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **status**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **status**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ConfigurationHubAPI.ListUploadedConfigurations(context.Background()).Execute() - //resp, r, err := apiClient.V3.ConfigurationHubAPI.ListUploadedConfigurations(context.Background()).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.ListUploadedConfigurations``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListUploadedConfigurations`: []BackupResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.ListUploadedConfigurations`: %v\n", resp) + //resp, r, err := apiClient.V3.ConfigurationHubAPI.ListUploadedConfigurations(context.Background()).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.ListUploadedConfigurations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListUploadedConfigurations`: []BackupResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.ListUploadedConfigurations`: %v\n", resp) } ``` @@ -657,7 +657,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -679,24 +679,23 @@ func main() { } }`) // ObjectMappingBulkPatchRequest | The object mapping request body. - - var objectMappingBulkPatchRequest v3.ObjectMappingBulkPatchRequest - if err := json.Unmarshal(objectmappingbulkpatchrequest, &objectMappingBulkPatchRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var objectMappingBulkPatchRequest v3.ObjectMappingBulkPatchRequest + if err := json.Unmarshal(objectmappingbulkpatchrequest, &objectMappingBulkPatchRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ConfigurationHubAPI.UpdateObjectMappings(context.Background(), sourceOrg).ObjectMappingBulkPatchRequest(objectMappingBulkPatchRequest).Execute() - //resp, r, err := apiClient.V3.ConfigurationHubAPI.UpdateObjectMappings(context.Background(), sourceOrg).ObjectMappingBulkPatchRequest(objectMappingBulkPatchRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.UpdateObjectMappings``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateObjectMappings`: ObjectMappingBulkPatchResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.UpdateObjectMappings`: %v\n", resp) + //resp, r, err := apiClient.V3.ConfigurationHubAPI.UpdateObjectMappings(context.Background(), sourceOrg).ObjectMappingBulkPatchRequest(objectMappingBulkPatchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationHubAPI.UpdateObjectMappings``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateObjectMappings`: ObjectMappingBulkPatchResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationHubAPI.UpdateObjectMappings`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/ConnectorsAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/ConnectorsAPI.md index 8afc86d08..29066c7e9 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/ConnectorsAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/ConnectorsAPI.md @@ -79,7 +79,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -93,24 +93,23 @@ func main() { "status" : "RELEASED" }`) // V3CreateConnectorDto | - - var v3CreateConnectorDto v3.V3CreateConnectorDto - if err := json.Unmarshal(v3createconnectordto, &v3CreateConnectorDto); err != nil { - fmt.Println("Error:", err) - return - } - + var v3CreateConnectorDto v3.V3CreateConnectorDto + if err := json.Unmarshal(v3createconnectordto, &v3CreateConnectorDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ConnectorsAPI.CreateCustomConnector(context.Background()).V3CreateConnectorDto(v3CreateConnectorDto).Execute() - //resp, r, err := apiClient.V3.ConnectorsAPI.CreateCustomConnector(context.Background()).V3CreateConnectorDto(v3CreateConnectorDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.CreateCustomConnector``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateCustomConnector`: V3ConnectorDto - fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.CreateCustomConnector`: %v\n", resp) + //resp, r, err := apiClient.V3.ConnectorsAPI.CreateCustomConnector(context.Background()).V3CreateConnectorDto(v3CreateConnectorDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.CreateCustomConnector``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateCustomConnector`: V3ConnectorDto + fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.CreateCustomConnector`: %v\n", resp) } ``` @@ -157,7 +156,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -165,16 +164,17 @@ import ( func main() { scriptName := `aScriptName` // string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.ConnectorsAPI.DeleteCustomConnector(context.Background(), scriptName).Execute() - //r, err := apiClient.V3.ConnectorsAPI.DeleteCustomConnector(context.Background(), scriptName).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.DeleteCustomConnector``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.ConnectorsAPI.DeleteCustomConnector(context.Background(), scriptName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.DeleteCustomConnector``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -222,7 +222,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -231,18 +231,18 @@ func main() { scriptName := `aScriptName` // string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. locale := `de` // string | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) # string | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ConnectorsAPI.GetConnector(context.Background(), scriptName).Execute() - //resp, r, err := apiClient.V3.ConnectorsAPI.GetConnector(context.Background(), scriptName).Locale(locale).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.GetConnector``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetConnector`: ConnectorDetail - fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.GetConnector`: %v\n", resp) + //resp, r, err := apiClient.V3.ConnectorsAPI.GetConnector(context.Background(), scriptName).Locale(locale).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.GetConnector``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnector`: ConnectorDetail + fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.GetConnector`: %v\n", resp) } ``` @@ -289,7 +289,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -301,18 +301,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) locale := `de` // string | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) # string | The locale to apply to the config. If no viable locale is given, it will default to \"en\" (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ConnectorsAPI.GetConnectorList(context.Background()).Execute() - //resp, r, err := apiClient.V3.ConnectorsAPI.GetConnectorList(context.Background()).Filters(filters).Limit(limit).Offset(offset).Count(count).Locale(locale).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.GetConnectorList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetConnectorList`: []V3ConnectorDto - fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.GetConnectorList`: %v\n", resp) + //resp, r, err := apiClient.V3.ConnectorsAPI.GetConnectorList(context.Background()).Filters(filters).Limit(limit).Offset(offset).Count(count).Locale(locale).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.GetConnectorList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnectorList`: []V3ConnectorDto + fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.GetConnectorList`: %v\n", resp) } ``` @@ -359,7 +359,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -367,18 +367,18 @@ import ( func main() { scriptName := `aScriptName` // string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ConnectorsAPI.GetConnectorSourceConfig(context.Background(), scriptName).Execute() - //resp, r, err := apiClient.V3.ConnectorsAPI.GetConnectorSourceConfig(context.Background(), scriptName).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.GetConnectorSourceConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetConnectorSourceConfig`: string - fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.GetConnectorSourceConfig`: %v\n", resp) + //resp, r, err := apiClient.V3.ConnectorsAPI.GetConnectorSourceConfig(context.Background(), scriptName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.GetConnectorSourceConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnectorSourceConfig`: string + fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.GetConnectorSourceConfig`: %v\n", resp) } ``` @@ -425,7 +425,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -433,18 +433,18 @@ import ( func main() { scriptName := `aScriptName` // string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ConnectorsAPI.GetConnectorSourceTemplate(context.Background(), scriptName).Execute() - //resp, r, err := apiClient.V3.ConnectorsAPI.GetConnectorSourceTemplate(context.Background(), scriptName).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.GetConnectorSourceTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetConnectorSourceTemplate`: string - fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.GetConnectorSourceTemplate`: %v\n", resp) + //resp, r, err := apiClient.V3.ConnectorsAPI.GetConnectorSourceTemplate(context.Background(), scriptName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.GetConnectorSourceTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnectorSourceTemplate`: string + fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.GetConnectorSourceTemplate`: %v\n", resp) } ``` @@ -493,7 +493,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -502,18 +502,18 @@ func main() { scriptName := `aScriptName` // string | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. # string | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. locale := `de` // string | The locale to apply to the config. If no viable locale is given, it will default to \"en\" # string | The locale to apply to the config. If no viable locale is given, it will default to \"en\" - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ConnectorsAPI.GetConnectorTranslations(context.Background(), scriptName, locale).Execute() - //resp, r, err := apiClient.V3.ConnectorsAPI.GetConnectorTranslations(context.Background(), scriptName, locale).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.GetConnectorTranslations``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetConnectorTranslations`: string - fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.GetConnectorTranslations`: %v\n", resp) + //resp, r, err := apiClient.V3.ConnectorsAPI.GetConnectorTranslations(context.Background(), scriptName, locale).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.GetConnectorTranslations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConnectorTranslations`: string + fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.GetConnectorTranslations`: %v\n", resp) } ``` @@ -561,7 +561,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -570,18 +570,18 @@ func main() { scriptName := `aScriptName` // string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. file := BINARY_DATA_HERE // *os.File | connector source config xml file # *os.File | connector source config xml file - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ConnectorsAPI.PutConnectorSourceConfig(context.Background(), scriptName).File(file).Execute() - //resp, r, err := apiClient.V3.ConnectorsAPI.PutConnectorSourceConfig(context.Background(), scriptName).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.PutConnectorSourceConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutConnectorSourceConfig`: UpdateDetail - fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.PutConnectorSourceConfig`: %v\n", resp) + //resp, r, err := apiClient.V3.ConnectorsAPI.PutConnectorSourceConfig(context.Background(), scriptName).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.PutConnectorSourceConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutConnectorSourceConfig`: UpdateDetail + fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.PutConnectorSourceConfig`: %v\n", resp) } ``` @@ -629,7 +629,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -638,18 +638,18 @@ func main() { scriptName := `aScriptName` // string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. file := BINARY_DATA_HERE // *os.File | connector source template xml file # *os.File | connector source template xml file - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ConnectorsAPI.PutConnectorSourceTemplate(context.Background(), scriptName).File(file).Execute() - //resp, r, err := apiClient.V3.ConnectorsAPI.PutConnectorSourceTemplate(context.Background(), scriptName).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.PutConnectorSourceTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutConnectorSourceTemplate`: UpdateDetail - fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.PutConnectorSourceTemplate`: %v\n", resp) + //resp, r, err := apiClient.V3.ConnectorsAPI.PutConnectorSourceTemplate(context.Background(), scriptName).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.PutConnectorSourceTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutConnectorSourceTemplate`: UpdateDetail + fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.PutConnectorSourceTemplate`: %v\n", resp) } ``` @@ -698,7 +698,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -707,18 +707,18 @@ func main() { scriptName := `aScriptName` // string | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. # string | The scriptName value of the connector. Scriptname is the unique id generated at connector creation. locale := `de` // string | The locale to apply to the config. If no viable locale is given, it will default to \"en\" # string | The locale to apply to the config. If no viable locale is given, it will default to \"en\" - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ConnectorsAPI.PutConnectorTranslations(context.Background(), scriptName, locale).Execute() - //resp, r, err := apiClient.V3.ConnectorsAPI.PutConnectorTranslations(context.Background(), scriptName, locale).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.PutConnectorTranslations``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutConnectorTranslations`: UpdateDetail - fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.PutConnectorTranslations`: %v\n", resp) + //resp, r, err := apiClient.V3.ConnectorsAPI.PutConnectorTranslations(context.Background(), scriptName, locale).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.PutConnectorTranslations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutConnectorTranslations`: UpdateDetail + fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.PutConnectorTranslations`: %v\n", resp) } ``` @@ -778,7 +778,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -787,24 +787,23 @@ func main() { scriptName := `aScriptName` // string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. # string | The scriptName value of the connector. ScriptName is the unique id generated at connector creation. jsonpatchoperation := []byte(``) // []JsonPatchOperation | A list of connector detail update operations - - var jsonPatchOperation v3.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v3.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ConnectorsAPI.UpdateConnector(context.Background(), scriptName).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V3.ConnectorsAPI.UpdateConnector(context.Background(), scriptName).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.UpdateConnector``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateConnector`: ConnectorDetail - fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.UpdateConnector`: %v\n", resp) + //resp, r, err := apiClient.V3.ConnectorsAPI.UpdateConnector(context.Background(), scriptName).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConnectorsAPI.UpdateConnector``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateConnector`: ConnectorDetail + fmt.Fprintf(os.Stdout, "Response from `ConnectorsAPI.UpdateConnector`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/GlobalTenantSecuritySettingsAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/GlobalTenantSecuritySettingsAPI.md index 76089f29e..e571af52b 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/GlobalTenantSecuritySettingsAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/GlobalTenantSecuritySettingsAPI.md @@ -66,7 +66,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -78,24 +78,23 @@ func main() { "geolocation" : [ "CA", "FR", "HT" ] }`) // NetworkConfiguration | Network configuration creation request body. The following constraints ensure the request body conforms to certain logical guidelines, which are: 1. Each string element in the range array must be a valid ip address or ip subnet mask. 2. Each string element in the geolocation array must be 2 characters, and they can only be uppercase letters. - - var networkConfiguration v3.NetworkConfiguration - if err := json.Unmarshal(networkconfiguration, &networkConfiguration); err != nil { - fmt.Println("Error:", err) - return - } - + var networkConfiguration v3.NetworkConfiguration + if err := json.Unmarshal(networkconfiguration, &networkConfiguration); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.CreateAuthOrgNetworkConfig(context.Background()).NetworkConfiguration(networkConfiguration).Execute() - //resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.CreateAuthOrgNetworkConfig(context.Background()).NetworkConfiguration(networkConfiguration).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.CreateAuthOrgNetworkConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateAuthOrgNetworkConfig`: NetworkConfiguration - fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.CreateAuthOrgNetworkConfig`: %v\n", resp) + //resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.CreateAuthOrgNetworkConfig(context.Background()).NetworkConfiguration(networkConfiguration).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.CreateAuthOrgNetworkConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAuthOrgNetworkConfig`: NetworkConfiguration + fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.CreateAuthOrgNetworkConfig`: %v\n", resp) } ``` @@ -134,25 +133,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.GetAuthOrgLockoutConfig(context.Background()).Execute() - //resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.GetAuthOrgLockoutConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.GetAuthOrgLockoutConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAuthOrgLockoutConfig`: LockoutConfiguration - fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.GetAuthOrgLockoutConfig`: %v\n", resp) + //resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.GetAuthOrgLockoutConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.GetAuthOrgLockoutConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAuthOrgLockoutConfig`: LockoutConfiguration + fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.GetAuthOrgLockoutConfig`: %v\n", resp) } ``` @@ -191,25 +190,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.GetAuthOrgNetworkConfig(context.Background()).Execute() - //resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.GetAuthOrgNetworkConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.GetAuthOrgNetworkConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAuthOrgNetworkConfig`: NetworkConfiguration - fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.GetAuthOrgNetworkConfig`: %v\n", resp) + //resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.GetAuthOrgNetworkConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.GetAuthOrgNetworkConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAuthOrgNetworkConfig`: NetworkConfiguration + fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.GetAuthOrgNetworkConfig`: %v\n", resp) } ``` @@ -248,25 +247,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.GetAuthOrgServiceProviderConfig(context.Background()).Execute() - //resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.GetAuthOrgServiceProviderConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.GetAuthOrgServiceProviderConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAuthOrgServiceProviderConfig`: ServiceProviderConfiguration - fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.GetAuthOrgServiceProviderConfig`: %v\n", resp) + //resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.GetAuthOrgServiceProviderConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.GetAuthOrgServiceProviderConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAuthOrgServiceProviderConfig`: ServiceProviderConfiguration + fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.GetAuthOrgServiceProviderConfig`: %v\n", resp) } ``` @@ -305,25 +304,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.GetAuthOrgSessionConfig(context.Background()).Execute() - //resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.GetAuthOrgSessionConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.GetAuthOrgSessionConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetAuthOrgSessionConfig`: SessionConfiguration - fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.GetAuthOrgSessionConfig`: %v\n", resp) + //resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.GetAuthOrgSessionConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.GetAuthOrgSessionConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAuthOrgSessionConfig`: SessionConfiguration + fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.GetAuthOrgSessionConfig`: %v\n", resp) } ``` @@ -367,7 +366,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -375,24 +374,23 @@ import ( func main() { jsonpatchoperation := []byte(`[{op=replace, path=/maximumAttempts, value=7,}, {op=add, path=/lockoutDuration, value=35}]`) // []JsonPatchOperation | A list of auth org lockout configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Ensures that the patched Lockout Config conforms to certain logical guidelines, which are: `1. maximumAttempts >= 1 && maximumAttempts <= 15 2. lockoutDuration >= 5 && lockoutDuration <= 60 3. lockoutWindow >= 5 && lockoutDuration <= 60` - - var jsonPatchOperation v3.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v3.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchAuthOrgLockoutConfig`: LockoutConfiguration - fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig`: %v\n", resp) + //resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchAuthOrgLockoutConfig`: LockoutConfiguration + fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig`: %v\n", resp) } ``` @@ -436,7 +434,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -444,24 +442,23 @@ import ( func main() { jsonpatchoperation := []byte(`[{op=replace, path=/whitelisted, value=false,}, {op=add, path=/geolocation, value=[AF, HN, ES]}]`) // []JsonPatchOperation | A list of auth org network configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Ensures that the patched Network Config conforms to certain logical guidelines, which are: 1. Each string element in the range array must be a valid ip address or ip subnet mask. 2. Each string element in the geolocation array must be 2 characters, and they can only be uppercase letters. - - var jsonPatchOperation v3.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v3.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchAuthOrgNetworkConfig`: NetworkConfiguration - fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig`: %v\n", resp) + //resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchAuthOrgNetworkConfig`: NetworkConfiguration + fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig`: %v\n", resp) } ``` @@ -504,7 +501,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -512,24 +509,23 @@ import ( func main() { jsonpatchoperation := []byte(`[{op=replace, path=/enabled, value=true,}, {op=add, path=/federationProtocolDetails/0/jitConfiguration, value={enabled=true, sourceId=2c9180857377ed2901739c12a2da5ac8, sourceAttributeMappings={firstName=okta.firstName, lastName=okta.lastName, email=okta.email, employeeNumber=okta.employeeNumber}}}]`) // []JsonPatchOperation | A list of auth org service provider configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Note: /federationProtocolDetails/0 is IdpDetails /federationProtocolDetails/1 is SpDetails Ensures that the patched ServiceProviderConfig conforms to certain logical guidelines, which are: 1. Do not add or remove any elements in the federation protocol details in the service provider configuration. 2. Do not modify, add, or delete the service provider details element in the federation protocol details. 3. If this is the first time the patched ServiceProviderConfig enables Remote IDP sign-in, it must also include IDPDetails. 4. If the patch enables Remote IDP sign in, the entityID in the IDPDetails cannot be null. IDPDetails must include an entityID. 5. Any JIT configuration update must be valid. Just in time configuration update must be valid when enabled. This includes: - A Source ID - Source attribute mappings - Source attribute maps have all the required key values (firstName, lastName, email) - - var jsonPatchOperation v3.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v3.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchAuthOrgServiceProviderConfig`: ServiceProviderConfiguration - fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig`: %v\n", resp) + //resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchAuthOrgServiceProviderConfig`: ServiceProviderConfiguration + fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig`: %v\n", resp) } ``` @@ -572,7 +568,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -580,24 +576,23 @@ import ( func main() { jsonpatchoperation := []byte(`[{op=replace, path=/rememberMe, value=true,}, {op=add, path=/maxSessionTime, value=480}]`) // []JsonPatchOperation | A list of auth org session configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Ensures that the patched Session Config conforms to certain logical guidelines, which are: `1. maxSessionTime >= 1 && maxSessionTime <= 10080 (1 week) 2. maxIdleTime >= 1 && maxIdleTime <= 1440 (1 day) 3. maxSessionTime must have a greater duration than maxIdleTime.` - - var jsonPatchOperation v3.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v3.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchAuthOrgSessionConfig`: SessionConfiguration - fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig`: %v\n", resp) + //resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchAuthOrgSessionConfig`: SessionConfiguration + fmt.Fprintf(os.Stdout, "Response from `GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/IdentityProfilesAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/IdentityProfilesAPI.md index 1aa2a7118..39d8aeb5a 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/IdentityProfilesAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/IdentityProfilesAPI.md @@ -75,7 +75,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -131,24 +131,23 @@ func main() { "id" : "id12345" }`) // IdentityProfile | - - var identityProfile v3.IdentityProfile - if err := json.Unmarshal(identityprofile, &identityProfile); err != nil { - fmt.Println("Error:", err) - return - } - + var identityProfile v3.IdentityProfile + if err := json.Unmarshal(identityprofile, &identityProfile); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.IdentityProfilesAPI.CreateIdentityProfile(context.Background()).IdentityProfile(identityProfile).Execute() - //resp, r, err := apiClient.V3.IdentityProfilesAPI.CreateIdentityProfile(context.Background()).IdentityProfile(identityProfile).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.CreateIdentityProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateIdentityProfile`: IdentityProfile - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.CreateIdentityProfile`: %v\n", resp) + //resp, r, err := apiClient.V3.IdentityProfilesAPI.CreateIdentityProfile(context.Background()).IdentityProfile(identityProfile).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.CreateIdentityProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateIdentityProfile`: IdentityProfile + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.CreateIdentityProfile`: %v\n", resp) } ``` @@ -196,7 +195,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -204,18 +203,18 @@ import ( func main() { identityProfileId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity profile ID. # string | Identity profile ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.IdentityProfilesAPI.DeleteIdentityProfile(context.Background(), identityProfileId).Execute() - //resp, r, err := apiClient.V3.IdentityProfilesAPI.DeleteIdentityProfile(context.Background(), identityProfileId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.DeleteIdentityProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteIdentityProfile`: TaskResultSimplified - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.DeleteIdentityProfile`: %v\n", resp) + //resp, r, err := apiClient.V3.IdentityProfilesAPI.DeleteIdentityProfile(context.Background(), identityProfileId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.DeleteIdentityProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteIdentityProfile`: TaskResultSimplified + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.DeleteIdentityProfile`: %v\n", resp) } ``` @@ -262,7 +261,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -270,24 +269,23 @@ import ( func main() { requestbody := []byte(``) // []string | Identity Profile bulk delete request body. - - var requestBody v3.[]RequestBody - if err := json.Unmarshal(requestbody, &requestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var requestBody []v3.RequestBody + if err := json.Unmarshal(requestbody, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.IdentityProfilesAPI.DeleteIdentityProfiles(context.Background()).RequestBody(requestBody).Execute() - //resp, r, err := apiClient.V3.IdentityProfilesAPI.DeleteIdentityProfiles(context.Background()).RequestBody(requestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.DeleteIdentityProfiles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteIdentityProfiles`: TaskResultSimplified - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.DeleteIdentityProfiles`: %v\n", resp) + //resp, r, err := apiClient.V3.IdentityProfilesAPI.DeleteIdentityProfiles(context.Background()).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.DeleteIdentityProfiles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteIdentityProfiles`: TaskResultSimplified + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.DeleteIdentityProfiles`: %v\n", resp) } ``` @@ -334,7 +332,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -346,18 +344,18 @@ func main() { filters := `id eq "ef38f94347e94562b5bb8424a56397d8"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, ne* **name**: *eq, ne* **priority**: *eq, ne* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, ne* **name**: *eq, ne* **priority**: *eq, ne* (optional) sorters := `id,name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, priority** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, priority** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.IdentityProfilesAPI.ExportIdentityProfiles(context.Background()).Execute() - //resp, r, err := apiClient.V3.IdentityProfilesAPI.ExportIdentityProfiles(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.ExportIdentityProfiles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExportIdentityProfiles`: []IdentityProfileExportedObject - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.ExportIdentityProfiles`: %v\n", resp) + //resp, r, err := apiClient.V3.IdentityProfilesAPI.ExportIdentityProfiles(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.ExportIdentityProfiles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExportIdentityProfiles`: []IdentityProfileExportedObject + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.ExportIdentityProfiles`: %v\n", resp) } ``` @@ -404,7 +402,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -412,18 +410,18 @@ import ( func main() { identityProfileId := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | The Identity Profile ID. # string | The Identity Profile ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.IdentityProfilesAPI.GetDefaultIdentityAttributeConfig(context.Background(), identityProfileId).Execute() - //resp, r, err := apiClient.V3.IdentityProfilesAPI.GetDefaultIdentityAttributeConfig(context.Background(), identityProfileId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.GetDefaultIdentityAttributeConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetDefaultIdentityAttributeConfig`: IdentityAttributeConfig - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.GetDefaultIdentityAttributeConfig`: %v\n", resp) + //resp, r, err := apiClient.V3.IdentityProfilesAPI.GetDefaultIdentityAttributeConfig(context.Background(), identityProfileId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.GetDefaultIdentityAttributeConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDefaultIdentityAttributeConfig`: IdentityAttributeConfig + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.GetDefaultIdentityAttributeConfig`: %v\n", resp) } ``` @@ -470,7 +468,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -478,18 +476,18 @@ import ( func main() { identityProfileId := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | Identity profile ID. # string | Identity profile ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.IdentityProfilesAPI.GetIdentityProfile(context.Background(), identityProfileId).Execute() - //resp, r, err := apiClient.V3.IdentityProfilesAPI.GetIdentityProfile(context.Background(), identityProfileId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.GetIdentityProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetIdentityProfile`: IdentityProfile - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.GetIdentityProfile`: %v\n", resp) + //resp, r, err := apiClient.V3.IdentityProfilesAPI.GetIdentityProfile(context.Background(), identityProfileId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.GetIdentityProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdentityProfile`: IdentityProfile + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.GetIdentityProfile`: %v\n", resp) } ``` @@ -532,7 +530,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -540,24 +538,23 @@ import ( func main() { identityprofileexportedobject := []byte(``) // []IdentityProfileExportedObject | Previously exported Identity Profiles. - - var identityProfileExportedObject v3.[]IdentityProfileExportedObject - if err := json.Unmarshal(identityprofileexportedobject, &identityProfileExportedObject); err != nil { - fmt.Println("Error:", err) - return - } - + var identityProfileExportedObject []v3.IdentityProfileExportedObject + if err := json.Unmarshal(identityprofileexportedobject, &identityProfileExportedObject); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.IdentityProfilesAPI.ImportIdentityProfiles(context.Background()).IdentityProfileExportedObject(identityProfileExportedObject).Execute() - //resp, r, err := apiClient.V3.IdentityProfilesAPI.ImportIdentityProfiles(context.Background()).IdentityProfileExportedObject(identityProfileExportedObject).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.ImportIdentityProfiles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportIdentityProfiles`: ObjectImportResult - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.ImportIdentityProfiles`: %v\n", resp) + //resp, r, err := apiClient.V3.IdentityProfilesAPI.ImportIdentityProfiles(context.Background()).IdentityProfileExportedObject(identityProfileExportedObject).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.ImportIdentityProfiles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportIdentityProfiles`: ObjectImportResult + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.ImportIdentityProfiles`: %v\n", resp) } ``` @@ -604,7 +601,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -616,18 +613,18 @@ func main() { filters := `id eq "ef38f94347e94562b5bb8424a56397d8"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, ne, ge, gt, in, le, sw* **name**: *eq, ne, ge, gt, in, le, sw* **priority**: *eq, ne* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, ne, ge, gt, in, le, sw* **name**: *eq, ne, ge, gt, in, le, sw* **priority**: *eq, ne* (optional) sorters := `id,name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, priority, created, modified, owner.id, owner.name** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, priority, created, modified, owner.id, owner.name** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.IdentityProfilesAPI.ListIdentityProfiles(context.Background()).Execute() - //resp, r, err := apiClient.V3.IdentityProfilesAPI.ListIdentityProfiles(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.ListIdentityProfiles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListIdentityProfiles`: []IdentityProfile - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.ListIdentityProfiles`: %v\n", resp) + //resp, r, err := apiClient.V3.IdentityProfilesAPI.ListIdentityProfiles(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.ListIdentityProfiles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListIdentityProfiles`: []IdentityProfile + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.ListIdentityProfiles`: %v\n", resp) } ``` @@ -671,7 +668,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -705,24 +702,23 @@ func main() { } }`) // IdentityPreviewRequest | Identity Preview request body. - - var identityPreviewRequest v3.IdentityPreviewRequest - if err := json.Unmarshal(identitypreviewrequest, &identityPreviewRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var identityPreviewRequest v3.IdentityPreviewRequest + if err := json.Unmarshal(identitypreviewrequest, &identityPreviewRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.IdentityProfilesAPI.ShowIdentityPreview(context.Background()).IdentityPreviewRequest(identityPreviewRequest).Execute() - //resp, r, err := apiClient.V3.IdentityProfilesAPI.ShowIdentityPreview(context.Background()).IdentityPreviewRequest(identityPreviewRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.ShowIdentityPreview``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ShowIdentityPreview`: IdentityPreviewResponse - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.ShowIdentityPreview`: %v\n", resp) + //resp, r, err := apiClient.V3.IdentityProfilesAPI.ShowIdentityPreview(context.Background()).IdentityPreviewRequest(identityPreviewRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.ShowIdentityPreview``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ShowIdentityPreview`: IdentityPreviewResponse + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.ShowIdentityPreview`: %v\n", resp) } ``` @@ -773,7 +769,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -781,18 +777,18 @@ import ( func main() { identityProfileId := `ef38f94347e94562b5bb8424a56397d8` // string | The Identity Profile ID to be processed # string | The Identity Profile ID to be processed - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.IdentityProfilesAPI.SyncIdentityProfile(context.Background(), identityProfileId).Execute() - //resp, r, err := apiClient.V3.IdentityProfilesAPI.SyncIdentityProfile(context.Background(), identityProfileId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.SyncIdentityProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SyncIdentityProfile`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.SyncIdentityProfile`: %v\n", resp) + //resp, r, err := apiClient.V3.IdentityProfilesAPI.SyncIdentityProfile(context.Background(), identityProfileId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.SyncIdentityProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SyncIdentityProfile`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.SyncIdentityProfile`: %v\n", resp) } ``` @@ -848,7 +844,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -857,24 +853,23 @@ func main() { identityProfileId := `ef38f94347e94562b5bb8424a56397d8` // string | Identity profile ID. # string | Identity profile ID. jsonpatchoperation := []byte(`[{op=add, path=/identityAttributeConfig/attributeTransforms/0, value={identityAttributeName=location, transformDefinition={type=accountAttribute, attributes={sourceName=Employees, attributeName=location, sourceId=2c91808878b7d63b0178c66ffcdc4ce4}}}}]`) // []JsonPatchOperation | List of identity profile update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - - var jsonPatchOperation v3.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v3.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.IdentityProfilesAPI.UpdateIdentityProfile(context.Background(), identityProfileId).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V3.IdentityProfilesAPI.UpdateIdentityProfile(context.Background(), identityProfileId).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.UpdateIdentityProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateIdentityProfile`: IdentityProfile - fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.UpdateIdentityProfile`: %v\n", resp) + //resp, r, err := apiClient.V3.IdentityProfilesAPI.UpdateIdentityProfile(context.Background(), identityProfileId).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdentityProfilesAPI.UpdateIdentityProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateIdentityProfile`: IdentityProfile + fmt.Fprintf(os.Stdout, "Response from `IdentityProfilesAPI.UpdateIdentityProfile`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/LifecycleStatesAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/LifecycleStatesAPI.md index 8a55b41d9..cd583dfa6 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/LifecycleStatesAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/LifecycleStatesAPI.md @@ -103,7 +103,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -136,24 +136,23 @@ func main() { "enabled" : true }`) // LifecycleState | Lifecycle state to be created. - - var lifecycleState v3.LifecycleState - if err := json.Unmarshal(lifecyclestate, &lifecycleState); err != nil { - fmt.Println("Error:", err) - return - } - + var lifecycleState v3.LifecycleState + if err := json.Unmarshal(lifecyclestate, &lifecycleState); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.LifecycleStatesAPI.CreateLifecycleState(context.Background(), identityProfileId).LifecycleState(lifecycleState).Execute() - //resp, r, err := apiClient.V3.LifecycleStatesAPI.CreateLifecycleState(context.Background(), identityProfileId).LifecycleState(lifecycleState).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.CreateLifecycleState``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateLifecycleState`: LifecycleState - fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.CreateLifecycleState`: %v\n", resp) + //resp, r, err := apiClient.V3.LifecycleStatesAPI.CreateLifecycleState(context.Background(), identityProfileId).LifecycleState(lifecycleState).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.CreateLifecycleState``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateLifecycleState`: LifecycleState + fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.CreateLifecycleState`: %v\n", resp) } ``` @@ -202,7 +201,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -211,18 +210,18 @@ func main() { identityProfileId := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | Identity profile ID. # string | Identity profile ID. lifecycleStateId := `ef38f94347e94562b5bb8424a56397d8` // string | Lifecycle state ID. # string | Lifecycle state ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.LifecycleStatesAPI.DeleteLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() - //resp, r, err := apiClient.V3.LifecycleStatesAPI.DeleteLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.DeleteLifecycleState``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteLifecycleState`: LifecyclestateDeleted - fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.DeleteLifecycleState`: %v\n", resp) + //resp, r, err := apiClient.V3.LifecycleStatesAPI.DeleteLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.DeleteLifecycleState``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteLifecycleState`: LifecyclestateDeleted + fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.DeleteLifecycleState`: %v\n", resp) } ``` @@ -271,7 +270,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -280,18 +279,18 @@ func main() { identityProfileId := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | Identity profile ID. # string | Identity profile ID. lifecycleStateId := `ef38f94347e94562b5bb8424a56397d8` // string | Lifecycle state ID. # string | Lifecycle state ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.LifecycleStatesAPI.GetLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() - //resp, r, err := apiClient.V3.LifecycleStatesAPI.GetLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.GetLifecycleState``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetLifecycleState`: LifecycleState - fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.GetLifecycleState`: %v\n", resp) + //resp, r, err := apiClient.V3.LifecycleStatesAPI.GetLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.GetLifecycleState``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetLifecycleState`: LifecycleState + fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.GetLifecycleState`: %v\n", resp) } ``` @@ -342,7 +341,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -354,18 +353,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) sorters := `created,modified` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.LifecycleStatesAPI.GetLifecycleStates(context.Background(), identityProfileId).Execute() - //resp, r, err := apiClient.V3.LifecycleStatesAPI.GetLifecycleStates(context.Background(), identityProfileId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.GetLifecycleStates``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetLifecycleStates`: []LifecycleState - fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.GetLifecycleStates`: %v\n", resp) + //resp, r, err := apiClient.V3.LifecycleStatesAPI.GetLifecycleStates(context.Background(), identityProfileId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.GetLifecycleStates``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetLifecycleStates`: []LifecycleState + fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.GetLifecycleStates`: %v\n", resp) } ``` @@ -413,7 +412,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -422,24 +421,23 @@ func main() { identityId := `2c9180857893f1290178944561990364` // string | ID of the identity to update. # string | ID of the identity to update. setlifecyclestaterequest := []byte(``) // SetLifecycleStateRequest | - - var setLifecycleStateRequest v3.SetLifecycleStateRequest - if err := json.Unmarshal(setlifecyclestaterequest, &setLifecycleStateRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var setLifecycleStateRequest v3.SetLifecycleStateRequest + if err := json.Unmarshal(setlifecyclestaterequest, &setLifecycleStateRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.LifecycleStatesAPI.SetLifecycleState(context.Background(), identityId).SetLifecycleStateRequest(setLifecycleStateRequest).Execute() - //resp, r, err := apiClient.V3.LifecycleStatesAPI.SetLifecycleState(context.Background(), identityId).SetLifecycleStateRequest(setLifecycleStateRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.SetLifecycleState``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetLifecycleState`: SetLifecycleState200Response - fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.SetLifecycleState`: %v\n", resp) + //resp, r, err := apiClient.V3.LifecycleStatesAPI.SetLifecycleState(context.Background(), identityId).SetLifecycleStateRequest(setLifecycleStateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.SetLifecycleState``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetLifecycleState`: SetLifecycleState200Response + fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.SetLifecycleState`: %v\n", resp) } ``` @@ -489,7 +487,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -499,24 +497,23 @@ func main() { lifecycleStateId := `ef38f94347e94562b5bb8424a56397d8` // string | Lifecycle state ID. # string | Lifecycle state ID. jsonpatchoperation := []byte(`[{op=replace, path=/description, value=Updated description!}, {op=replace, path=/accessProfileIds, value=[2c918087742bab150174407a80f3125e, 2c918087742bab150174407a80f3124f]}, {op=replace, path=/accountActions, value=[{action=ENABLE, sourceIds=[2c9180846a2f82fb016a481c1b1560c5, 2c9180846a2f82fb016a481c1b1560cc]}, {action=DISABLE, sourceIds=[2c91808869a0c9980169a207258513fb]}]}, {op=replace, path=/emailNotificationOption, value={notifyManagers=true, notifyAllAdmins=false, notifySpecificUsers=false, emailAddressList=[]}}]`) // []JsonPatchOperation | A list of lifecycle state update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields can be updated: * enabled * description * accountActions * accessProfileIds * emailNotificationOption - - var jsonPatchOperation v3.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v3.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.LifecycleStatesAPI.UpdateLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V3.LifecycleStatesAPI.UpdateLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.UpdateLifecycleStates``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateLifecycleStates`: LifecycleState - fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.UpdateLifecycleStates`: %v\n", resp) + //resp, r, err := apiClient.V3.LifecycleStatesAPI.UpdateLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LifecycleStatesAPI.UpdateLifecycleStates``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateLifecycleStates`: LifecycleState + fmt.Fprintf(os.Stdout, "Response from `LifecycleStatesAPI.UpdateLifecycleStates`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/MFAConfigurationAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/MFAConfigurationAPI.md index bf1ab7552..df126d934 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/MFAConfigurationAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/MFAConfigurationAPI.md @@ -66,7 +66,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -74,18 +74,18 @@ import ( func main() { method := `okta-verify` // string | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. # string | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.MFAConfigurationAPI.DeleteMFAConfig(context.Background(), method).Execute() - //resp, r, err := apiClient.V3.MFAConfigurationAPI.DeleteMFAConfig(context.Background(), method).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.DeleteMFAConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteMFAConfig`: MfaOktaConfig - fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.DeleteMFAConfig`: %v\n", resp) + //resp, r, err := apiClient.V3.MFAConfigurationAPI.DeleteMFAConfig(context.Background(), method).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.DeleteMFAConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteMFAConfig`: MfaOktaConfig + fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.DeleteMFAConfig`: %v\n", resp) } ``` @@ -124,25 +124,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.MFAConfigurationAPI.GetMFADuoConfig(context.Background()).Execute() - //resp, r, err := apiClient.V3.MFAConfigurationAPI.GetMFADuoConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.GetMFADuoConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMFADuoConfig`: MfaDuoConfig - fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.GetMFADuoConfig`: %v\n", resp) + //resp, r, err := apiClient.V3.MFAConfigurationAPI.GetMFADuoConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.GetMFADuoConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMFADuoConfig`: MfaDuoConfig + fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.GetMFADuoConfig`: %v\n", resp) } ``` @@ -185,7 +185,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -193,18 +193,18 @@ import ( func main() { allLanguages := allLanguages=true // bool | Indicator whether the question text should be returned in all configured languages * If true, the question text is returned in all languages that it is configured in. * If false, the question text is returned in the user locale if available, else for the default locale. * If not passed, it behaves the same way as passing this parameter as false (optional) # bool | Indicator whether the question text should be returned in all configured languages * If true, the question text is returned in all languages that it is configured in. * If false, the question text is returned in the user locale if available, else for the default locale. * If not passed, it behaves the same way as passing this parameter as false (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.MFAConfigurationAPI.GetMFAKbaConfig(context.Background()).Execute() - //resp, r, err := apiClient.V3.MFAConfigurationAPI.GetMFAKbaConfig(context.Background()).AllLanguages(allLanguages).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.GetMFAKbaConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMFAKbaConfig`: []KbaQuestion - fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.GetMFAKbaConfig`: %v\n", resp) + //resp, r, err := apiClient.V3.MFAConfigurationAPI.GetMFAKbaConfig(context.Background()).AllLanguages(allLanguages).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.GetMFAKbaConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMFAKbaConfig`: []KbaQuestion + fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.GetMFAKbaConfig`: %v\n", resp) } ``` @@ -243,25 +243,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.MFAConfigurationAPI.GetMFAOktaConfig(context.Background()).Execute() - //resp, r, err := apiClient.V3.MFAConfigurationAPI.GetMFAOktaConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.GetMFAOktaConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetMFAOktaConfig`: MfaOktaConfig - fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.GetMFAOktaConfig`: %v\n", resp) + //resp, r, err := apiClient.V3.MFAConfigurationAPI.GetMFAOktaConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.GetMFAOktaConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetMFAOktaConfig`: MfaOktaConfig + fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.GetMFAOktaConfig`: %v\n", resp) } ``` @@ -304,7 +304,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -322,24 +322,23 @@ func main() { "identityAttribute" : "email" }`) // MfaDuoConfig | - - var mfaDuoConfig v3.MfaDuoConfig - if err := json.Unmarshal(mfaduoconfig, &mfaDuoConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var mfaDuoConfig v3.MfaDuoConfig + if err := json.Unmarshal(mfaduoconfig, &mfaDuoConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.MFAConfigurationAPI.SetMFADuoConfig(context.Background()).MfaDuoConfig(mfaDuoConfig).Execute() - //resp, r, err := apiClient.V3.MFAConfigurationAPI.SetMFADuoConfig(context.Background()).MfaDuoConfig(mfaDuoConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.SetMFADuoConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetMFADuoConfig`: MfaDuoConfig - fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.SetMFADuoConfig`: %v\n", resp) + //resp, r, err := apiClient.V3.MFAConfigurationAPI.SetMFADuoConfig(context.Background()).MfaDuoConfig(mfaDuoConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.SetMFADuoConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetMFADuoConfig`: MfaDuoConfig + fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.SetMFADuoConfig`: %v\n", resp) } ``` @@ -382,7 +381,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -390,24 +389,23 @@ import ( func main() { kbaanswerrequestitem := []byte(`[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]`) // []KbaAnswerRequestItem | - - var kbaAnswerRequestItem v3.[]KbaAnswerRequestItem - if err := json.Unmarshal(kbaanswerrequestitem, &kbaAnswerRequestItem); err != nil { - fmt.Println("Error:", err) - return - } - + var kbaAnswerRequestItem []v3.KbaAnswerRequestItem + if err := json.Unmarshal(kbaanswerrequestitem, &kbaAnswerRequestItem); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.MFAConfigurationAPI.SetMFAKBAConfig(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() - //resp, r, err := apiClient.V3.MFAConfigurationAPI.SetMFAKBAConfig(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.SetMFAKBAConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetMFAKBAConfig`: []KbaAnswerResponseItem - fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.SetMFAKBAConfig`: %v\n", resp) + //resp, r, err := apiClient.V3.MFAConfigurationAPI.SetMFAKBAConfig(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.SetMFAKBAConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetMFAKBAConfig`: []KbaAnswerResponseItem + fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.SetMFAKBAConfig`: %v\n", resp) } ``` @@ -450,7 +448,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -464,24 +462,23 @@ func main() { "identityAttribute" : "email" }`) // MfaOktaConfig | - - var mfaOktaConfig v3.MfaOktaConfig - if err := json.Unmarshal(mfaoktaconfig, &mfaOktaConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var mfaOktaConfig v3.MfaOktaConfig + if err := json.Unmarshal(mfaoktaconfig, &mfaOktaConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.MFAConfigurationAPI.SetMFAOktaConfig(context.Background()).MfaOktaConfig(mfaOktaConfig).Execute() - //resp, r, err := apiClient.V3.MFAConfigurationAPI.SetMFAOktaConfig(context.Background()).MfaOktaConfig(mfaOktaConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.SetMFAOktaConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetMFAOktaConfig`: MfaOktaConfig - fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.SetMFAOktaConfig`: %v\n", resp) + //resp, r, err := apiClient.V3.MFAConfigurationAPI.SetMFAOktaConfig(context.Background()).MfaOktaConfig(mfaOktaConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.SetMFAOktaConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetMFAOktaConfig`: MfaOktaConfig + fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.SetMFAOktaConfig`: %v\n", resp) } ``` @@ -528,7 +525,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -536,18 +533,18 @@ import ( func main() { method := `okta-verify` // string | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. # string | The name of the MFA method. The currently supported method names are 'okta-verify' and 'duo-web'. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.MFAConfigurationAPI.TestMFAConfig(context.Background(), method).Execute() - //resp, r, err := apiClient.V3.MFAConfigurationAPI.TestMFAConfig(context.Background(), method).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.TestMFAConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `TestMFAConfig`: MfaConfigTestResponse - fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.TestMFAConfig`: %v\n", resp) + //resp, r, err := apiClient.V3.MFAConfigurationAPI.TestMFAConfig(context.Background(), method).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAConfigurationAPI.TestMFAConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TestMFAConfig`: MfaConfigTestResponse + fmt.Fprintf(os.Stdout, "Response from `MFAConfigurationAPI.TestMFAConfig`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/MFAControllerAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/MFAControllerAPI.md index d42f2e8f0..a7b0e350c 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/MFAControllerAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/MFAControllerAPI.md @@ -60,7 +60,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -71,24 +71,23 @@ func main() { "deliveryType" : "EMAIL_WORK" }`) // SendTokenRequest | - - var sendTokenRequest v3.SendTokenRequest - if err := json.Unmarshal(sendtokenrequest, &sendTokenRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var sendTokenRequest v3.SendTokenRequest + if err := json.Unmarshal(sendtokenrequest, &sendTokenRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.MFAControllerAPI.CreateSendToken(context.Background()).SendTokenRequest(sendTokenRequest).Execute() - //resp, r, err := apiClient.V3.MFAControllerAPI.CreateSendToken(context.Background()).SendTokenRequest(sendTokenRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAControllerAPI.CreateSendToken``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSendToken`: SendTokenResponse - fmt.Fprintf(os.Stdout, "Response from `MFAControllerAPI.CreateSendToken`: %v\n", resp) + //resp, r, err := apiClient.V3.MFAControllerAPI.CreateSendToken(context.Background()).SendTokenRequest(sendTokenRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAControllerAPI.CreateSendToken``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSendToken`: SendTokenResponse + fmt.Fprintf(os.Stdout, "Response from `MFAControllerAPI.CreateSendToken`: %v\n", resp) } ``` @@ -136,7 +135,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -147,24 +146,23 @@ func main() { "requestId" : "089899f13a8f4da7824996191587bab9" }`) // VerificationPollRequest | - - var verificationPollRequest v3.VerificationPollRequest - if err := json.Unmarshal(verificationpollrequest, &verificationPollRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var verificationPollRequest v3.VerificationPollRequest + if err := json.Unmarshal(verificationpollrequest, &verificationPollRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.MFAControllerAPI.PingVerificationStatus(context.Background(), method).VerificationPollRequest(verificationPollRequest).Execute() - //resp, r, err := apiClient.V3.MFAControllerAPI.PingVerificationStatus(context.Background(), method).VerificationPollRequest(verificationPollRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAControllerAPI.PingVerificationStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PingVerificationStatus`: VerificationResponse - fmt.Fprintf(os.Stdout, "Response from `MFAControllerAPI.PingVerificationStatus`: %v\n", resp) + //resp, r, err := apiClient.V3.MFAControllerAPI.PingVerificationStatus(context.Background(), method).VerificationPollRequest(verificationPollRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAControllerAPI.PingVerificationStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PingVerificationStatus`: VerificationResponse + fmt.Fprintf(os.Stdout, "Response from `MFAControllerAPI.PingVerificationStatus`: %v\n", resp) } ``` @@ -207,7 +205,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -218,24 +216,23 @@ func main() { "userId" : "2c9180947f0ef465017f215cbcfd004b" }`) // DuoVerificationRequest | - - var duoVerificationRequest v3.DuoVerificationRequest - if err := json.Unmarshal(duoverificationrequest, &duoVerificationRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var duoVerificationRequest v3.DuoVerificationRequest + if err := json.Unmarshal(duoverificationrequest, &duoVerificationRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.MFAControllerAPI.SendDuoVerifyRequest(context.Background()).DuoVerificationRequest(duoVerificationRequest).Execute() - //resp, r, err := apiClient.V3.MFAControllerAPI.SendDuoVerifyRequest(context.Background()).DuoVerificationRequest(duoVerificationRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAControllerAPI.SendDuoVerifyRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SendDuoVerifyRequest`: VerificationResponse - fmt.Fprintf(os.Stdout, "Response from `MFAControllerAPI.SendDuoVerifyRequest`: %v\n", resp) + //resp, r, err := apiClient.V3.MFAControllerAPI.SendDuoVerifyRequest(context.Background()).DuoVerificationRequest(duoVerificationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAControllerAPI.SendDuoVerifyRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SendDuoVerifyRequest`: VerificationResponse + fmt.Fprintf(os.Stdout, "Response from `MFAControllerAPI.SendDuoVerifyRequest`: %v\n", resp) } ``` @@ -278,7 +275,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -286,24 +283,23 @@ import ( func main() { kbaanswerrequestitem := []byte(`[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]`) // []KbaAnswerRequestItem | - - var kbaAnswerRequestItem v3.[]KbaAnswerRequestItem - if err := json.Unmarshal(kbaanswerrequestitem, &kbaAnswerRequestItem); err != nil { - fmt.Println("Error:", err) - return - } - + var kbaAnswerRequestItem []v3.KbaAnswerRequestItem + if err := json.Unmarshal(kbaanswerrequestitem, &kbaAnswerRequestItem); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.MFAControllerAPI.SendKbaAnswers(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() - //resp, r, err := apiClient.V3.MFAControllerAPI.SendKbaAnswers(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAControllerAPI.SendKbaAnswers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SendKbaAnswers`: KbaAuthResponse - fmt.Fprintf(os.Stdout, "Response from `MFAControllerAPI.SendKbaAnswers`: %v\n", resp) + //resp, r, err := apiClient.V3.MFAControllerAPI.SendKbaAnswers(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAControllerAPI.SendKbaAnswers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SendKbaAnswers`: KbaAuthResponse + fmt.Fprintf(os.Stdout, "Response from `MFAControllerAPI.SendKbaAnswers`: %v\n", resp) } ``` @@ -346,7 +342,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -356,24 +352,23 @@ func main() { "userId" : "example@mail.com" }`) // OktaVerificationRequest | - - var oktaVerificationRequest v3.OktaVerificationRequest - if err := json.Unmarshal(oktaverificationrequest, &oktaVerificationRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var oktaVerificationRequest v3.OktaVerificationRequest + if err := json.Unmarshal(oktaverificationrequest, &oktaVerificationRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.MFAControllerAPI.SendOktaVerifyRequest(context.Background()).OktaVerificationRequest(oktaVerificationRequest).Execute() - //resp, r, err := apiClient.V3.MFAControllerAPI.SendOktaVerifyRequest(context.Background()).OktaVerificationRequest(oktaVerificationRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAControllerAPI.SendOktaVerifyRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SendOktaVerifyRequest`: VerificationResponse - fmt.Fprintf(os.Stdout, "Response from `MFAControllerAPI.SendOktaVerifyRequest`: %v\n", resp) + //resp, r, err := apiClient.V3.MFAControllerAPI.SendOktaVerifyRequest(context.Background()).OktaVerificationRequest(oktaVerificationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAControllerAPI.SendOktaVerifyRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SendOktaVerifyRequest`: VerificationResponse + fmt.Fprintf(os.Stdout, "Response from `MFAControllerAPI.SendOktaVerifyRequest`: %v\n", resp) } ``` @@ -416,7 +411,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -428,24 +423,23 @@ func main() { "token" : "12345" }`) // TokenAuthRequest | - - var tokenAuthRequest v3.TokenAuthRequest - if err := json.Unmarshal(tokenauthrequest, &tokenAuthRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var tokenAuthRequest v3.TokenAuthRequest + if err := json.Unmarshal(tokenauthrequest, &tokenAuthRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.MFAControllerAPI.SendTokenAuthRequest(context.Background()).TokenAuthRequest(tokenAuthRequest).Execute() - //resp, r, err := apiClient.V3.MFAControllerAPI.SendTokenAuthRequest(context.Background()).TokenAuthRequest(tokenAuthRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MFAControllerAPI.SendTokenAuthRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SendTokenAuthRequest`: TokenAuthResponse - fmt.Fprintf(os.Stdout, "Response from `MFAControllerAPI.SendTokenAuthRequest`: %v\n", resp) + //resp, r, err := apiClient.V3.MFAControllerAPI.SendTokenAuthRequest(context.Background()).TokenAuthRequest(tokenAuthRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MFAControllerAPI.SendTokenAuthRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SendTokenAuthRequest`: TokenAuthResponse + fmt.Fprintf(os.Stdout, "Response from `MFAControllerAPI.SendTokenAuthRequest`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/ManagedClientsAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/ManagedClientsAPI.md index ee7cdb662..651d5538b 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/ManagedClientsAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/ManagedClientsAPI.md @@ -63,7 +63,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -76,24 +76,23 @@ func main() { "type" : "VA" }`) // ManagedClientRequest | - - var managedClientRequest v3.ManagedClientRequest - if err := json.Unmarshal(managedclientrequest, &managedClientRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var managedClientRequest v3.ManagedClientRequest + if err := json.Unmarshal(managedclientrequest, &managedClientRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ManagedClientsAPI.CreateManagedClient(context.Background()).ManagedClientRequest(managedClientRequest).Execute() - //resp, r, err := apiClient.V3.ManagedClientsAPI.CreateManagedClient(context.Background()).ManagedClientRequest(managedClientRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.CreateManagedClient``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateManagedClient`: ManagedClient - fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.CreateManagedClient`: %v\n", resp) + //resp, r, err := apiClient.V3.ManagedClientsAPI.CreateManagedClient(context.Background()).ManagedClientRequest(managedClientRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.CreateManagedClient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateManagedClient`: ManagedClient + fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.CreateManagedClient`: %v\n", resp) } ``` @@ -140,7 +139,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -148,16 +147,17 @@ import ( func main() { id := `4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7` // string | Managed client ID. # string | Managed client ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.ManagedClientsAPI.DeleteManagedClient(context.Background(), id).Execute() - //r, err := apiClient.V3.ManagedClientsAPI.DeleteManagedClient(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.DeleteManagedClient``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.ManagedClientsAPI.DeleteManagedClient(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.DeleteManagedClient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -204,7 +204,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -212,18 +212,18 @@ import ( func main() { id := `4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7` // string | Managed client ID. # string | Managed client ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ManagedClientsAPI.GetManagedClient(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.ManagedClientsAPI.GetManagedClient(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.GetManagedClient``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetManagedClient`: ManagedClient - fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.GetManagedClient`: %v\n", resp) + //resp, r, err := apiClient.V3.ManagedClientsAPI.GetManagedClient(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.GetManagedClient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetManagedClient`: ManagedClient + fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.GetManagedClient`: %v\n", resp) } ``` @@ -271,7 +271,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -280,18 +280,18 @@ func main() { id := `aClientId` // string | Managed client ID to get status for. # string | Managed client ID to get status for. type_ := // ManagedClientType | Managed client type to get status for. # ManagedClientType | Managed client type to get status for. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ManagedClientsAPI.GetManagedClientStatus(context.Background(), id).Type_(type_).Execute() - //resp, r, err := apiClient.V3.ManagedClientsAPI.GetManagedClientStatus(context.Background(), id).Type_(type_).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.GetManagedClientStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetManagedClientStatus`: ManagedClientStatus - fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.GetManagedClientStatus`: %v\n", resp) + //resp, r, err := apiClient.V3.ManagedClientsAPI.GetManagedClientStatus(context.Background(), id).Type_(type_).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.GetManagedClientStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetManagedClientStatus`: ManagedClientStatus + fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.GetManagedClientStatus`: %v\n", resp) } ``` @@ -337,7 +337,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -348,18 +348,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) filters := `name eq "client name"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* **name**: *eq* **clientId**: *eq* **clusterId**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* **name**: *eq* **clientId**: *eq* **clusterId**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ManagedClientsAPI.GetManagedClients(context.Background()).Execute() - //resp, r, err := apiClient.V3.ManagedClientsAPI.GetManagedClients(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.GetManagedClients``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetManagedClients`: []ManagedClient - fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.GetManagedClients`: %v\n", resp) + //resp, r, err := apiClient.V3.ManagedClientsAPI.GetManagedClients(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.GetManagedClients``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetManagedClients`: []ManagedClient + fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.GetManagedClients`: %v\n", resp) } ``` @@ -407,7 +407,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -416,24 +416,23 @@ func main() { id := `4440278c-0ce2-41ee-a0a9-f5cfd5e8d3b7` // string | Managed client ID. # string | Managed client ID. jsonpatchoperation := []byte(``) // []JsonPatchOperation | JSONPatch payload used to update the object. - - var jsonPatchOperation v3.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v3.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ManagedClientsAPI.UpdateManagedClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V3.ManagedClientsAPI.UpdateManagedClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.UpdateManagedClient``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateManagedClient`: ManagedClient - fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.UpdateManagedClient`: %v\n", resp) + //resp, r, err := apiClient.V3.ManagedClientsAPI.UpdateManagedClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClientsAPI.UpdateManagedClient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateManagedClient`: ManagedClient + fmt.Fprintf(os.Stdout, "Response from `ManagedClientsAPI.UpdateManagedClient`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/ManagedClustersAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/ManagedClustersAPI.md index 67d8bd41b..103e77ee8 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/ManagedClustersAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/ManagedClustersAPI.md @@ -64,7 +64,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -80,24 +80,23 @@ func main() { "type" : "idn" }`) // ManagedClusterRequest | - - var managedClusterRequest v3.ManagedClusterRequest - if err := json.Unmarshal(managedclusterrequest, &managedClusterRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var managedClusterRequest v3.ManagedClusterRequest + if err := json.Unmarshal(managedclusterrequest, &managedClusterRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ManagedClustersAPI.CreateManagedCluster(context.Background()).ManagedClusterRequest(managedClusterRequest).Execute() - //resp, r, err := apiClient.V3.ManagedClustersAPI.CreateManagedCluster(context.Background()).ManagedClusterRequest(managedClusterRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.CreateManagedCluster``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateManagedCluster`: ManagedCluster - fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.CreateManagedCluster`: %v\n", resp) + //resp, r, err := apiClient.V3.ManagedClustersAPI.CreateManagedCluster(context.Background()).ManagedClusterRequest(managedClusterRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.CreateManagedCluster``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateManagedCluster`: ManagedCluster + fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.CreateManagedCluster`: %v\n", resp) } ``` @@ -145,7 +144,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -154,16 +153,17 @@ func main() { id := `2c9180897de347a2017de8859e8c5039` // string | Managed cluster ID. # string | Managed cluster ID. removeClients := false // bool | Flag to determine the need to delete a cluster with clients. (optional) (default to false) # bool | Flag to determine the need to delete a cluster with clients. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.ManagedClustersAPI.DeleteManagedCluster(context.Background(), id).Execute() - //r, err := apiClient.V3.ManagedClustersAPI.DeleteManagedCluster(context.Background(), id).RemoveClients(removeClients).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.DeleteManagedCluster``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.ManagedClustersAPI.DeleteManagedCluster(context.Background(), id).RemoveClients(removeClients).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.DeleteManagedCluster``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -210,7 +210,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -218,18 +218,18 @@ import ( func main() { id := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | ID of managed cluster to get log configuration for. # string | ID of managed cluster to get log configuration for. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ManagedClustersAPI.GetClientLogConfiguration(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.ManagedClustersAPI.GetClientLogConfiguration(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.GetClientLogConfiguration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetClientLogConfiguration`: ClientLogConfiguration - fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.GetClientLogConfiguration`: %v\n", resp) + //resp, r, err := apiClient.V3.ManagedClustersAPI.GetClientLogConfiguration(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.GetClientLogConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetClientLogConfiguration`: ClientLogConfiguration + fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.GetClientLogConfiguration`: %v\n", resp) } ``` @@ -276,7 +276,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -284,18 +284,18 @@ import ( func main() { id := `2c9180897de347a2017de8859e8c5039` // string | Managed cluster ID. # string | Managed cluster ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ManagedClustersAPI.GetManagedCluster(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.ManagedClustersAPI.GetManagedCluster(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.GetManagedCluster``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetManagedCluster`: ManagedCluster - fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.GetManagedCluster`: %v\n", resp) + //resp, r, err := apiClient.V3.ManagedClustersAPI.GetManagedCluster(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.GetManagedCluster``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetManagedCluster`: ManagedCluster + fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.GetManagedCluster`: %v\n", resp) } ``` @@ -341,7 +341,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -352,18 +352,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) filters := `operational eq "operation"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **operational**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **operational**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ManagedClustersAPI.GetManagedClusters(context.Background()).Execute() - //resp, r, err := apiClient.V3.ManagedClustersAPI.GetManagedClusters(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.GetManagedClusters``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetManagedClusters`: []ManagedCluster - fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.GetManagedClusters`: %v\n", resp) + //resp, r, err := apiClient.V3.ManagedClustersAPI.GetManagedClusters(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.GetManagedClusters``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetManagedClusters`: []ManagedCluster + fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.GetManagedClusters`: %v\n", resp) } ``` @@ -411,7 +411,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -420,24 +420,23 @@ func main() { id := `2b838de9-db9b-abcf-e646-d4f274ad4238` // string | ID of the managed cluster to update the log configuration for. # string | ID of the managed cluster to update the log configuration for. putclientlogconfigurationrequest := []byte(``) // PutClientLogConfigurationRequest | Client log configuration for the given managed cluster. - - var putClientLogConfigurationRequest v3.PutClientLogConfigurationRequest - if err := json.Unmarshal(putclientlogconfigurationrequest, &putClientLogConfigurationRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var putClientLogConfigurationRequest v3.PutClientLogConfigurationRequest + if err := json.Unmarshal(putclientlogconfigurationrequest, &putClientLogConfigurationRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ManagedClustersAPI.PutClientLogConfiguration(context.Background(), id).PutClientLogConfigurationRequest(putClientLogConfigurationRequest).Execute() - //resp, r, err := apiClient.V3.ManagedClustersAPI.PutClientLogConfiguration(context.Background(), id).PutClientLogConfigurationRequest(putClientLogConfigurationRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.PutClientLogConfiguration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutClientLogConfiguration`: ClientLogConfiguration - fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.PutClientLogConfiguration`: %v\n", resp) + //resp, r, err := apiClient.V3.ManagedClustersAPI.PutClientLogConfiguration(context.Background(), id).PutClientLogConfigurationRequest(putClientLogConfigurationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.PutClientLogConfiguration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutClientLogConfiguration`: ClientLogConfiguration + fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.PutClientLogConfiguration`: %v\n", resp) } ``` @@ -485,7 +484,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -494,24 +493,23 @@ func main() { id := `2c9180897de347a2017de8859e8c5039` // string | Managed cluster ID. # string | Managed cluster ID. jsonpatchoperation := []byte(``) // []JsonPatchOperation | JSONPatch payload used to update the object. - - var jsonPatchOperation v3.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v3.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ManagedClustersAPI.UpdateManagedCluster(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V3.ManagedClustersAPI.UpdateManagedCluster(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.UpdateManagedCluster``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateManagedCluster`: ManagedCluster - fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.UpdateManagedCluster`: %v\n", resp) + //resp, r, err := apiClient.V3.ManagedClustersAPI.UpdateManagedCluster(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersAPI.UpdateManagedCluster``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateManagedCluster`: ManagedCluster + fmt.Fprintf(os.Stdout, "Response from `ManagedClustersAPI.UpdateManagedCluster`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/NonEmployeeLifecycleManagementAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/NonEmployeeLifecycleManagementAPI.md index e48b86aec..cf45ad87f 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/NonEmployeeLifecycleManagementAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/NonEmployeeLifecycleManagementAPI.md @@ -122,7 +122,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -133,24 +133,23 @@ func main() { "comment" : "Approved by manager" }`) // NonEmployeeApprovalDecision | - - var nonEmployeeApprovalDecision v3.NonEmployeeApprovalDecision - if err := json.Unmarshal(nonemployeeapprovaldecision, &nonEmployeeApprovalDecision); err != nil { - fmt.Println("Error:", err) - return - } - + var nonEmployeeApprovalDecision v3.NonEmployeeApprovalDecision + if err := json.Unmarshal(nonemployeeapprovaldecision, &nonEmployeeApprovalDecision); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest(context.Background(), id).NonEmployeeApprovalDecision(nonEmployeeApprovalDecision).Execute() - //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest(context.Background(), id).NonEmployeeApprovalDecision(nonEmployeeApprovalDecision).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ApproveNonEmployeeRequest`: NonEmployeeApprovalItem - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest`: %v\n", resp) + //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest(context.Background(), id).NonEmployeeApprovalDecision(nonEmployeeApprovalDecision).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApproveNonEmployeeRequest`: NonEmployeeApprovalItem + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest`: %v\n", resp) } ``` @@ -194,7 +193,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -216,24 +215,23 @@ func main() { "startDate" : "2020-03-24T00:00:00-05:00" }`) // NonEmployeeRequestBody | Non-Employee record creation request body. - - var nonEmployeeRequestBody v3.NonEmployeeRequestBody - if err := json.Unmarshal(nonemployeerequestbody, &nonEmployeeRequestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var nonEmployeeRequestBody v3.NonEmployeeRequestBody + if err := json.Unmarshal(nonemployeerequestbody, &nonEmployeeRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() - //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateNonEmployeeRecord`: NonEmployeeRecord - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord`: %v\n", resp) + //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateNonEmployeeRecord`: NonEmployeeRecord + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord`: %v\n", resp) } ``` @@ -276,7 +274,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -298,24 +296,23 @@ func main() { "startDate" : "2020-03-24T00:00:00-05:00" }`) // NonEmployeeRequestBody | Non-Employee creation request body - - var nonEmployeeRequestBody v3.NonEmployeeRequestBody - if err := json.Unmarshal(nonemployeerequestbody, &nonEmployeeRequestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var nonEmployeeRequestBody v3.NonEmployeeRequestBody + if err := json.Unmarshal(nonemployeerequestbody, &nonEmployeeRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() - //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateNonEmployeeRequest`: NonEmployeeRequest - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest`: %v\n", resp) + //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateNonEmployeeRequest`: NonEmployeeRequest + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest`: %v\n", resp) } ``` @@ -358,7 +355,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -391,24 +388,23 @@ func main() { } ] }`) // NonEmployeeSourceRequestBody | Non-Employee source creation request body. - - var nonEmployeeSourceRequestBody v3.NonEmployeeSourceRequestBody - if err := json.Unmarshal(nonemployeesourcerequestbody, &nonEmployeeSourceRequestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var nonEmployeeSourceRequestBody v3.NonEmployeeSourceRequestBody + if err := json.Unmarshal(nonemployeesourcerequestbody, &nonEmployeeSourceRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource(context.Background()).NonEmployeeSourceRequestBody(nonEmployeeSourceRequestBody).Execute() - //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource(context.Background()).NonEmployeeSourceRequestBody(nonEmployeeSourceRequestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateNonEmployeeSource`: NonEmployeeSourceWithCloudExternalId - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource`: %v\n", resp) + //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource(context.Background()).NonEmployeeSourceRequestBody(nonEmployeeSourceRequestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateNonEmployeeSource`: NonEmployeeSourceWithCloudExternalId + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource`: %v\n", resp) } ``` @@ -457,7 +453,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -473,24 +469,23 @@ func main() { "required" : true }`) // NonEmployeeSchemaAttributeBody | - - var nonEmployeeSchemaAttributeBody v3.NonEmployeeSchemaAttributeBody - if err := json.Unmarshal(nonemployeeschemaattributebody, &nonEmployeeSchemaAttributeBody); err != nil { - fmt.Println("Error:", err) - return - } - + var nonEmployeeSchemaAttributeBody v3.NonEmployeeSchemaAttributeBody + if err := json.Unmarshal(nonemployeeschemaattributebody, &nonEmployeeSchemaAttributeBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).NonEmployeeSchemaAttributeBody(nonEmployeeSchemaAttributeBody).Execute() - //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).NonEmployeeSchemaAttributeBody(nonEmployeeSchemaAttributeBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateNonEmployeeSourceSchemaAttributes`: NonEmployeeSchemaAttribute - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes`: %v\n", resp) + //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).NonEmployeeSchemaAttributeBody(nonEmployeeSchemaAttributeBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateNonEmployeeSourceSchemaAttributes`: NonEmployeeSchemaAttribute + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes`: %v\n", resp) } ``` @@ -538,7 +533,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -546,16 +541,17 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Non-Employee record id (UUID) # string | Non-Employee record id (UUID) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord(context.Background(), id).Execute() - //r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -598,7 +594,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -606,22 +602,22 @@ import ( func main() { deletenonemployeerecordsinbulkrequest := []byte(``) // DeleteNonEmployeeRecordsInBulkRequest | Non-Employee bulk delete request body. - - var deleteNonEmployeeRecordsInBulkRequest v3.DeleteNonEmployeeRecordsInBulkRequest - if err := json.Unmarshal(deletenonemployeerecordsinbulkrequest, &deleteNonEmployeeRecordsInBulkRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var deleteNonEmployeeRecordsInBulkRequest v3.DeleteNonEmployeeRecordsInBulkRequest + if err := json.Unmarshal(deletenonemployeerecordsinbulkrequest, &deleteNonEmployeeRecordsInBulkRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordsInBulk(context.Background()).DeleteNonEmployeeRecordsInBulkRequest(deleteNonEmployeeRecordsInBulkRequest).Execute() - //r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordsInBulk(context.Background()).DeleteNonEmployeeRecordsInBulkRequest(deleteNonEmployeeRecordsInBulkRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordsInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordsInBulk(context.Background()).DeleteNonEmployeeRecordsInBulkRequest(deleteNonEmployeeRecordsInBulkRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordsInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -669,7 +665,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -677,16 +673,17 @@ import ( func main() { id := `ac110005-7156-1150-8171-5b292e3e0084` // string | Non-Employee request id in the UUID format # string | Non-Employee request id in the UUID format - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest(context.Background(), id).Execute() - //r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -737,7 +734,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -746,16 +743,17 @@ func main() { attributeId := `ef38f94347e94562b5bb8424a56397d8` // string | The Schema Attribute Id (UUID) # string | The Schema Attribute Id (UUID) sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() - //r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -802,7 +800,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -810,16 +808,17 @@ import ( func main() { sourceId := `e136567de87e4d029e60b3c3c55db56d` // string | Source Id # string | Source Id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource(context.Background(), sourceId).Execute() - //r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -866,7 +865,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -874,16 +873,17 @@ import ( func main() { sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() - //r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -930,7 +930,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -938,16 +938,17 @@ import ( func main() { id := `e136567de87e4d029e60b3c3c55db56d` // string | Source Id (UUID) # string | Source Id (UUID) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords(context.Background(), id).Execute() - //r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -994,7 +995,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1002,16 +1003,17 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Source Id (UUID) # string | Source Id (UUID) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate(context.Background(), id).Execute() - //r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -1062,7 +1064,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1071,18 +1073,18 @@ func main() { id := `e136567de87e4d029e60b3c3c55db56d` // string | Non-Employee approval item id (UUID) # string | Non-Employee approval item id (UUID) includeDetail := true // bool | The object nonEmployeeRequest will not be included detail when set to false. *Default value is true* (optional) # bool | The object nonEmployeeRequest will not be included detail when set to false. *Default value is true* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval(context.Background(), id).IncludeDetail(includeDetail).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeApproval`: NonEmployeeApprovalItemDetail - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval`: %v\n", resp) + //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval(context.Background(), id).IncludeDetail(includeDetail).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeApproval`: NonEmployeeApprovalItemDetail + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval`: %v\n", resp) } ``` @@ -1133,7 +1135,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1141,18 +1143,18 @@ import ( func main() { requestedFor := `2c91808280430dfb0180431a59440460` // string | The identity (UUID) of the approver for whom for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. # string | The identity (UUID) of the approver for whom for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary(context.Background(), requestedFor).Execute() - //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary(context.Background(), requestedFor).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeApprovalSummary`: NonEmployeeApprovalSummary - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary`: %v\n", resp) + //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary(context.Background(), requestedFor).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeApprovalSummary`: NonEmployeeApprovalSummary + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary`: %v\n", resp) } ``` @@ -1201,7 +1203,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1209,18 +1211,18 @@ import ( func main() { id := `e136567de87e4d029e60b3c3c55db56d` // string | Source ID (UUID) # string | Source ID (UUID) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeBulkUploadStatus`: NonEmployeeBulkUploadStatus - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus`: %v\n", resp) + //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeBulkUploadStatus`: NonEmployeeBulkUploadStatus + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus`: %v\n", resp) } ``` @@ -1268,7 +1270,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1276,18 +1278,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Non-Employee record id (UUID) # string | Non-Employee record id (UUID) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeRecord`: NonEmployeeRecord - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord`: %v\n", resp) + //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeRecord`: NonEmployeeRecord + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord`: %v\n", resp) } ``` @@ -1338,7 +1340,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1346,18 +1348,18 @@ import ( func main() { id := `ac110005-7156-1150-8171-5b292e3e0084` // string | Non-Employee request id (UUID) # string | Non-Employee request id (UUID) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeRequest`: NonEmployeeRequest - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest`: %v\n", resp) + //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeRequest`: NonEmployeeRequest + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest`: %v\n", resp) } ``` @@ -1408,7 +1410,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1416,18 +1418,18 @@ import ( func main() { requestedFor := `2c91808280430dfb0180431a59440460` // string | The identity (UUID) of the non-employee account manager for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. # string | The identity (UUID) of the non-employee account manager for whom the summary is being retrieved. Use \"me\" instead to indicate the current user. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary(context.Background(), requestedFor).Execute() - //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary(context.Background(), requestedFor).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeRequestSummary`: NonEmployeeRequestSummary - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary`: %v\n", resp) + //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary(context.Background(), requestedFor).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeRequestSummary`: NonEmployeeRequestSummary + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary`: %v\n", resp) } ``` @@ -1476,7 +1478,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1485,18 +1487,18 @@ func main() { attributeId := `ef38f94347e94562b5bb8424a56397d8` // string | The Schema Attribute Id (UUID) # string | The Schema Attribute Id (UUID) sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() - //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeSchemaAttribute`: NonEmployeeSchemaAttribute - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute`: %v\n", resp) + //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeSchemaAttribute`: NonEmployeeSchemaAttribute + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute`: %v\n", resp) } ``` @@ -1547,7 +1549,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1555,18 +1557,18 @@ import ( func main() { sourceId := `2c91808b7c28b350017c2a2ec5790aa1` // string | Source Id # string | Source Id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeSource`: NonEmployeeSource - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource`: %v\n", resp) + //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeSource`: NonEmployeeSource + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource`: %v\n", resp) } ``` @@ -1614,7 +1616,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1622,18 +1624,18 @@ import ( func main() { sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetNonEmployeeSourceSchemaAttributes`: []NonEmployeeSchemaAttribute - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes`: %v\n", resp) + //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNonEmployeeSourceSchemaAttributes`: []NonEmployeeSchemaAttribute + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes`: %v\n", resp) } ``` @@ -1681,7 +1683,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1690,18 +1692,18 @@ func main() { id := `e136567de87e4d029e60b3c3c55db56d` // string | Source Id (UUID) # string | Source Id (UUID) data := BINARY_DATA_HERE // *os.File | # *os.File | - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk(context.Background(), id).Data(data).Execute() - //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk(context.Background(), id).Data(data).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportNonEmployeeRecordsInBulk`: NonEmployeeBulkUploadJob - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk`: %v\n", resp) + //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk(context.Background(), id).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportNonEmployeeRecordsInBulk`: NonEmployeeBulkUploadJob + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk`: %v\n", resp) } ``` @@ -1753,7 +1755,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1766,18 +1768,18 @@ func main() { filters := `approvalStatus eq "Pending"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **approvalStatus**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **approvalStatus**: *eq* (optional) sorters := `created` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, modified** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals(context.Background()).Execute() - //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals(context.Background()).RequestedFor(requestedFor).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListNonEmployeeApprovals`: []NonEmployeeApprovalItem - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals`: %v\n", resp) + //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals(context.Background()).RequestedFor(requestedFor).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListNonEmployeeApprovals`: []NonEmployeeApprovalItem + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals`: %v\n", resp) } ``` @@ -1826,7 +1828,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1838,18 +1840,18 @@ func main() { sorters := `accountName,sourceId` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, accountName, sourceId, manager, firstName, lastName, email, phone, startDate, endDate, created, modified** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, accountName, sourceId, manager, firstName, lastName, email, phone, startDate, endDate, created, modified** (optional) filters := `sourceId eq "2c91808568c529c60168cca6f90c1313"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **sourceId**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **sourceId**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords(context.Background()).Execute() - //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords(context.Background()).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListNonEmployeeRecords`: []NonEmployeeRecord - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords`: %v\n", resp) + //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords(context.Background()).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListNonEmployeeRecords`: []NonEmployeeRecord + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords`: %v\n", resp) } ``` @@ -1901,7 +1903,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1914,18 +1916,18 @@ func main() { sorters := `created,approvalStatus` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, approvalStatus, firstName, lastName, email, phone, accountName, startDate, endDate** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **created, approvalStatus, firstName, lastName, email, phone, accountName, startDate, endDate** (optional) filters := `sourceId eq "2c91808568c529c60168cca6f90c1313"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **sourceId**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **sourceId**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests(context.Background()).RequestedFor(requestedFor).Execute() - //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests(context.Background()).RequestedFor(requestedFor).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListNonEmployeeRequests`: []NonEmployeeRequest - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests`: %v\n", resp) + //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests(context.Background()).RequestedFor(requestedFor).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListNonEmployeeRequests`: []NonEmployeeRequest + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests`: %v\n", resp) } ``` @@ -1975,7 +1977,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1988,18 +1990,18 @@ func main() { nonEmployeeCount := true // bool | Flag that determines whether the API will return a non-employee count associated with the source. (optional) (default to false) # bool | Flag that determines whether the API will return a non-employee count associated with the source. (optional) (default to false) sorters := `name,created` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, sourceId** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, created, sourceId** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources(context.Background()).Execute() - //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources(context.Background()).Limit(limit).Offset(offset).Count(count).RequestedFor(requestedFor).NonEmployeeCount(nonEmployeeCount).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListNonEmployeeSources`: []NonEmployeeSourceWithNECount - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources`: %v\n", resp) + //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources(context.Background()).Limit(limit).Offset(offset).Count(count).RequestedFor(requestedFor).NonEmployeeCount(nonEmployeeCount).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListNonEmployeeSources`: []NonEmployeeSourceWithNECount + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources`: %v\n", resp) } ``` @@ -2051,7 +2053,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2060,24 +2062,23 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | Non-employee record id (UUID) # string | Non-employee record id (UUID) jsonpatchoperation := []byte(`[{op=replace, path=/endDate, value=2019-08-23T18:40:35.772Z}]`) // []JsonPatchOperation | A list of non-employee update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Attributes are restricted by user type. Owner of source can update end date. Organization admins can update all available fields. - - var jsonPatchOperation v3.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v3.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchNonEmployeeRecord`: NonEmployeeRecord - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord`: %v\n", resp) + //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchNonEmployeeRecord`: NonEmployeeRecord + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord`: %v\n", resp) } ``` @@ -2129,7 +2130,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2139,24 +2140,23 @@ func main() { sourceId := `ef38f94347e94562b5bb8424a56397d8` // string | The Source id # string | The Source id jsonpatchoperation := []byte(`[{op=replace, path=/label, value={new attribute label=null}}]`) // []JsonPatchOperation | A list of schema attribute update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following properties are allowed for update ':' 'label', 'helpText', 'placeholder', 'required'. - - var jsonPatchOperation v3.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v3.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchNonEmployeeSchemaAttribute`: NonEmployeeSchemaAttribute - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute`: %v\n", resp) + //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchNonEmployeeSchemaAttribute`: NonEmployeeSchemaAttribute + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute`: %v\n", resp) } ``` @@ -2204,7 +2204,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2213,24 +2213,23 @@ func main() { sourceId := `e136567de87e4d029e60b3c3c55db56d` // string | Source Id # string | Source Id jsonpatchoperation := []byte(`[{op=replace, path=/name, value={new name=null}}, {op=replace, path=/approvers, value=[2c91809f703bb37a017040a2fe8748c7, 48b1f463c9e8427db5a5071bd81914b8]}]`) // []JsonPatchOperation | A list of non-employee source update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - - var jsonPatchOperation v3.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v3.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource(context.Background(), sourceId).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource(context.Background(), sourceId).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchNonEmployeeSource`: NonEmployeeSource - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource`: %v\n", resp) + //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource(context.Background(), sourceId).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchNonEmployeeSource`: NonEmployeeSource + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource`: %v\n", resp) } ``` @@ -2278,7 +2277,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2289,24 +2288,23 @@ func main() { "comment" : "approved" }`) // NonEmployeeRejectApprovalDecision | - - var nonEmployeeRejectApprovalDecision v3.NonEmployeeRejectApprovalDecision - if err := json.Unmarshal(nonemployeerejectapprovaldecision, &nonEmployeeRejectApprovalDecision); err != nil { - fmt.Println("Error:", err) - return - } - + var nonEmployeeRejectApprovalDecision v3.NonEmployeeRejectApprovalDecision + if err := json.Unmarshal(nonemployeerejectapprovaldecision, &nonEmployeeRejectApprovalDecision); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest(context.Background(), id).NonEmployeeRejectApprovalDecision(nonEmployeeRejectApprovalDecision).Execute() - //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest(context.Background(), id).NonEmployeeRejectApprovalDecision(nonEmployeeRejectApprovalDecision).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `RejectNonEmployeeRequest`: NonEmployeeApprovalItem - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest`: %v\n", resp) + //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest(context.Background(), id).NonEmployeeRejectApprovalDecision(nonEmployeeRejectApprovalDecision).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RejectNonEmployeeRequest`: NonEmployeeApprovalItem + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest`: %v\n", resp) } ``` @@ -2358,7 +2356,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -2381,24 +2379,23 @@ func main() { "startDate" : "2020-03-24T00:00:00-05:00" }`) // NonEmployeeRequestBody | Non-employee record creation request body. Attributes are restricted by user type. Owner of source can update end date. Organization admins can update all available fields. - - var nonEmployeeRequestBody v3.NonEmployeeRequestBody - if err := json.Unmarshal(nonemployeerequestbody, &nonEmployeeRequestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var nonEmployeeRequestBody v3.NonEmployeeRequestBody + if err := json.Unmarshal(nonemployeerequestbody, &nonEmployeeRequestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord(context.Background(), id).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() - //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord(context.Background(), id).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateNonEmployeeRecord`: NonEmployeeRecord - fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord`: %v\n", resp) + //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord(context.Background(), id).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateNonEmployeeRecord`: NonEmployeeRecord + fmt.Fprintf(os.Stdout, "Response from `NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/OAuthClientsAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/OAuthClientsAPI.md index 6792ce144..c6f9693bc 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/OAuthClientsAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/OAuthClientsAPI.md @@ -62,7 +62,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -86,24 +86,23 @@ func main() { "claimsSupported" : false }`) // CreateOAuthClientRequest | - - var createOAuthClientRequest v3.CreateOAuthClientRequest - if err := json.Unmarshal(createoauthclientrequest, &createOAuthClientRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var createOAuthClientRequest v3.CreateOAuthClientRequest + if err := json.Unmarshal(createoauthclientrequest, &createOAuthClientRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.OAuthClientsAPI.CreateOauthClient(context.Background()).CreateOAuthClientRequest(createOAuthClientRequest).Execute() - //resp, r, err := apiClient.V3.OAuthClientsAPI.CreateOauthClient(context.Background()).CreateOAuthClientRequest(createOAuthClientRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.CreateOauthClient``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateOauthClient`: CreateOAuthClientResponse - fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.CreateOauthClient`: %v\n", resp) + //resp, r, err := apiClient.V3.OAuthClientsAPI.CreateOauthClient(context.Background()).CreateOAuthClientRequest(createOAuthClientRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.CreateOauthClient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateOauthClient`: CreateOAuthClientResponse + fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.CreateOauthClient`: %v\n", resp) } ``` @@ -150,7 +149,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -158,16 +157,17 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The OAuth client id # string | The OAuth client id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.OAuthClientsAPI.DeleteOauthClient(context.Background(), id).Execute() - //r, err := apiClient.V3.OAuthClientsAPI.DeleteOauthClient(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.DeleteOauthClient``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.OAuthClientsAPI.DeleteOauthClient(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.DeleteOauthClient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -214,7 +214,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -222,18 +222,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The OAuth client id # string | The OAuth client id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.OAuthClientsAPI.GetOauthClient(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.OAuthClientsAPI.GetOauthClient(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.GetOauthClient``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetOauthClient`: GetOAuthClientResponse - fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.GetOauthClient`: %v\n", resp) + //resp, r, err := apiClient.V3.OAuthClientsAPI.GetOauthClient(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.GetOauthClient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetOauthClient`: GetOAuthClientResponse + fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.GetOauthClient`: %v\n", resp) } ``` @@ -276,7 +276,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -284,18 +284,18 @@ import ( func main() { filters := `lastUsed le 2023-02-05T10:59:27.214Z` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **lastUsed**: *le, isnull* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **lastUsed**: *le, isnull* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.OAuthClientsAPI.ListOauthClients(context.Background()).Execute() - //resp, r, err := apiClient.V3.OAuthClientsAPI.ListOauthClients(context.Background()).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.ListOauthClients``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListOauthClients`: []GetOAuthClientResponse - fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.ListOauthClients`: %v\n", resp) + //resp, r, err := apiClient.V3.OAuthClientsAPI.ListOauthClients(context.Background()).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.ListOauthClients``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListOauthClients`: []GetOAuthClientResponse + fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.ListOauthClients`: %v\n", resp) } ``` @@ -343,7 +343,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -352,24 +352,23 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The OAuth client id # string | The OAuth client id jsonpatchoperation := []byte(`[{op=replace, path=/strongAuthSupported, value=true}, {op=replace, path=/businessName, value=acme-solar}]`) // []JsonPatchOperation | A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * tenant * businessName * homepageUrl * name * description * accessTokenValiditySeconds * refreshTokenValiditySeconds * redirectUris * grantTypes * accessType * enabled * strongAuthSupported * claimsSupported - - var jsonPatchOperation v3.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v3.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.OAuthClientsAPI.PatchOauthClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V3.OAuthClientsAPI.PatchOauthClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.PatchOauthClient``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchOauthClient`: GetOAuthClientResponse - fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.PatchOauthClient`: %v\n", resp) + //resp, r, err := apiClient.V3.OAuthClientsAPI.PatchOauthClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OAuthClientsAPI.PatchOauthClient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchOauthClient`: GetOAuthClientResponse + fmt.Fprintf(os.Stdout, "Response from `OAuthClientsAPI.PatchOauthClient`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/PasswordConfigurationAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/PasswordConfigurationAPI.md index 54e483068..8ef9f9c4a 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/PasswordConfigurationAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/PasswordConfigurationAPI.md @@ -65,7 +65,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -78,24 +78,23 @@ func main() { "customInstructionsEnabled" : true }`) // PasswordOrgConfig | - - var passwordOrgConfig v3.PasswordOrgConfig - if err := json.Unmarshal(passwordorgconfig, &passwordOrgConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var passwordOrgConfig v3.PasswordOrgConfig + if err := json.Unmarshal(passwordorgconfig, &passwordOrgConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PasswordConfigurationAPI.CreatePasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() - //resp, r, err := apiClient.V3.PasswordConfigurationAPI.CreatePasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordConfigurationAPI.CreatePasswordOrgConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreatePasswordOrgConfig`: PasswordOrgConfig - fmt.Fprintf(os.Stdout, "Response from `PasswordConfigurationAPI.CreatePasswordOrgConfig`: %v\n", resp) + //resp, r, err := apiClient.V3.PasswordConfigurationAPI.CreatePasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordConfigurationAPI.CreatePasswordOrgConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreatePasswordOrgConfig`: PasswordOrgConfig + fmt.Fprintf(os.Stdout, "Response from `PasswordConfigurationAPI.CreatePasswordOrgConfig`: %v\n", resp) } ``` @@ -134,25 +133,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PasswordConfigurationAPI.GetPasswordOrgConfig(context.Background()).Execute() - //resp, r, err := apiClient.V3.PasswordConfigurationAPI.GetPasswordOrgConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordConfigurationAPI.GetPasswordOrgConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPasswordOrgConfig`: PasswordOrgConfig - fmt.Fprintf(os.Stdout, "Response from `PasswordConfigurationAPI.GetPasswordOrgConfig`: %v\n", resp) + //resp, r, err := apiClient.V3.PasswordConfigurationAPI.GetPasswordOrgConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordConfigurationAPI.GetPasswordOrgConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPasswordOrgConfig`: PasswordOrgConfig + fmt.Fprintf(os.Stdout, "Response from `PasswordConfigurationAPI.GetPasswordOrgConfig`: %v\n", resp) } ``` @@ -197,7 +196,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -210,24 +209,23 @@ func main() { "customInstructionsEnabled" : true }`) // PasswordOrgConfig | - - var passwordOrgConfig v3.PasswordOrgConfig - if err := json.Unmarshal(passwordorgconfig, &passwordOrgConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var passwordOrgConfig v3.PasswordOrgConfig + if err := json.Unmarshal(passwordorgconfig, &passwordOrgConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PasswordConfigurationAPI.PutPasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() - //resp, r, err := apiClient.V3.PasswordConfigurationAPI.PutPasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordConfigurationAPI.PutPasswordOrgConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutPasswordOrgConfig`: PasswordOrgConfig - fmt.Fprintf(os.Stdout, "Response from `PasswordConfigurationAPI.PutPasswordOrgConfig`: %v\n", resp) + //resp, r, err := apiClient.V3.PasswordConfigurationAPI.PutPasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordConfigurationAPI.PutPasswordOrgConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutPasswordOrgConfig`: PasswordOrgConfig + fmt.Fprintf(os.Stdout, "Response from `PasswordConfigurationAPI.PutPasswordOrgConfig`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/PasswordDictionaryAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/PasswordDictionaryAPI.md index c72bb85cd..7777545ec 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/PasswordDictionaryAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/PasswordDictionaryAPI.md @@ -127,25 +127,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PasswordDictionaryAPI.GetPasswordDictionary(context.Background()).Execute() - //resp, r, err := apiClient.V3.PasswordDictionaryAPI.GetPasswordDictionary(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordDictionaryAPI.GetPasswordDictionary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPasswordDictionary`: string - fmt.Fprintf(os.Stdout, "Response from `PasswordDictionaryAPI.GetPasswordDictionary`: %v\n", resp) + //resp, r, err := apiClient.V3.PasswordDictionaryAPI.GetPasswordDictionary(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordDictionaryAPI.GetPasswordDictionary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPasswordDictionary`: string + fmt.Fprintf(os.Stdout, "Response from `PasswordDictionaryAPI.GetPasswordDictionary`: %v\n", resp) } ``` @@ -216,7 +216,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -224,16 +224,17 @@ import ( func main() { file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.PasswordDictionaryAPI.PutPasswordDictionary(context.Background()).Execute() - //r, err := apiClient.V3.PasswordDictionaryAPI.PutPasswordDictionary(context.Background()).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordDictionaryAPI.PutPasswordDictionary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.PasswordDictionaryAPI.PutPasswordDictionary(context.Background()).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordDictionaryAPI.PutPasswordDictionary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/PasswordManagementAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/PasswordManagementAPI.md index ac9247f03..c4cabad24 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/PasswordManagementAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/PasswordManagementAPI.md @@ -85,7 +85,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -93,18 +93,18 @@ import ( func main() { id := `089899f13a8f4da7824996191587bab9` // string | Password change request ID # string | Password change request ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PasswordManagementAPI.GetPasswordChangeStatus(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.PasswordManagementAPI.GetPasswordChangeStatus(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordManagementAPI.GetPasswordChangeStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPasswordChangeStatus`: PasswordStatus - fmt.Fprintf(os.Stdout, "Response from `PasswordManagementAPI.GetPasswordChangeStatus`: %v\n", resp) + //resp, r, err := apiClient.V3.PasswordManagementAPI.GetPasswordChangeStatus(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordManagementAPI.GetPasswordChangeStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPasswordChangeStatus`: PasswordStatus + fmt.Fprintf(os.Stdout, "Response from `PasswordManagementAPI.GetPasswordChangeStatus`: %v\n", resp) } ``` @@ -148,7 +148,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -159,24 +159,23 @@ func main() { "userName" : "Abby.Smith" }`) // PasswordInfoQueryDTO | - - var passwordInfoQueryDTO v3.PasswordInfoQueryDTO - if err := json.Unmarshal(passwordinfoquerydto, &passwordInfoQueryDTO); err != nil { - fmt.Println("Error:", err) - return - } - + var passwordInfoQueryDTO v3.PasswordInfoQueryDTO + if err := json.Unmarshal(passwordinfoquerydto, &passwordInfoQueryDTO); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PasswordManagementAPI.QueryPasswordInfo(context.Background()).PasswordInfoQueryDTO(passwordInfoQueryDTO).Execute() - //resp, r, err := apiClient.V3.PasswordManagementAPI.QueryPasswordInfo(context.Background()).PasswordInfoQueryDTO(passwordInfoQueryDTO).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordManagementAPI.QueryPasswordInfo``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `QueryPasswordInfo`: PasswordInfo - fmt.Fprintf(os.Stdout, "Response from `PasswordManagementAPI.QueryPasswordInfo`: %v\n", resp) + //resp, r, err := apiClient.V3.PasswordManagementAPI.QueryPasswordInfo(context.Background()).PasswordInfoQueryDTO(passwordInfoQueryDTO).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordManagementAPI.QueryPasswordInfo``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `QueryPasswordInfo`: PasswordInfo + fmt.Fprintf(os.Stdout, "Response from `PasswordManagementAPI.QueryPasswordInfo`: %v\n", resp) } ``` @@ -238,7 +237,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -252,24 +251,23 @@ func main() { "encryptedPassword" : "XzN+YwKgr2C+InkMYFMBG3UtjMEw5ZIql/XFlXo8cJNeslmkplx6vn4kd4/43IF9STBk5RnzR6XmjpEO+FwHDoiBwYZAkAZK/Iswxk4OdybG6Y4MStJCOCiK8osKr35IMMSV/mbO4wAeltoCk7daTWzTGLiI6UaT5tf+F2EgdjJZ7YqM8W8r7aUWsm3p2Xt01Y46ZRx0QaM91QruiIx2rECFT2pUO0wr+7oQ77jypATyGWRtADsu3YcvCk/6U5MqCnXMzKBcRas7NnZdSL/d5H1GglVGz3VLPMaivG4/oL4chOMmFCRl/zVsGxZ9RhN8rxsRGFFKn+rhExTi+bax3A==" }`) // PasswordChangeRequest | - - var passwordChangeRequest v3.PasswordChangeRequest - if err := json.Unmarshal(passwordchangerequest, &passwordChangeRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var passwordChangeRequest v3.PasswordChangeRequest + if err := json.Unmarshal(passwordchangerequest, &passwordChangeRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PasswordManagementAPI.SetPassword(context.Background()).PasswordChangeRequest(passwordChangeRequest).Execute() - //resp, r, err := apiClient.V3.PasswordManagementAPI.SetPassword(context.Background()).PasswordChangeRequest(passwordChangeRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordManagementAPI.SetPassword``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetPassword`: PasswordChangeResponse - fmt.Fprintf(os.Stdout, "Response from `PasswordManagementAPI.SetPassword`: %v\n", resp) + //resp, r, err := apiClient.V3.PasswordManagementAPI.SetPassword(context.Background()).PasswordChangeRequest(passwordChangeRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordManagementAPI.SetPassword``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetPassword`: PasswordChangeResponse + fmt.Fprintf(os.Stdout, "Response from `PasswordManagementAPI.SetPassword`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/PasswordPoliciesAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/PasswordPoliciesAPI.md index e9e2849a9..0d2e9fd9f 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/PasswordPoliciesAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/PasswordPoliciesAPI.md @@ -67,7 +67,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -107,24 +107,23 @@ func main() { "maxLength" : 25 }`) // PasswordPolicyV3Dto | - - var passwordPolicyV3Dto v3.PasswordPolicyV3Dto - if err := json.Unmarshal(passwordpolicyv3dto, &passwordPolicyV3Dto); err != nil { - fmt.Println("Error:", err) - return - } - + var passwordPolicyV3Dto v3.PasswordPolicyV3Dto + if err := json.Unmarshal(passwordpolicyv3dto, &passwordPolicyV3Dto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PasswordPoliciesAPI.CreatePasswordPolicy(context.Background()).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() - //resp, r, err := apiClient.V3.PasswordPoliciesAPI.CreatePasswordPolicy(context.Background()).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.CreatePasswordPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreatePasswordPolicy`: PasswordPolicyV3Dto - fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.CreatePasswordPolicy`: %v\n", resp) + //resp, r, err := apiClient.V3.PasswordPoliciesAPI.CreatePasswordPolicy(context.Background()).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.CreatePasswordPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreatePasswordPolicy`: PasswordPolicyV3Dto + fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.CreatePasswordPolicy`: %v\n", resp) } ``` @@ -171,7 +170,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -179,16 +178,17 @@ import ( func main() { id := `ff808081838d9e9d01838da6a03e0002` // string | The ID of password policy to delete. # string | The ID of password policy to delete. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.PasswordPoliciesAPI.DeletePasswordPolicy(context.Background(), id).Execute() - //r, err := apiClient.V3.PasswordPoliciesAPI.DeletePasswordPolicy(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.DeletePasswordPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.PasswordPoliciesAPI.DeletePasswordPolicy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.DeletePasswordPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -235,7 +235,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -243,18 +243,18 @@ import ( func main() { id := `ff808081838d9e9d01838da6a03e0005` // string | The ID of password policy to retrieve. # string | The ID of password policy to retrieve. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PasswordPoliciesAPI.GetPasswordPolicyById(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.PasswordPoliciesAPI.GetPasswordPolicyById(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.GetPasswordPolicyById``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPasswordPolicyById`: PasswordPolicyV3Dto - fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.GetPasswordPolicyById`: %v\n", resp) + //resp, r, err := apiClient.V3.PasswordPoliciesAPI.GetPasswordPolicyById(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.GetPasswordPolicyById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPasswordPolicyById`: PasswordPolicyV3Dto + fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.GetPasswordPolicyById`: %v\n", resp) } ``` @@ -300,7 +300,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -310,18 +310,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PasswordPoliciesAPI.ListPasswordPolicies(context.Background()).Execute() - //resp, r, err := apiClient.V3.PasswordPoliciesAPI.ListPasswordPolicies(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.ListPasswordPolicies``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListPasswordPolicies`: []PasswordPolicyV3Dto - fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.ListPasswordPolicies`: %v\n", resp) + //resp, r, err := apiClient.V3.PasswordPoliciesAPI.ListPasswordPolicies(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.ListPasswordPolicies``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListPasswordPolicies`: []PasswordPolicyV3Dto + fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.ListPasswordPolicies`: %v\n", resp) } ``` @@ -369,7 +369,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -410,24 +410,23 @@ func main() { "maxLength" : 25 }`) // PasswordPolicyV3Dto | - - var passwordPolicyV3Dto v3.PasswordPolicyV3Dto - if err := json.Unmarshal(passwordpolicyv3dto, &passwordPolicyV3Dto); err != nil { - fmt.Println("Error:", err) - return - } - + var passwordPolicyV3Dto v3.PasswordPolicyV3Dto + if err := json.Unmarshal(passwordpolicyv3dto, &passwordPolicyV3Dto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PasswordPoliciesAPI.SetPasswordPolicy(context.Background(), id).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() - //resp, r, err := apiClient.V3.PasswordPoliciesAPI.SetPasswordPolicy(context.Background(), id).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.SetPasswordPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetPasswordPolicy`: PasswordPolicyV3Dto - fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.SetPasswordPolicy`: %v\n", resp) + //resp, r, err := apiClient.V3.PasswordPoliciesAPI.SetPasswordPolicy(context.Background(), id).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordPoliciesAPI.SetPasswordPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetPasswordPolicy`: PasswordPolicyV3Dto + fmt.Fprintf(os.Stdout, "Response from `PasswordPoliciesAPI.SetPasswordPolicy`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/PasswordSyncGroupsAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/PasswordSyncGroupsAPI.md index 17f071079..2a1ae1707 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/PasswordSyncGroupsAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/PasswordSyncGroupsAPI.md @@ -91,7 +91,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -106,24 +106,23 @@ func main() { "sourceIds" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210500" ] }`) // PasswordSyncGroup | - - var passwordSyncGroup v3.PasswordSyncGroup - if err := json.Unmarshal(passwordsyncgroup, &passwordSyncGroup); err != nil { - fmt.Println("Error:", err) - return - } - + var passwordSyncGroup v3.PasswordSyncGroup + if err := json.Unmarshal(passwordsyncgroup, &passwordSyncGroup); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PasswordSyncGroupsAPI.CreatePasswordSyncGroup(context.Background()).PasswordSyncGroup(passwordSyncGroup).Execute() - //resp, r, err := apiClient.V3.PasswordSyncGroupsAPI.CreatePasswordSyncGroup(context.Background()).PasswordSyncGroup(passwordSyncGroup).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.CreatePasswordSyncGroup``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreatePasswordSyncGroup`: PasswordSyncGroup - fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.CreatePasswordSyncGroup`: %v\n", resp) + //resp, r, err := apiClient.V3.PasswordSyncGroupsAPI.CreatePasswordSyncGroup(context.Background()).PasswordSyncGroup(passwordSyncGroup).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.CreatePasswordSyncGroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreatePasswordSyncGroup`: PasswordSyncGroup + fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.CreatePasswordSyncGroup`: %v\n", resp) } ``` @@ -170,7 +169,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -178,16 +177,17 @@ import ( func main() { id := `6881f631-3bd5-4213-9c75-8e05cc3e35dd` // string | The ID of password sync group to delete. # string | The ID of password sync group to delete. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.PasswordSyncGroupsAPI.DeletePasswordSyncGroup(context.Background(), id).Execute() - //r, err := apiClient.V3.PasswordSyncGroupsAPI.DeletePasswordSyncGroup(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.DeletePasswordSyncGroup``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.PasswordSyncGroupsAPI.DeletePasswordSyncGroup(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.DeletePasswordSyncGroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -234,7 +234,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -242,18 +242,18 @@ import ( func main() { id := `6881f631-3bd5-4213-9c75-8e05cc3e35dd` // string | The ID of password sync group to retrieve. # string | The ID of password sync group to retrieve. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PasswordSyncGroupsAPI.GetPasswordSyncGroup(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.PasswordSyncGroupsAPI.GetPasswordSyncGroup(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.GetPasswordSyncGroup``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPasswordSyncGroup`: PasswordSyncGroup - fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.GetPasswordSyncGroup`: %v\n", resp) + //resp, r, err := apiClient.V3.PasswordSyncGroupsAPI.GetPasswordSyncGroup(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.GetPasswordSyncGroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPasswordSyncGroup`: PasswordSyncGroup + fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.GetPasswordSyncGroup`: %v\n", resp) } ``` @@ -298,7 +298,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -308,18 +308,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PasswordSyncGroupsAPI.GetPasswordSyncGroups(context.Background()).Execute() - //resp, r, err := apiClient.V3.PasswordSyncGroupsAPI.GetPasswordSyncGroups(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.GetPasswordSyncGroups``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPasswordSyncGroups`: []PasswordSyncGroup - fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.GetPasswordSyncGroups`: %v\n", resp) + //resp, r, err := apiClient.V3.PasswordSyncGroupsAPI.GetPasswordSyncGroups(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.GetPasswordSyncGroups``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPasswordSyncGroups`: []PasswordSyncGroup + fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.GetPasswordSyncGroups`: %v\n", resp) } ``` @@ -367,7 +367,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -383,24 +383,23 @@ func main() { "sourceIds" : [ "2c918084660f45d6016617daa9210584", "2c918084660f45d6016617daa9210500" ] }`) // PasswordSyncGroup | - - var passwordSyncGroup v3.PasswordSyncGroup - if err := json.Unmarshal(passwordsyncgroup, &passwordSyncGroup); err != nil { - fmt.Println("Error:", err) - return - } - + var passwordSyncGroup v3.PasswordSyncGroup + if err := json.Unmarshal(passwordsyncgroup, &passwordSyncGroup); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PasswordSyncGroupsAPI.UpdatePasswordSyncGroup(context.Background(), id).PasswordSyncGroup(passwordSyncGroup).Execute() - //resp, r, err := apiClient.V3.PasswordSyncGroupsAPI.UpdatePasswordSyncGroup(context.Background(), id).PasswordSyncGroup(passwordSyncGroup).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.UpdatePasswordSyncGroup``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdatePasswordSyncGroup`: PasswordSyncGroup - fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.UpdatePasswordSyncGroup`: %v\n", resp) + //resp, r, err := apiClient.V3.PasswordSyncGroupsAPI.UpdatePasswordSyncGroup(context.Background(), id).PasswordSyncGroup(passwordSyncGroup).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PasswordSyncGroupsAPI.UpdatePasswordSyncGroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdatePasswordSyncGroup`: PasswordSyncGroup + fmt.Fprintf(os.Stdout, "Response from `PasswordSyncGroupsAPI.UpdatePasswordSyncGroup`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/PersonalAccessTokensAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/PersonalAccessTokensAPI.md index 693f67a7c..999ce520b 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/PersonalAccessTokensAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/PersonalAccessTokensAPI.md @@ -69,7 +69,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -81,24 +81,23 @@ func main() { "name" : "NodeJS Integration" }`) // CreatePersonalAccessTokenRequest | Name and scope of personal access token. - - var createPersonalAccessTokenRequest v3.CreatePersonalAccessTokenRequest - if err := json.Unmarshal(createpersonalaccesstokenrequest, &createPersonalAccessTokenRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var createPersonalAccessTokenRequest v3.CreatePersonalAccessTokenRequest + if err := json.Unmarshal(createpersonalaccesstokenrequest, &createPersonalAccessTokenRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PersonalAccessTokensAPI.CreatePersonalAccessToken(context.Background()).CreatePersonalAccessTokenRequest(createPersonalAccessTokenRequest).Execute() - //resp, r, err := apiClient.V3.PersonalAccessTokensAPI.CreatePersonalAccessToken(context.Background()).CreatePersonalAccessTokenRequest(createPersonalAccessTokenRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.CreatePersonalAccessToken``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreatePersonalAccessToken`: CreatePersonalAccessTokenResponse - fmt.Fprintf(os.Stdout, "Response from `PersonalAccessTokensAPI.CreatePersonalAccessToken`: %v\n", resp) + //resp, r, err := apiClient.V3.PersonalAccessTokensAPI.CreatePersonalAccessToken(context.Background()).CreatePersonalAccessTokenRequest(createPersonalAccessTokenRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.CreatePersonalAccessToken``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreatePersonalAccessToken`: CreatePersonalAccessTokenResponse + fmt.Fprintf(os.Stdout, "Response from `PersonalAccessTokensAPI.CreatePersonalAccessToken`: %v\n", resp) } ``` @@ -145,7 +144,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -153,16 +152,17 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The personal access token id # string | The personal access token id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.PersonalAccessTokensAPI.DeletePersonalAccessToken(context.Background(), id).Execute() - //r, err := apiClient.V3.PersonalAccessTokensAPI.DeletePersonalAccessToken(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.DeletePersonalAccessToken``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.PersonalAccessTokensAPI.DeletePersonalAccessToken(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.DeletePersonalAccessToken``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -206,7 +206,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -215,18 +215,18 @@ func main() { ownerId := `2c9180867b50d088017b554662fb281e` // string | The identity ID of the owner whose personal access tokens should be listed. If \"me\", the caller should have the following right: 'idn:my-personal-access-tokens:read' If an actual owner ID or if the `owner-id` parameter is omitted in the request, the caller should have the following right: 'idn:all-personal-access-tokens:read'. If the caller has the following right, then managed personal access tokens associated with `owner-id` will be retrieved: 'idn:managed-personal-access-tokens:read' (optional) # string | The identity ID of the owner whose personal access tokens should be listed. If \"me\", the caller should have the following right: 'idn:my-personal-access-tokens:read' If an actual owner ID or if the `owner-id` parameter is omitted in the request, the caller should have the following right: 'idn:all-personal-access-tokens:read'. If the caller has the following right, then managed personal access tokens associated with `owner-id` will be retrieved: 'idn:managed-personal-access-tokens:read' (optional) filters := `lastUsed le 2023-02-05T10:59:27.214Z` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **lastUsed**: *le, isnull* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **lastUsed**: *le, isnull* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PersonalAccessTokensAPI.ListPersonalAccessTokens(context.Background()).Execute() - //resp, r, err := apiClient.V3.PersonalAccessTokensAPI.ListPersonalAccessTokens(context.Background()).OwnerId(ownerId).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.ListPersonalAccessTokens``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListPersonalAccessTokens`: []GetPersonalAccessTokenResponse - fmt.Fprintf(os.Stdout, "Response from `PersonalAccessTokensAPI.ListPersonalAccessTokens`: %v\n", resp) + //resp, r, err := apiClient.V3.PersonalAccessTokensAPI.ListPersonalAccessTokens(context.Background()).OwnerId(ownerId).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.ListPersonalAccessTokens``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListPersonalAccessTokens`: []GetPersonalAccessTokenResponse + fmt.Fprintf(os.Stdout, "Response from `PersonalAccessTokensAPI.ListPersonalAccessTokens`: %v\n", resp) } ``` @@ -275,7 +275,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -284,24 +284,23 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The Personal Access Token id # string | The Personal Access Token id jsonpatchoperation := []byte(`[{op=replace, path=/name, value=New name}, {op=replace, path=/scope, value=[sp:scopes:all]}]`) // []JsonPatchOperation | A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * scope - - var jsonPatchOperation v3.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v3.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PersonalAccessTokensAPI.PatchPersonalAccessToken(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V3.PersonalAccessTokensAPI.PatchPersonalAccessToken(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.PatchPersonalAccessToken``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchPersonalAccessToken`: GetPersonalAccessTokenResponse - fmt.Fprintf(os.Stdout, "Response from `PersonalAccessTokensAPI.PatchPersonalAccessToken`: %v\n", resp) + //resp, r, err := apiClient.V3.PersonalAccessTokensAPI.PatchPersonalAccessToken(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PersonalAccessTokensAPI.PatchPersonalAccessToken``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchPersonalAccessToken`: GetPersonalAccessTokenResponse + fmt.Fprintf(os.Stdout, "Response from `PersonalAccessTokensAPI.PatchPersonalAccessToken`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/PublicIdentitiesAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/PublicIdentitiesAPI.md index 8c6e0119c..3ca0ce40a 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/PublicIdentitiesAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/PublicIdentitiesAPI.md @@ -63,7 +63,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -76,18 +76,18 @@ func main() { addCoreFilters := false // bool | If *true*, only get identities which satisfy ALL the following criteria in addition to any criteria specified by *filters*: - Should be either correlated or protected. - Should not be \"spadmin\" or \"cloudadmin\". - uid should not be null. - lastname should not be null. - email should not be null. (optional) (default to false) # bool | If *true*, only get identities which satisfy ALL the following criteria in addition to any criteria specified by *filters*: - Should be either correlated or protected. - Should not be \"spadmin\" or \"cloudadmin\". - uid should not be null. - lastname should not be null. - email should not be null. (optional) (default to false) sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PublicIdentitiesAPI.GetPublicIdentities(context.Background()).Execute() - //resp, r, err := apiClient.V3.PublicIdentitiesAPI.GetPublicIdentities(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).AddCoreFilters(addCoreFilters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PublicIdentitiesAPI.GetPublicIdentities``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPublicIdentities`: []PublicIdentity - fmt.Fprintf(os.Stdout, "Response from `PublicIdentitiesAPI.GetPublicIdentities`: %v\n", resp) + //resp, r, err := apiClient.V3.PublicIdentitiesAPI.GetPublicIdentities(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).AddCoreFilters(addCoreFilters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PublicIdentitiesAPI.GetPublicIdentities``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPublicIdentities`: []PublicIdentity + fmt.Fprintf(os.Stdout, "Response from `PublicIdentitiesAPI.GetPublicIdentities`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/PublicIdentitiesConfigAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/PublicIdentitiesConfigAPI.md index 8e2612ff3..32f90813f 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/PublicIdentitiesConfigAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/PublicIdentitiesConfigAPI.md @@ -62,25 +62,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PublicIdentitiesConfigAPI.GetPublicIdentityConfig(context.Background()).Execute() - //resp, r, err := apiClient.V3.PublicIdentitiesConfigAPI.GetPublicIdentityConfig(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PublicIdentitiesConfigAPI.GetPublicIdentityConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetPublicIdentityConfig`: PublicIdentityConfig - fmt.Fprintf(os.Stdout, "Response from `PublicIdentitiesConfigAPI.GetPublicIdentityConfig`: %v\n", resp) + //resp, r, err := apiClient.V3.PublicIdentitiesConfigAPI.GetPublicIdentityConfig(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PublicIdentitiesConfigAPI.GetPublicIdentityConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPublicIdentityConfig`: PublicIdentityConfig + fmt.Fprintf(os.Stdout, "Response from `PublicIdentitiesConfigAPI.GetPublicIdentityConfig`: %v\n", resp) } ``` @@ -123,7 +123,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -145,24 +145,23 @@ func main() { } }`) // PublicIdentityConfig | - - var publicIdentityConfig v3.PublicIdentityConfig - if err := json.Unmarshal(publicidentityconfig, &publicIdentityConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var publicIdentityConfig v3.PublicIdentityConfig + if err := json.Unmarshal(publicidentityconfig, &publicIdentityConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig(context.Background()).PublicIdentityConfig(publicIdentityConfig).Execute() - //resp, r, err := apiClient.V3.PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig(context.Background()).PublicIdentityConfig(publicIdentityConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdatePublicIdentityConfig`: PublicIdentityConfig - fmt.Fprintf(os.Stdout, "Response from `PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig`: %v\n", resp) + //resp, r, err := apiClient.V3.PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig(context.Background()).PublicIdentityConfig(publicIdentityConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdatePublicIdentityConfig`: PublicIdentityConfig + fmt.Fprintf(os.Stdout, "Response from `PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/ReportsDataExtractionAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/ReportsDataExtractionAPI.md index a55ed990a..0ffb984aa 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/ReportsDataExtractionAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/ReportsDataExtractionAPI.md @@ -65,7 +65,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -73,16 +73,17 @@ import ( func main() { id := `a1ed223247144cc29d23c632624b4767` // string | ID of the running Report to cancel # string | ID of the running Report to cancel - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.ReportsDataExtractionAPI.CancelReport(context.Background(), id).Execute() - //r, err := apiClient.V3.ReportsDataExtractionAPI.CancelReport(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReportsDataExtractionAPI.CancelReport``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.ReportsDataExtractionAPI.CancelReport(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsDataExtractionAPI.CancelReport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -132,7 +133,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -143,18 +144,18 @@ func main() { name := `Identities Details Report` // string | preferred Report file name, by default will be used report name from task result. (optional) # string | preferred Report file name, by default will be used report name from task result. (optional) auditable := true // bool | Enables auditing for current report download. Will create an audit event and sent it to the REPORT cloud-audit kafka topic. Event will be created if there is any result present by requested taskResultId. (optional) (default to false) # bool | Enables auditing for current report download. Will create an audit event and sent it to the REPORT cloud-audit kafka topic. Event will be created if there is any result present by requested taskResultId. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ReportsDataExtractionAPI.GetReport(context.Background(), taskResultId).FileFormat(fileFormat).Execute() - //resp, r, err := apiClient.V3.ReportsDataExtractionAPI.GetReport(context.Background(), taskResultId).FileFormat(fileFormat).Name(name).Auditable(auditable).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReportsDataExtractionAPI.GetReport``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetReport`: *os.File - fmt.Fprintf(os.Stdout, "Response from `ReportsDataExtractionAPI.GetReport`: %v\n", resp) + //resp, r, err := apiClient.V3.ReportsDataExtractionAPI.GetReport(context.Background(), taskResultId).FileFormat(fileFormat).Name(name).Auditable(auditable).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsDataExtractionAPI.GetReport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetReport`: *os.File + fmt.Fprintf(os.Stdout, "Response from `ReportsDataExtractionAPI.GetReport`: %v\n", resp) } ``` @@ -202,7 +203,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -211,18 +212,18 @@ func main() { taskResultId := `ef38f94347e94562b5bb8424a56397d8` // string | Unique identifier of the task result which handled report # string | Unique identifier of the task result which handled report completed := true // bool | state of task result to apply ordering when results are fetching from the DB (optional) (default to false) # bool | state of task result to apply ordering when results are fetching from the DB (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ReportsDataExtractionAPI.GetReportResult(context.Background(), taskResultId).Execute() - //resp, r, err := apiClient.V3.ReportsDataExtractionAPI.GetReportResult(context.Background(), taskResultId).Completed(completed).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReportsDataExtractionAPI.GetReportResult``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetReportResult`: ReportResults - fmt.Fprintf(os.Stdout, "Response from `ReportsDataExtractionAPI.GetReportResult`: %v\n", resp) + //resp, r, err := apiClient.V3.ReportsDataExtractionAPI.GetReportResult(context.Background(), taskResultId).Completed(completed).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsDataExtractionAPI.GetReportResult``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetReportResult`: ReportResults + fmt.Fprintf(os.Stdout, "Response from `ReportsDataExtractionAPI.GetReportResult`: %v\n", resp) } ``` @@ -265,7 +266,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -279,24 +280,23 @@ func main() { } }`) // ReportDetails | - - var reportDetails v3.ReportDetails - if err := json.Unmarshal(reportdetails, &reportDetails); err != nil { - fmt.Println("Error:", err) - return - } - + var reportDetails v3.ReportDetails + if err := json.Unmarshal(reportdetails, &reportDetails); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ReportsDataExtractionAPI.StartReport(context.Background()).ReportDetails(reportDetails).Execute() - //resp, r, err := apiClient.V3.ReportsDataExtractionAPI.StartReport(context.Background()).ReportDetails(reportDetails).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReportsDataExtractionAPI.StartReport``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartReport`: TaskResultDetails - fmt.Fprintf(os.Stdout, "Response from `ReportsDataExtractionAPI.StartReport`: %v\n", resp) + //resp, r, err := apiClient.V3.ReportsDataExtractionAPI.StartReport(context.Background()).ReportDetails(reportDetails).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportsDataExtractionAPI.StartReport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartReport`: TaskResultDetails + fmt.Fprintf(os.Stdout, "Response from `ReportsDataExtractionAPI.StartReport`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/RequestableObjectsAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/RequestableObjectsAPI.md index 0e9a7c409..e7e8fdc2b 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/RequestableObjectsAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/RequestableObjectsAPI.md @@ -67,7 +67,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -83,18 +83,18 @@ func main() { filters := `name sw "bob"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in, sw* (optional) sorters := `name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.RequestableObjectsAPI.ListRequestableObjects(context.Background()).Execute() - //resp, r, err := apiClient.V3.RequestableObjectsAPI.ListRequestableObjects(context.Background()).IdentityId(identityId).Types(types).Term(term).Statuses(statuses).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RequestableObjectsAPI.ListRequestableObjects``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListRequestableObjects`: []RequestableObject - fmt.Fprintf(os.Stdout, "Response from `RequestableObjectsAPI.ListRequestableObjects`: %v\n", resp) + //resp, r, err := apiClient.V3.RequestableObjectsAPI.ListRequestableObjects(context.Background()).IdentityId(identityId).Types(types).Term(term).Statuses(statuses).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RequestableObjectsAPI.ListRequestableObjects``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListRequestableObjects`: []RequestableObject + fmt.Fprintf(os.Stdout, "Response from `RequestableObjectsAPI.ListRequestableObjects`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/RolesAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/RolesAPI.md index 6ad7be7e0..595c27472 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/RolesAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/RolesAPI.md @@ -101,7 +101,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -267,24 +267,23 @@ func main() { "requestable" : true }`) // Role | - - var role v3.Role - if err := json.Unmarshal(role, &role); err != nil { - fmt.Println("Error:", err) - return - } - + var role v3.Role + if err := json.Unmarshal(role, &role); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.RolesAPI.CreateRole(context.Background()).Role(role).Execute() - //resp, r, err := apiClient.V3.RolesAPI.CreateRole(context.Background()).Role(role).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.CreateRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateRole`: Role - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.CreateRole`: %v\n", resp) + //resp, r, err := apiClient.V3.RolesAPI.CreateRole(context.Background()).Role(role).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.CreateRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateRole`: Role + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.CreateRole`: %v\n", resp) } ``` @@ -330,7 +329,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -340,24 +339,23 @@ func main() { "roleIds" : [ "2c9180847812e0b1017817051919ecca", "2c9180887812e0b201781e129f151816" ] }`) // RoleBulkDeleteRequest | - - var roleBulkDeleteRequest v3.RoleBulkDeleteRequest - if err := json.Unmarshal(rolebulkdeleterequest, &roleBulkDeleteRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var roleBulkDeleteRequest v3.RoleBulkDeleteRequest + if err := json.Unmarshal(rolebulkdeleterequest, &roleBulkDeleteRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.RolesAPI.DeleteBulkRoles(context.Background()).RoleBulkDeleteRequest(roleBulkDeleteRequest).Execute() - //resp, r, err := apiClient.V3.RolesAPI.DeleteBulkRoles(context.Background()).RoleBulkDeleteRequest(roleBulkDeleteRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.DeleteBulkRoles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteBulkRoles`: TaskResultDto - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.DeleteBulkRoles`: %v\n", resp) + //resp, r, err := apiClient.V3.RolesAPI.DeleteBulkRoles(context.Background()).RoleBulkDeleteRequest(roleBulkDeleteRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.DeleteBulkRoles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteBulkRoles`: TaskResultDto + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.DeleteBulkRoles`: %v\n", resp) } ``` @@ -406,7 +404,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -414,16 +412,17 @@ import ( func main() { id := `2c91808a7813090a017814121e121518` // string | Role ID. # string | Role ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.RolesAPI.DeleteRole(context.Background(), id).Execute() - //r, err := apiClient.V3.RolesAPI.DeleteRole(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.DeleteRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.RolesAPI.DeleteRole(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.DeleteRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -471,7 +470,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -479,18 +478,18 @@ import ( func main() { id := `2c91808a7813090a017814121e121518` // string | Role ID. # string | Role ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.RolesAPI.GetRole(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.RolesAPI.GetRole(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.GetRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRole`: Role - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.GetRole`: %v\n", resp) + //resp, r, err := apiClient.V3.RolesAPI.GetRole(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.GetRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRole`: Role + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.GetRole`: %v\n", resp) } ``` @@ -542,7 +541,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -555,18 +554,18 @@ func main() { filters := `name sw Joe` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **aliasName**: *eq, sw* **email**: *eq, sw* **name**: *eq, sw, co* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **aliasName**: *eq, sw* **email**: *eq, sw* **name**: *eq, sw, co* (optional) sorters := `aliasName,name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, aliasName, email** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, aliasName, email** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.RolesAPI.GetRoleAssignedIdentities(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.RolesAPI.GetRoleAssignedIdentities(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.GetRoleAssignedIdentities``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetRoleAssignedIdentities`: []RoleIdentity - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.GetRoleAssignedIdentities`: %v\n", resp) + //resp, r, err := apiClient.V3.RolesAPI.GetRoleAssignedIdentities(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.GetRoleAssignedIdentities``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRoleAssignedIdentities`: []RoleIdentity + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.GetRoleAssignedIdentities`: %v\n", resp) } ``` @@ -616,7 +615,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -631,18 +630,18 @@ func main() { forSegmentIds := `0b5c9f25-83c6-4762-9073-e38f7bb2ae26,2e8d8180-24bc-4d21-91c6-7affdb473b0d` // string | If present and not empty, additionally filters Roles to those which are assigned to the Segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) # string | If present and not empty, additionally filters Roles to those which are assigned to the Segment(s) with the specified IDs. If segmentation is currently unavailable, specifying this parameter results in an error. (optional) includeUnsegmented := false // bool | Whether or not the response list should contain unsegmented Roles. If *for-segment-ids* is absent or empty, specifying *include-unsegmented* as false results in an error. (optional) (default to true) # bool | Whether or not the response list should contain unsegmented Roles. If *for-segment-ids* is absent or empty, specifying *include-unsegmented* as false results in an error. (optional) (default to true) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.RolesAPI.ListRoles(context.Background()).Execute() - //resp, r, err := apiClient.V3.RolesAPI.ListRoles(context.Background()).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.ListRoles``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListRoles`: []Role - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.ListRoles`: %v\n", resp) + //resp, r, err := apiClient.V3.RolesAPI.ListRoles(context.Background()).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.ListRoles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListRoles`: []Role + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.ListRoles`: %v\n", resp) } ``` @@ -709,7 +708,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -718,24 +717,23 @@ func main() { id := `2c91808a7813090a017814121e121518` // string | Role ID to patch # string | Role ID to patch jsonpatchoperation := []byte(`[{op=replace, path=/requestable, value=true}, {op=replace, path=/enabled, value=true}]`) // []JsonPatchOperation | - - var jsonPatchOperation v3.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v3.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.RolesAPI.PatchRole(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V3.RolesAPI.PatchRole(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.PatchRole``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchRole`: Role - fmt.Fprintf(os.Stdout, "Response from `RolesAPI.PatchRole`: %v\n", resp) + //resp, r, err := apiClient.V3.RolesAPI.PatchRole(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RolesAPI.PatchRole``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchRole`: Role + fmt.Fprintf(os.Stdout, "Response from `RolesAPI.PatchRole`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/SODPoliciesAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/SODPoliciesAPI.md index 6538a8625..b3b1ddfb1 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/SODPoliciesAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/SODPoliciesAPI.md @@ -98,7 +98,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -161,24 +161,23 @@ func main() { "externalPolicyReference" : "XYZ policy" }`) // SodPolicy | - - var sodPolicy v3.SodPolicy - if err := json.Unmarshal(sodpolicy, &sodPolicy); err != nil { - fmt.Println("Error:", err) - return - } - + var sodPolicy v3.SodPolicy + if err := json.Unmarshal(sodpolicy, &sodPolicy); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SODPoliciesAPI.CreateSodPolicy(context.Background()).SodPolicy(sodPolicy).Execute() - //resp, r, err := apiClient.V3.SODPoliciesAPI.CreateSodPolicy(context.Background()).SodPolicy(sodPolicy).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.CreateSodPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSodPolicy`: SodPolicy - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.CreateSodPolicy`: %v\n", resp) + //resp, r, err := apiClient.V3.SODPoliciesAPI.CreateSodPolicy(context.Background()).SodPolicy(sodPolicy).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.CreateSodPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSodPolicy`: SodPolicy + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.CreateSodPolicy`: %v\n", resp) } ``` @@ -227,7 +226,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -236,16 +235,17 @@ func main() { id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The ID of the SOD Policy to delete. # string | The ID of the SOD Policy to delete. logical := true // bool | Indicates whether this is a soft delete (logical true) or a hard delete. Soft delete marks the policy as deleted and just save it with this status. It could be fully deleted or recovered further. Hard delete vise versa permanently delete SOD request during this call. (optional) (default to true) # bool | Indicates whether this is a soft delete (logical true) or a hard delete. Soft delete marks the policy as deleted and just save it with this status. It could be fully deleted or recovered further. Hard delete vise versa permanently delete SOD request during this call. (optional) (default to true) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.SODPoliciesAPI.DeleteSodPolicy(context.Background(), id).Execute() - //r, err := apiClient.V3.SODPoliciesAPI.DeleteSodPolicy(context.Background(), id).Logical(logical).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.DeleteSodPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.SODPoliciesAPI.DeleteSodPolicy(context.Background(), id).Logical(logical).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.DeleteSodPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -292,7 +292,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -300,16 +300,17 @@ import ( func main() { id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The ID of the SOD policy the schedule must be deleted for. # string | The ID of the SOD policy the schedule must be deleted for. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.SODPoliciesAPI.DeleteSodPolicySchedule(context.Background(), id).Execute() - //r, err := apiClient.V3.SODPoliciesAPI.DeleteSodPolicySchedule(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.DeleteSodPolicySchedule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.SODPoliciesAPI.DeleteSodPolicySchedule(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.DeleteSodPolicySchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -358,7 +359,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -367,18 +368,18 @@ func main() { reportResultId := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the report reference to download. # string | The ID of the report reference to download. fileName := `custom-name` // string | Custom Name for the file. # string | Custom Name for the file. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SODPoliciesAPI.GetCustomViolationReport(context.Background(), reportResultId, fileName).Execute() - //resp, r, err := apiClient.V3.SODPoliciesAPI.GetCustomViolationReport(context.Background(), reportResultId, fileName).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetCustomViolationReport``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCustomViolationReport`: *os.File - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetCustomViolationReport`: %v\n", resp) + //resp, r, err := apiClient.V3.SODPoliciesAPI.GetCustomViolationReport(context.Background(), reportResultId, fileName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetCustomViolationReport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCustomViolationReport`: *os.File + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetCustomViolationReport`: %v\n", resp) } ``` @@ -425,7 +426,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -433,18 +434,18 @@ import ( func main() { reportResultId := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the report reference to download. # string | The ID of the report reference to download. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SODPoliciesAPI.GetDefaultViolationReport(context.Background(), reportResultId).Execute() - //resp, r, err := apiClient.V3.SODPoliciesAPI.GetDefaultViolationReport(context.Background(), reportResultId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetDefaultViolationReport``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetDefaultViolationReport`: *os.File - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetDefaultViolationReport`: %v\n", resp) + //resp, r, err := apiClient.V3.SODPoliciesAPI.GetDefaultViolationReport(context.Background(), reportResultId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetDefaultViolationReport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDefaultViolationReport`: *os.File + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetDefaultViolationReport`: %v\n", resp) } ``` @@ -483,25 +484,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SODPoliciesAPI.GetSodAllReportRunStatus(context.Background()).Execute() - //resp, r, err := apiClient.V3.SODPoliciesAPI.GetSodAllReportRunStatus(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodAllReportRunStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSodAllReportRunStatus`: ReportResultReference - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodAllReportRunStatus`: %v\n", resp) + //resp, r, err := apiClient.V3.SODPoliciesAPI.GetSodAllReportRunStatus(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodAllReportRunStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSodAllReportRunStatus`: ReportResultReference + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodAllReportRunStatus`: %v\n", resp) } ``` @@ -549,7 +550,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -557,18 +558,18 @@ import ( func main() { id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The ID of the SOD Policy to retrieve. # string | The ID of the SOD Policy to retrieve. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SODPoliciesAPI.GetSodPolicy(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.SODPoliciesAPI.GetSodPolicy(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSodPolicy`: SodPolicy - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodPolicy`: %v\n", resp) + //resp, r, err := apiClient.V3.SODPoliciesAPI.GetSodPolicy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSodPolicy`: SodPolicy + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodPolicy`: %v\n", resp) } ``` @@ -615,7 +616,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -623,18 +624,18 @@ import ( func main() { id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The ID of the SOD policy schedule to retrieve. # string | The ID of the SOD policy schedule to retrieve. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SODPoliciesAPI.GetSodPolicySchedule(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.SODPoliciesAPI.GetSodPolicySchedule(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodPolicySchedule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSodPolicySchedule`: SodPolicySchedule - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodPolicySchedule`: %v\n", resp) + //resp, r, err := apiClient.V3.SODPoliciesAPI.GetSodPolicySchedule(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodPolicySchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSodPolicySchedule`: SodPolicySchedule + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodPolicySchedule`: %v\n", resp) } ``` @@ -681,7 +682,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -689,18 +690,18 @@ import ( func main() { reportResultId := `2e8d8180-24bc-4d21-91c6-7affdb473b0d` // string | The ID of the report reference to retrieve. # string | The ID of the report reference to retrieve. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SODPoliciesAPI.GetSodViolationReportRunStatus(context.Background(), reportResultId).Execute() - //resp, r, err := apiClient.V3.SODPoliciesAPI.GetSodViolationReportRunStatus(context.Background(), reportResultId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodViolationReportRunStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSodViolationReportRunStatus`: ReportResultReference - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodViolationReportRunStatus`: %v\n", resp) + //resp, r, err := apiClient.V3.SODPoliciesAPI.GetSodViolationReportRunStatus(context.Background(), reportResultId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodViolationReportRunStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSodViolationReportRunStatus`: ReportResultReference + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodViolationReportRunStatus`: %v\n", resp) } ``` @@ -747,7 +748,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -755,18 +756,18 @@ import ( func main() { id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The ID of the violation report to retrieve status for. # string | The ID of the violation report to retrieve status for. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SODPoliciesAPI.GetSodViolationReportStatus(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.SODPoliciesAPI.GetSodViolationReportStatus(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodViolationReportStatus``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSodViolationReportStatus`: ReportResultReference - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodViolationReportStatus`: %v\n", resp) + //resp, r, err := apiClient.V3.SODPoliciesAPI.GetSodViolationReportStatus(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.GetSodViolationReportStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSodViolationReportStatus`: ReportResultReference + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.GetSodViolationReportStatus`: %v\n", resp) } ``` @@ -814,7 +815,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -826,18 +827,18 @@ func main() { filters := `id eq "bc693f07e7b645539626c25954c58554"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in* **state**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq, in* **state**: *eq, in* (optional) sorters := `id,name` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, description** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **id, name, created, modified, description** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SODPoliciesAPI.ListSodPolicies(context.Background()).Execute() - //resp, r, err := apiClient.V3.SODPoliciesAPI.ListSodPolicies(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.ListSodPolicies``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListSodPolicies`: []SodPolicy - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.ListSodPolicies`: %v\n", resp) + //resp, r, err := apiClient.V3.SODPoliciesAPI.ListSodPolicies(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.ListSodPolicies``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListSodPolicies`: []SodPolicy + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.ListSodPolicies`: %v\n", resp) } ``` @@ -887,7 +888,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -896,24 +897,23 @@ func main() { id := `2c918083-5d19-1a86-015d-28455b4a2329` // string | The ID of the SOD policy being modified. # string | The ID of the SOD policy being modified. jsonpatchoperation := []byte(`[{op=replace, path=/description, value=Modified description}, {op=replace, path=/conflictingAccessCriteria/leftCriteria/name, value=money-in-modified}, {op=replace, path=/conflictingAccessCriteria/rightCriteria, value={name=money-out-modified, criteriaList=[{type=ENTITLEMENT, id=2c918087682f9a86016839c0509c1ab2}]}}]`) // []JsonPatchOperation | A list of SOD Policy update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * ownerRef * externalPolicyReference * compensatingControls * correctionAdvice * state * tags * violationOwnerAssignmentConfig * scheduled * conflictingAccessCriteria - - var jsonPatchOperation v3.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v3.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SODPoliciesAPI.PatchSodPolicy(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V3.SODPoliciesAPI.PatchSodPolicy(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.PatchSodPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchSodPolicy`: SodPolicy - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.PatchSodPolicy`: %v\n", resp) + //resp, r, err := apiClient.V3.SODPoliciesAPI.PatchSodPolicy(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.PatchSodPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchSodPolicy`: SodPolicy + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.PatchSodPolicy`: %v\n", resp) } ``` @@ -961,7 +961,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1007,24 +1007,23 @@ func main() { "emailEmptyResults" : false }`) // SodPolicySchedule | - - var sodPolicySchedule v3.SodPolicySchedule - if err := json.Unmarshal(sodpolicyschedule, &sodPolicySchedule); err != nil { - fmt.Println("Error:", err) - return - } - + var sodPolicySchedule v3.SodPolicySchedule + if err := json.Unmarshal(sodpolicyschedule, &sodPolicySchedule); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SODPoliciesAPI.PutPolicySchedule(context.Background(), id).SodPolicySchedule(sodPolicySchedule).Execute() - //resp, r, err := apiClient.V3.SODPoliciesAPI.PutPolicySchedule(context.Background(), id).SodPolicySchedule(sodPolicySchedule).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.PutPolicySchedule``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutPolicySchedule`: SodPolicySchedule - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.PutPolicySchedule`: %v\n", resp) + //resp, r, err := apiClient.V3.SODPoliciesAPI.PutPolicySchedule(context.Background(), id).SodPolicySchedule(sodPolicySchedule).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.PutPolicySchedule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutPolicySchedule`: SodPolicySchedule + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.PutPolicySchedule`: %v\n", resp) } ``` @@ -1073,7 +1072,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1137,24 +1136,23 @@ func main() { "externalPolicyReference" : "XYZ policy" }`) // SodPolicy | - - var sodPolicy v3.SodPolicy - if err := json.Unmarshal(sodpolicy, &sodPolicy); err != nil { - fmt.Println("Error:", err) - return - } - + var sodPolicy v3.SodPolicy + if err := json.Unmarshal(sodpolicy, &sodPolicy); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SODPoliciesAPI.PutSodPolicy(context.Background(), id).SodPolicy(sodPolicy).Execute() - //resp, r, err := apiClient.V3.SODPoliciesAPI.PutSodPolicy(context.Background(), id).SodPolicy(sodPolicy).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.PutSodPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutSodPolicy`: SodPolicy - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.PutSodPolicy`: %v\n", resp) + //resp, r, err := apiClient.V3.SODPoliciesAPI.PutSodPolicy(context.Background(), id).SodPolicy(sodPolicy).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.PutSodPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutSodPolicy`: SodPolicy + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.PutSodPolicy`: %v\n", resp) } ``` @@ -1201,7 +1199,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1209,18 +1207,18 @@ import ( func main() { id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The SOD policy ID to run. # string | The SOD policy ID to run. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SODPoliciesAPI.StartEvaluateSodPolicy(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.SODPoliciesAPI.StartEvaluateSodPolicy(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.StartEvaluateSodPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartEvaluateSodPolicy`: ReportResultReference - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.StartEvaluateSodPolicy`: %v\n", resp) + //resp, r, err := apiClient.V3.SODPoliciesAPI.StartEvaluateSodPolicy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.StartEvaluateSodPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartEvaluateSodPolicy`: ReportResultReference + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.StartEvaluateSodPolicy`: %v\n", resp) } ``` @@ -1263,7 +1261,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1273,18 +1271,18 @@ func main() { "filteredPolicyList" : [ "[b868cd40-ffa4-4337-9c07-1a51846cfa94, 63a07a7b-39a4-48aa-956d-50c827deba2a]", "[b868cd40-ffa4-4337-9c07-1a51846cfa94, 63a07a7b-39a4-48aa-956d-50c827deba2a]" ] }`) // MultiPolicyRequest | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SODPoliciesAPI.StartSodAllPoliciesForOrg(context.Background()).Execute() - //resp, r, err := apiClient.V3.SODPoliciesAPI.StartSodAllPoliciesForOrg(context.Background()).MultiPolicyRequest(multiPolicyRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.StartSodAllPoliciesForOrg``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartSodAllPoliciesForOrg`: ReportResultReference - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.StartSodAllPoliciesForOrg`: %v\n", resp) + //resp, r, err := apiClient.V3.SODPoliciesAPI.StartSodAllPoliciesForOrg(context.Background()).MultiPolicyRequest(multiPolicyRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.StartSodAllPoliciesForOrg``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartSodAllPoliciesForOrg`: ReportResultReference + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.StartSodAllPoliciesForOrg`: %v\n", resp) } ``` @@ -1331,7 +1329,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1339,18 +1337,18 @@ import ( func main() { id := `ef38f943-47e9-4562-b5bb-8424a56397d8` // string | The SOD policy ID to run. # string | The SOD policy ID to run. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SODPoliciesAPI.StartSodPolicy(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.SODPoliciesAPI.StartSodPolicy(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.StartSodPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartSodPolicy`: ReportResultReference - fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.StartSodPolicy`: %v\n", resp) + //resp, r, err := apiClient.V3.SODPoliciesAPI.StartSodPolicy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODPoliciesAPI.StartSodPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartSodPolicy`: ReportResultReference + fmt.Fprintf(os.Stdout, "Response from `SODPoliciesAPI.StartSodPolicy`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/SODViolationsAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/SODViolationsAPI.md index fc41bf3b9..2a31925dd 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/SODViolationsAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/SODViolationsAPI.md @@ -74,7 +74,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -93,24 +93,23 @@ func main() { } ] }`) // IdentityWithNewAccess | - - var identityWithNewAccess v3.IdentityWithNewAccess - if err := json.Unmarshal(identitywithnewaccess, &identityWithNewAccess); err != nil { - fmt.Println("Error:", err) - return - } - + var identityWithNewAccess v3.IdentityWithNewAccess + if err := json.Unmarshal(identitywithnewaccess, &identityWithNewAccess); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SODViolationsAPI.StartPredictSodViolations(context.Background()).IdentityWithNewAccess(identityWithNewAccess).Execute() - //resp, r, err := apiClient.V3.SODViolationsAPI.StartPredictSodViolations(context.Background()).IdentityWithNewAccess(identityWithNewAccess).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODViolationsAPI.StartPredictSodViolations``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartPredictSodViolations`: ViolationPrediction - fmt.Fprintf(os.Stdout, "Response from `SODViolationsAPI.StartPredictSodViolations`: %v\n", resp) + //resp, r, err := apiClient.V3.SODViolationsAPI.StartPredictSodViolations(context.Background()).IdentityWithNewAccess(identityWithNewAccess).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODViolationsAPI.StartPredictSodViolations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartPredictSodViolations`: ViolationPrediction + fmt.Fprintf(os.Stdout, "Response from `SODViolationsAPI.StartPredictSodViolations`: %v\n", resp) } ``` @@ -153,7 +152,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -161,24 +160,23 @@ import ( func main() { identitywithnewaccess1 := []byte(`{identityId=2c91808568c529c60168cca6f90c1313, accessRefs=[{type=ENTITLEMENT, id=2c918087682f9a86016839c050861ab1, name=CN=Information Access,OU=test,OU=test-service,DC=TestAD,DC=local}, {type=ENTITLEMENT, id=2c918087682f9a86016839c0509c1ab2, name=CN=Information Technology,OU=test,OU=test-service,DC=TestAD,DC=local}], clientMetadata={additionalProp1=string, additionalProp2=string, additionalProp3=string}}`) // IdentityWithNewAccess1 | - - var identityWithNewAccess1 v3.IdentityWithNewAccess1 - if err := json.Unmarshal(identitywithnewaccess1, &identityWithNewAccess1); err != nil { - fmt.Println("Error:", err) - return - } - + var identityWithNewAccess1 v3.IdentityWithNewAccess1 + if err := json.Unmarshal(identitywithnewaccess1, &identityWithNewAccess1); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SODViolationsAPI.StartViolationCheck(context.Background()).IdentityWithNewAccess1(identityWithNewAccess1).Execute() - //resp, r, err := apiClient.V3.SODViolationsAPI.StartViolationCheck(context.Background()).IdentityWithNewAccess1(identityWithNewAccess1).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SODViolationsAPI.StartViolationCheck``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `StartViolationCheck`: SodViolationCheck - fmt.Fprintf(os.Stdout, "Response from `SODViolationsAPI.StartViolationCheck`: %v\n", resp) + //resp, r, err := apiClient.V3.SODViolationsAPI.StartViolationCheck(context.Background()).IdentityWithNewAccess1(identityWithNewAccess1).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SODViolationsAPI.StartViolationCheck``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `StartViolationCheck`: SodViolationCheck + fmt.Fprintf(os.Stdout, "Response from `SODViolationsAPI.StartViolationCheck`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/SavedSearchAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/SavedSearchAPI.md index bec95657e..57aef35ec 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/SavedSearchAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/SavedSearchAPI.md @@ -71,7 +71,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -79,24 +79,23 @@ import ( func main() { createsavedsearchrequest := []byte(``) // CreateSavedSearchRequest | The saved search to persist. - - var createSavedSearchRequest v3.CreateSavedSearchRequest - if err := json.Unmarshal(createsavedsearchrequest, &createSavedSearchRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var createSavedSearchRequest v3.CreateSavedSearchRequest + if err := json.Unmarshal(createsavedsearchrequest, &createSavedSearchRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SavedSearchAPI.CreateSavedSearch(context.Background()).CreateSavedSearchRequest(createSavedSearchRequest).Execute() - //resp, r, err := apiClient.V3.SavedSearchAPI.CreateSavedSearch(context.Background()).CreateSavedSearchRequest(createSavedSearchRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.CreateSavedSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSavedSearch`: SavedSearch - fmt.Fprintf(os.Stdout, "Response from `SavedSearchAPI.CreateSavedSearch`: %v\n", resp) + //resp, r, err := apiClient.V3.SavedSearchAPI.CreateSavedSearch(context.Background()).CreateSavedSearchRequest(createSavedSearchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.CreateSavedSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSavedSearch`: SavedSearch + fmt.Fprintf(os.Stdout, "Response from `SavedSearchAPI.CreateSavedSearch`: %v\n", resp) } ``` @@ -144,7 +143,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -152,16 +151,17 @@ import ( func main() { id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.SavedSearchAPI.DeleteSavedSearch(context.Background(), id).Execute() - //r, err := apiClient.V3.SavedSearchAPI.DeleteSavedSearch(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.DeleteSavedSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.SavedSearchAPI.DeleteSavedSearch(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.DeleteSavedSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -210,7 +210,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -229,22 +229,22 @@ func main() { "scheduleId" : "7a724640-0c17-4ce9-a8c3-4a89738459c8" }`) // SearchArguments | When saved search execution is triggered by a scheduled search, *scheduleId* will specify the ID of the triggering scheduled search. If *scheduleId* is not specified (when execution is triggered by a UI test), the *owner* and *recipients* arguments must be provided. - - var searchArguments v3.SearchArguments - if err := json.Unmarshal(searcharguments, &searchArguments); err != nil { - fmt.Println("Error:", err) - return - } - + var searchArguments v3.SearchArguments + if err := json.Unmarshal(searcharguments, &searchArguments); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.SavedSearchAPI.ExecuteSavedSearch(context.Background(), id).SearchArguments(searchArguments).Execute() - //r, err := apiClient.V3.SavedSearchAPI.ExecuteSavedSearch(context.Background(), id).SearchArguments(searchArguments).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.ExecuteSavedSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.SavedSearchAPI.ExecuteSavedSearch(context.Background(), id).SearchArguments(searchArguments).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.ExecuteSavedSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -292,7 +292,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -300,18 +300,18 @@ import ( func main() { id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SavedSearchAPI.GetSavedSearch(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.SavedSearchAPI.GetSavedSearch(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.GetSavedSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSavedSearch`: SavedSearch - fmt.Fprintf(os.Stdout, "Response from `SavedSearchAPI.GetSavedSearch`: %v\n", resp) + //resp, r, err := apiClient.V3.SavedSearchAPI.GetSavedSearch(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.GetSavedSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSavedSearch`: SavedSearch + fmt.Fprintf(os.Stdout, "Response from `SavedSearchAPI.GetSavedSearch`: %v\n", resp) } ``` @@ -358,7 +358,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -369,18 +369,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) filters := `owner.id eq "7a724640-0c17-4ce9-a8c3-4a89738459c8"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **owner.id**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **owner.id**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SavedSearchAPI.ListSavedSearches(context.Background()).Execute() - //resp, r, err := apiClient.V3.SavedSearchAPI.ListSavedSearches(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.ListSavedSearches``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListSavedSearches`: []SavedSearch - fmt.Fprintf(os.Stdout, "Response from `SavedSearchAPI.ListSavedSearches`: %v\n", resp) + //resp, r, err := apiClient.V3.SavedSearchAPI.ListSavedSearches(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.ListSavedSearches``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListSavedSearches`: []SavedSearch + fmt.Fprintf(os.Stdout, "Response from `SavedSearchAPI.ListSavedSearches`: %v\n", resp) } ``` @@ -431,7 +431,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -484,24 +484,23 @@ func main() { "fields" : [ "disabled" ] }`) // SavedSearch | The saved search to persist. - - var savedSearch v3.SavedSearch - if err := json.Unmarshal(savedsearch, &savedSearch); err != nil { - fmt.Println("Error:", err) - return - } - + var savedSearch v3.SavedSearch + if err := json.Unmarshal(savedsearch, &savedSearch); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SavedSearchAPI.PutSavedSearch(context.Background(), id).SavedSearch(savedSearch).Execute() - //resp, r, err := apiClient.V3.SavedSearchAPI.PutSavedSearch(context.Background(), id).SavedSearch(savedSearch).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.PutSavedSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutSavedSearch`: SavedSearch - fmt.Fprintf(os.Stdout, "Response from `SavedSearchAPI.PutSavedSearch`: %v\n", resp) + //resp, r, err := apiClient.V3.SavedSearchAPI.PutSavedSearch(context.Background(), id).SavedSearch(savedSearch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SavedSearchAPI.PutSavedSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutSavedSearch`: SavedSearch + fmt.Fprintf(os.Stdout, "Response from `SavedSearchAPI.PutSavedSearch`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/ScheduledSearchAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/ScheduledSearchAPI.md index c2ef94456..b43a554a4 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/ScheduledSearchAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/ScheduledSearchAPI.md @@ -87,7 +87,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -95,24 +95,23 @@ import ( func main() { createscheduledsearchrequest := []byte(`{savedSearchId=9c620e13-cd33-4804-a13d-403bd7bcdbad, schedule={type=DAILY, hours={type=LIST, values=[9]}}, recipients=[{type=IDENTITY, id=2c9180867624cbd7017642d8c8c81f67}]}`) // CreateScheduledSearchRequest | The scheduled search to persist. - - var createScheduledSearchRequest v3.CreateScheduledSearchRequest - if err := json.Unmarshal(createscheduledsearchrequest, &createScheduledSearchRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var createScheduledSearchRequest v3.CreateScheduledSearchRequest + if err := json.Unmarshal(createscheduledsearchrequest, &createScheduledSearchRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ScheduledSearchAPI.CreateScheduledSearch(context.Background()).CreateScheduledSearchRequest(createScheduledSearchRequest).Execute() - //resp, r, err := apiClient.V3.ScheduledSearchAPI.CreateScheduledSearch(context.Background()).CreateScheduledSearchRequest(createScheduledSearchRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.CreateScheduledSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateScheduledSearch`: ScheduledSearch - fmt.Fprintf(os.Stdout, "Response from `ScheduledSearchAPI.CreateScheduledSearch`: %v\n", resp) + //resp, r, err := apiClient.V3.ScheduledSearchAPI.CreateScheduledSearch(context.Background()).CreateScheduledSearchRequest(createScheduledSearchRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.CreateScheduledSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateScheduledSearch`: ScheduledSearch + fmt.Fprintf(os.Stdout, "Response from `ScheduledSearchAPI.CreateScheduledSearch`: %v\n", resp) } ``` @@ -160,7 +159,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -168,16 +167,17 @@ import ( func main() { id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.ScheduledSearchAPI.DeleteScheduledSearch(context.Background(), id).Execute() - //r, err := apiClient.V3.ScheduledSearchAPI.DeleteScheduledSearch(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.DeleteScheduledSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.ScheduledSearchAPI.DeleteScheduledSearch(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.DeleteScheduledSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -224,7 +224,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -232,18 +232,18 @@ import ( func main() { id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ScheduledSearchAPI.GetScheduledSearch(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.ScheduledSearchAPI.GetScheduledSearch(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.GetScheduledSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetScheduledSearch`: ScheduledSearch - fmt.Fprintf(os.Stdout, "Response from `ScheduledSearchAPI.GetScheduledSearch`: %v\n", resp) + //resp, r, err := apiClient.V3.ScheduledSearchAPI.GetScheduledSearch(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.GetScheduledSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetScheduledSearch`: ScheduledSearch + fmt.Fprintf(os.Stdout, "Response from `ScheduledSearchAPI.GetScheduledSearch`: %v\n", resp) } ``` @@ -290,7 +290,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -301,18 +301,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) filters := `savedSearchId eq "6cc0945d-9eeb-4948-9033-72d066e1153e"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **owner.id**: *eq* **savedSearchId**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **owner.id**: *eq* **savedSearchId**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ScheduledSearchAPI.ListScheduledSearch(context.Background()).Execute() - //resp, r, err := apiClient.V3.ScheduledSearchAPI.ListScheduledSearch(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.ListScheduledSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListScheduledSearch`: []ScheduledSearch - fmt.Fprintf(os.Stdout, "Response from `ScheduledSearchAPI.ListScheduledSearch`: %v\n", resp) + //resp, r, err := apiClient.V3.ScheduledSearchAPI.ListScheduledSearch(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.ListScheduledSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListScheduledSearch`: []ScheduledSearch + fmt.Fprintf(os.Stdout, "Response from `ScheduledSearchAPI.ListScheduledSearch`: %v\n", resp) } ``` @@ -361,7 +361,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -373,22 +373,22 @@ func main() { "type" : "IDENTITY" }`) // TypedReference | The recipient to be removed from the scheduled search. - - var typedReference v3.TypedReference - if err := json.Unmarshal(typedreference, &typedReference); err != nil { - fmt.Println("Error:", err) - return - } - + var typedReference v3.TypedReference + if err := json.Unmarshal(typedreference, &typedReference); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.ScheduledSearchAPI.UnsubscribeScheduledSearch(context.Background(), id).TypedReference(typedReference).Execute() - //r, err := apiClient.V3.ScheduledSearchAPI.UnsubscribeScheduledSearch(context.Background(), id).TypedReference(typedReference).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.UnsubscribeScheduledSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.ScheduledSearchAPI.UnsubscribeScheduledSearch(context.Background(), id).TypedReference(typedReference).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.UnsubscribeScheduledSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -437,7 +437,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -488,24 +488,23 @@ func main() { "emailEmptyResults" : false }`) // ScheduledSearch | The scheduled search to persist. - - var scheduledSearch v3.ScheduledSearch - if err := json.Unmarshal(scheduledsearch, &scheduledSearch); err != nil { - fmt.Println("Error:", err) - return - } - + var scheduledSearch v3.ScheduledSearch + if err := json.Unmarshal(scheduledsearch, &scheduledSearch); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ScheduledSearchAPI.UpdateScheduledSearch(context.Background(), id).ScheduledSearch(scheduledSearch).Execute() - //resp, r, err := apiClient.V3.ScheduledSearchAPI.UpdateScheduledSearch(context.Background(), id).ScheduledSearch(scheduledSearch).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.UpdateScheduledSearch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateScheduledSearch`: ScheduledSearch - fmt.Fprintf(os.Stdout, "Response from `ScheduledSearchAPI.UpdateScheduledSearch`: %v\n", resp) + //resp, r, err := apiClient.V3.ScheduledSearchAPI.UpdateScheduledSearch(context.Background(), id).ScheduledSearch(scheduledSearch).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ScheduledSearchAPI.UpdateScheduledSearch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateScheduledSearch`: ScheduledSearch + fmt.Fprintf(os.Stdout, "Response from `ScheduledSearchAPI.UpdateScheduledSearch`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/SearchAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/SearchAPI.md index 75129c556..8a73868ae 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/SearchAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/SearchAPI.md @@ -84,7 +84,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -211,24 +211,23 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - - var search v3.Search - if err := json.Unmarshal(search, &search); err != nil { - fmt.Println("Error:", err) - return - } - + var search v3.Search + if err := json.Unmarshal(search, &search); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SearchAPI.SearchAggregate(context.Background()).Search(search).Execute() - //resp, r, err := apiClient.V3.SearchAPI.SearchAggregate(context.Background()).Search(search).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.SearchAggregate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SearchAggregate`: AggregationResult - fmt.Fprintf(os.Stdout, "Response from `SearchAPI.SearchAggregate`: %v\n", resp) + //resp, r, err := apiClient.V3.SearchAPI.SearchAggregate(context.Background()).Search(search).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.SearchAggregate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchAggregate`: AggregationResult + fmt.Fprintf(os.Stdout, "Response from `SearchAPI.SearchAggregate`: %v\n", resp) } ``` @@ -271,7 +270,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -395,22 +394,22 @@ func main() { } }`) // Search | - - var search v3.Search - if err := json.Unmarshal(search, &search); err != nil { - fmt.Println("Error:", err) - return - } - + var search v3.Search + if err := json.Unmarshal(search, &search); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.SearchAPI.SearchCount(context.Background()).Search(search).Execute() - //r, err := apiClient.V3.SearchAPI.SearchCount(context.Background()).Search(search).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.SearchCount``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.SearchAPI.SearchCount(context.Background()).Search(search).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.SearchCount``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -459,7 +458,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -468,18 +467,18 @@ func main() { index := `identities` // string | The index from which to fetch the specified document. The currently supported index names are: *accessprofiles*, *accountactivities*, *entitlements*, *events*, *identities*, and *roles*. # string | The index from which to fetch the specified document. The currently supported index names are: *accessprofiles*, *accountactivities*, *entitlements*, *events*, *identities*, and *roles*. id := `2c91808568c529c60168cca6f90c1313` // string | ID of the requested document. # string | ID of the requested document. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SearchAPI.SearchGet(context.Background(), index, id).Execute() - //resp, r, err := apiClient.V3.SearchAPI.SearchGet(context.Background(), index, id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.SearchGet``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SearchGet`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `SearchAPI.SearchGet`: %v\n", resp) + //resp, r, err := apiClient.V3.SearchAPI.SearchGet(context.Background(), index, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.SearchGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchGet`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `SearchAPI.SearchGet`: %v\n", resp) } ``` @@ -525,7 +524,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -652,24 +651,23 @@ func main() { limit := 10000 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - - var search v3.Search - if err := json.Unmarshal(search, &search); err != nil { - fmt.Println("Error:", err) - return - } - + var search v3.Search + if err := json.Unmarshal(search, &search); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SearchAPI.SearchPost(context.Background()).Search(search).Execute() - //resp, r, err := apiClient.V3.SearchAPI.SearchPost(context.Background()).Search(search).Offset(offset).Limit(limit).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.SearchPost``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SearchPost`: []map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `SearchAPI.SearchPost`: %v\n", resp) + //resp, r, err := apiClient.V3.SearchAPI.SearchPost(context.Background()).Search(search).Offset(offset).Limit(limit).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.SearchPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchPost`: []map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `SearchAPI.SearchPost`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/SearchAttributeConfigurationAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/SearchAttributeConfigurationAPI.md index 498506cff..a0686d245 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/SearchAttributeConfigurationAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/SearchAttributeConfigurationAPI.md @@ -78,7 +78,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -93,24 +93,23 @@ func main() { } }`) // SearchAttributeConfig | - - var searchAttributeConfig v3.SearchAttributeConfig - if err := json.Unmarshal(searchattributeconfig, &searchAttributeConfig); err != nil { - fmt.Println("Error:", err) - return - } - + var searchAttributeConfig v3.SearchAttributeConfig + if err := json.Unmarshal(searchattributeconfig, &searchAttributeConfig); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SearchAttributeConfigurationAPI.CreateSearchAttributeConfig(context.Background()).SearchAttributeConfig(searchAttributeConfig).Execute() - //resp, r, err := apiClient.V3.SearchAttributeConfigurationAPI.CreateSearchAttributeConfig(context.Background()).SearchAttributeConfig(searchAttributeConfig).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.CreateSearchAttributeConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSearchAttributeConfig`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.CreateSearchAttributeConfig`: %v\n", resp) + //resp, r, err := apiClient.V3.SearchAttributeConfigurationAPI.CreateSearchAttributeConfig(context.Background()).SearchAttributeConfig(searchAttributeConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.CreateSearchAttributeConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSearchAttributeConfig`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.CreateSearchAttributeConfig`: %v\n", resp) } ``` @@ -157,7 +156,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -165,16 +164,17 @@ import ( func main() { name := `newMailAttribute` // string | Name of the extended search attribute configuration to delete. # string | Name of the extended search attribute configuration to delete. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig(context.Background(), name).Execute() - //r, err := apiClient.V3.SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig(context.Background(), name).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig(context.Background(), name).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -218,7 +218,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -227,18 +227,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SearchAttributeConfigurationAPI.GetSearchAttributeConfig(context.Background()).Execute() - //resp, r, err := apiClient.V3.SearchAttributeConfigurationAPI.GetSearchAttributeConfig(context.Background()).Limit(limit).Offset(offset).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.GetSearchAttributeConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSearchAttributeConfig`: []SearchAttributeConfig - fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.GetSearchAttributeConfig`: %v\n", resp) + //resp, r, err := apiClient.V3.SearchAttributeConfigurationAPI.GetSearchAttributeConfig(context.Background()).Limit(limit).Offset(offset).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.GetSearchAttributeConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSearchAttributeConfig`: []SearchAttributeConfig + fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.GetSearchAttributeConfig`: %v\n", resp) } ``` @@ -285,7 +285,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -293,18 +293,18 @@ import ( func main() { name := `newMailAttribute` // string | Name of the extended search attribute configuration to retrieve. # string | Name of the extended search attribute configuration to retrieve. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig(context.Background(), name).Execute() - //resp, r, err := apiClient.V3.SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig(context.Background(), name).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSingleSearchAttributeConfig`: []SearchAttributeConfig - fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig`: %v\n", resp) + //resp, r, err := apiClient.V3.SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig(context.Background(), name).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSingleSearchAttributeConfig`: []SearchAttributeConfig + fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig`: %v\n", resp) } ``` @@ -354,7 +354,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -363,24 +363,23 @@ func main() { name := `promotedMailAttribute` // string | Name of the search attribute configuration to patch. # string | Name of the search attribute configuration to patch. jsonpatchoperation := []byte(`[{op=replace, path=/name, value=newAttributeName}, {op=replace, path=/displayName, value=new attribute display name}, {op=add, path=/applicationAttributes, value={2c91808b79fd2422017a0b35d30f3968=employeeNumber}}]`) // []JsonPatchOperation | - - var jsonPatchOperation v3.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v3.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SearchAttributeConfigurationAPI.PatchSearchAttributeConfig(context.Background(), name).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V3.SearchAttributeConfigurationAPI.PatchSearchAttributeConfig(context.Background(), name).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.PatchSearchAttributeConfig``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchSearchAttributeConfig`: SearchAttributeConfig - fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.PatchSearchAttributeConfig`: %v\n", resp) + //resp, r, err := apiClient.V3.SearchAttributeConfigurationAPI.PatchSearchAttributeConfig(context.Background(), name).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAttributeConfigurationAPI.PatchSearchAttributeConfig``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchSearchAttributeConfig`: SearchAttributeConfig + fmt.Fprintf(os.Stdout, "Response from `SearchAttributeConfigurationAPI.PatchSearchAttributeConfig`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/SegmentsAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/SegmentsAPI.md index 903b7a950..bc337e718 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/SegmentsAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/SegmentsAPI.md @@ -77,7 +77,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -108,24 +108,23 @@ func main() { "id" : "0f11f2a4-7c94-4bf3-a2bd-742580fe3bde" }`) // Segment | - - var segment v3.Segment - if err := json.Unmarshal(segment, &segment); err != nil { - fmt.Println("Error:", err) - return - } - + var segment v3.Segment + if err := json.Unmarshal(segment, &segment); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SegmentsAPI.CreateSegment(context.Background()).Segment(segment).Execute() - //resp, r, err := apiClient.V3.SegmentsAPI.CreateSegment(context.Background()).Segment(segment).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.CreateSegment``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSegment`: Segment - fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.CreateSegment`: %v\n", resp) + //resp, r, err := apiClient.V3.SegmentsAPI.CreateSegment(context.Background()).Segment(segment).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.CreateSegment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSegment`: Segment + fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.CreateSegment`: %v\n", resp) } ``` @@ -173,7 +172,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -181,16 +180,17 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The segment ID to delete. # string | The segment ID to delete. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.SegmentsAPI.DeleteSegment(context.Background(), id).Execute() - //r, err := apiClient.V3.SegmentsAPI.DeleteSegment(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.DeleteSegment``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.SegmentsAPI.DeleteSegment(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.DeleteSegment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -237,7 +237,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -245,18 +245,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The segment ID to retrieve. # string | The segment ID to retrieve. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SegmentsAPI.GetSegment(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.SegmentsAPI.GetSegment(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.GetSegment``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSegment`: Segment - fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.GetSegment`: %v\n", resp) + //resp, r, err := apiClient.V3.SegmentsAPI.GetSegment(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.GetSegment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSegment`: Segment + fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.GetSegment`: %v\n", resp) } ``` @@ -301,7 +301,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -311,18 +311,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SegmentsAPI.ListSegments(context.Background()).Execute() - //resp, r, err := apiClient.V3.SegmentsAPI.ListSegments(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.ListSegments``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListSegments`: []Segment - fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.ListSegments`: %v\n", resp) + //resp, r, err := apiClient.V3.SegmentsAPI.ListSegments(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.ListSegments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListSegments`: []Segment + fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.ListSegments`: %v\n", resp) } ``` @@ -371,7 +371,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -380,24 +380,23 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The segment ID to modify. # string | The segment ID to modify. requestbody := []byte(`[{op=replace, path=/visibilityCriteria, value={expression={operator=AND, children=[{operator=EQUALS, attribute=location, value={type=STRING, value=Philadelphia}}, {operator=EQUALS, attribute=department, value={type=STRING, value=HR}}]}}}]`) // []map[string]interface{} | A list of segment update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * owner * visibilityCriteria * active - - var requestBody v3.[]RequestBody - if err := json.Unmarshal(requestbody, &requestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var requestBody []v3.RequestBody + if err := json.Unmarshal(requestbody, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SegmentsAPI.PatchSegment(context.Background(), id).RequestBody(requestBody).Execute() - //resp, r, err := apiClient.V3.SegmentsAPI.PatchSegment(context.Background(), id).RequestBody(requestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.PatchSegment``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchSegment`: Segment - fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.PatchSegment`: %v\n", resp) + //resp, r, err := apiClient.V3.SegmentsAPI.PatchSegment(context.Background(), id).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SegmentsAPI.PatchSegment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchSegment`: Segment + fmt.Fprintf(os.Stdout, "Response from `SegmentsAPI.PatchSegment`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/ServiceDeskIntegrationAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/ServiceDeskIntegrationAPI.md index 3539da057..c1fc05c64 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/ServiceDeskIntegrationAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/ServiceDeskIntegrationAPI.md @@ -88,7 +88,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -129,24 +129,23 @@ func main() { "beforeProvisioningRule" : "" }`) // ServiceDeskIntegrationDto | The specifics of a new integration to create - - var serviceDeskIntegrationDto v3.ServiceDeskIntegrationDto - if err := json.Unmarshal(servicedeskintegrationdto, &serviceDeskIntegrationDto); err != nil { - fmt.Println("Error:", err) - return - } - + var serviceDeskIntegrationDto v3.ServiceDeskIntegrationDto + if err := json.Unmarshal(servicedeskintegrationdto, &serviceDeskIntegrationDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.CreateServiceDeskIntegration(context.Background()).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() - //resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.CreateServiceDeskIntegration(context.Background()).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.CreateServiceDeskIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateServiceDeskIntegration`: ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.CreateServiceDeskIntegration`: %v\n", resp) + //resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.CreateServiceDeskIntegration(context.Background()).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.CreateServiceDeskIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateServiceDeskIntegration`: ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.CreateServiceDeskIntegration`: %v\n", resp) } ``` @@ -193,7 +192,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -201,16 +200,17 @@ import ( func main() { id := `anId` // string | ID of Service Desk integration to delete # string | ID of Service Desk integration to delete - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration(context.Background(), id).Execute() - //r, err := apiClient.V3.ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -257,7 +257,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -265,18 +265,18 @@ import ( func main() { id := `anId` // string | ID of the Service Desk integration to get # string | ID of the Service Desk integration to get - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.GetServiceDeskIntegration(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.GetServiceDeskIntegration(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetServiceDeskIntegration`: ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegration`: %v\n", resp) + //resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.GetServiceDeskIntegration(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetServiceDeskIntegration`: ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegration`: %v\n", resp) } ``` @@ -323,7 +323,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -331,18 +331,18 @@ import ( func main() { scriptName := `aScriptName` // string | The scriptName value of the Service Desk integration template to get # string | The scriptName value of the Service Desk integration template to get - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate(context.Background(), scriptName).Execute() - //resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate(context.Background(), scriptName).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetServiceDeskIntegrationTemplate`: ServiceDeskIntegrationTemplateDto - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate`: %v\n", resp) + //resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate(context.Background(), scriptName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetServiceDeskIntegrationTemplate`: ServiceDeskIntegrationTemplateDto + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate`: %v\n", resp) } ``` @@ -381,25 +381,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes(context.Background()).Execute() - //resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetServiceDeskIntegrationTypes`: []ServiceDeskIntegrationTemplateType - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes`: %v\n", resp) + //resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetServiceDeskIntegrationTypes`: []ServiceDeskIntegrationTemplateType + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes`: %v\n", resp) } ``` @@ -446,7 +446,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -458,18 +458,18 @@ func main() { filters := `name eq "John Doe"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq* **type**: *eq, in* **cluster**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq, in* **name**: *eq* **type**: *eq, in* **cluster**: *eq, in* (optional) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.GetServiceDeskIntegrations(context.Background()).Execute() - //resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.GetServiceDeskIntegrations(context.Background()).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegrations``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetServiceDeskIntegrations`: []ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegrations`: %v\n", resp) + //resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.GetServiceDeskIntegrations(context.Background()).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetServiceDeskIntegrations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetServiceDeskIntegrations`: []ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetServiceDeskIntegrations`: %v\n", resp) } ``` @@ -508,25 +508,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.GetStatusCheckDetails(context.Background()).Execute() - //resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.GetStatusCheckDetails(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetStatusCheckDetails``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetStatusCheckDetails`: QueuedCheckConfigDetails - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetStatusCheckDetails`: %v\n", resp) + //resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.GetStatusCheckDetails(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.GetStatusCheckDetails``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetStatusCheckDetails`: QueuedCheckConfigDetails + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.GetStatusCheckDetails`: %v\n", resp) } ``` @@ -574,7 +574,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -583,24 +583,23 @@ func main() { id := `anId` // string | ID of the Service Desk integration to update # string | ID of the Service Desk integration to update jsonpatchoperation := []byte(``) // []JsonPatchOperation | A list of SDIM update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Only `replace` operations are accepted by this endpoint. A 403 Forbidden Error indicates that a PATCH operation was attempted that is not allowed. - - var jsonPatchOperation v3.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v3.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.PatchServiceDeskIntegration(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.PatchServiceDeskIntegration(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.PatchServiceDeskIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchServiceDeskIntegration`: ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.PatchServiceDeskIntegration`: %v\n", resp) + //resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.PatchServiceDeskIntegration(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.PatchServiceDeskIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchServiceDeskIntegration`: ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.PatchServiceDeskIntegration`: %v\n", resp) } ``` @@ -648,7 +647,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -690,24 +689,23 @@ func main() { "beforeProvisioningRule" : "" }`) // ServiceDeskIntegrationDto | The specifics of the integration to update - - var serviceDeskIntegrationDto v3.ServiceDeskIntegrationDto - if err := json.Unmarshal(servicedeskintegrationdto, &serviceDeskIntegrationDto); err != nil { - fmt.Println("Error:", err) - return - } - + var serviceDeskIntegrationDto v3.ServiceDeskIntegrationDto + if err := json.Unmarshal(servicedeskintegrationdto, &serviceDeskIntegrationDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.PutServiceDeskIntegration(context.Background(), id).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() - //resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.PutServiceDeskIntegration(context.Background(), id).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.PutServiceDeskIntegration``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutServiceDeskIntegration`: ServiceDeskIntegrationDto - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.PutServiceDeskIntegration`: %v\n", resp) + //resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.PutServiceDeskIntegration(context.Background(), id).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.PutServiceDeskIntegration``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutServiceDeskIntegration`: ServiceDeskIntegrationDto + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.PutServiceDeskIntegration`: %v\n", resp) } ``` @@ -750,7 +748,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -761,24 +759,23 @@ func main() { "provisioningMaxStatusCheckDays" : "2" }`) // QueuedCheckConfigDetails | The modified time check configuration - - var queuedCheckConfigDetails v3.QueuedCheckConfigDetails - if err := json.Unmarshal(queuedcheckconfigdetails, &queuedCheckConfigDetails); err != nil { - fmt.Println("Error:", err) - return - } - + var queuedCheckConfigDetails v3.QueuedCheckConfigDetails + if err := json.Unmarshal(queuedcheckconfigdetails, &queuedCheckConfigDetails); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.UpdateStatusCheckDetails(context.Background()).QueuedCheckConfigDetails(queuedCheckConfigDetails).Execute() - //resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.UpdateStatusCheckDetails(context.Background()).QueuedCheckConfigDetails(queuedCheckConfigDetails).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.UpdateStatusCheckDetails``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateStatusCheckDetails`: QueuedCheckConfigDetails - fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.UpdateStatusCheckDetails`: %v\n", resp) + //resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.UpdateStatusCheckDetails(context.Background()).QueuedCheckConfigDetails(queuedCheckConfigDetails).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ServiceDeskIntegrationAPI.UpdateStatusCheckDetails``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateStatusCheckDetails`: QueuedCheckConfigDetails + fmt.Fprintf(os.Stdout, "Response from `ServiceDeskIntegrationAPI.UpdateStatusCheckDetails`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/SourceUsagesAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/SourceUsagesAPI.md index 4dd0e0064..5f697dfca 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/SourceUsagesAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/SourceUsagesAPI.md @@ -63,7 +63,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -71,18 +71,18 @@ import ( func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | ID of IDN source # string | ID of IDN source - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourceUsagesAPI.GetStatusBySourceId(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.V3.SourceUsagesAPI.GetStatusBySourceId(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourceUsagesAPI.GetStatusBySourceId``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetStatusBySourceId`: SourceUsageStatus - fmt.Fprintf(os.Stdout, "Response from `SourceUsagesAPI.GetStatusBySourceId`: %v\n", resp) + //resp, r, err := apiClient.V3.SourceUsagesAPI.GetStatusBySourceId(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourceUsagesAPI.GetStatusBySourceId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetStatusBySourceId`: SourceUsageStatus + fmt.Fprintf(os.Stdout, "Response from `SourceUsagesAPI.GetStatusBySourceId`: %v\n", resp) } ``` @@ -133,7 +133,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -145,18 +145,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) sorters := `-date` // string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **date** (optional) # string | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **date** (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourceUsagesAPI.GetUsagesBySourceId(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.V3.SourceUsagesAPI.GetUsagesBySourceId(context.Background(), sourceId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourceUsagesAPI.GetUsagesBySourceId``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetUsagesBySourceId`: []SourceUsage - fmt.Fprintf(os.Stdout, "Response from `SourceUsagesAPI.GetUsagesBySourceId`: %v\n", resp) + //resp, r, err := apiClient.V3.SourceUsagesAPI.GetUsagesBySourceId(context.Background(), sourceId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourceUsagesAPI.GetUsagesBySourceId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetUsagesBySourceId`: []SourceUsage + fmt.Fprintf(os.Stdout, "Response from `SourceUsagesAPI.GetUsagesBySourceId`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/SourcesAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/SourcesAPI.md index c381db3c1..9359fa742 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/SourcesAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/SourcesAPI.md @@ -144,7 +144,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -192,24 +192,23 @@ func main() { "usageType" : "CREATE" }`) // ProvisioningPolicyDto | - - var provisioningPolicyDto v3.ProvisioningPolicyDto - if err := json.Unmarshal(provisioningpolicydto, &provisioningPolicyDto); err != nil { - fmt.Println("Error:", err) - return - } - + var provisioningPolicyDto v3.ProvisioningPolicyDto + if err := json.Unmarshal(provisioningpolicydto, &provisioningPolicyDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.CreateProvisioningPolicy(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() - //resp, r, err := apiClient.V3.SourcesAPI.CreateProvisioningPolicy(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.CreateProvisioningPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateProvisioningPolicy`: ProvisioningPolicyDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.CreateProvisioningPolicy`: %v\n", resp) + //resp, r, err := apiClient.V3.SourcesAPI.CreateProvisioningPolicy(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.CreateProvisioningPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateProvisioningPolicy`: ProvisioningPolicyDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.CreateProvisioningPolicy`: %v\n", resp) } ``` @@ -253,7 +252,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -344,24 +343,23 @@ func main() { }`) // Source | provisionAsCsv := false // bool | If this parameter is `true`, it configures the source as a Delimited File (CSV) source. Setting this to `true` will automatically set the `type` of the source to `DelimitedFile`. You must use this query parameter to create a Delimited File source as you would in the UI. If you don't set this query parameter and you attempt to set the `type` attribute directly, the request won't correctly generate the source. (optional) # bool | If this parameter is `true`, it configures the source as a Delimited File (CSV) source. Setting this to `true` will automatically set the `type` of the source to `DelimitedFile`. You must use this query parameter to create a Delimited File source as you would in the UI. If you don't set this query parameter and you attempt to set the `type` attribute directly, the request won't correctly generate the source. (optional) - - var source v3.Source - if err := json.Unmarshal(source, &source); err != nil { - fmt.Println("Error:", err) - return - } - + var source v3.Source + if err := json.Unmarshal(source, &source); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.CreateSource(context.Background()).Source(source).Execute() - //resp, r, err := apiClient.V3.SourcesAPI.CreateSource(context.Background()).Source(source).ProvisionAsCsv(provisionAsCsv).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.CreateSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSource`: Source - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.CreateSource`: %v\n", resp) + //resp, r, err := apiClient.V3.SourcesAPI.CreateSource(context.Background()).Source(source).ProvisionAsCsv(provisionAsCsv).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.CreateSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSource`: Source + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.CreateSource`: %v\n", resp) } ``` @@ -410,7 +408,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -452,24 +450,23 @@ func main() { "identityAttribute" : "sAMAccountName" }`) // Schema | - - var schema v3.Schema - if err := json.Unmarshal(schema, &schema); err != nil { - fmt.Println("Error:", err) - return - } - + var schema v3.Schema + if err := json.Unmarshal(schema, &schema); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.CreateSourceSchema(context.Background(), sourceId).Schema(schema).Execute() - //resp, r, err := apiClient.V3.SourcesAPI.CreateSourceSchema(context.Background(), sourceId).Schema(schema).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.CreateSourceSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSourceSchema`: Schema - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.CreateSourceSchema`: %v\n", resp) + //resp, r, err := apiClient.V3.SourcesAPI.CreateSourceSchema(context.Background(), sourceId).Schema(schema).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.CreateSourceSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateSourceSchema`: Schema + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.CreateSourceSchema`: %v\n", resp) } ``` @@ -518,7 +515,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -527,16 +524,17 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source ID. # string | The Source ID. usageType := CREATE // UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.SourcesAPI.DeleteProvisioningPolicy(context.Background(), sourceId, usageType).Execute() - //r, err := apiClient.V3.SourcesAPI.DeleteProvisioningPolicy(context.Background(), sourceId, usageType).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteProvisioningPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.SourcesAPI.DeleteProvisioningPolicy(context.Background(), sourceId, usageType).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteProvisioningPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -584,7 +582,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -592,18 +590,18 @@ import ( func main() { id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.DeleteSource(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.SourcesAPI.DeleteSource(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteSource`: DeleteSource202Response - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.DeleteSource`: %v\n", resp) + //resp, r, err := apiClient.V3.SourcesAPI.DeleteSource(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteSource`: DeleteSource202Response + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.DeleteSource`: %v\n", resp) } ``` @@ -652,7 +650,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -661,16 +659,17 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. schemaId := `2c9180835d191a86015d28455b4a2329` // string | The Schema id. # string | The Schema id. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.SourcesAPI.DeleteSourceSchema(context.Background(), sourceId, schemaId).Execute() - //r, err := apiClient.V3.SourcesAPI.DeleteSourceSchema(context.Background(), sourceId, schemaId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteSourceSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.SourcesAPI.DeleteSourceSchema(context.Background(), sourceId, schemaId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.DeleteSourceSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -718,7 +717,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -726,16 +725,17 @@ import ( func main() { id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The Source id # string | The Source id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.SourcesAPI.GetAccountsSchema(context.Background(), id).Execute() - //r, err := apiClient.V3.SourcesAPI.GetAccountsSchema(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetAccountsSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.SourcesAPI.GetAccountsSchema(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetAccountsSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -785,7 +785,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -794,16 +794,17 @@ func main() { id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The Source id # string | The Source id schemaName := `?schemaName=group` // string | Name of entitlement schema (optional) # string | Name of entitlement schema (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.SourcesAPI.GetEntitlementsSchema(context.Background(), id).Execute() - //r, err := apiClient.V3.SourcesAPI.GetEntitlementsSchema(context.Background(), id).SchemaName(schemaName).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetEntitlementsSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.SourcesAPI.GetEntitlementsSchema(context.Background(), id).SchemaName(schemaName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetEntitlementsSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -852,7 +853,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -861,18 +862,18 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source ID. # string | The Source ID. usageType := CREATE // UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.GetProvisioningPolicy(context.Background(), sourceId, usageType).Execute() - //resp, r, err := apiClient.V3.SourcesAPI.GetProvisioningPolicy(context.Background(), sourceId, usageType).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetProvisioningPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetProvisioningPolicy`: ProvisioningPolicyDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetProvisioningPolicy`: %v\n", resp) + //resp, r, err := apiClient.V3.SourcesAPI.GetProvisioningPolicy(context.Background(), sourceId, usageType).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetProvisioningPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetProvisioningPolicy`: ProvisioningPolicyDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetProvisioningPolicy`: %v\n", resp) } ``` @@ -919,7 +920,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -927,18 +928,18 @@ import ( func main() { id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.GetSource(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.SourcesAPI.GetSource(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSource`: Source - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSource`: %v\n", resp) + //resp, r, err := apiClient.V3.SourcesAPI.GetSource(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSource`: Source + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSource`: %v\n", resp) } ``` @@ -985,7 +986,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -993,18 +994,18 @@ import ( func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.GetSourceConnections(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.V3.SourcesAPI.GetSourceConnections(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceConnections``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSourceConnections`: SourceConnectionsDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceConnections`: %v\n", resp) + //resp, r, err := apiClient.V3.SourcesAPI.GetSourceConnections(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceConnections``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSourceConnections`: SourceConnectionsDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceConnections`: %v\n", resp) } ``` @@ -1051,7 +1052,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1059,18 +1060,18 @@ import ( func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.GetSourceHealth(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.V3.SourcesAPI.GetSourceHealth(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceHealth``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSourceHealth`: SourceHealthDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceHealth`: %v\n", resp) + //resp, r, err := apiClient.V3.SourcesAPI.GetSourceHealth(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceHealth``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSourceHealth`: SourceHealthDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceHealth`: %v\n", resp) } ``` @@ -1120,7 +1121,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1129,18 +1130,18 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. schemaId := `2c9180835d191a86015d28455b4a2329` // string | The Schema id. # string | The Schema id. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.GetSourceSchema(context.Background(), sourceId, schemaId).Execute() - //resp, r, err := apiClient.V3.SourcesAPI.GetSourceSchema(context.Background(), sourceId, schemaId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSourceSchema`: Schema - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceSchema`: %v\n", resp) + //resp, r, err := apiClient.V3.SourcesAPI.GetSourceSchema(context.Background(), sourceId, schemaId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSourceSchema`: Schema + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceSchema`: %v\n", resp) } ``` @@ -1189,7 +1190,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1199,18 +1200,18 @@ func main() { includeTypes := `group` // string | If set to 'group', then the account schema is filtered and only group schemas are returned. Only a value of 'group' is recognized presently. Note: The API will check whether include-types is group or not, if not, it will list schemas based on include-names, if include-names is not provided, it will list all schemas. (optional) # string | If set to 'group', then the account schema is filtered and only group schemas are returned. Only a value of 'group' is recognized presently. Note: The API will check whether include-types is group or not, if not, it will list schemas based on include-names, if include-names is not provided, it will list all schemas. (optional) includeNames := `account` // string | A comma-separated list of schema names to filter result. (optional) # string | A comma-separated list of schema names to filter result. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.GetSourceSchemas(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.V3.SourcesAPI.GetSourceSchemas(context.Background(), sourceId).IncludeTypes(includeTypes).IncludeNames(includeNames).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceSchemas``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSourceSchemas`: []Schema - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceSchemas`: %v\n", resp) + //resp, r, err := apiClient.V3.SourcesAPI.GetSourceSchemas(context.Background(), sourceId).IncludeTypes(includeTypes).IncludeNames(includeNames).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.GetSourceSchemas``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSourceSchemas`: []Schema + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.GetSourceSchemas`: %v\n", resp) } ``` @@ -1264,7 +1265,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1273,18 +1274,18 @@ func main() { id := `8c190e6787aa4ed9a90bd9d5344523fb` // string | The Source id # string | The Source id file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.ImportAccountsSchema(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.SourcesAPI.ImportAccountsSchema(context.Background(), id).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportAccountsSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportAccountsSchema`: Schema - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportAccountsSchema`: %v\n", resp) + //resp, r, err := apiClient.V3.SourcesAPI.ImportAccountsSchema(context.Background(), id).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportAccountsSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportAccountsSchema`: Schema + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportAccountsSchema`: %v\n", resp) } ``` @@ -1332,7 +1333,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1341,18 +1342,18 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.ImportConnectorFile(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.V3.SourcesAPI.ImportConnectorFile(context.Background(), sourceId).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportConnectorFile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportConnectorFile`: Source - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportConnectorFile`: %v\n", resp) + //resp, r, err := apiClient.V3.SourcesAPI.ImportConnectorFile(context.Background(), sourceId).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportConnectorFile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportConnectorFile`: Source + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportConnectorFile`: %v\n", resp) } ``` @@ -1407,7 +1408,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1417,18 +1418,18 @@ func main() { schemaName := `?schemaName=group` // string | Name of entitlement schema (optional) # string | Name of entitlement schema (optional) file := BINARY_DATA_HERE // *os.File | (optional) # *os.File | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.ImportEntitlementsSchema(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.SourcesAPI.ImportEntitlementsSchema(context.Background(), id).SchemaName(schemaName).File(file).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportEntitlementsSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ImportEntitlementsSchema`: Schema - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportEntitlementsSchema`: %v\n", resp) + //resp, r, err := apiClient.V3.SourcesAPI.ImportEntitlementsSchema(context.Background(), id).SchemaName(schemaName).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ImportEntitlementsSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ImportEntitlementsSchema`: Schema + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ImportEntitlementsSchema`: %v\n", resp) } ``` @@ -1475,7 +1476,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1483,18 +1484,18 @@ import ( func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id # string | The Source id - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.ListProvisioningPolicies(context.Background(), sourceId).Execute() - //resp, r, err := apiClient.V3.SourcesAPI.ListProvisioningPolicies(context.Background(), sourceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ListProvisioningPolicies``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListProvisioningPolicies`: []ProvisioningPolicyDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ListProvisioningPolicies`: %v\n", resp) + //resp, r, err := apiClient.V3.SourcesAPI.ListProvisioningPolicies(context.Background(), sourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ListProvisioningPolicies``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListProvisioningPolicies`: []ProvisioningPolicyDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ListProvisioningPolicies`: %v\n", resp) } ``` @@ -1543,7 +1544,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1557,18 +1558,18 @@ func main() { forSubadmin := `name` // string | Filter the returned list of sources for the identity specified by the parameter, which is the id of an identity with the role SOURCE_SUBADMIN. By convention, the value **me** indicates the identity id of the current user. Subadmins may only view Sources which they are able to administer; all other Sources will be filtered out when this parameter is set. If the current user is a SOURCE_SUBADMIN but fails to pass a valid value for this parameter, a 403 Forbidden is returned. (optional) # string | Filter the returned list of sources for the identity specified by the parameter, which is the id of an identity with the role SOURCE_SUBADMIN. By convention, the value **me** indicates the identity id of the current user. Subadmins may only view Sources which they are able to administer; all other Sources will be filtered out when this parameter is set. If the current user is a SOURCE_SUBADMIN but fails to pass a valid value for this parameter, a 403 Forbidden is returned. (optional) includeIDNSource := true // bool | Include the IdentityNow source in the response. (optional) (default to false) # bool | Include the IdentityNow source in the response. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.ListSources(context.Background()).Execute() - //resp, r, err := apiClient.V3.SourcesAPI.ListSources(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSubadmin(forSubadmin).IncludeIDNSource(includeIDNSource).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ListSources``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListSources`: []Source - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ListSources`: %v\n", resp) + //resp, r, err := apiClient.V3.SourcesAPI.ListSources(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSubadmin(forSubadmin).IncludeIDNSource(includeIDNSource).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.ListSources``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListSources`: []Source + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.ListSources`: %v\n", resp) } ``` @@ -1620,7 +1621,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1669,24 +1670,23 @@ func main() { "usageType" : "CREATE" }`) // ProvisioningPolicyDto | - - var provisioningPolicyDto v3.ProvisioningPolicyDto - if err := json.Unmarshal(provisioningpolicydto, &provisioningPolicyDto); err != nil { - fmt.Println("Error:", err) - return - } - + var provisioningPolicyDto v3.ProvisioningPolicyDto + if err := json.Unmarshal(provisioningpolicydto, &provisioningPolicyDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.PutProvisioningPolicy(context.Background(), sourceId, usageType).ProvisioningPolicyDto(provisioningPolicyDto).Execute() - //resp, r, err := apiClient.V3.SourcesAPI.PutProvisioningPolicy(context.Background(), sourceId, usageType).ProvisioningPolicyDto(provisioningPolicyDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutProvisioningPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutProvisioningPolicy`: ProvisioningPolicyDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutProvisioningPolicy`: %v\n", resp) + //resp, r, err := apiClient.V3.SourcesAPI.PutProvisioningPolicy(context.Background(), sourceId, usageType).ProvisioningPolicyDto(provisioningPolicyDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutProvisioningPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutProvisioningPolicy`: ProvisioningPolicyDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutProvisioningPolicy`: %v\n", resp) } ``` @@ -1746,7 +1746,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1837,24 +1837,23 @@ func main() { "since" : "2021-09-28T15:48:29.3801666300Z" }`) // Source | - - var source v3.Source - if err := json.Unmarshal(source, &source); err != nil { - fmt.Println("Error:", err) - return - } - + var source v3.Source + if err := json.Unmarshal(source, &source); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.PutSource(context.Background(), id).Source(source).Execute() - //resp, r, err := apiClient.V3.SourcesAPI.PutSource(context.Background(), id).Source(source).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutSource`: Source - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutSource`: %v\n", resp) + //resp, r, err := apiClient.V3.SourcesAPI.PutSource(context.Background(), id).Source(source).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutSource`: Source + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutSource`: %v\n", resp) } ``` @@ -1914,7 +1913,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1957,24 +1956,23 @@ func main() { "identityAttribute" : "sAMAccountName" }`) // Schema | - - var schema v3.Schema - if err := json.Unmarshal(schema, &schema); err != nil { - fmt.Println("Error:", err) - return - } - + var schema v3.Schema + if err := json.Unmarshal(schema, &schema); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.PutSourceSchema(context.Background(), sourceId, schemaId).Schema(schema).Execute() - //resp, r, err := apiClient.V3.SourcesAPI.PutSourceSchema(context.Background(), sourceId, schemaId).Schema(schema).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutSourceSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutSourceSchema`: Schema - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutSourceSchema`: %v\n", resp) + //resp, r, err := apiClient.V3.SourcesAPI.PutSourceSchema(context.Background(), sourceId, schemaId).Schema(schema).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.PutSourceSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutSourceSchema`: Schema + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.PutSourceSchema`: %v\n", resp) } ``` @@ -2022,7 +2020,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2031,24 +2029,23 @@ func main() { sourceId := `2c9180835d191a86015d28455b4a2329` // string | The Source id. # string | The Source id. provisioningpolicydto := []byte(``) // []ProvisioningPolicyDto | - - var provisioningPolicyDto v3.[]ProvisioningPolicyDto - if err := json.Unmarshal(provisioningpolicydto, &provisioningPolicyDto); err != nil { - fmt.Println("Error:", err) - return - } - + var provisioningPolicyDto []v3.ProvisioningPolicyDto + if err := json.Unmarshal(provisioningpolicydto, &provisioningPolicyDto); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.UpdateProvisioningPoliciesInBulk(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() - //resp, r, err := apiClient.V3.SourcesAPI.UpdateProvisioningPoliciesInBulk(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateProvisioningPoliciesInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateProvisioningPoliciesInBulk`: []ProvisioningPolicyDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateProvisioningPoliciesInBulk`: %v\n", resp) + //resp, r, err := apiClient.V3.SourcesAPI.UpdateProvisioningPoliciesInBulk(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateProvisioningPoliciesInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateProvisioningPoliciesInBulk`: []ProvisioningPolicyDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateProvisioningPoliciesInBulk`: %v\n", resp) } ``` @@ -2100,7 +2097,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2110,24 +2107,23 @@ func main() { usageType := CREATE // UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. # UsageType | The type of provisioning policy usage. In IdentityNow, a source can support various provisioning operations. For example, when a joiner is added to a source, this may trigger both CREATE and UPDATE provisioning operations. Each usage type is considered a provisioning policy. A source can have any number of these provisioning policies defined. These are the common usage types: CREATE - This usage type relates to 'Create Account Profile', the provisioning template for the account to be created. For example, this would be used for a joiner on a source. UPDATE - This usage type relates to 'Update Account Profile', the provisioning template for the 'Update' connector operations. For example, this would be used for an attribute sync on a source. ENABLE - This usage type relates to 'Enable Account Profile', the provisioning template for the account to be enabled. For example, this could be used for a joiner on a source once the joiner's account is created. DISABLE - This usage type relates to 'Disable Account Profile', the provisioning template for the account to be disabled. For example, this could be used when a leaver is removed temporarily from a source. You can use these four usage types for all your provisioning policy needs. jsonpatchoperation := []byte(`[{op=add, path=/fields/0, value={name=email, transform={type=identityAttribute, attributes={name=email}}, attributes={}, isRequired=false, type=string, isMultiValued=false}}]`) // []JsonPatchOperation | The JSONPatch payload used to update the schema. - - var jsonPatchOperation v3.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v3.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.UpdateProvisioningPolicy(context.Background(), sourceId, usageType).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V3.SourcesAPI.UpdateProvisioningPolicy(context.Background(), sourceId, usageType).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateProvisioningPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateProvisioningPolicy`: ProvisioningPolicyDto - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateProvisioningPolicy`: %v\n", resp) + //resp, r, err := apiClient.V3.SourcesAPI.UpdateProvisioningPolicy(context.Background(), sourceId, usageType).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateProvisioningPolicy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateProvisioningPolicy`: ProvisioningPolicyDto + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateProvisioningPolicy`: %v\n", resp) } ``` @@ -2190,7 +2186,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2199,24 +2195,23 @@ func main() { id := `2c9180835d191a86015d28455b4a2329` // string | Source ID. # string | Source ID. jsonpatchoperation := []byte(`[{op=replace, path=/description, value=new description}]`) // []JsonPatchOperation | A list of account update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Any password changes are submitted as plain-text and encrypted upon receipt in Identity Security Cloud (ISC). - - var jsonPatchOperation v3.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v3.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.UpdateSource(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V3.SourcesAPI.UpdateSource(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateSource``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateSource`: Source - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateSource`: %v\n", resp) + //resp, r, err := apiClient.V3.SourcesAPI.UpdateSource(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateSource`: Source + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateSource`: %v\n", resp) } ``` @@ -2295,7 +2290,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2305,24 +2300,23 @@ func main() { schemaId := `2c9180835d191a86015d28455b4a2329` // string | The Schema id. # string | The Schema id. jsonpatchoperation := []byte(`[{op=add, path=/attributes/-, value={name=location, type=STRING, schema=null, description=Employee location, isMulti=false, isEntitlement=false, isGroup=false}}]`) // []JsonPatchOperation | The JSONPatch payload used to update the schema. - - var jsonPatchOperation v3.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v3.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.UpdateSourceSchema(context.Background(), sourceId, schemaId).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V3.SourcesAPI.UpdateSourceSchema(context.Background(), sourceId, schemaId).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateSourceSchema``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateSourceSchema`: Schema - fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateSourceSchema`: %v\n", resp) + //resp, r, err := apiClient.V3.SourcesAPI.UpdateSourceSchema(context.Background(), sourceId, schemaId).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SourcesAPI.UpdateSourceSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateSourceSchema`: Schema + fmt.Fprintf(os.Stdout, "Response from `SourcesAPI.UpdateSourceSchema`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/TaggedObjectsAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/TaggedObjectsAPI.md index 031711fc7..403d871f7 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/TaggedObjectsAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/TaggedObjectsAPI.md @@ -121,7 +121,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -130,16 +130,17 @@ func main() { type_ := `ROLE` // string | The type of object to delete tags from. # string | The type of object to delete tags from. id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the object to delete tags from. # string | The ID of the object to delete tags from. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.TaggedObjectsAPI.DeleteTaggedObject(context.Background(), type_, id).Execute() - //r, err := apiClient.V3.TaggedObjectsAPI.DeleteTaggedObject(context.Background(), type_, id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.DeleteTaggedObject``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.TaggedObjectsAPI.DeleteTaggedObject(context.Background(), type_, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.DeleteTaggedObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -182,7 +183,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -201,22 +202,22 @@ func main() { "tags" : [ "BU_FINANCE", "PCI" ] }`) // BulkRemoveTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. - - var bulkRemoveTaggedObject v3.BulkRemoveTaggedObject - if err := json.Unmarshal(bulkremovetaggedobject, &bulkRemoveTaggedObject); err != nil { - fmt.Println("Error:", err) - return - } - + var bulkRemoveTaggedObject v3.BulkRemoveTaggedObject + if err := json.Unmarshal(bulkremovetaggedobject, &bulkRemoveTaggedObject); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.TaggedObjectsAPI.DeleteTagsToManyObject(context.Background()).BulkRemoveTaggedObject(bulkRemoveTaggedObject).Execute() - //r, err := apiClient.V3.TaggedObjectsAPI.DeleteTagsToManyObject(context.Background()).BulkRemoveTaggedObject(bulkRemoveTaggedObject).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.DeleteTagsToManyObject``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.TaggedObjectsAPI.DeleteTagsToManyObject(context.Background()).BulkRemoveTaggedObject(bulkRemoveTaggedObject).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.DeleteTagsToManyObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -265,7 +266,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -274,18 +275,18 @@ func main() { type_ := `ROLE` // string | The type of tagged object to retrieve. # string | The type of tagged object to retrieve. id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the object reference to retrieve. # string | The ID of the object reference to retrieve. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.TaggedObjectsAPI.GetTaggedObject(context.Background(), type_, id).Execute() - //resp, r, err := apiClient.V3.TaggedObjectsAPI.GetTaggedObject(context.Background(), type_, id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.GetTaggedObject``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetTaggedObject`: TaggedObject - fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.GetTaggedObject`: %v\n", resp) + //resp, r, err := apiClient.V3.TaggedObjectsAPI.GetTaggedObject(context.Background(), type_, id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.GetTaggedObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTaggedObject`: TaggedObject + fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.GetTaggedObject`: %v\n", resp) } ``` @@ -333,7 +334,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -344,18 +345,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) filters := `tagName eq "BU_FINANCE"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **objectRef.id**: *eq, in* **objectRef.type**: *eq, in* **tagName**: *eq, in* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **objectRef.id**: *eq, in* **objectRef.type**: *eq, in* **tagName**: *eq, in* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.TaggedObjectsAPI.ListTaggedObjects(context.Background()).Execute() - //resp, r, err := apiClient.V3.TaggedObjectsAPI.ListTaggedObjects(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.ListTaggedObjects``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListTaggedObjects`: []TaggedObject - fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.ListTaggedObjects`: %v\n", resp) + //resp, r, err := apiClient.V3.TaggedObjectsAPI.ListTaggedObjects(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.ListTaggedObjects``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListTaggedObjects`: []TaggedObject + fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.ListTaggedObjects`: %v\n", resp) } ``` @@ -408,7 +409,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -420,18 +421,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) filters := `objectRef.id eq "2c91808568c529c60168cca6f90c1313"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **objectRef.id**: *eq* **objectRef.type**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **objectRef.id**: *eq* **objectRef.type**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.TaggedObjectsAPI.ListTaggedObjectsByType(context.Background(), type_).Execute() - //resp, r, err := apiClient.V3.TaggedObjectsAPI.ListTaggedObjectsByType(context.Background(), type_).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.ListTaggedObjectsByType``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListTaggedObjectsByType`: []TaggedObject - fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.ListTaggedObjectsByType`: %v\n", resp) + //resp, r, err := apiClient.V3.TaggedObjectsAPI.ListTaggedObjectsByType(context.Background(), type_).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.ListTaggedObjectsByType``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListTaggedObjectsByType`: []TaggedObject + fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.ListTaggedObjectsByType`: %v\n", resp) } ``` @@ -481,7 +482,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -498,24 +499,23 @@ func main() { "tags" : [ "BU_FINANCE", "PCI" ] }`) // TaggedObject | - - var taggedObject v3.TaggedObject - if err := json.Unmarshal(taggedobject, &taggedObject); err != nil { - fmt.Println("Error:", err) - return - } - + var taggedObject v3.TaggedObject + if err := json.Unmarshal(taggedobject, &taggedObject); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.TaggedObjectsAPI.PutTaggedObject(context.Background(), type_, id).TaggedObject(taggedObject).Execute() - //resp, r, err := apiClient.V3.TaggedObjectsAPI.PutTaggedObject(context.Background(), type_, id).TaggedObject(taggedObject).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.PutTaggedObject``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutTaggedObject`: TaggedObject - fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.PutTaggedObject`: %v\n", resp) + //resp, r, err := apiClient.V3.TaggedObjectsAPI.PutTaggedObject(context.Background(), type_, id).TaggedObject(taggedObject).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.PutTaggedObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutTaggedObject`: TaggedObject + fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.PutTaggedObject`: %v\n", resp) } ``` @@ -560,7 +560,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -575,22 +575,22 @@ func main() { "tags" : [ "BU_FINANCE", "PCI" ] }`) // TaggedObject | - - var taggedObject v3.TaggedObject - if err := json.Unmarshal(taggedobject, &taggedObject); err != nil { - fmt.Println("Error:", err) - return - } - + var taggedObject v3.TaggedObject + if err := json.Unmarshal(taggedobject, &taggedObject); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.TaggedObjectsAPI.SetTagToObject(context.Background()).TaggedObject(taggedObject).Execute() - //r, err := apiClient.V3.TaggedObjectsAPI.SetTagToObject(context.Background()).TaggedObject(taggedObject).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.SetTagToObject``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.TaggedObjectsAPI.SetTagToObject(context.Background()).TaggedObject(taggedObject).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.SetTagToObject``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -633,7 +633,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -653,24 +653,23 @@ func main() { "tags" : [ "BU_FINANCE", "PCI" ] }`) // BulkAddTaggedObject | Supported object types are ACCESS_PROFILE, APPLICATION, CAMPAIGN, ENTITLEMENT, IDENTITY, ROLE, SOD_POLICY, SOURCE. - - var bulkAddTaggedObject v3.BulkAddTaggedObject - if err := json.Unmarshal(bulkaddtaggedobject, &bulkAddTaggedObject); err != nil { - fmt.Println("Error:", err) - return - } - + var bulkAddTaggedObject v3.BulkAddTaggedObject + if err := json.Unmarshal(bulkaddtaggedobject, &bulkAddTaggedObject); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.TaggedObjectsAPI.SetTagsToManyObjects(context.Background()).BulkAddTaggedObject(bulkAddTaggedObject).Execute() - //resp, r, err := apiClient.V3.TaggedObjectsAPI.SetTagsToManyObjects(context.Background()).BulkAddTaggedObject(bulkAddTaggedObject).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.SetTagsToManyObjects``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SetTagsToManyObjects`: []BulkTaggedObjectResponse - fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.SetTagsToManyObjects`: %v\n", resp) + //resp, r, err := apiClient.V3.TaggedObjectsAPI.SetTagsToManyObjects(context.Background()).BulkAddTaggedObject(bulkAddTaggedObject).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TaggedObjectsAPI.SetTagsToManyObjects``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetTagsToManyObjects`: []BulkTaggedObjectResponse + fmt.Fprintf(os.Stdout, "Response from `TaggedObjectsAPI.SetTagsToManyObjects`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/TransformsAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/TransformsAPI.md index 6afc04c84..e46826b2f 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/TransformsAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/TransformsAPI.md @@ -64,7 +64,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -76,24 +76,23 @@ func main() { "type" : "dateFormat" }`) // Transform | The transform to be created. - - var transform v3.Transform - if err := json.Unmarshal(transform, &transform); err != nil { - fmt.Println("Error:", err) - return - } - + var transform v3.Transform + if err := json.Unmarshal(transform, &transform); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.TransformsAPI.CreateTransform(context.Background()).Transform(transform).Execute() - //resp, r, err := apiClient.V3.TransformsAPI.CreateTransform(context.Background()).Transform(transform).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.CreateTransform``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateTransform`: TransformRead - fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.CreateTransform`: %v\n", resp) + //resp, r, err := apiClient.V3.TransformsAPI.CreateTransform(context.Background()).Transform(transform).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.CreateTransform``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateTransform`: TransformRead + fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.CreateTransform`: %v\n", resp) } ``` @@ -140,7 +139,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -148,16 +147,17 @@ import ( func main() { id := `2cd78adghjkja34jh2b1hkjhasuecd` // string | ID of the transform to delete # string | ID of the transform to delete - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.TransformsAPI.DeleteTransform(context.Background(), id).Execute() - //r, err := apiClient.V3.TransformsAPI.DeleteTransform(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.DeleteTransform``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.TransformsAPI.DeleteTransform(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.DeleteTransform``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -204,7 +204,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -212,18 +212,18 @@ import ( func main() { id := `2cd78adghjkja34jh2b1hkjhasuecd` // string | ID of the transform to retrieve # string | ID of the transform to retrieve - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.TransformsAPI.GetTransform(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.TransformsAPI.GetTransform(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.GetTransform``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetTransform`: TransformRead - fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.GetTransform`: %v\n", resp) + //resp, r, err := apiClient.V3.TransformsAPI.GetTransform(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.GetTransform``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTransform`: TransformRead + fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.GetTransform`: %v\n", resp) } ``` @@ -270,7 +270,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -282,18 +282,18 @@ func main() { name := `ExampleTransformName123` // string | Name of the transform to retrieve from the list. (optional) # string | Name of the transform to retrieve from the list. (optional) filters := `name eq "Uppercase"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **internal**: *eq* **name**: *eq, sw* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **internal**: *eq* **name**: *eq, sw* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.TransformsAPI.ListTransforms(context.Background()).Execute() - //resp, r, err := apiClient.V3.TransformsAPI.ListTransforms(context.Background()).Offset(offset).Limit(limit).Count(count).Name(name).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.ListTransforms``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListTransforms`: []TransformRead - fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.ListTransforms`: %v\n", resp) + //resp, r, err := apiClient.V3.TransformsAPI.ListTransforms(context.Background()).Offset(offset).Limit(limit).Count(count).Name(name).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.ListTransforms``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListTransforms`: []TransformRead + fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.ListTransforms`: %v\n", resp) } ``` @@ -341,7 +341,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -354,18 +354,18 @@ func main() { "type" : "dateFormat" }`) // Transform | The updated transform object. Must include \"name\", \"type\", and \"attributes\" fields, but \"name\" and \"type\" must not be modified. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.TransformsAPI.UpdateTransform(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.TransformsAPI.UpdateTransform(context.Background(), id).Transform(transform).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.UpdateTransform``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateTransform`: TransformRead - fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.UpdateTransform`: %v\n", resp) + //resp, r, err := apiClient.V3.TransformsAPI.UpdateTransform(context.Background(), id).Transform(transform).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TransformsAPI.UpdateTransform``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateTransform`: TransformRead + fmt.Fprintf(os.Stdout, "Response from `TransformsAPI.UpdateTransform`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/VendorConnectorMappingsAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/VendorConnectorMappingsAPI.md index 63b9c0e4f..ff4f2751a 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/VendorConnectorMappingsAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/VendorConnectorMappingsAPI.md @@ -58,7 +58,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -88,24 +88,23 @@ func main() { } }`) // VendorConnectorMapping | - - var vendorConnectorMapping v3.VendorConnectorMapping - if err := json.Unmarshal(vendorconnectormapping, &vendorConnectorMapping); err != nil { - fmt.Println("Error:", err) - return - } - + var vendorConnectorMapping v3.VendorConnectorMapping + if err := json.Unmarshal(vendorconnectormapping, &vendorConnectorMapping); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.VendorConnectorMappingsAPI.CreateVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() - //resp, r, err := apiClient.V3.VendorConnectorMappingsAPI.CreateVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VendorConnectorMappingsAPI.CreateVendorConnectorMapping``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateVendorConnectorMapping`: VendorConnectorMapping - fmt.Fprintf(os.Stdout, "Response from `VendorConnectorMappingsAPI.CreateVendorConnectorMapping`: %v\n", resp) + //resp, r, err := apiClient.V3.VendorConnectorMappingsAPI.CreateVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VendorConnectorMappingsAPI.CreateVendorConnectorMapping``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateVendorConnectorMapping`: VendorConnectorMapping + fmt.Fprintf(os.Stdout, "Response from `VendorConnectorMappingsAPI.CreateVendorConnectorMapping`: %v\n", resp) } ``` @@ -149,7 +148,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -179,24 +178,23 @@ func main() { } }`) // VendorConnectorMapping | - - var vendorConnectorMapping v3.VendorConnectorMapping - if err := json.Unmarshal(vendorconnectormapping, &vendorConnectorMapping); err != nil { - fmt.Println("Error:", err) - return - } - + var vendorConnectorMapping v3.VendorConnectorMapping + if err := json.Unmarshal(vendorconnectormapping, &vendorConnectorMapping); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.VendorConnectorMappingsAPI.DeleteVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() - //resp, r, err := apiClient.V3.VendorConnectorMappingsAPI.DeleteVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VendorConnectorMappingsAPI.DeleteVendorConnectorMapping``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DeleteVendorConnectorMapping`: DeleteVendorConnectorMapping200Response - fmt.Fprintf(os.Stdout, "Response from `VendorConnectorMappingsAPI.DeleteVendorConnectorMapping`: %v\n", resp) + //resp, r, err := apiClient.V3.VendorConnectorMappingsAPI.DeleteVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VendorConnectorMappingsAPI.DeleteVendorConnectorMapping``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteVendorConnectorMapping`: DeleteVendorConnectorMapping200Response + fmt.Fprintf(os.Stdout, "Response from `VendorConnectorMappingsAPI.DeleteVendorConnectorMapping`: %v\n", resp) } ``` @@ -236,25 +234,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.VendorConnectorMappingsAPI.GetVendorConnectorMappings(context.Background()).Execute() - //resp, r, err := apiClient.V3.VendorConnectorMappingsAPI.GetVendorConnectorMappings(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VendorConnectorMappingsAPI.GetVendorConnectorMappings``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetVendorConnectorMappings`: []VendorConnectorMapping - fmt.Fprintf(os.Stdout, "Response from `VendorConnectorMappingsAPI.GetVendorConnectorMappings`: %v\n", resp) + //resp, r, err := apiClient.V3.VendorConnectorMappingsAPI.GetVendorConnectorMappings(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VendorConnectorMappingsAPI.GetVendorConnectorMappings``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetVendorConnectorMappings`: []VendorConnectorMapping + fmt.Fprintf(os.Stdout, "Response from `VendorConnectorMappingsAPI.GetVendorConnectorMappings`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/WorkItemsAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/WorkItemsAPI.md index 081e7eade..ee692f106 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/WorkItemsAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/WorkItemsAPI.md @@ -87,7 +87,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -96,18 +96,18 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item approvalItemId := `1211bcaa32112bcef6122adb21cef1ac` // string | The ID of the approval item. # string | The ID of the approval item. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkItemsAPI.ApproveApprovalItem(context.Background(), id, approvalItemId).Execute() - //resp, r, err := apiClient.V3.WorkItemsAPI.ApproveApprovalItem(context.Background(), id, approvalItemId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.ApproveApprovalItem``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ApproveApprovalItem`: WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.ApproveApprovalItem`: %v\n", resp) + //resp, r, err := apiClient.V3.WorkItemsAPI.ApproveApprovalItem(context.Background(), id, approvalItemId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.ApproveApprovalItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApproveApprovalItem`: WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.ApproveApprovalItem`: %v\n", resp) } ``` @@ -154,7 +154,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -162,18 +162,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkItemsAPI.ApproveApprovalItemsInBulk(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.WorkItemsAPI.ApproveApprovalItemsInBulk(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.ApproveApprovalItemsInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ApproveApprovalItemsInBulk`: WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.ApproveApprovalItemsInBulk`: %v\n", resp) + //resp, r, err := apiClient.V3.WorkItemsAPI.ApproveApprovalItemsInBulk(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.ApproveApprovalItemsInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApproveApprovalItemsInBulk`: WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.ApproveApprovalItemsInBulk`: %v\n", resp) } ``` @@ -221,7 +221,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -230,18 +230,18 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item body := `body_example` // string | Body is the request payload to create form definition request (optional) # string | Body is the request payload to create form definition request (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkItemsAPI.CompleteWorkItem(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.WorkItemsAPI.CompleteWorkItem(context.Background(), id).Body(body).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.CompleteWorkItem``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CompleteWorkItem`: WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.CompleteWorkItem`: %v\n", resp) + //resp, r, err := apiClient.V3.WorkItemsAPI.CompleteWorkItem(context.Background(), id).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.CompleteWorkItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CompleteWorkItem`: WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.CompleteWorkItem`: %v\n", resp) } ``` @@ -287,7 +287,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -298,18 +298,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkItemsAPI.GetCompletedWorkItems(context.Background()).Execute() - //resp, r, err := apiClient.V3.WorkItemsAPI.GetCompletedWorkItems(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetCompletedWorkItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCompletedWorkItems`: []WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetCompletedWorkItems`: %v\n", resp) + //resp, r, err := apiClient.V3.WorkItemsAPI.GetCompletedWorkItems(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetCompletedWorkItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCompletedWorkItems`: []WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetCompletedWorkItems`: %v\n", resp) } ``` @@ -352,7 +352,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -360,18 +360,18 @@ import ( func main() { ownerId := `1211bcaa32112bcef6122adb21cef1ac` // string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkItemsAPI.GetCountCompletedWorkItems(context.Background()).Execute() - //resp, r, err := apiClient.V3.WorkItemsAPI.GetCountCompletedWorkItems(context.Background()).OwnerId(ownerId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetCountCompletedWorkItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCountCompletedWorkItems`: WorkItemsCount - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetCountCompletedWorkItems`: %v\n", resp) + //resp, r, err := apiClient.V3.WorkItemsAPI.GetCountCompletedWorkItems(context.Background()).OwnerId(ownerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetCountCompletedWorkItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCountCompletedWorkItems`: WorkItemsCount + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetCountCompletedWorkItems`: %v\n", resp) } ``` @@ -414,7 +414,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -422,18 +422,18 @@ import ( func main() { ownerId := `ef38f94347e94562b5bb8424a56397d8` // string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkItemsAPI.GetCountWorkItems(context.Background()).Execute() - //resp, r, err := apiClient.V3.WorkItemsAPI.GetCountWorkItems(context.Background()).OwnerId(ownerId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetCountWorkItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetCountWorkItems`: WorkItemsCount - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetCountWorkItems`: %v\n", resp) + //resp, r, err := apiClient.V3.WorkItemsAPI.GetCountWorkItems(context.Background()).OwnerId(ownerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetCountWorkItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCountWorkItems`: WorkItemsCount + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetCountWorkItems`: %v\n", resp) } ``` @@ -480,7 +480,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -488,18 +488,18 @@ import ( func main() { id := `2c9180835d191a86015d28455b4a2329` // string | ID of the work item. # string | ID of the work item. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkItemsAPI.GetWorkItem(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.WorkItemsAPI.GetWorkItem(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetWorkItem``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetWorkItem`: WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetWorkItem`: %v\n", resp) + //resp, r, err := apiClient.V3.WorkItemsAPI.GetWorkItem(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetWorkItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkItem`: WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetWorkItem`: %v\n", resp) } ``` @@ -542,7 +542,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -550,18 +550,18 @@ import ( func main() { ownerId := `1211bcaa32112bcef6122adb21cef1ac` // string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkItemsAPI.GetWorkItemsSummary(context.Background()).Execute() - //resp, r, err := apiClient.V3.WorkItemsAPI.GetWorkItemsSummary(context.Background()).OwnerId(ownerId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetWorkItemsSummary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetWorkItemsSummary`: WorkItemsSummary - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetWorkItemsSummary`: %v\n", resp) + //resp, r, err := apiClient.V3.WorkItemsAPI.GetWorkItemsSummary(context.Background()).OwnerId(ownerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.GetWorkItemsSummary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkItemsSummary`: WorkItemsSummary + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.GetWorkItemsSummary`: %v\n", resp) } ``` @@ -607,7 +607,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -618,18 +618,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) ownerId := `1211bcaa32112bcef6122adb21cef1ac` // string | ID of the work item owner. (optional) # string | ID of the work item owner. (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkItemsAPI.ListWorkItems(context.Background()).Execute() - //resp, r, err := apiClient.V3.WorkItemsAPI.ListWorkItems(context.Background()).Limit(limit).Offset(offset).Count(count).OwnerId(ownerId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.ListWorkItems``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListWorkItems`: []WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.ListWorkItems`: %v\n", resp) + //resp, r, err := apiClient.V3.WorkItemsAPI.ListWorkItems(context.Background()).Limit(limit).Offset(offset).Count(count).OwnerId(ownerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.ListWorkItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListWorkItems`: []WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.ListWorkItems`: %v\n", resp) } ``` @@ -678,7 +678,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -687,18 +687,18 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item approvalItemId := `1211bcaa32112bcef6122adb21cef1ac` // string | The ID of the approval item. # string | The ID of the approval item. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkItemsAPI.RejectApprovalItem(context.Background(), id, approvalItemId).Execute() - //resp, r, err := apiClient.V3.WorkItemsAPI.RejectApprovalItem(context.Background(), id, approvalItemId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.RejectApprovalItem``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `RejectApprovalItem`: WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.RejectApprovalItem`: %v\n", resp) + //resp, r, err := apiClient.V3.WorkItemsAPI.RejectApprovalItem(context.Background(), id, approvalItemId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.RejectApprovalItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RejectApprovalItem`: WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.RejectApprovalItem`: %v\n", resp) } ``` @@ -745,7 +745,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -753,18 +753,18 @@ import ( func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkItemsAPI.RejectApprovalItemsInBulk(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.WorkItemsAPI.RejectApprovalItemsInBulk(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.RejectApprovalItemsInBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `RejectApprovalItemsInBulk`: WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.RejectApprovalItemsInBulk`: %v\n", resp) + //resp, r, err := apiClient.V3.WorkItemsAPI.RejectApprovalItemsInBulk(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.RejectApprovalItemsInBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RejectApprovalItemsInBulk`: WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.RejectApprovalItemsInBulk`: %v\n", resp) } ``` @@ -812,7 +812,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -825,22 +825,22 @@ func main() { "sendNotifications" : true }`) // WorkItemForward | - - var workItemForward v3.WorkItemForward - if err := json.Unmarshal(workitemforward, &workItemForward); err != nil { - fmt.Println("Error:", err) - return - } - + var workItemForward v3.WorkItemForward + if err := json.Unmarshal(workitemforward, &workItemForward); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.WorkItemsAPI.SendWorkItemForward(context.Background(), id).WorkItemForward(workItemForward).Execute() - //r, err := apiClient.V3.WorkItemsAPI.SendWorkItemForward(context.Background(), id).WorkItemForward(workItemForward).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.SendWorkItemForward``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.WorkItemsAPI.SendWorkItemForward(context.Background(), id).WorkItemForward(workItemForward).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.SendWorkItemForward``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -888,7 +888,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -897,24 +897,23 @@ func main() { id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item requestBody := {fieldName=fieldValue} // map[string]interface{} | Account Selection Data map, keyed on fieldName # map[string]interface{} | Account Selection Data map, keyed on fieldName - - var requestBody v3.RequestBody - if err := json.Unmarshal(requestbody, &requestBody); err != nil { - fmt.Println("Error:", err) - return - } - + var requestBody v3.RequestBody + if err := json.Unmarshal(requestbody, &requestBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkItemsAPI.SubmitAccountSelection(context.Background(), id).RequestBody(requestBody).Execute() - //resp, r, err := apiClient.V3.WorkItemsAPI.SubmitAccountSelection(context.Background(), id).RequestBody(requestBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.SubmitAccountSelection``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `SubmitAccountSelection`: WorkItems - fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.SubmitAccountSelection`: %v\n", resp) + //resp, r, err := apiClient.V3.WorkItemsAPI.SubmitAccountSelection(context.Background(), id).RequestBody(requestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkItemsAPI.SubmitAccountSelection``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SubmitAccountSelection`: WorkItems + fmt.Fprintf(os.Stdout, "Response from `WorkItemsAPI.SubmitAccountSelection`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Methods/WorkflowsAPI.md b/docs/tools/sdk/go/Reference/V3/Methods/WorkflowsAPI.md index 383ed96ac..b79c9a0ad 100644 --- a/docs/tools/sdk/go/Reference/V3/Methods/WorkflowsAPI.md +++ b/docs/tools/sdk/go/Reference/V3/Methods/WorkflowsAPI.md @@ -77,7 +77,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -85,16 +85,17 @@ import ( func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | The workflow execution ID # string | The workflow execution ID - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.WorkflowsAPI.CancelWorkflowExecution(context.Background(), id).Execute() - //r, err := apiClient.V3.WorkflowsAPI.CancelWorkflowExecution(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.CancelWorkflowExecution``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.WorkflowsAPI.CancelWorkflowExecution(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.CancelWorkflowExecution``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -142,7 +143,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -151,18 +152,18 @@ func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow createexternalexecuteworkflowrequest := []byte(``) // CreateExternalExecuteWorkflowRequest | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkflowsAPI.CreateExternalExecuteWorkflow(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.WorkflowsAPI.CreateExternalExecuteWorkflow(context.Background(), id).CreateExternalExecuteWorkflowRequest(createExternalExecuteWorkflowRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.CreateExternalExecuteWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateExternalExecuteWorkflow`: CreateExternalExecuteWorkflow200Response - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.CreateExternalExecuteWorkflow`: %v\n", resp) + //resp, r, err := apiClient.V3.WorkflowsAPI.CreateExternalExecuteWorkflow(context.Background(), id).CreateExternalExecuteWorkflowRequest(createExternalExecuteWorkflowRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.CreateExternalExecuteWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateExternalExecuteWorkflow`: CreateExternalExecuteWorkflow200Response + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.CreateExternalExecuteWorkflow`: %v\n", resp) } ``` @@ -205,7 +206,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -213,24 +214,23 @@ import ( func main() { createworkflowrequest := []byte(`{name=Send Email, owner={type=IDENTITY, id=2c91808568c529c60168cca6f90c1313, name=William Wilson}, description=Send an email to the identity who's attributes changed., definition={start=Send Email Test, steps={Send Email={actionId=sp:send-email, attributes={body=This is a test, from=sailpoint@sailpoint.com, recipientId.$=$.identity.id, subject=test}, nextStep=success, selectResult=null, type=action}, success={type=success}}}, enabled=false, trigger={type=EVENT, attributes={id=idn:identity-attributes-changed, filter=$.changes[?(@.attribute == 'manager')]}}}`) // CreateWorkflowRequest | - - var createWorkflowRequest v3.CreateWorkflowRequest - if err := json.Unmarshal(createworkflowrequest, &createWorkflowRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var createWorkflowRequest v3.CreateWorkflowRequest + if err := json.Unmarshal(createworkflowrequest, &createWorkflowRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkflowsAPI.CreateWorkflow(context.Background()).CreateWorkflowRequest(createWorkflowRequest).Execute() - //resp, r, err := apiClient.V3.WorkflowsAPI.CreateWorkflow(context.Background()).CreateWorkflowRequest(createWorkflowRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.CreateWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateWorkflow`: Workflow - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.CreateWorkflow`: %v\n", resp) + //resp, r, err := apiClient.V3.WorkflowsAPI.CreateWorkflow(context.Background()).CreateWorkflowRequest(createWorkflowRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.CreateWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateWorkflow`: Workflow + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.CreateWorkflow`: %v\n", resp) } ``` @@ -277,7 +277,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -285,18 +285,18 @@ import ( func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkflowsAPI.CreateWorkflowExternalTrigger(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.WorkflowsAPI.CreateWorkflowExternalTrigger(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.CreateWorkflowExternalTrigger``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateWorkflowExternalTrigger`: WorkflowOAuthClient - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.CreateWorkflowExternalTrigger`: %v\n", resp) + //resp, r, err := apiClient.V3.WorkflowsAPI.CreateWorkflowExternalTrigger(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.CreateWorkflowExternalTrigger``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateWorkflowExternalTrigger`: WorkflowOAuthClient + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.CreateWorkflowExternalTrigger`: %v\n", resp) } ``` @@ -343,7 +343,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -351,16 +351,17 @@ import ( func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the Workflow # string | Id of the Workflow - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.WorkflowsAPI.DeleteWorkflow(context.Background(), id).Execute() - //r, err := apiClient.V3.WorkflowsAPI.DeleteWorkflow(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.DeleteWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } + //r, err := apiClient.V3.WorkflowsAPI.DeleteWorkflow(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.DeleteWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + } ``` @@ -408,7 +409,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -417,18 +418,18 @@ func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow workflowMetrics := false // bool | disable workflow metrics (optional) (default to true) # bool | disable workflow metrics (optional) (default to true) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkflowsAPI.GetWorkflow(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.WorkflowsAPI.GetWorkflow(context.Background(), id).WorkflowMetrics(workflowMetrics).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetWorkflow`: Workflow - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflow`: %v\n", resp) + //resp, r, err := apiClient.V3.WorkflowsAPI.GetWorkflow(context.Background(), id).WorkflowMetrics(workflowMetrics).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkflow`: Workflow + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflow`: %v\n", resp) } ``` @@ -475,7 +476,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -483,18 +484,18 @@ import ( func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Workflow execution ID. # string | Workflow execution ID. - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkflowsAPI.GetWorkflowExecution(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.WorkflowsAPI.GetWorkflowExecution(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflowExecution``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetWorkflowExecution`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflowExecution`: %v\n", resp) + //resp, r, err := apiClient.V3.WorkflowsAPI.GetWorkflowExecution(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflowExecution``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkflowExecution`: map[string]interface{} + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflowExecution`: %v\n", resp) } ``` @@ -541,7 +542,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -549,18 +550,18 @@ import ( func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow execution # string | Id of the workflow execution - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkflowsAPI.GetWorkflowExecutionHistory(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.WorkflowsAPI.GetWorkflowExecutionHistory(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflowExecutionHistory``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetWorkflowExecutionHistory`: []WorkflowExecutionEvent - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflowExecutionHistory`: %v\n", resp) + //resp, r, err := apiClient.V3.WorkflowsAPI.GetWorkflowExecutionHistory(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflowExecutionHistory``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkflowExecutionHistory`: []WorkflowExecutionEvent + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflowExecutionHistory`: %v\n", resp) } ``` @@ -621,7 +622,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -633,18 +634,18 @@ func main() { count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false) filters := `status eq "Failed"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **start_time**: *eq, lt, le, gt, ge* **status**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **start_time**: *eq, lt, le, gt, ge* **status**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkflowsAPI.GetWorkflowExecutions(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.WorkflowsAPI.GetWorkflowExecutions(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflowExecutions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetWorkflowExecutions`: []WorkflowExecution - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflowExecutions`: %v\n", resp) + //resp, r, err := apiClient.V3.WorkflowsAPI.GetWorkflowExecutions(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.GetWorkflowExecutions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetWorkflowExecutions`: []WorkflowExecution + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.GetWorkflowExecutions`: %v\n", resp) } ``` @@ -688,7 +689,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -697,18 +698,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkflowsAPI.ListCompleteWorkflowLibrary(context.Background()).Execute() - //resp, r, err := apiClient.V3.WorkflowsAPI.ListCompleteWorkflowLibrary(context.Background()).Limit(limit).Offset(offset).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListCompleteWorkflowLibrary``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListCompleteWorkflowLibrary`: []ListCompleteWorkflowLibrary200ResponseInner - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListCompleteWorkflowLibrary`: %v\n", resp) + //resp, r, err := apiClient.V3.WorkflowsAPI.ListCompleteWorkflowLibrary(context.Background()).Limit(limit).Offset(offset).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListCompleteWorkflowLibrary``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListCompleteWorkflowLibrary`: []ListCompleteWorkflowLibrary200ResponseInner + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListCompleteWorkflowLibrary`: %v\n", resp) } ``` @@ -753,7 +754,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -763,18 +764,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) filters := `id eq "sp:create-campaign"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkflowsAPI.ListWorkflowLibraryActions(context.Background()).Execute() - //resp, r, err := apiClient.V3.WorkflowsAPI.ListWorkflowLibraryActions(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflowLibraryActions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListWorkflowLibraryActions`: []WorkflowLibraryAction - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflowLibraryActions`: %v\n", resp) + //resp, r, err := apiClient.V3.WorkflowsAPI.ListWorkflowLibraryActions(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflowLibraryActions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListWorkflowLibraryActions`: []WorkflowLibraryAction + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflowLibraryActions`: %v\n", resp) } ``` @@ -813,25 +814,25 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) func main() { - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkflowsAPI.ListWorkflowLibraryOperators(context.Background()).Execute() - //resp, r, err := apiClient.V3.WorkflowsAPI.ListWorkflowLibraryOperators(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflowLibraryOperators``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListWorkflowLibraryOperators`: []WorkflowLibraryOperator - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflowLibraryOperators`: %v\n", resp) + //resp, r, err := apiClient.V3.WorkflowsAPI.ListWorkflowLibraryOperators(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflowLibraryOperators``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListWorkflowLibraryOperators`: []WorkflowLibraryOperator + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflowLibraryOperators`: %v\n", resp) } ``` @@ -876,7 +877,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -886,18 +887,18 @@ func main() { offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) filters := `id eq "idn:identity-attributes-changed"` // string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* (optional) # string | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkflowsAPI.ListWorkflowLibraryTriggers(context.Background()).Execute() - //resp, r, err := apiClient.V3.WorkflowsAPI.ListWorkflowLibraryTriggers(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflowLibraryTriggers``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListWorkflowLibraryTriggers`: []WorkflowLibraryTrigger - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflowLibraryTriggers`: %v\n", resp) + //resp, r, err := apiClient.V3.WorkflowsAPI.ListWorkflowLibraryTriggers(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflowLibraryTriggers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListWorkflowLibraryTriggers`: []WorkflowLibraryTrigger + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflowLibraryTriggers`: %v\n", resp) } ``` @@ -943,7 +944,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -954,18 +955,18 @@ func main() { limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkflowsAPI.ListWorkflows(context.Background()).Execute() - //resp, r, err := apiClient.V3.WorkflowsAPI.ListWorkflows(context.Background()).TriggerId(triggerId).ConnectorInstanceId(connectorInstanceId).Limit(limit).Offset(offset).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflows``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ListWorkflows`: []Workflow - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflows`: %v\n", resp) + //resp, r, err := apiClient.V3.WorkflowsAPI.ListWorkflows(context.Background()).TriggerId(triggerId).ConnectorInstanceId(connectorInstanceId).Limit(limit).Offset(offset).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.ListWorkflows``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListWorkflows`: []Workflow + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.ListWorkflows`: %v\n", resp) } ``` @@ -1013,7 +1014,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1022,24 +1023,23 @@ func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the Workflow # string | Id of the Workflow jsonpatchoperation := []byte(`[{op=replace, path=/name, value=Send Email}, {op=replace, path=/owner, value={type=IDENTITY, id=2c91808568c529c60168cca6f90c1313, name=William Wilson}}, {op=replace, path=/description, value=Send an email to the identity who's attributes changed.}, {op=replace, path=/enabled, value=false}, {op=replace, path=/definition, value={start=Send Email Test, steps={Send Email={actionId=sp:send-email, attributes={body=This is a test, from=sailpoint@sailpoint.com, recipientId.$=$.identity.id, subject=test}, nextStep=success, selectResult=null, type=action}, success={type=success}}}}, {op=replace, path=/trigger, value={type=EVENT, attributes={id=idn:identity-attributes-changed}}}]`) // []JsonPatchOperation | - - var jsonPatchOperation v3.[]JsonPatchOperation - if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { - fmt.Println("Error:", err) - return - } - + var jsonPatchOperation []v3.JsonPatchOperation + if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkflowsAPI.PatchWorkflow(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - //resp, r, err := apiClient.V3.WorkflowsAPI.PatchWorkflow(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.PatchWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchWorkflow`: Workflow - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.PatchWorkflow`: %v\n", resp) + //resp, r, err := apiClient.V3.WorkflowsAPI.PatchWorkflow(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.PatchWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PatchWorkflow`: Workflow + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.PatchWorkflow`: %v\n", resp) } ``` @@ -1087,7 +1087,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1129,24 +1129,23 @@ func main() { "enabled" : false }`) // WorkflowBody | - - var workflowBody v3.WorkflowBody - if err := json.Unmarshal(workflowbody, &workflowBody); err != nil { - fmt.Println("Error:", err) - return - } - + var workflowBody v3.WorkflowBody + if err := json.Unmarshal(workflowbody, &workflowBody); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkflowsAPI.PutWorkflow(context.Background(), id).WorkflowBody(workflowBody).Execute() - //resp, r, err := apiClient.V3.WorkflowsAPI.PutWorkflow(context.Background(), id).WorkflowBody(workflowBody).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.PutWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PutWorkflow`: Workflow - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.PutWorkflow`: %v\n", resp) + //resp, r, err := apiClient.V3.WorkflowsAPI.PutWorkflow(context.Background(), id).WorkflowBody(workflowBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.PutWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PutWorkflow`: Workflow + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.PutWorkflow`: %v\n", resp) } ``` @@ -1194,7 +1193,7 @@ import ( "context" "fmt" "os" - + sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1203,18 +1202,18 @@ func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow testexternalexecuteworkflowrequest := []byte(``) // TestExternalExecuteWorkflowRequest | (optional) - + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkflowsAPI.TestExternalExecuteWorkflow(context.Background(), id).Execute() - //resp, r, err := apiClient.V3.WorkflowsAPI.TestExternalExecuteWorkflow(context.Background(), id).TestExternalExecuteWorkflowRequest(testExternalExecuteWorkflowRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.TestExternalExecuteWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `TestExternalExecuteWorkflow`: TestExternalExecuteWorkflow200Response - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.TestExternalExecuteWorkflow`: %v\n", resp) + //resp, r, err := apiClient.V3.WorkflowsAPI.TestExternalExecuteWorkflow(context.Background(), id).TestExternalExecuteWorkflowRequest(testExternalExecuteWorkflowRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.TestExternalExecuteWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TestExternalExecuteWorkflow`: TestExternalExecuteWorkflow200Response + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.TestExternalExecuteWorkflow`: %v\n", resp) } ``` @@ -1273,7 +1272,7 @@ import ( "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1282,24 +1281,23 @@ func main() { id := `c17bea3a-574d-453c-9e04-4365fbf5af0b` // string | Id of the workflow # string | Id of the workflow testworkflowrequest := []byte(`{input={identity={id=ee769173319b41d19ccec6cea52f237b, name=john.doe, type=IDENTITY}, changes=[{attribute=department, oldValue=sales, newValue=marketing}, {attribute=manager, oldValue={id=ee769173319b41d19ccec6c235423237b, name=nice.guy, type=IDENTITY}, newValue={id=ee769173319b41d19ccec6c235423236c, name=mean.guy, type=IDENTITY}}, {attribute=email, oldValue=john.doe@hotmail.com, newValue=john.doe@gmail.com}]}}`) // TestWorkflowRequest | - - var testWorkflowRequest v3.TestWorkflowRequest - if err := json.Unmarshal(testworkflowrequest, &testWorkflowRequest); err != nil { - fmt.Println("Error:", err) - return - } - + var testWorkflowRequest v3.TestWorkflowRequest + if err := json.Unmarshal(testworkflowrequest, &testWorkflowRequest); err != nil { + fmt.Println("Error:", err) + return + } + - configuration := sailpoint.NewDefaultConfiguration() - apiClient := sailpoint.NewAPIClient(configuration) + configuration := sailpoint.NewDefaultConfiguration() + apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkflowsAPI.TestWorkflow(context.Background(), id).TestWorkflowRequest(testWorkflowRequest).Execute() - //resp, r, err := apiClient.V3.WorkflowsAPI.TestWorkflow(context.Background(), id).TestWorkflowRequest(testWorkflowRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.TestWorkflow``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `TestWorkflow`: TestWorkflow200Response - fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.TestWorkflow`: %v\n", resp) + //resp, r, err := apiClient.V3.WorkflowsAPI.TestWorkflow(context.Background(), id).TestWorkflowRequest(testWorkflowRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WorkflowsAPI.TestWorkflow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TestWorkflow`: TestWorkflow200Response + fmt.Fprintf(os.Stdout, "Response from `WorkflowsAPI.TestWorkflow`: %v\n", resp) } ``` diff --git a/docs/tools/sdk/go/Reference/V3/Models/AccessRequest.md b/docs/tools/sdk/go/Reference/V3/Models/AccessRequest.md index 8a68beed3..0ff52532e 100644 --- a/docs/tools/sdk/go/Reference/V3/Models/AccessRequest.md +++ b/docs/tools/sdk/go/Reference/V3/Models/AccessRequest.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes **RequestType** | Pointer to [**NullableAccessRequestType**](access-request-type) | | [optional] **RequestedItems** | [**[]AccessRequestItem**](access-request-item) | | **ClientMetadata** | Pointer to **map[string]string** | Arbitrary key-value pairs. They will never be processed by the IdentityNow system but will be returned on associated APIs such as /account-activities. | [optional] -**RequestedForWithRequestedItems** | Pointer to [**[]RequestedForDtoRef**](requested-for-dto-ref) | Additional submit data structure with requestedFor containing requestedItems allowing distinction for each request item and Identity. * Can only be used when 'requestedFor' and 'requestedItems' are not separately provided * Adds ability to specify which account the user wants the access on, in case they have multiple accounts on a source * Allows the ability to request items with different remove dates * Also allows different combinations of request items and identities in the same request | [optional] +**RequestedForWithRequestedItems** | Pointer to [**[]RequestedForDtoRef**](requested-for-dto-ref) | Additional submit data structure with requestedFor containing requestedItems allowing distinction for each request item and Identity. * Can only be used when 'requestedFor' and 'requestedItems' are not separately provided * Adds ability to specify which account the user wants the access on, in case they have multiple accounts on a source * Allows the ability to request items with different remove dates * Also allows different combinations of request items and identities in the same request * Only for use in GRANT_ACCESS type requests | [optional] ## Methods diff --git a/docs/tools/sdk/go/Reference/V3/Models/AccessRequestItem.md b/docs/tools/sdk/go/Reference/V3/Models/AccessRequestItem.md index ce3a836df..a13400d67 100644 --- a/docs/tools/sdk/go/Reference/V3/Models/AccessRequestItem.md +++ b/docs/tools/sdk/go/Reference/V3/Models/AccessRequestItem.md @@ -21,7 +21,7 @@ Name | Type | Description | Notes **ClientMetadata** | Pointer to **map[string]string** | Arbitrary key-value pairs. They will never be processed by the IdentityNow system but will be returned on associated APIs such as /account-activities and /access-request-status. | [optional] **RemoveDate** | Pointer to **SailPointTime** | The date the role or access profile or entitlement is no longer assigned to the specified identity. Also known as the expiration date. * Specify a date in the future. * The current SLA for the deprovisioning is 24 hours. * This date can be modified to either extend or decrease the duration of access item assignments for the specified identity. You can change the expiration date for requests for yourself or direct reports, but you cannot remove an expiration date on an already approved item. If the access request has not been approved, you can cancel it and submit a new one without the expiration. If it has already been approved, then you have to revoke the access and then re-request without the expiration. | [optional] **AssignmentId** | Pointer to **NullableString** | The assignmentId for a specific role assignment on the identity. This id is used to revoke that specific roleAssignment on that identity. * For use with REVOKE_ACCESS requests for roles for identities with multiple accounts on a single source. | [optional] -**NativeIdentity** | Pointer to **NullableString** | The 'distinguishedName' field for an account on the identity, also called nativeIdentity. This nativeIdentity is used to revoke a specific attributeAssignment on the identity. * For use with REVOKE_ACCESS requests for entitlements for identities with multiple accounts on a single source. | [optional] +**NativeIdentity** | Pointer to **NullableString** | The unique identifier for an account on the identity, designated as the account ID attribute in the source's account schema. This is used to revoke a specific attributeAssignment on the identity. * For use with REVOKE_ACCESS requests for entitlements for identities with multiple accounts on a single source. | [optional] ## Methods diff --git a/docs/tools/sdk/go/Reference/V3/Models/RequestedItemDtoRef.md b/docs/tools/sdk/go/Reference/V3/Models/RequestedItemDtoRef.md index 5a1e8ffe4..57f5726f3 100644 --- a/docs/tools/sdk/go/Reference/V3/Models/RequestedItemDtoRef.md +++ b/docs/tools/sdk/go/Reference/V3/Models/RequestedItemDtoRef.md @@ -20,8 +20,6 @@ Name | Type | Description | Notes **Comment** | Pointer to **string** | Comment provided by requester. * Comment is required when the request is of type Revoke Access. | [optional] **ClientMetadata** | Pointer to **map[string]string** | Arbitrary key-value pairs. They will never be processed by the IdentityNow system but will be returned on associated APIs such as /account-activities and /access-request-status. | [optional] **RemoveDate** | Pointer to **SailPointTime** | The date the role or access profile or entitlement is no longer assigned to the specified identity. Also known as the expiration date. * Specify a date in the future. * The current SLA for the deprovisioning is 24 hours. * This date can be modified to either extend or decrease the duration of access item assignments for the specified identity. You can change the expiration date for requests for yourself or direct reports, but you cannot remove an expiration date on an already approved item. If the access request has not been approved, you can cancel it and submit a new one without the expiration. If it has already been approved, then you have to revoke the access and then re-request without the expiration. | [optional] -**AssignmentId** | Pointer to **NullableString** | The assignmentId for a specific role assignment on the identity. This id is used to revoke that specific roleAssignment on that identity. * For use with REVOKE_ACCESS requests for roles for identities with multiple accounts on a single source. | [optional] -**NativeIdentity** | Pointer to **NullableString** | The 'distinguishedName' field for an account on the identity, also called nativeIdentity. This nativeIdentity is used to revoke a specific attributeAssignment on the identity. * For use with REVOKE_ACCESS requests for entitlements for identities with multiple accounts on a single source. | [optional] **AccountSelection** | Pointer to [**[]SourceItemRef**](source-item-ref) | The accounts where the access item will be provisioned to * Includes selections performed by the user in the event of multiple accounts existing on the same source * Also includes details for sources where user only has one account | [optional] ## Methods @@ -158,76 +156,6 @@ SetRemoveDate sets RemoveDate field to given value. HasRemoveDate returns a boolean if a field has been set. -### GetAssignmentId - -`func (o *RequestedItemDtoRef) GetAssignmentId() string` - -GetAssignmentId returns the AssignmentId field if non-nil, zero value otherwise. - -### GetAssignmentIdOk - -`func (o *RequestedItemDtoRef) GetAssignmentIdOk() (*string, bool)` - -GetAssignmentIdOk returns a tuple with the AssignmentId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAssignmentId - -`func (o *RequestedItemDtoRef) SetAssignmentId(v string)` - -SetAssignmentId sets AssignmentId field to given value. - -### HasAssignmentId - -`func (o *RequestedItemDtoRef) HasAssignmentId() bool` - -HasAssignmentId returns a boolean if a field has been set. - -### SetAssignmentIdNil - -`func (o *RequestedItemDtoRef) SetAssignmentIdNil(b bool)` - - SetAssignmentIdNil sets the value for AssignmentId to be an explicit nil - -### UnsetAssignmentId -`func (o *RequestedItemDtoRef) UnsetAssignmentId()` - -UnsetAssignmentId ensures that no value is present for AssignmentId, not even an explicit nil -### GetNativeIdentity - -`func (o *RequestedItemDtoRef) GetNativeIdentity() string` - -GetNativeIdentity returns the NativeIdentity field if non-nil, zero value otherwise. - -### GetNativeIdentityOk - -`func (o *RequestedItemDtoRef) GetNativeIdentityOk() (*string, bool)` - -GetNativeIdentityOk returns a tuple with the NativeIdentity field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNativeIdentity - -`func (o *RequestedItemDtoRef) SetNativeIdentity(v string)` - -SetNativeIdentity sets NativeIdentity field to given value. - -### HasNativeIdentity - -`func (o *RequestedItemDtoRef) HasNativeIdentity() bool` - -HasNativeIdentity returns a boolean if a field has been set. - -### SetNativeIdentityNil - -`func (o *RequestedItemDtoRef) SetNativeIdentityNil(b bool)` - - SetNativeIdentityNil sets the value for NativeIdentity to be an explicit nil - -### UnsetNativeIdentity -`func (o *RequestedItemDtoRef) UnsetNativeIdentity()` - -UnsetNativeIdentity ensures that no value is present for NativeIdentity, not even an explicit nil ### GetAccountSelection `func (o *RequestedItemDtoRef) GetAccountSelection() []SourceItemRef` diff --git a/static/code-examples/beta/go_code_examples_overlay.yaml b/static/code-examples/beta/go_code_examples_overlay.yaml index e226423b8..7ef5973f7 100644 --- a/static/code-examples/beta/go_code_examples_overlay.yaml +++ b/static/code-examples/beta/go_code_examples_overlay.yaml @@ -10,7 +10,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21,7 +21,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessModelMetadataAPI.GetAccessModelMetadataAttribute(context.Background(), key).Execute() //resp, r, err := apiClient.Beta.AccessModelMetadataAPI.GetAccessModelMetadataAttribute(context.Background(), key).Execute() @@ -44,7 +44,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -56,7 +56,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessModelMetadataAPI.GetAccessModelMetadataAttributeValue(context.Background(), key, value).Execute() //resp, r, err := apiClient.Beta.AccessModelMetadataAPI.GetAccessModelMetadataAttributeValue(context.Background(), key, value).Execute() @@ -79,7 +79,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -90,7 +90,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessModelMetadataAPI.ListAccessModelMetadataAttribute(context.Background()).Execute() //resp, r, err := apiClient.Beta.AccessModelMetadataAPI.ListAccessModelMetadataAttribute(context.Background()).Filters(filters).Execute() @@ -113,7 +113,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -124,7 +124,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessModelMetadataAPI.ListAccessModelMetadataAttributeValue(context.Background(), key).Execute() //resp, r, err := apiClient.Beta.AccessModelMetadataAPI.ListAccessModelMetadataAttributeValue(context.Background(), key).Execute() @@ -147,7 +147,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -249,7 +249,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessProfilesAPI.CreateAccessProfile(context.Background()).AccessProfile(accessProfile).Execute() //resp, r, err := apiClient.Beta.AccessProfilesAPI.CreateAccessProfile(context.Background()).AccessProfile(accessProfile).Execute() @@ -272,7 +272,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -283,7 +283,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.AccessProfilesAPI.DeleteAccessProfile(context.Background(), id).Execute() //r, err := apiClient.Beta.AccessProfilesAPI.DeleteAccessProfile(context.Background(), id).Execute() @@ -304,7 +304,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -324,7 +324,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessProfilesAPI.DeleteAccessProfilesInBulk(context.Background()).AccessProfileBulkDeleteRequest(accessProfileBulkDeleteRequest).Execute() //resp, r, err := apiClient.Beta.AccessProfilesAPI.DeleteAccessProfilesInBulk(context.Background()).AccessProfileBulkDeleteRequest(accessProfileBulkDeleteRequest).Execute() @@ -347,7 +347,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -358,7 +358,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessProfilesAPI.GetAccessProfile(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.AccessProfilesAPI.GetAccessProfile(context.Background(), id).Execute() @@ -381,7 +381,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -397,7 +397,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessProfilesAPI.GetAccessProfileEntitlements(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.AccessProfilesAPI.GetAccessProfileEntitlements(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -420,7 +420,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -438,7 +438,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessProfilesAPI.ListAccessProfiles(context.Background()).Execute() //resp, r, err := apiClient.Beta.AccessProfilesAPI.ListAccessProfiles(context.Background()).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).Execute() @@ -461,7 +461,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -471,7 +471,7 @@ jsonpatchoperation := []byte(`[{op=add, path=/entitlements, value=[{id=2c9180857725c14301772a93bb77242d, type=ENTITLEMENT, name=AD User Group}]}]`) // []JsonPatchOperation | - var jsonPatchOperation beta.[]JsonPatchOperation + var jsonPatchOperation []beta.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -479,7 +479,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessProfilesAPI.PatchAccessProfile(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.Beta.AccessProfilesAPI.PatchAccessProfile(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -502,7 +502,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -511,7 +511,7 @@ accessprofilebulkupdaterequestinner := []byte(`[{id=464ae7bf-791e-49fd-b746-06a2e4a89635, requestable=false}]`) // []AccessProfileBulkUpdateRequestInner | - var accessProfileBulkUpdateRequestInner beta.[]AccessProfileBulkUpdateRequestInner + var accessProfileBulkUpdateRequestInner []beta.AccessProfileBulkUpdateRequestInner if err := json.Unmarshal(accessprofilebulkupdaterequestinner, &accessProfileBulkUpdateRequestInner); err != nil { fmt.Println("Error:", err) return @@ -519,7 +519,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessProfilesAPI.UpdateAccessProfilesInBulk(context.Background()).AccessProfileBulkUpdateRequestInner(accessProfileBulkUpdateRequestInner).Execute() //resp, r, err := apiClient.Beta.AccessProfilesAPI.UpdateAccessProfilesInBulk(context.Background()).AccessProfileBulkUpdateRequestInner(accessProfileBulkUpdateRequestInner).Execute() @@ -542,7 +542,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -568,7 +568,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.ApproveAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() //resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.ApproveAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() @@ -591,7 +591,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -612,7 +612,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.ForwardAccessRequest(context.Background(), approvalId).ForwardApprovalDto(forwardApprovalDto).Execute() //resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.ForwardAccessRequest(context.Background(), approvalId).ForwardApprovalDto(forwardApprovalDto).Execute() @@ -635,7 +635,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -647,7 +647,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary(context.Background()).Execute() //resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary(context.Background()).OwnerId(ownerId).FromDate(fromDate).Execute() @@ -670,7 +670,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -686,7 +686,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.ListCompletedApprovals(context.Background()).Execute() //resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.ListCompletedApprovals(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -709,7 +709,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -725,7 +725,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.ListPendingApprovals(context.Background()).Execute() //resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.ListPendingApprovals(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -748,7 +748,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -774,7 +774,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.RejectAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() //resp, r, err := apiClient.Beta.AccessRequestApprovalsAPI.RejectAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() @@ -797,7 +797,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -810,7 +810,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessRequestIdentityMetricsAPI.GetAccessRequestIdentityMetrics(context.Background(), identityId, requestedObjectId, type_).Execute() //resp, r, err := apiClient.Beta.AccessRequestIdentityMetricsAPI.GetAccessRequestIdentityMetrics(context.Background(), identityId, requestedObjectId, type_).Execute() @@ -833,7 +833,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -853,7 +853,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessRequestsAPI.CancelAccessRequest(context.Background()).CancelAccessRequest(cancelAccessRequest).Execute() //resp, r, err := apiClient.Beta.AccessRequestsAPI.CancelAccessRequest(context.Background()).CancelAccessRequest(cancelAccessRequest).Execute() @@ -876,7 +876,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -898,7 +898,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessRequestsAPI.CloseAccessRequest(context.Background()).CloseAccessRequest(closeAccessRequest).Execute() //resp, r, err := apiClient.Beta.AccessRequestsAPI.CloseAccessRequest(context.Background()).CloseAccessRequest(closeAccessRequest).Execute() @@ -921,7 +921,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1019,9 +1019,7 @@ } ], "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE", - "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", - "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + "type" : "ACCESS_PROFILE" }, { "clientMetadata" : { "requestedAppName" : "test-app", @@ -1049,9 +1047,7 @@ } ], "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE", - "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", - "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + "type" : "ACCESS_PROFILE" } ] }, { "identityId" : "cb89bc2f1ee6445fbea12224c526ba3a", @@ -1082,9 +1078,7 @@ } ], "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE", - "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", - "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + "type" : "ACCESS_PROFILE" }, { "clientMetadata" : { "requestedAppName" : "test-app", @@ -1112,9 +1106,7 @@ } ], "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE", - "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", - "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + "type" : "ACCESS_PROFILE" } ] } ] }`) // AccessRequest | @@ -1128,7 +1120,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessRequestsAPI.CreateAccessRequest(context.Background()).AccessRequest(accessRequest).Execute() //resp, r, err := apiClient.Beta.AccessRequestsAPI.CreateAccessRequest(context.Background()).AccessRequest(accessRequest).Execute() @@ -1151,7 +1143,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1161,7 +1153,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessRequestsAPI.GetAccessRequestConfig(context.Background()).Execute() //resp, r, err := apiClient.Beta.AccessRequestsAPI.GetAccessRequestConfig(context.Background()).Execute() @@ -1184,7 +1176,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1204,7 +1196,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessRequestsAPI.ListAccessRequestStatus(context.Background()).Execute() //resp, r, err := apiClient.Beta.AccessRequestsAPI.ListAccessRequestStatus(context.Background()).RequestedFor(requestedFor).RequestedBy(requestedBy).RegardingIdentity(regardingIdentity).AssignedTo(assignedTo).Count(count).Limit(limit).Offset(offset).Filters(filters).Sorters(sorters).RequestState(requestState).Execute() @@ -1227,7 +1219,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1269,7 +1261,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccessRequestsAPI.SetAccessRequestConfig(context.Background()).AccessRequestConfig(accessRequestConfig).Execute() //resp, r, err := apiClient.Beta.AccessRequestsAPI.SetAccessRequestConfig(context.Background()).AccessRequestConfig(accessRequestConfig).Execute() @@ -1292,7 +1284,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1303,7 +1295,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountActivitiesAPI.GetAccountActivity(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.AccountActivitiesAPI.GetAccountActivity(context.Background(), id).Execute() @@ -1326,7 +1318,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1345,7 +1337,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountActivitiesAPI.ListAccountActivities(context.Background()).Execute() //resp, r, err := apiClient.Beta.AccountActivitiesAPI.ListAccountActivities(context.Background()).RequestedFor(requestedFor).RequestedBy(requestedBy).RegardingIdentity(regardingIdentity).Type_(type_).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -1368,7 +1360,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1379,7 +1371,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountAggregationsAPI.GetAccountAggregationStatus(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.AccountAggregationsAPI.GetAccountAggregationStatus(context.Background(), id).Execute() @@ -1402,7 +1394,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1428,7 +1420,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.CreateAccount(context.Background()).AccountAttributesCreate(accountAttributesCreate).Execute() //resp, r, err := apiClient.Beta.AccountsAPI.CreateAccount(context.Background()).AccountAttributesCreate(accountAttributesCreate).Execute() @@ -1451,7 +1443,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1462,7 +1454,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.DeleteAccount(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.AccountsAPI.DeleteAccount(context.Background(), id).Execute() @@ -1485,7 +1477,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1496,7 +1488,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.DeleteAccountAsync(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.AccountsAPI.DeleteAccountAsync(context.Background(), id).Execute() @@ -1519,7 +1511,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1540,7 +1532,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.DisableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() //resp, r, err := apiClient.Beta.AccountsAPI.DisableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() @@ -1563,7 +1555,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1574,7 +1566,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.DisableAccountForIdentity(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.AccountsAPI.DisableAccountForIdentity(context.Background(), id).Execute() @@ -1597,7 +1589,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1616,7 +1608,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.DisableAccountsForIdentities(context.Background()).IdentitiesAccountsBulkRequest(identitiesAccountsBulkRequest).Execute() //resp, r, err := apiClient.Beta.AccountsAPI.DisableAccountsForIdentities(context.Background()).IdentitiesAccountsBulkRequest(identitiesAccountsBulkRequest).Execute() @@ -1639,7 +1631,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1660,7 +1652,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.EnableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() //resp, r, err := apiClient.Beta.AccountsAPI.EnableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() @@ -1683,7 +1675,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1694,7 +1686,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.EnableAccountForIdentity(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.AccountsAPI.EnableAccountForIdentity(context.Background(), id).Execute() @@ -1717,7 +1709,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1736,7 +1728,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.EnableAccountsForIdentities(context.Background()).IdentitiesAccountsBulkRequest(identitiesAccountsBulkRequest).Execute() //resp, r, err := apiClient.Beta.AccountsAPI.EnableAccountsForIdentities(context.Background()).IdentitiesAccountsBulkRequest(identitiesAccountsBulkRequest).Execute() @@ -1759,7 +1751,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1770,7 +1762,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.GetAccount(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.AccountsAPI.GetAccount(context.Background(), id).Execute() @@ -1793,7 +1785,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1807,7 +1799,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.GetAccountEntitlements(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.AccountsAPI.GetAccountEntitlements(context.Background(), id).Offset(offset).Limit(limit).Count(count).Execute() @@ -1830,7 +1822,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1846,7 +1838,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.ListAccounts(context.Background()).Execute() //resp, r, err := apiClient.Beta.AccountsAPI.ListAccounts(context.Background()).DetailLevel(detailLevel).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -1869,7 +1861,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1895,7 +1887,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.PutAccount(context.Background(), id).AccountAttributes(accountAttributes).Execute() //resp, r, err := apiClient.Beta.AccountsAPI.PutAccount(context.Background(), id).AccountAttributes(accountAttributes).Execute() @@ -1918,7 +1910,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1929,7 +1921,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.SubmitReloadAccount(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.AccountsAPI.SubmitReloadAccount(context.Background(), id).Execute() @@ -1952,7 +1944,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1974,7 +1966,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.UnlockAccount(context.Background(), id).AccountUnlockRequest(accountUnlockRequest).Execute() //resp, r, err := apiClient.Beta.AccountsAPI.UnlockAccount(context.Background(), id).AccountUnlockRequest(accountUnlockRequest).Execute() @@ -1997,7 +1989,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2007,7 +1999,7 @@ requestbody := []byte(`{Uncorrelate account={description=Remove account from Identity, value=[{op=remove, path=/identityId}]}, Reassign account={description=Move account from one Identity to another Identity, value=[{op=replace, path=/identityId, value=2c9180857725c14301772a93bb77242d}]}, Add account attribute={description=Add flat file account's attribute, value=[{op=add, path=/attributes/familyName, value=Smith}]}, Replace account attribute={description=Replace flat file account's attribute, value=[{op=replace, path=/attributes/familyName, value=Smith}]}, Remove account attribute={description=Remove flat file account's attribute, value=[{op=remove, path=/attributes/familyName}]}}`) // []map[string]interface{} | A list of account update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - var requestBody beta.[]RequestBody + var requestBody []beta.RequestBody if err := json.Unmarshal(requestbody, &requestBody); err != nil { fmt.Println("Error:", err) return @@ -2015,7 +2007,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountsAPI.UpdateAccount(context.Background(), id).RequestBody(requestBody).Execute() //resp, r, err := apiClient.Beta.AccountsAPI.UpdateAccount(context.Background(), id).RequestBody(requestBody).Execute() @@ -2038,7 +2030,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2053,7 +2045,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AccountUsagesAPI.GetUsagesByAccountId(context.Background(), accountId).Execute() //resp, r, err := apiClient.Beta.AccountUsagesAPI.GetUsagesByAccountId(context.Background(), accountId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() @@ -2076,7 +2068,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2087,7 +2079,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.ApplicationDiscoveryAPI.GetDiscoveredApplicationByID(context.Background(), id).Execute() //r, err := apiClient.Beta.ApplicationDiscoveryAPI.GetDiscoveredApplicationByID(context.Background(), id).Execute() @@ -2108,7 +2100,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2123,7 +2115,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ApplicationDiscoveryAPI.GetDiscoveredApplications(context.Background()).Execute() //resp, r, err := apiClient.Beta.ApplicationDiscoveryAPI.GetDiscoveredApplications(context.Background()).Limit(limit).Offset(offset).Detail(detail).Filter(filter).Sorters(sorters).Execute() @@ -2146,7 +2138,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2156,7 +2148,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() //resp, r, err := apiClient.Beta.ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() @@ -2179,7 +2171,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2191,7 +2183,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.ApplicationDiscoveryAPI.PatchDiscoveredApplicationByID(context.Background(), id).Execute() //r, err := apiClient.Beta.ApplicationDiscoveryAPI.PatchDiscoveredApplicationByID(context.Background(), id).JsonPatchOperations(jsonPatchOperations).Execute() @@ -2212,7 +2204,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2223,7 +2215,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate(context.Background()).File(file).Execute() //r, err := apiClient.Beta.ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate(context.Background()).File(file).Execute() @@ -2244,7 +2236,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2255,7 +2247,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ApprovalsAPI.GetApproval(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.ApprovalsAPI.GetApproval(context.Background(), id).Execute() @@ -2278,7 +2270,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2291,7 +2283,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ApprovalsAPI.GetApprovals(context.Background()).Execute() //resp, r, err := apiClient.Beta.ApprovalsAPI.GetApprovals(context.Background()).Mine(mine).RequesterId(requesterId).Filters(filters).Execute() @@ -2314,7 +2306,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2340,7 +2332,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AppsAPI.CreateSourceApp(context.Background()).SourceAppCreateDto(sourceAppCreateDto).Execute() //resp, r, err := apiClient.Beta.AppsAPI.CreateSourceApp(context.Background()).SourceAppCreateDto(sourceAppCreateDto).Execute() @@ -2363,7 +2355,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2374,7 +2366,7 @@ limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - var requestBody beta.[]RequestBody + var requestBody []beta.RequestBody if err := json.Unmarshal(requestbody, &requestBody); err != nil { fmt.Println("Error:", err) return @@ -2382,7 +2374,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AppsAPI.DeleteAccessProfilesFromSourceAppByBulk(context.Background(), id).RequestBody(requestBody).Execute() //resp, r, err := apiClient.Beta.AppsAPI.DeleteAccessProfilesFromSourceAppByBulk(context.Background(), id).RequestBody(requestBody).Limit(limit).Execute() @@ -2405,7 +2397,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2416,7 +2408,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AppsAPI.DeleteSourceApp(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.AppsAPI.DeleteSourceApp(context.Background(), id).Execute() @@ -2439,7 +2431,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2450,7 +2442,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AppsAPI.GetSourceApp(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.AppsAPI.GetSourceApp(context.Background(), id).Execute() @@ -2473,7 +2465,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2487,7 +2479,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AppsAPI.ListAccessProfilesForSourceApp(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.AppsAPI.ListAccessProfilesForSourceApp(context.Background(), id).Limit(limit).Offset(offset).Filters(filters).Execute() @@ -2510,7 +2502,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2525,7 +2517,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AppsAPI.ListAllSourceApp(context.Background()).Execute() //resp, r, err := apiClient.Beta.AppsAPI.ListAllSourceApp(context.Background()).Limit(limit).Count(count).Offset(offset).Sorters(sorters).Filters(filters).Execute() @@ -2548,7 +2540,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2562,7 +2554,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AppsAPI.ListAllUserApps(context.Background()).Filters(filters).Execute() //resp, r, err := apiClient.Beta.AppsAPI.ListAllUserApps(context.Background()).Filters(filters).Limit(limit).Count(count).Offset(offset).Execute() @@ -2585,7 +2577,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2600,7 +2592,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AppsAPI.ListAssignedSourceApp(context.Background()).Execute() //resp, r, err := apiClient.Beta.AppsAPI.ListAssignedSourceApp(context.Background()).Limit(limit).Count(count).Offset(offset).Sorters(sorters).Filters(filters).Execute() @@ -2623,7 +2615,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2637,7 +2629,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AppsAPI.ListAvailableAccountsForUserApp(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.AppsAPI.ListAvailableAccountsForUserApp(context.Background(), id).Limit(limit).Count(count).Offset(offset).Execute() @@ -2660,7 +2652,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2675,7 +2667,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AppsAPI.ListAvailableSourceApps(context.Background()).Execute() //resp, r, err := apiClient.Beta.AppsAPI.ListAvailableSourceApps(context.Background()).Limit(limit).Count(count).Offset(offset).Sorters(sorters).Filters(filters).Execute() @@ -2698,7 +2690,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2712,7 +2704,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AppsAPI.ListOwnedUserApps(context.Background()).Execute() //resp, r, err := apiClient.Beta.AppsAPI.ListOwnedUserApps(context.Background()).Limit(limit).Count(count).Offset(offset).Filters(filters).Execute() @@ -2735,7 +2727,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2747,7 +2739,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AppsAPI.PatchSourceApp(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.AppsAPI.PatchSourceApp(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -2770,7 +2762,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2782,7 +2774,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AppsAPI.PatchUserApp(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.AppsAPI.PatchUserApp(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -2805,7 +2797,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2827,7 +2819,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.AppsAPI.UpdateSourceAppsInBulk(context.Background()).Execute() //r, err := apiClient.Beta.AppsAPI.UpdateSourceAppsInBulk(context.Background()).SourceAppBulkUpdateRequest(sourceAppBulkUpdateRequest).Execute() @@ -2848,7 +2840,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2859,7 +2851,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AuthProfileAPI.GetProfileConfig(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.AuthProfileAPI.GetProfileConfig(context.Background(), id).Execute() @@ -2882,7 +2874,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2892,7 +2884,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AuthProfileAPI.GetProfileConfigList(context.Background()).Execute() //resp, r, err := apiClient.Beta.AuthProfileAPI.GetProfileConfigList(context.Background()).Execute() @@ -2915,7 +2907,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2925,7 +2917,7 @@ jsonpatchoperation := []byte(``) // []JsonPatchOperation | - var jsonPatchOperation beta.[]JsonPatchOperation + var jsonPatchOperation []beta.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -2933,7 +2925,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.AuthProfileAPI.PatchProfileConfig(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.Beta.AuthProfileAPI.PatchProfileConfig(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -2956,7 +2948,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2970,7 +2962,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.CompleteCampaign(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.CompleteCampaign(context.Background(), id).CompleteCampaignOptions(completeCampaignOptions).Execute() @@ -2993,7 +2985,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3118,7 +3110,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.CreateCampaign(context.Background()).Campaign(campaign).Execute() //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.CreateCampaign(context.Background()).Campaign(campaign).Execute() @@ -3141,7 +3133,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" "time" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -3282,7 +3274,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.CreateCampaignTemplate(context.Background()).CampaignTemplate(campaignTemplate).Execute() //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.CreateCampaignTemplate(context.Background()).CampaignTemplate(campaignTemplate).Execute() @@ -3305,7 +3297,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3316,7 +3308,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.CertificationCampaignsAPI.DeleteCampaignTemplate(context.Background(), id).Execute() //r, err := apiClient.Beta.CertificationCampaignsAPI.DeleteCampaignTemplate(context.Background(), id).Execute() @@ -3337,7 +3329,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3348,7 +3340,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.CertificationCampaignsAPI.DeleteCampaignTemplateSchedule(context.Background(), id).Execute() //r, err := apiClient.Beta.CertificationCampaignsAPI.DeleteCampaignTemplateSchedule(context.Background(), id).Execute() @@ -3369,7 +3361,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3388,7 +3380,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.DeleteCampaigns(context.Background()).DeleteCampaignsRequest(deleteCampaignsRequest).Execute() //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.DeleteCampaigns(context.Background()).DeleteCampaignsRequest(deleteCampaignsRequest).Execute() @@ -3411,7 +3403,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3427,7 +3419,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetActiveCampaigns(context.Background()).Execute() //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetActiveCampaigns(context.Background()).Detail(detail).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -3450,7 +3442,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3461,7 +3453,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaign(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaign(context.Background(), id).Execute() @@ -3484,7 +3476,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3495,7 +3487,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaignReports(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaignReports(context.Background(), id).Execute() @@ -3518,7 +3510,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3528,7 +3520,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaignReportsConfig(context.Background()).Execute() //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaignReportsConfig(context.Background()).Execute() @@ -3551,7 +3543,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3562,7 +3554,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaignTemplate(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaignTemplate(context.Background(), id).Execute() @@ -3585,7 +3577,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3596,7 +3588,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaignTemplateSchedule(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaignTemplateSchedule(context.Background(), id).Execute() @@ -3619,7 +3611,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3634,7 +3626,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaignTemplates(context.Background()).Execute() //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.GetCampaignTemplates(context.Background()).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() @@ -3657,7 +3649,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3682,7 +3674,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.Move(context.Background(), id).AdminReviewReassign(adminReviewReassign).Execute() //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.Move(context.Background(), id).AdminReviewReassign(adminReviewReassign).Execute() @@ -3705,7 +3697,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3715,7 +3707,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/description, value=Updated description!}, {op=replace, path=/campaign/filter/id, value=ff80818155fe8c080155fe8d925b0316}]`) // []JsonPatchOperation | A list of campaign update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * deadlineDuration * campaign (all fields that are allowed during create) - var jsonPatchOperation beta.[]JsonPatchOperation + var jsonPatchOperation []beta.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -3723,7 +3715,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.PatchCampaignTemplate(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.PatchCampaignTemplate(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -3746,7 +3738,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3765,7 +3757,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.SetCampaignReportsConfig(context.Background()).CampaignReportsConfig(campaignReportsConfig).Execute() //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.SetCampaignReportsConfig(context.Background()).CampaignReportsConfig(campaignReportsConfig).Execute() @@ -3788,7 +3780,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3819,7 +3811,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.CertificationCampaignsAPI.SetCampaignTemplateSchedule(context.Background(), id).Execute() //r, err := apiClient.Beta.CertificationCampaignsAPI.SetCampaignTemplateSchedule(context.Background(), id).Schedule(schedule).Execute() @@ -3840,7 +3832,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3854,7 +3846,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.StartCampaign(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.StartCampaign(context.Background(), id).ActivateCampaignOptions(activateCampaignOptions).Execute() @@ -3877,7 +3869,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3888,7 +3880,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.StartCampaignRemediationScan(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.StartCampaignRemediationScan(context.Background(), id).Execute() @@ -3911,7 +3903,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3923,7 +3915,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.StartCampaignReport(context.Background(), id, type_).Execute() //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.StartCampaignReport(context.Background(), id, type_).Execute() @@ -3946,7 +3938,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3957,7 +3949,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.StartGenerateCampaignTemplate(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.StartGenerateCampaignTemplate(context.Background(), id).Execute() @@ -3980,7 +3972,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3990,7 +3982,7 @@ requestbody := []byte(`[{op=replace, path=/name, value=This field has been updated!}, {op=copy, from=/name, path=/description}]`) // []map[string]interface{} | A list of campaign update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The fields that can be patched differ based on the status of the campaign. When the campaign is in the *STAGED* status, you can patch these fields: * name * description * recommendationsEnabled * deadline * emailNotificationEnabled * autoRevokeAllowed When the campaign is in the *ACTIVE* status, you can patch these fields: * deadline - var requestBody beta.[]RequestBody + var requestBody []beta.RequestBody if err := json.Unmarshal(requestbody, &requestBody); err != nil { fmt.Println("Error:", err) return @@ -3998,7 +3990,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationCampaignsAPI.UpdateCampaign(context.Background(), id).RequestBody(requestBody).Execute() //resp, r, err := apiClient.Beta.CertificationCampaignsAPI.UpdateCampaign(context.Background(), id).RequestBody(requestBody).Execute() @@ -4021,7 +4013,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4037,7 +4029,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationsAPI.GetIdentityCertificationItemPermissions(context.Background(), certificationId, itemId).Execute() //resp, r, err := apiClient.Beta.CertificationsAPI.GetIdentityCertificationItemPermissions(context.Background(), certificationId, itemId).Filters(filters).Limit(limit).Offset(offset).Count(count).Execute() @@ -4060,7 +4052,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4071,7 +4063,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationsAPI.GetIdentityCertificationPendingTasks(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.CertificationsAPI.GetIdentityCertificationPendingTasks(context.Background(), id).Execute() @@ -4094,7 +4086,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4106,7 +4098,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationsAPI.GetIdentityCertificationTaskStatus(context.Background(), id, taskId).Execute() //resp, r, err := apiClient.Beta.CertificationsAPI.GetIdentityCertificationTaskStatus(context.Background(), id, taskId).Execute() @@ -4129,7 +4121,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4145,7 +4137,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationsAPI.ListCertificationReviewers(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.CertificationsAPI.ListCertificationReviewers(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -4168,7 +4160,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4184,7 +4176,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationsAPI.ListCertifications(context.Background()).Execute() //resp, r, err := apiClient.Beta.CertificationsAPI.ListCertifications(context.Background()).ReviewerIdentitiy(reviewerIdentitiy).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -4207,7 +4199,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4235,7 +4227,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CertificationsAPI.SubmitReassignCertsAsync(context.Background(), id).ReviewReassign(reviewReassign).Execute() //resp, r, err := apiClient.Beta.CertificationsAPI.SubmitReassignCertsAsync(context.Background(), id).ReviewReassign(reviewReassign).Execute() @@ -4258,7 +4250,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4300,7 +4292,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ConnectorRuleManagementAPI.CreateConnectorRule(context.Background()).ConnectorRuleCreateRequest(connectorRuleCreateRequest).Execute() //resp, r, err := apiClient.Beta.ConnectorRuleManagementAPI.CreateConnectorRule(context.Background()).ConnectorRuleCreateRequest(connectorRuleCreateRequest).Execute() @@ -4323,7 +4315,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4334,7 +4326,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.ConnectorRuleManagementAPI.DeleteConnectorRule(context.Background(), id).Execute() //r, err := apiClient.Beta.ConnectorRuleManagementAPI.DeleteConnectorRule(context.Background(), id).Execute() @@ -4355,7 +4347,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4366,7 +4358,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ConnectorRuleManagementAPI.GetConnectorRule(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.ConnectorRuleManagementAPI.GetConnectorRule(context.Background(), id).Execute() @@ -4389,7 +4381,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4399,7 +4391,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ConnectorRuleManagementAPI.GetConnectorRuleList(context.Background()).Execute() //resp, r, err := apiClient.Beta.ConnectorRuleManagementAPI.GetConnectorRuleList(context.Background()).Execute() @@ -4422,7 +4414,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4460,7 +4452,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ConnectorRuleManagementAPI.UpdateConnectorRule(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.ConnectorRuleManagementAPI.UpdateConnectorRule(context.Background(), id).ConnectorRuleUpdateRequest(connectorRuleUpdateRequest).Execute() @@ -4483,7 +4475,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4503,7 +4495,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ConnectorRuleManagementAPI.ValidateConnectorRule(context.Background()).SourceCode(sourceCode).Execute() //resp, r, err := apiClient.Beta.ConnectorRuleManagementAPI.ValidateConnectorRule(context.Background()).SourceCode(sourceCode).Execute() @@ -4526,7 +4518,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4541,7 +4533,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ConnectorsAPI.GetConnectorList(context.Background()).Execute() //resp, r, err := apiClient.Beta.ConnectorsAPI.GetConnectorList(context.Background()).Filters(filters).Limit(limit).Offset(offset).Count(count).Locale(locale).Execute() @@ -4564,7 +4556,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4685,7 +4677,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.CreateFormDefinition(context.Background()).Execute() //resp, r, err := apiClient.Beta.CustomFormsAPI.CreateFormDefinition(context.Background()).CreateFormDefinitionRequest(createFormDefinitionRequest).Execute() @@ -4708,7 +4700,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4829,7 +4821,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.CreateFormDefinitionByTemplate(context.Background()).Execute() //resp, r, err := apiClient.Beta.CustomFormsAPI.CreateFormDefinitionByTemplate(context.Background()).CreateFormDefinitionRequest(createFormDefinitionRequest).Execute() @@ -4852,7 +4844,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4871,7 +4863,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.CreateFormDefinitionDynamicSchema(context.Background()).Execute() //resp, r, err := apiClient.Beta.CustomFormsAPI.CreateFormDefinitionDynamicSchema(context.Background()).Body(body).Execute() @@ -4894,7 +4886,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4906,7 +4898,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.CreateFormDefinitionFileRequest(context.Background(), formDefinitionID).File(file).Execute() //resp, r, err := apiClient.Beta.CustomFormsAPI.CreateFormDefinitionFileRequest(context.Background(), formDefinitionID).File(file).Execute() @@ -4929,7 +4921,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4960,7 +4952,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.CreateFormInstance(context.Background()).Execute() //resp, r, err := apiClient.Beta.CustomFormsAPI.CreateFormInstance(context.Background()).Body(body).Execute() @@ -4983,7 +4975,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4994,7 +4986,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.DeleteFormDefinition(context.Background(), formDefinitionID).Execute() //resp, r, err := apiClient.Beta.CustomFormsAPI.DeleteFormDefinition(context.Background(), formDefinitionID).Execute() @@ -5017,7 +5009,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5031,7 +5023,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.ExportFormDefinitionsByTenant(context.Background()).Execute() //resp, r, err := apiClient.Beta.CustomFormsAPI.ExportFormDefinitionsByTenant(context.Background()).Offset(offset).Limit(limit).Filters(filters).Sorters(sorters).Execute() @@ -5054,7 +5046,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5066,7 +5058,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.GetFileFromS3(context.Background(), formDefinitionID, fileID).Execute() //resp, r, err := apiClient.Beta.CustomFormsAPI.GetFileFromS3(context.Background(), formDefinitionID, fileID).Execute() @@ -5089,7 +5081,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5100,7 +5092,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.GetFormDefinitionByKey(context.Background(), formDefinitionID).Execute() //resp, r, err := apiClient.Beta.CustomFormsAPI.GetFormDefinitionByKey(context.Background(), formDefinitionID).Execute() @@ -5123,7 +5115,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5134,7 +5126,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.GetFormInstanceByKey(context.Background(), formInstanceID).Execute() //resp, r, err := apiClient.Beta.CustomFormsAPI.GetFormInstanceByKey(context.Background(), formInstanceID).Execute() @@ -5157,7 +5149,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5169,7 +5161,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.GetFormInstanceFile(context.Background(), formInstanceID, fileID).Execute() //resp, r, err := apiClient.Beta.CustomFormsAPI.GetFormInstanceFile(context.Background(), formInstanceID, fileID).Execute() @@ -5192,7 +5184,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5203,7 +5195,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.ImportFormDefinitions(context.Background()).Execute() //resp, r, err := apiClient.Beta.CustomFormsAPI.ImportFormDefinitions(context.Background()).Body(body).Execute() @@ -5226,7 +5218,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5238,7 +5230,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.PatchFormDefinition(context.Background(), formDefinitionID).Execute() //resp, r, err := apiClient.Beta.CustomFormsAPI.PatchFormDefinition(context.Background(), formDefinitionID).Body(body).Execute() @@ -5261,7 +5253,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5273,7 +5265,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.PatchFormInstance(context.Background(), formInstanceID).Execute() //resp, r, err := apiClient.Beta.CustomFormsAPI.PatchFormInstance(context.Background(), formInstanceID).Body(body).Execute() @@ -5296,7 +5288,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5310,7 +5302,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.SearchFormDefinitionsByTenant(context.Background()).Execute() //resp, r, err := apiClient.Beta.CustomFormsAPI.SearchFormDefinitionsByTenant(context.Background()).Offset(offset).Limit(limit).Filters(filters).Sorters(sorters).Execute() @@ -5333,7 +5325,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5348,7 +5340,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.SearchFormElementDataByElementID(context.Background(), formInstanceID, formElementID).Execute() //resp, r, err := apiClient.Beta.CustomFormsAPI.SearchFormElementDataByElementID(context.Background(), formInstanceID, formElementID).Limit(limit).Filters(filters).Query(query).Execute() @@ -5371,7 +5363,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5381,7 +5373,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.SearchFormInstancesByTenant(context.Background()).Execute() //resp, r, err := apiClient.Beta.CustomFormsAPI.SearchFormInstancesByTenant(context.Background()).Execute() @@ -5404,7 +5396,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5414,7 +5406,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.SearchPreDefinedSelectOptions(context.Background()).Execute() //resp, r, err := apiClient.Beta.CustomFormsAPI.SearchPreDefinedSelectOptions(context.Background()).Execute() @@ -5437,7 +5429,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5462,7 +5454,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomFormsAPI.ShowPreviewDataSource(context.Background(), formDefinitionID).Execute() //resp, r, err := apiClient.Beta.CustomFormsAPI.ShowPreviewDataSource(context.Background(), formDefinitionID).Limit(limit).Filters(filters).Query(query).FormElementPreviewRequest(formElementPreviewRequest).Execute() @@ -5485,7 +5477,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5506,7 +5498,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomPasswordInstructionsAPI.CreateCustomPasswordInstructions(context.Background()).CustomPasswordInstruction(customPasswordInstruction).Execute() //resp, r, err := apiClient.Beta.CustomPasswordInstructionsAPI.CreateCustomPasswordInstructions(context.Background()).CustomPasswordInstruction(customPasswordInstruction).Execute() @@ -5529,7 +5521,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5541,7 +5533,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.CustomPasswordInstructionsAPI.DeleteCustomPasswordInstructions(context.Background(), pageId).Execute() //r, err := apiClient.Beta.CustomPasswordInstructionsAPI.DeleteCustomPasswordInstructions(context.Background(), pageId).Locale(locale).Execute() @@ -5562,7 +5554,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5574,7 +5566,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.CustomPasswordInstructionsAPI.GetCustomPasswordInstructions(context.Background(), pageId).Execute() //resp, r, err := apiClient.Beta.CustomPasswordInstructionsAPI.GetCustomPasswordInstructions(context.Background(), pageId).Locale(locale).Execute() @@ -5597,7 +5589,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5610,7 +5602,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.EntitlementsAPI.CreateAccessModelMetadataForEntitlement(context.Background(), id, attributeKey, attributeValue).Execute() //resp, r, err := apiClient.Beta.EntitlementsAPI.CreateAccessModelMetadataForEntitlement(context.Background(), id, attributeKey, attributeValue).Execute() @@ -5633,7 +5625,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5646,7 +5638,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.EntitlementsAPI.DeleteAccessModelMetadataFromEntitlement(context.Background(), id, attributeKey, attributeValue).Execute() //r, err := apiClient.Beta.EntitlementsAPI.DeleteAccessModelMetadataFromEntitlement(context.Background(), id, attributeKey, attributeValue).Execute() @@ -5667,7 +5659,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5678,7 +5670,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.EntitlementsAPI.GetEntitlement(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.EntitlementsAPI.GetEntitlement(context.Background(), id).Execute() @@ -5701,7 +5693,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5712,7 +5704,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.EntitlementsAPI.GetEntitlementRequestConfig(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.EntitlementsAPI.GetEntitlementRequestConfig(context.Background(), id).Execute() @@ -5735,7 +5727,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5747,7 +5739,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.EntitlementsAPI.ImportEntitlementsBySource(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.EntitlementsAPI.ImportEntitlementsBySource(context.Background(), id).CsvFile(csvFile).Execute() @@ -5770,7 +5762,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5786,7 +5778,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.EntitlementsAPI.ListEntitlementChildren(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.EntitlementsAPI.ListEntitlementChildren(context.Background(), id).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() @@ -5809,7 +5801,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5825,7 +5817,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.EntitlementsAPI.ListEntitlementParents(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.EntitlementsAPI.ListEntitlementParents(context.Background(), id).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() @@ -5848,7 +5840,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5867,7 +5859,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.EntitlementsAPI.ListEntitlements(context.Background()).Execute() //resp, r, err := apiClient.Beta.EntitlementsAPI.ListEntitlements(context.Background()).AccountId(accountId).SegmentedForIdentity(segmentedForIdentity).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Filters(filters).Execute() @@ -5890,7 +5882,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5902,7 +5894,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.EntitlementsAPI.PatchEntitlement(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.EntitlementsAPI.PatchEntitlement(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -5925,7 +5917,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5942,7 +5934,17 @@ "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", "approverType" : "GOVERNANCE_GROUP" } ], + "reauthorizationRequired" : false, "requestCommentRequired" : true + }, + "revocationRequestConfig" : { + "approvalSchemes" : [ { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + }, { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + } ] } }`) // EntitlementRequestConfig | @@ -5955,7 +5957,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.EntitlementsAPI.PutEntitlementRequestConfig(context.Background(), id).EntitlementRequestConfig(entitlementRequestConfig).Execute() //resp, r, err := apiClient.Beta.EntitlementsAPI.PutEntitlementRequestConfig(context.Background(), id).EntitlementRequestConfig(entitlementRequestConfig).Execute() @@ -5978,7 +5980,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5989,7 +5991,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.EntitlementsAPI.ResetSourceEntitlements(context.Background(), sourceId).Execute() //resp, r, err := apiClient.Beta.EntitlementsAPI.ResetSourceEntitlements(context.Background(), sourceId).Execute() @@ -6012,7 +6014,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6040,7 +6042,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.EntitlementsAPI.UpdateEntitlementsInBulk(context.Background()).EntitlementBulkUpdateRequest(entitlementBulkUpdateRequest).Execute() //r, err := apiClient.Beta.EntitlementsAPI.UpdateEntitlementsInBulk(context.Background()).EntitlementBulkUpdateRequest(entitlementBulkUpdateRequest).Execute() @@ -6061,7 +6063,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6093,7 +6095,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.GovernanceGroupsAPI.CreateWorkgroup(context.Background()).WorkgroupDto(workgroupDto).Execute() //resp, r, err := apiClient.Beta.GovernanceGroupsAPI.CreateWorkgroup(context.Background()).WorkgroupDto(workgroupDto).Execute() @@ -6116,7 +6118,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6127,7 +6129,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.GovernanceGroupsAPI.DeleteWorkgroup(context.Background(), id).Execute() //r, err := apiClient.Beta.GovernanceGroupsAPI.DeleteWorkgroup(context.Background(), id).Execute() @@ -6148,7 +6150,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6158,7 +6160,7 @@ bulkworkgroupmembersrequestinner := []byte(``) // []BulkWorkgroupMembersRequestInner | List of identities to be removed from a Governance Group members list. - var bulkWorkgroupMembersRequestInner beta.[]BulkWorkgroupMembersRequestInner + var bulkWorkgroupMembersRequestInner []beta.BulkWorkgroupMembersRequestInner if err := json.Unmarshal(bulkworkgroupmembersrequestinner, &bulkWorkgroupMembersRequestInner); err != nil { fmt.Println("Error:", err) return @@ -6166,7 +6168,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.GovernanceGroupsAPI.DeleteWorkgroupMembers(context.Background(), workgroupId).BulkWorkgroupMembersRequestInner(bulkWorkgroupMembersRequestInner).Execute() //resp, r, err := apiClient.Beta.GovernanceGroupsAPI.DeleteWorkgroupMembers(context.Background(), workgroupId).BulkWorkgroupMembersRequestInner(bulkWorkgroupMembersRequestInner).Execute() @@ -6189,7 +6191,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6208,7 +6210,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.GovernanceGroupsAPI.DeleteWorkgroupsInBulk(context.Background()).WorkgroupBulkDeleteRequest(workgroupBulkDeleteRequest).Execute() //resp, r, err := apiClient.Beta.GovernanceGroupsAPI.DeleteWorkgroupsInBulk(context.Background()).WorkgroupBulkDeleteRequest(workgroupBulkDeleteRequest).Execute() @@ -6231,7 +6233,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6242,7 +6244,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.GovernanceGroupsAPI.GetWorkgroup(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.GovernanceGroupsAPI.GetWorkgroup(context.Background(), id).Execute() @@ -6265,7 +6267,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6280,7 +6282,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.GovernanceGroupsAPI.ListConnections(context.Background(), workgroupId).Execute() //resp, r, err := apiClient.Beta.GovernanceGroupsAPI.ListConnections(context.Background(), workgroupId).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Execute() @@ -6303,7 +6305,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6318,7 +6320,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.GovernanceGroupsAPI.ListWorkgroupMembers(context.Background(), workgroupId).Execute() //resp, r, err := apiClient.Beta.GovernanceGroupsAPI.ListWorkgroupMembers(context.Background(), workgroupId).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Execute() @@ -6341,7 +6343,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6356,7 +6358,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.GovernanceGroupsAPI.ListWorkgroups(context.Background()).Execute() //resp, r, err := apiClient.Beta.GovernanceGroupsAPI.ListWorkgroups(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -6379,7 +6381,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6391,7 +6393,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.GovernanceGroupsAPI.PatchWorkgroup(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.GovernanceGroupsAPI.PatchWorkgroup(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -6414,7 +6416,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6424,7 +6426,7 @@ bulkworkgroupmembersrequestinner := []byte(``) // []BulkWorkgroupMembersRequestInner | List of identities to be added to a Governance Group members list. - var bulkWorkgroupMembersRequestInner beta.[]BulkWorkgroupMembersRequestInner + var bulkWorkgroupMembersRequestInner []beta.BulkWorkgroupMembersRequestInner if err := json.Unmarshal(bulkworkgroupmembersrequestinner, &bulkWorkgroupMembersRequestInner); err != nil { fmt.Println("Error:", err) return @@ -6432,7 +6434,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.GovernanceGroupsAPI.UpdateWorkgroupMembers(context.Background(), workgroupId).BulkWorkgroupMembersRequestInner(bulkWorkgroupMembersRequestInner).Execute() //resp, r, err := apiClient.Beta.GovernanceGroupsAPI.UpdateWorkgroupMembers(context.Background(), workgroupId).BulkWorkgroupMembersRequestInner(bulkWorkgroupMembersRequestInner).Execute() @@ -6455,7 +6457,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6478,7 +6480,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsIgnoredItem(context.Background()).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() //resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsIgnoredItem(context.Background()).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() @@ -6501,7 +6503,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6524,7 +6526,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsRequestedItem(context.Background()).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() //resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsRequestedItem(context.Background()).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() @@ -6547,7 +6549,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6570,7 +6572,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItem(context.Background()).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() //resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItem(context.Background()).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() @@ -6593,7 +6595,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6602,7 +6604,7 @@ accessrequestrecommendationactionitemdto := []byte(``) // []AccessRequestRecommendationActionItemDto | The recommended access items that were viewed for an identity. - var accessRequestRecommendationActionItemDto beta.[]AccessRequestRecommendationActionItemDto + var accessRequestRecommendationActionItemDto []beta.AccessRequestRecommendationActionItemDto if err := json.Unmarshal(accessrequestrecommendationactionitemdto, &accessRequestRecommendationActionItemDto); err != nil { fmt.Println("Error:", err) return @@ -6610,7 +6612,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItems(context.Background()).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() //resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItems(context.Background()).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() @@ -6633,7 +6635,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6650,7 +6652,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendations(context.Background()).Execute() //resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendations(context.Background()).IdentityId(identityId).Limit(limit).Offset(offset).Count(count).IncludeTranslationMessages(includeTranslationMessages).Filters(filters).Sorters(sorters).Execute() @@ -6673,7 +6675,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6688,7 +6690,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsIgnoredItems(context.Background()).Execute() //resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsIgnoredItems(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -6711,7 +6713,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6726,7 +6728,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsRequestedItems(context.Background()).Execute() //resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsRequestedItems(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -6749,7 +6751,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6764,7 +6766,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsViewedItems(context.Background()).Execute() //resp, r, err := apiClient.Beta.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsViewedItems(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -6787,7 +6789,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6814,7 +6816,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAICommonAccessAPI.CreateCommonAccess(context.Background()).CommonAccessItemRequest(commonAccessItemRequest).Execute() //resp, r, err := apiClient.Beta.IAICommonAccessAPI.CreateCommonAccess(context.Background()).CommonAccessItemRequest(commonAccessItemRequest).Execute() @@ -6837,7 +6839,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6852,7 +6854,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAICommonAccessAPI.GetCommonAccess(context.Background()).Execute() //resp, r, err := apiClient.Beta.IAICommonAccessAPI.GetCommonAccess(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -6875,7 +6877,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6884,7 +6886,7 @@ commonaccessidstatus := []byte(``) // []CommonAccessIDStatus | Confirm or deny in bulk the common access ids that are (or aren't) common access - var commonAccessIDStatus beta.[]CommonAccessIDStatus + var commonAccessIDStatus []beta.CommonAccessIDStatus if err := json.Unmarshal(commonaccessidstatus, &commonAccessIDStatus); err != nil { fmt.Println("Error:", err) return @@ -6892,7 +6894,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAICommonAccessAPI.UpdateCommonAccessStatusInBulk(context.Background()).CommonAccessIDStatus(commonAccessIDStatus).Execute() //resp, r, err := apiClient.Beta.IAICommonAccessAPI.UpdateCommonAccessStatusInBulk(context.Background()).CommonAccessIDStatus(commonAccessIDStatus).Execute() @@ -6915,7 +6917,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6926,7 +6928,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIMessageCatalogsAPI.GetMessageCatalogs(context.Background(), catalogId).Execute() //resp, r, err := apiClient.Beta.IAIMessageCatalogsAPI.GetMessageCatalogs(context.Background(), catalogId).Execute() @@ -6949,7 +6951,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6960,7 +6962,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIOutliersAPI.ExportOutliersZip(context.Background()).Execute() //resp, r, err := apiClient.Beta.IAIOutliersAPI.ExportOutliersZip(context.Background()).Type_(type_).Execute() @@ -6983,7 +6985,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6998,7 +7000,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIOutliersAPI.GetIdentityOutlierSnapshots(context.Background()).Execute() //resp, r, err := apiClient.Beta.IAIOutliersAPI.GetIdentityOutlierSnapshots(context.Background()).Limit(limit).Offset(offset).Type_(type_).Filters(filters).Sorters(sorters).Execute() @@ -7021,7 +7023,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7037,7 +7039,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIOutliersAPI.GetIdentityOutliers(context.Background()).Execute() //resp, r, err := apiClient.Beta.IAIOutliersAPI.GetIdentityOutliers(context.Background()).Limit(limit).Offset(offset).Count(count).Type_(type_).Filters(filters).Sorters(sorters).Execute() @@ -7060,7 +7062,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7071,7 +7073,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIOutliersAPI.GetLatestIdentityOutlierSnapshots(context.Background()).Execute() //resp, r, err := apiClient.Beta.IAIOutliersAPI.GetLatestIdentityOutlierSnapshots(context.Background()).Type_(type_).Execute() @@ -7094,7 +7096,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7105,7 +7107,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIOutliersAPI.GetOutlierContributingFeatureSummary(context.Background(), outlierFeatureId).Execute() //resp, r, err := apiClient.Beta.IAIOutliersAPI.GetOutlierContributingFeatureSummary(context.Background(), outlierFeatureId).Execute() @@ -7128,7 +7130,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7144,7 +7146,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIOutliersAPI.GetPeerGroupOutliersContributingFeatures(context.Background(), outlierId).Execute() //resp, r, err := apiClient.Beta.IAIOutliersAPI.GetPeerGroupOutliersContributingFeatures(context.Background(), outlierId).Limit(limit).Offset(offset).Count(count).IncludeTranslationMessages(includeTranslationMessages).Sorters(sorters).Execute() @@ -7167,7 +7169,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7176,7 +7178,7 @@ requestbody := []byte(``) // []string | - var requestBody beta.[]RequestBody + var requestBody []beta.RequestBody if err := json.Unmarshal(requestbody, &requestBody); err != nil { fmt.Println("Error:", err) return @@ -7184,7 +7186,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.IAIOutliersAPI.IgnoreIdentityOutliers(context.Background()).RequestBody(requestBody).Execute() //r, err := apiClient.Beta.IAIOutliersAPI.IgnoreIdentityOutliers(context.Background()).RequestBody(requestBody).Execute() @@ -7205,7 +7207,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7222,7 +7224,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIOutliersAPI.ListOutliersContributingFeatureAccessItems(context.Background(), outlierId, contributingFeatureName).Execute() //resp, r, err := apiClient.Beta.IAIOutliersAPI.ListOutliersContributingFeatureAccessItems(context.Background(), outlierId, contributingFeatureName).Limit(limit).Offset(offset).Count(count).AccessType(accessType).Sorters(sorters).Execute() @@ -7245,7 +7247,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7254,7 +7256,7 @@ requestbody := []byte(``) // []string | - var requestBody beta.[]RequestBody + var requestBody []beta.RequestBody if err := json.Unmarshal(requestbody, &requestBody); err != nil { fmt.Println("Error:", err) return @@ -7262,7 +7264,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.IAIOutliersAPI.UnIgnoreIdentityOutliers(context.Background()).RequestBody(requestBody).Execute() //r, err := apiClient.Beta.IAIOutliersAPI.UnIgnoreIdentityOutliers(context.Background()).RequestBody(requestBody).Execute() @@ -7283,7 +7285,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7297,7 +7299,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIPeerGroupStrategiesAPI.GetPeerGroupOutliers(context.Background(), strategy).Execute() //resp, r, err := apiClient.Beta.IAIPeerGroupStrategiesAPI.GetPeerGroupOutliers(context.Background(), strategy).Limit(limit).Offset(offset).Count(count).Execute() @@ -7320,7 +7322,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7355,7 +7357,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRecommendationsAPI.GetRecommendations(context.Background()).RecommendationRequestDto(recommendationRequestDto).Execute() //resp, r, err := apiClient.Beta.IAIRecommendationsAPI.GetRecommendations(context.Background()).RecommendationRequestDto(recommendationRequestDto).Execute() @@ -7378,7 +7380,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7388,7 +7390,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRecommendationsAPI.GetRecommendationsConfig(context.Background()).Execute() //resp, r, err := apiClient.Beta.IAIRecommendationsAPI.GetRecommendationsConfig(context.Background()).Execute() @@ -7411,7 +7413,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7433,7 +7435,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRecommendationsAPI.UpdateRecommendationsConfig(context.Background()).RecommendationConfigDto(recommendationConfigDto).Execute() //resp, r, err := apiClient.Beta.IAIRecommendationsAPI.UpdateRecommendationsConfig(context.Background()).RecommendationConfigDto(recommendationConfigDto).Execute() @@ -7456,7 +7458,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7477,7 +7479,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.CreatePotentialRoleProvisionRequest(context.Background(), sessionId, potentialRoleId).Execute() //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.CreatePotentialRoleProvisionRequest(context.Background(), sessionId, potentialRoleId).MinEntitlementPopularity(minEntitlementPopularity).IncludeCommonAccess(includeCommonAccess).RoleMiningPotentialRoleProvisionRequest(roleMiningPotentialRoleProvisionRequest).Execute() @@ -7500,7 +7502,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7548,7 +7550,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.CreateRoleMiningSessions(context.Background()).RoleMiningSessionDto(roleMiningSessionDto).Execute() //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.CreateRoleMiningSessions(context.Background()).RoleMiningSessionDto(roleMiningSessionDto).Execute() @@ -7571,7 +7573,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7584,7 +7586,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.DownloadRoleMiningPotentialRoleZip(context.Background(), sessionId, potentialRoleId, exportId).Execute() //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.DownloadRoleMiningPotentialRoleZip(context.Background(), sessionId, potentialRoleId, exportId).Execute() @@ -7607,7 +7609,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7619,7 +7621,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.ExportRoleMiningPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.ExportRoleMiningPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() @@ -7642,7 +7644,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7658,7 +7660,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleAsync(context.Background(), sessionId, potentialRoleId).Execute() //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleAsync(context.Background(), sessionId, potentialRoleId).RoleMiningPotentialRoleExportRequest(roleMiningPotentialRoleExportRequest).Execute() @@ -7681,7 +7683,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7694,7 +7696,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleStatus(context.Background(), sessionId, potentialRoleId, exportId).Execute() //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleStatus(context.Background(), sessionId, potentialRoleId, exportId).Execute() @@ -7717,7 +7719,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7732,7 +7734,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetAllPotentialRoleSummaries(context.Background()).Execute() //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetAllPotentialRoleSummaries(context.Background()).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() @@ -7755,7 +7757,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7768,7 +7770,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetEntitlementDistributionPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetEntitlementDistributionPotentialRole(context.Background(), sessionId, potentialRoleId).IncludeCommonAccess(includeCommonAccess).Execute() @@ -7791,7 +7793,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7809,7 +7811,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).IncludeCommonAccess(includeCommonAccess).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() @@ -7832,7 +7834,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7849,7 +7851,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetExcludedEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetExcludedEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() @@ -7872,7 +7874,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7889,7 +7891,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetIdentitiesPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetIdentitiesPotentialRole(context.Background(), sessionId, potentialRoleId).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() @@ -7912,7 +7914,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7924,7 +7926,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetPotentialRole(context.Background(), sessionId, potentialRoleId).Execute() @@ -7947,7 +7949,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7963,7 +7965,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetPotentialRoleApplications(context.Background(), sessionId, potentialRoleId).Execute() //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetPotentialRoleApplications(context.Background(), sessionId, potentialRoleId).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() @@ -7986,7 +7988,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8002,7 +8004,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetPotentialRoleEntitlements(context.Background(), sessionId, potentialRoleId).Execute() //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetPotentialRoleEntitlements(context.Background(), sessionId, potentialRoleId).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() @@ -8025,7 +8027,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8041,7 +8043,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetPotentialRoleSourceIdentityUsage(context.Background(), potentialRoleId, sourceId).Execute() //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetPotentialRoleSourceIdentityUsage(context.Background(), potentialRoleId, sourceId).Sorters(sorters).Offset(offset).Limit(limit).Count(count).Execute() @@ -8064,7 +8066,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8080,7 +8082,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetPotentialRoleSummaries(context.Background(), sessionId).Execute() //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetPotentialRoleSummaries(context.Background(), sessionId).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() @@ -8103,7 +8105,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8114,7 +8116,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetRoleMiningPotentialRole(context.Background(), potentialRoleId).Execute() //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetRoleMiningPotentialRole(context.Background(), potentialRoleId).Execute() @@ -8137,7 +8139,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8148,7 +8150,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetRoleMiningSession(context.Background(), sessionId).Execute() //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetRoleMiningSession(context.Background(), sessionId).Execute() @@ -8171,7 +8173,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8182,7 +8184,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetRoleMiningSessionStatus(context.Background(), sessionId).Execute() //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetRoleMiningSessionStatus(context.Background(), sessionId).Execute() @@ -8205,7 +8207,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8220,7 +8222,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetRoleMiningSessions(context.Background()).Execute() //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetRoleMiningSessions(context.Background()).Filters(filters).Sorters(sorters).Offset(offset).Limit(limit).Count(count).Execute() @@ -8243,7 +8245,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8257,7 +8259,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetSavedPotentialRoles(context.Background()).Execute() //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.GetSavedPotentialRoles(context.Background()).Sorters(sorters).Offset(offset).Limit(limit).Count(count).Execute() @@ -8280,7 +8282,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8291,7 +8293,7 @@ patchpotentialrolerequestinner := []byte(`[{op=remove, path=/description}, {op=replace, path=/description, value=Acct I - Potential Role}, {op=remove, path=/saved}, {op=replace, path=/saved, value=false}, {op=remove, path=/name}, {op=replace, path=/name, value=Potential Role Accounting}]`) // []PatchPotentialRoleRequestInner | - var patchPotentialRoleRequestInner beta.[]PatchPotentialRoleRequestInner + var patchPotentialRoleRequestInner []beta.PatchPotentialRoleRequestInner if err := json.Unmarshal(patchpotentialrolerequestinner, &patchPotentialRoleRequestInner); err != nil { fmt.Println("Error:", err) return @@ -8299,7 +8301,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.PatchPotentialRole(context.Background(), sessionId, potentialRoleId).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.PatchPotentialRole(context.Background(), sessionId, potentialRoleId).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() @@ -8322,7 +8324,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8332,7 +8334,7 @@ patchpotentialrolerequestinner := []byte(`[{op=remove, path=/description}, {op=replace, path=/description, value=Acct I - Potential Role}, {op=remove, path=/saved}, {op=replace, path=/saved, value=false}, {op=remove, path=/name}, {op=replace, path=/name, value=Potential Role Accounting}]`) // []PatchPotentialRoleRequestInner | - var patchPotentialRoleRequestInner beta.[]PatchPotentialRoleRequestInner + var patchPotentialRoleRequestInner []beta.PatchPotentialRoleRequestInner if err := json.Unmarshal(patchpotentialrolerequestinner, &patchPotentialRoleRequestInner); err != nil { fmt.Println("Error:", err) return @@ -8340,7 +8342,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.PatchRoleMiningPotentialRole(context.Background(), potentialRoleId).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.PatchRoleMiningPotentialRole(context.Background(), potentialRoleId).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() @@ -8363,7 +8365,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8373,7 +8375,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/pruneThreshold, value=83}, {op=replace, path=/minNumIdentitiesInPotentialRole, value=10}, {op=replace, path=/saved, value=false}, {op=replace, path=/name, value=RM Session - 07/10/22}, {op=add, path=/name, value=RM Session - 07/10/22}]`) // []JsonPatchOperation | Replace pruneThreshold and/or minNumIdentitiesInPotentialRole in role mining session. Update saved status or saved name for a role mining session. - var jsonPatchOperation beta.[]JsonPatchOperation + var jsonPatchOperation []beta.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -8381,7 +8383,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.PatchRoleMiningSession(context.Background(), sessionId).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.PatchRoleMiningSession(context.Background(), sessionId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -8404,7 +8406,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8426,7 +8428,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IAIRoleMiningAPI.UpdateEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).RoleMiningPotentialRoleEditEntitlements(roleMiningPotentialRoleEditEntitlements).Execute() //resp, r, err := apiClient.Beta.IAIRoleMiningAPI.UpdateEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).RoleMiningPotentialRoleEditEntitlements(roleMiningPotentialRoleEditEntitlements).Execute() @@ -8449,7 +8451,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8461,7 +8463,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.IconsAPI.DeleteIcon(context.Background(), objectType, objectId).Execute() //r, err := apiClient.Beta.IconsAPI.DeleteIcon(context.Background(), objectType, objectId).Execute() @@ -8482,7 +8484,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8495,7 +8497,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IconsAPI.SetIcon(context.Background(), objectType, objectId).Image(image).Execute() //resp, r, err := apiClient.Beta.IconsAPI.SetIcon(context.Background(), objectType, objectId).Image(image).Execute() @@ -8518,7 +8520,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8529,7 +8531,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.IdentitiesAPI.DeleteIdentity(context.Background(), id).Execute() //r, err := apiClient.Beta.IdentitiesAPI.DeleteIdentity(context.Background(), id).Execute() @@ -8550,7 +8552,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8561,7 +8563,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentitiesAPI.GetIdentity(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.IdentitiesAPI.GetIdentity(context.Background(), id).Execute() @@ -8584,7 +8586,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8595,7 +8597,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentitiesAPI.GetIdentityOwnershipDetails(context.Background(), identityId).Execute() //resp, r, err := apiClient.Beta.IdentitiesAPI.GetIdentityOwnershipDetails(context.Background(), identityId).Execute() @@ -8618,7 +8620,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8630,7 +8632,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentitiesAPI.GetRoleAssignment(context.Background(), identityId, assignmentId).Execute() //resp, r, err := apiClient.Beta.IdentitiesAPI.GetRoleAssignment(context.Background(), identityId, assignmentId).Execute() @@ -8653,7 +8655,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8666,7 +8668,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentitiesAPI.GetRoleAssignments(context.Background(), identityId).Execute() //resp, r, err := apiClient.Beta.IdentitiesAPI.GetRoleAssignments(context.Background(), identityId).RoleId(roleId).RoleName(roleName).Execute() @@ -8689,7 +8691,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8705,7 +8707,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentitiesAPI.ListIdentities(context.Background()).Execute() //resp, r, err := apiClient.Beta.IdentitiesAPI.ListIdentities(context.Background()).Filters(filters).Sorters(sorters).DefaultFilter(defaultFilter).Count(count).Limit(limit).Offset(offset).Execute() @@ -8728,7 +8730,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8739,7 +8741,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.IdentitiesAPI.ResetIdentity(context.Background(), identityId).Execute() //r, err := apiClient.Beta.IdentitiesAPI.ResetIdentity(context.Background(), identityId).Execute() @@ -8760,7 +8762,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8781,7 +8783,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.IdentitiesAPI.SendIdentityVerificationAccountToken(context.Background(), id).SendAccountVerificationRequest(sendAccountVerificationRequest).Execute() //r, err := apiClient.Beta.IdentitiesAPI.SendIdentityVerificationAccountToken(context.Background(), id).SendAccountVerificationRequest(sendAccountVerificationRequest).Execute() @@ -8802,7 +8804,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8822,7 +8824,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentitiesAPI.StartIdentitiesInvite(context.Background()).InviteIdentitiesRequest(inviteIdentitiesRequest).Execute() //resp, r, err := apiClient.Beta.IdentitiesAPI.StartIdentitiesInvite(context.Background()).InviteIdentitiesRequest(inviteIdentitiesRequest).Execute() @@ -8845,7 +8847,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8864,7 +8866,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentitiesAPI.StartIdentityProcessing(context.Background()).ProcessIdentitiesRequest(processIdentitiesRequest).Execute() //resp, r, err := apiClient.Beta.IdentitiesAPI.StartIdentityProcessing(context.Background()).ProcessIdentitiesRequest(processIdentitiesRequest).Execute() @@ -8887,7 +8889,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8898,7 +8900,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentitiesAPI.SynchronizeAttributesForIdentity(context.Background(), identityId).Execute() //resp, r, err := apiClient.Beta.IdentitiesAPI.SynchronizeAttributesForIdentity(context.Background(), identityId).Execute() @@ -8921,7 +8923,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8959,7 +8961,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityAttributesAPI.CreateIdentityAttribute(context.Background()).IdentityAttribute(identityAttribute).Execute() //resp, r, err := apiClient.Beta.IdentityAttributesAPI.CreateIdentityAttribute(context.Background()).IdentityAttribute(identityAttribute).Execute() @@ -8982,7 +8984,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8993,7 +8995,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.IdentityAttributesAPI.DeleteIdentityAttribute(context.Background(), name).Execute() //r, err := apiClient.Beta.IdentityAttributesAPI.DeleteIdentityAttribute(context.Background(), name).Execute() @@ -9014,7 +9016,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9033,7 +9035,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.IdentityAttributesAPI.DeleteIdentityAttributesInBulk(context.Background()).IdentityAttributeNames(identityAttributeNames).Execute() //r, err := apiClient.Beta.IdentityAttributesAPI.DeleteIdentityAttributesInBulk(context.Background()).IdentityAttributeNames(identityAttributeNames).Execute() @@ -9054,7 +9056,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9065,7 +9067,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityAttributesAPI.GetIdentityAttribute(context.Background(), name).Execute() //resp, r, err := apiClient.Beta.IdentityAttributesAPI.GetIdentityAttribute(context.Background(), name).Execute() @@ -9088,7 +9090,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9102,7 +9104,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityAttributesAPI.ListIdentityAttributes(context.Background()).Execute() //resp, r, err := apiClient.Beta.IdentityAttributesAPI.ListIdentityAttributes(context.Background()).IncludeSystem(includeSystem).IncludeSilent(includeSilent).SearchableOnly(searchableOnly).Count(count).Execute() @@ -9125,7 +9127,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9164,7 +9166,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityAttributesAPI.PutIdentityAttribute(context.Background(), name).IdentityAttribute(identityAttribute).Execute() //resp, r, err := apiClient.Beta.IdentityAttributesAPI.PutIdentityAttribute(context.Background(), name).IdentityAttribute(identityAttribute).Execute() @@ -9187,7 +9189,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9204,7 +9206,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityHistoryAPI.CompareIdentitySnapshots(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.IdentityHistoryAPI.CompareIdentitySnapshots(context.Background(), id).Snapshot1(snapshot1).Snapshot2(snapshot2).AccessItemTypes(accessItemTypes).Limit(limit).Offset(offset).Count(count).Execute() @@ -9227,7 +9229,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9245,7 +9247,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityHistoryAPI.CompareIdentitySnapshotsAccessType(context.Background(), id, accessType).Execute() //resp, r, err := apiClient.Beta.IdentityHistoryAPI.CompareIdentitySnapshotsAccessType(context.Background(), id, accessType).AccessAssociated(accessAssociated).Snapshot1(snapshot1).Snapshot2(snapshot2).Limit(limit).Offset(offset).Count(count).Execute() @@ -9268,7 +9270,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9279,7 +9281,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityHistoryAPI.GetHistoricalIdentity(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.IdentityHistoryAPI.GetHistoricalIdentity(context.Background(), id).Execute() @@ -9302,7 +9304,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9319,7 +9321,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityHistoryAPI.GetHistoricalIdentityEvents(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.IdentityHistoryAPI.GetHistoricalIdentityEvents(context.Background(), id).From(from).EventTypes(eventTypes).AccessItemTypes(accessItemTypes).Limit(limit).Offset(offset).Count(count).Execute() @@ -9342,7 +9344,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9354,7 +9356,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityHistoryAPI.GetIdentitySnapshot(context.Background(), id, date).Execute() //resp, r, err := apiClient.Beta.IdentityHistoryAPI.GetIdentitySnapshot(context.Background(), id, date).Execute() @@ -9377,7 +9379,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9394,7 +9396,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityHistoryAPI.GetIdentitySnapshotSummary(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.IdentityHistoryAPI.GetIdentitySnapshotSummary(context.Background(), id).Before(before).Interval(interval).TimeZone(timeZone).Limit(limit).Offset(offset).Count(count).Execute() @@ -9417,7 +9419,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9428,7 +9430,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityHistoryAPI.GetIdentityStartDate(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.IdentityHistoryAPI.GetIdentityStartDate(context.Background(), id).Execute() @@ -9451,7 +9453,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9466,7 +9468,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityHistoryAPI.ListHistoricalIdentities(context.Background()).Execute() //resp, r, err := apiClient.Beta.IdentityHistoryAPI.ListHistoricalIdentities(context.Background()).StartsWithQuery(startsWithQuery).IsDeleted(isDeleted).IsActive(isActive).Limit(limit).Offset(offset).Execute() @@ -9489,7 +9491,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9507,7 +9509,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityHistoryAPI.ListIdentityAccessItems(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.IdentityHistoryAPI.ListIdentityAccessItems(context.Background(), id).Type_(type_).Filters(filters).Sorters(sorters).Query(query).Limit(limit).Count(count).Offset(offset).Execute() @@ -9530,7 +9532,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9543,7 +9545,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityHistoryAPI.ListIdentitySnapshotAccessItems(context.Background(), id, date).Execute() //resp, r, err := apiClient.Beta.IdentityHistoryAPI.ListIdentitySnapshotAccessItems(context.Background(), id, date).Type_(type_).Execute() @@ -9566,7 +9568,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9582,7 +9584,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityHistoryAPI.ListIdentitySnapshots(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.IdentityHistoryAPI.ListIdentitySnapshots(context.Background(), id).Start(start).Interval(interval).Limit(limit).Offset(offset).Count(count).Execute() @@ -9605,7 +9607,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9670,7 +9672,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityProfilesAPI.CreateIdentityProfile(context.Background()).IdentityProfile(identityProfile).Execute() //resp, r, err := apiClient.Beta.IdentityProfilesAPI.CreateIdentityProfile(context.Background()).IdentityProfile(identityProfile).Execute() @@ -9693,7 +9695,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9704,7 +9706,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityProfilesAPI.DeleteIdentityProfile(context.Background(), identityProfileId).Execute() //resp, r, err := apiClient.Beta.IdentityProfilesAPI.DeleteIdentityProfile(context.Background(), identityProfileId).Execute() @@ -9727,7 +9729,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9736,7 +9738,7 @@ requestbody := []byte(``) // []string | Identity Profile bulk delete request body. - var requestBody beta.[]RequestBody + var requestBody []beta.RequestBody if err := json.Unmarshal(requestbody, &requestBody); err != nil { fmt.Println("Error:", err) return @@ -9744,7 +9746,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityProfilesAPI.DeleteIdentityProfiles(context.Background()).RequestBody(requestBody).Execute() //resp, r, err := apiClient.Beta.IdentityProfilesAPI.DeleteIdentityProfiles(context.Background()).RequestBody(requestBody).Execute() @@ -9767,7 +9769,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9782,7 +9784,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityProfilesAPI.ExportIdentityProfiles(context.Background()).Execute() //resp, r, err := apiClient.Beta.IdentityProfilesAPI.ExportIdentityProfiles(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -9805,7 +9807,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9816,7 +9818,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityProfilesAPI.GetDefaultIdentityAttributeConfig(context.Background(), identityProfileId).Execute() //resp, r, err := apiClient.Beta.IdentityProfilesAPI.GetDefaultIdentityAttributeConfig(context.Background(), identityProfileId).Execute() @@ -9839,7 +9841,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9850,7 +9852,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityProfilesAPI.GetIdentityProfile(context.Background(), identityProfileId).Execute() //resp, r, err := apiClient.Beta.IdentityProfilesAPI.GetIdentityProfile(context.Background(), identityProfileId).Execute() @@ -9873,7 +9875,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9882,7 +9884,7 @@ identityprofileexportedobject := []byte(``) // []IdentityProfileExportedObject | Previously exported Identity Profiles. - var identityProfileExportedObject beta.[]IdentityProfileExportedObject + var identityProfileExportedObject []beta.IdentityProfileExportedObject if err := json.Unmarshal(identityprofileexportedobject, &identityProfileExportedObject); err != nil { fmt.Println("Error:", err) return @@ -9890,7 +9892,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityProfilesAPI.ImportIdentityProfiles(context.Background()).IdentityProfileExportedObject(identityProfileExportedObject).Execute() //resp, r, err := apiClient.Beta.IdentityProfilesAPI.ImportIdentityProfiles(context.Background()).IdentityProfileExportedObject(identityProfileExportedObject).Execute() @@ -9913,7 +9915,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9928,7 +9930,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityProfilesAPI.ListIdentityProfiles(context.Background()).Execute() //resp, r, err := apiClient.Beta.IdentityProfilesAPI.ListIdentityProfiles(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -9951,7 +9953,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9994,7 +9996,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityProfilesAPI.ShowGenerateIdentityPreview(context.Background()).IdentityPreviewRequest(identityPreviewRequest).Execute() //resp, r, err := apiClient.Beta.IdentityProfilesAPI.ShowGenerateIdentityPreview(context.Background()).IdentityPreviewRequest(identityPreviewRequest).Execute() @@ -10017,7 +10019,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10028,7 +10030,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityProfilesAPI.SyncIdentityProfile(context.Background(), identityProfileId).Execute() //resp, r, err := apiClient.Beta.IdentityProfilesAPI.SyncIdentityProfile(context.Background(), identityProfileId).Execute() @@ -10051,7 +10053,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10061,7 +10063,7 @@ jsonpatchoperation := []byte(`[{op=add, path=/identityAttributeConfig/attributeTransforms/0, value={identityAttributeName=location, transformDefinition={type=accountAttribute, attributes={sourceName=Employees, attributeName=location, sourceId=2c91808878b7d63b0178c66ffcdc4ce4}}}}]`) // []JsonPatchOperation | List of identity profile update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - var jsonPatchOperation beta.[]JsonPatchOperation + var jsonPatchOperation []beta.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -10069,7 +10071,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.IdentityProfilesAPI.UpdateIdentityProfile(context.Background(), identityProfileId).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.Beta.IdentityProfilesAPI.UpdateIdentityProfile(context.Background(), identityProfileId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -10092,7 +10094,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10119,7 +10121,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.LaunchersAPI.CreateLauncher(context.Background()).LauncherRequest(launcherRequest).Execute() //resp, r, err := apiClient.Beta.LaunchersAPI.CreateLauncher(context.Background()).LauncherRequest(launcherRequest).Execute() @@ -10142,7 +10144,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10153,7 +10155,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.LaunchersAPI.DeleteLauncher(context.Background(), launcherID).Execute() //r, err := apiClient.Beta.LaunchersAPI.DeleteLauncher(context.Background(), launcherID).Execute() @@ -10174,7 +10176,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10185,7 +10187,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.LaunchersAPI.GetLauncher(context.Background(), launcherID).Execute() //resp, r, err := apiClient.Beta.LaunchersAPI.GetLauncher(context.Background(), launcherID).Execute() @@ -10208,7 +10210,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10221,7 +10223,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.LaunchersAPI.GetLaunchers(context.Background()).Execute() //resp, r, err := apiClient.Beta.LaunchersAPI.GetLaunchers(context.Background()).Filters(filters).Next(next).Limit(limit).Execute() @@ -10244,7 +10246,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10272,7 +10274,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.LaunchersAPI.PutLauncher(context.Background(), launcherID).LauncherRequest(launcherRequest).Execute() //resp, r, err := apiClient.Beta.LaunchersAPI.PutLauncher(context.Background(), launcherID).LauncherRequest(launcherRequest).Execute() @@ -10295,7 +10297,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10306,7 +10308,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.LaunchersAPI.StartLauncher(context.Background(), launcherID).Execute() //resp, r, err := apiClient.Beta.LaunchersAPI.StartLauncher(context.Background(), launcherID).Execute() @@ -10329,7 +10331,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10341,7 +10343,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.LifecycleStatesAPI.GetLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).Execute() //resp, r, err := apiClient.Beta.LifecycleStatesAPI.GetLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).Execute() @@ -10364,7 +10366,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10375,7 +10377,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/description, value=Updated description!}, {op=replace, path=/accessProfileIds, value=[2c918087742bab150174407a80f3125e, 2c918087742bab150174407a80f3124f]}, {op=replace, path=/accountActions, value=[{action=ENABLE, sourceIds=[2c9180846a2f82fb016a481c1b1560c5, 2c9180846a2f82fb016a481c1b1560cc]}, {action=DISABLE, sourceIds=[2c91808869a0c9980169a207258513fb]}]}, {op=replace, path=/emailNotificationOption, value={notifyManagers=true, notifyAllAdmins=false, notifySpecificUsers=false, emailAddressList=[]}}]`) // []JsonPatchOperation | A list of lifecycle state update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields can be updated: * enabled * description * accountActions * accessProfileIds * emailNotificationOption - var jsonPatchOperation beta.[]JsonPatchOperation + var jsonPatchOperation []beta.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -10383,7 +10385,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.LifecycleStatesAPI.UpdateLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.Beta.LifecycleStatesAPI.UpdateLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -10406,7 +10408,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10418,7 +10420,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ManagedClientsAPI.GetManagedClientStatus(context.Background(), id).Type_(type_).Execute() //resp, r, err := apiClient.Beta.ManagedClientsAPI.GetManagedClientStatus(context.Background(), id).Type_(type_).Execute() @@ -10441,7 +10443,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" "time" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -10485,7 +10487,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ManagedClientsAPI.UpdateManagedClientStatus(context.Background(), id).ManagedClientStatus(managedClientStatus).Execute() //resp, r, err := apiClient.Beta.ManagedClientsAPI.UpdateManagedClientStatus(context.Background(), id).ManagedClientStatus(managedClientStatus).Execute() @@ -10508,7 +10510,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10519,7 +10521,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ManagedClustersAPI.GetClientLogConfiguration(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.ManagedClustersAPI.GetClientLogConfiguration(context.Background(), id).Execute() @@ -10542,7 +10544,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10553,7 +10555,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ManagedClustersAPI.GetManagedCluster(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.ManagedClustersAPI.GetManagedCluster(context.Background(), id).Execute() @@ -10576,7 +10578,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10590,7 +10592,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ManagedClustersAPI.GetManagedClusters(context.Background()).Execute() //resp, r, err := apiClient.Beta.ManagedClustersAPI.GetManagedClusters(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() @@ -10613,7 +10615,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10631,7 +10633,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ManagedClustersAPI.PutClientLogConfiguration(context.Background(), id).ClientLogConfiguration(clientLogConfiguration).Execute() //resp, r, err := apiClient.Beta.ManagedClustersAPI.PutClientLogConfiguration(context.Background(), id).ClientLogConfiguration(clientLogConfiguration).Execute() @@ -10654,7 +10656,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10665,7 +10667,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MFAConfigurationAPI.DeleteMFAConfig(context.Background(), method).Execute() //resp, r, err := apiClient.Beta.MFAConfigurationAPI.DeleteMFAConfig(context.Background(), method).Execute() @@ -10688,7 +10690,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10698,7 +10700,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MFAConfigurationAPI.GetMFADuoConfig(context.Background()).Execute() //resp, r, err := apiClient.Beta.MFAConfigurationAPI.GetMFADuoConfig(context.Background()).Execute() @@ -10721,7 +10723,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10732,7 +10734,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MFAConfigurationAPI.GetMFAKbaConfig(context.Background()).Execute() //resp, r, err := apiClient.Beta.MFAConfigurationAPI.GetMFAKbaConfig(context.Background()).AllLanguages(allLanguages).Execute() @@ -10755,7 +10757,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10765,7 +10767,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MFAConfigurationAPI.GetMFAOktaConfig(context.Background()).Execute() //resp, r, err := apiClient.Beta.MFAConfigurationAPI.GetMFAOktaConfig(context.Background()).Execute() @@ -10788,7 +10790,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10815,7 +10817,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MFAConfigurationAPI.SetMFADuoConfig(context.Background()).MfaDuoConfig(mfaDuoConfig).Execute() //resp, r, err := apiClient.Beta.MFAConfigurationAPI.SetMFADuoConfig(context.Background()).MfaDuoConfig(mfaDuoConfig).Execute() @@ -10838,7 +10840,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10847,7 +10849,7 @@ kbaanswerrequestitem := []byte(`[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]`) // []KbaAnswerRequestItem | - var kbaAnswerRequestItem beta.[]KbaAnswerRequestItem + var kbaAnswerRequestItem []beta.KbaAnswerRequestItem if err := json.Unmarshal(kbaanswerrequestitem, &kbaAnswerRequestItem); err != nil { fmt.Println("Error:", err) return @@ -10855,7 +10857,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MFAConfigurationAPI.SetMFAKBAConfig(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() //resp, r, err := apiClient.Beta.MFAConfigurationAPI.SetMFAKBAConfig(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() @@ -10878,7 +10880,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10901,7 +10903,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MFAConfigurationAPI.SetMFAOktaConfig(context.Background()).MfaOktaConfig(mfaOktaConfig).Execute() //resp, r, err := apiClient.Beta.MFAConfigurationAPI.SetMFAOktaConfig(context.Background()).MfaOktaConfig(mfaOktaConfig).Execute() @@ -10924,7 +10926,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10935,7 +10937,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MFAConfigurationAPI.TestMFAConfig(context.Background(), method).Execute() //resp, r, err := apiClient.Beta.MFAConfigurationAPI.TestMFAConfig(context.Background(), method).Execute() @@ -10958,7 +10960,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10978,7 +10980,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MFAControllerAPI.CreateSendToken(context.Background()).SendTokenRequest(sendTokenRequest).Execute() //resp, r, err := apiClient.Beta.MFAControllerAPI.CreateSendToken(context.Background()).SendTokenRequest(sendTokenRequest).Execute() @@ -11001,7 +11003,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11021,7 +11023,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MFAControllerAPI.PingVerificationStatus(context.Background(), method).VerificationPollRequest(verificationPollRequest).Execute() //resp, r, err := apiClient.Beta.MFAControllerAPI.PingVerificationStatus(context.Background(), method).VerificationPollRequest(verificationPollRequest).Execute() @@ -11044,7 +11046,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11064,7 +11066,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MFAControllerAPI.SendDuoVerifyRequest(context.Background()).DuoVerificationRequest(duoVerificationRequest).Execute() //resp, r, err := apiClient.Beta.MFAControllerAPI.SendDuoVerifyRequest(context.Background()).DuoVerificationRequest(duoVerificationRequest).Execute() @@ -11087,7 +11089,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11096,7 +11098,7 @@ kbaanswerrequestitem := []byte(`[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]`) // []KbaAnswerRequestItem | - var kbaAnswerRequestItem beta.[]KbaAnswerRequestItem + var kbaAnswerRequestItem []beta.KbaAnswerRequestItem if err := json.Unmarshal(kbaanswerrequestitem, &kbaAnswerRequestItem); err != nil { fmt.Println("Error:", err) return @@ -11104,7 +11106,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MFAControllerAPI.SendKbaAnswers(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() //resp, r, err := apiClient.Beta.MFAControllerAPI.SendKbaAnswers(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() @@ -11127,7 +11129,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11146,7 +11148,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MFAControllerAPI.SendOktaVerifyRequest(context.Background()).OktaVerificationRequest(oktaVerificationRequest).Execute() //resp, r, err := apiClient.Beta.MFAControllerAPI.SendOktaVerifyRequest(context.Background()).OktaVerificationRequest(oktaVerificationRequest).Execute() @@ -11169,7 +11171,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11190,7 +11192,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MFAControllerAPI.SendTokenAuthRequest(context.Background()).TokenAuthRequest(tokenAuthRequest).Execute() //resp, r, err := apiClient.Beta.MFAControllerAPI.SendTokenAuthRequest(context.Background()).TokenAuthRequest(tokenAuthRequest).Execute() @@ -11213,7 +11215,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11255,7 +11257,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.CreateMultiHostIntegration(context.Background()).MultiHostIntegrationsCreate(multiHostIntegrationsCreate).Execute() //resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.CreateMultiHostIntegration(context.Background()).MultiHostIntegrationsCreate(multiHostIntegrationsCreate).Execute() @@ -11278,7 +11280,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11288,7 +11290,7 @@ multihostintegrationscreatesources := []byte(``) // []MultiHostIntegrationsCreateSources | The specifics of the sources to create within Multi-Host Integration. - var multiHostIntegrationsCreateSources beta.[]MultiHostIntegrationsCreateSources + var multiHostIntegrationsCreateSources []beta.MultiHostIntegrationsCreateSources if err := json.Unmarshal(multihostintegrationscreatesources, &multiHostIntegrationsCreateSources); err != nil { fmt.Println("Error:", err) return @@ -11296,7 +11298,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.MultiHostIntegrationAPI.CreateSourcesWithinMultiHost(context.Background(), multihostId).MultiHostIntegrationsCreateSources(multiHostIntegrationsCreateSources).Execute() //r, err := apiClient.Beta.MultiHostIntegrationAPI.CreateSourcesWithinMultiHost(context.Background(), multihostId).MultiHostIntegrationsCreateSources(multiHostIntegrationsCreateSources).Execute() @@ -11317,7 +11319,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11328,7 +11330,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.MultiHostIntegrationAPI.DeleteMultiHost(context.Background(), multihostId).Execute() //r, err := apiClient.Beta.MultiHostIntegrationAPI.DeleteMultiHost(context.Background(), multihostId).Execute() @@ -11349,7 +11351,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11360,7 +11362,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetAcctAggregationGroups(context.Background(), multihostId).Execute() //resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetAcctAggregationGroups(context.Background(), multihostId).Execute() @@ -11383,7 +11385,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11394,7 +11396,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetEntitlementAggregationGroups(context.Background(), multiHostId).Execute() //resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetEntitlementAggregationGroups(context.Background(), multiHostId).Execute() @@ -11417,7 +11419,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11428,7 +11430,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetMultiHostIntegrations(context.Background(), multihostId).Execute() //resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetMultiHostIntegrations(context.Background(), multihostId).Execute() @@ -11451,7 +11453,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11467,7 +11469,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetMultiHostIntegrationsList(context.Background()).Execute() //resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetMultiHostIntegrationsList(context.Background()).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).ForSubadmin(forSubadmin).Execute() @@ -11490,7 +11492,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11501,7 +11503,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetMultiHostSourceCreationErrors(context.Background(), multiHostId).Execute() //resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetMultiHostSourceCreationErrors(context.Background(), multiHostId).Execute() @@ -11524,7 +11526,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11534,7 +11536,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetMultihostIntegrationTypes(context.Background()).Execute() //resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetMultihostIntegrationTypes(context.Background()).Execute() @@ -11557,7 +11559,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11573,7 +11575,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetSourcesWithinMultiHost(context.Background(), multihostId).Execute() //resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.GetSourcesWithinMultiHost(context.Background(), multihostId).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).Execute() @@ -11596,7 +11598,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11607,7 +11609,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.MultiHostIntegrationAPI.TestConnectionMultiHostSources(context.Background(), multihostId).Execute() //r, err := apiClient.Beta.MultiHostIntegrationAPI.TestConnectionMultiHostSources(context.Background(), multihostId).Execute() @@ -11628,7 +11630,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11640,7 +11642,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.TestSourceConnectionMultihost(context.Background(), multihostId, sourceId).Execute() //resp, r, err := apiClient.Beta.MultiHostIntegrationAPI.TestSourceConnectionMultihost(context.Background(), multihostId, sourceId).Execute() @@ -11663,7 +11665,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11673,7 +11675,7 @@ updatemultihostsourcesrequestinner := []byte(`[{op=add, path=/description, value=MDK Multi-Host Integration 222 description}]`) // []UpdateMultiHostSourcesRequestInner | This endpoint allows you to update a Multi-Host Integration. - var updateMultiHostSourcesRequestInner beta.[]UpdateMultiHostSourcesRequestInner + var updateMultiHostSourcesRequestInner []beta.UpdateMultiHostSourcesRequestInner if err := json.Unmarshal(updatemultihostsourcesrequestinner, &updateMultiHostSourcesRequestInner); err != nil { fmt.Println("Error:", err) return @@ -11681,7 +11683,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.MultiHostIntegrationAPI.UpdateMultiHostSources(context.Background(), multihostId).UpdateMultiHostSourcesRequestInner(updateMultiHostSourcesRequestInner).Execute() //r, err := apiClient.Beta.MultiHostIntegrationAPI.UpdateMultiHostSources(context.Background(), multihostId).UpdateMultiHostSourcesRequestInner(updateMultiHostSourcesRequestInner).Execute() @@ -11702,7 +11704,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11722,7 +11724,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest(context.Background(), id).NonEmployeeApprovalDecision(nonEmployeeApprovalDecision).Execute() //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest(context.Background(), id).NonEmployeeApprovalDecision(nonEmployeeApprovalDecision).Execute() @@ -11745,7 +11747,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" "time" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -11776,7 +11778,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() @@ -11799,7 +11801,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" "time" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -11830,7 +11832,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() @@ -11853,7 +11855,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11895,7 +11897,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource(context.Background()).NonEmployeeSourceRequestBody(nonEmployeeSourceRequestBody).Execute() //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource(context.Background()).NonEmployeeSourceRequestBody(nonEmployeeSourceRequestBody).Execute() @@ -11918,7 +11920,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11943,7 +11945,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).NonEmployeeSchemaAttributeBody(nonEmployeeSchemaAttributeBody).Execute() //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).NonEmployeeSchemaAttributeBody(nonEmployeeSchemaAttributeBody).Execute() @@ -11966,7 +11968,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11977,7 +11979,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord(context.Background(), id).Execute() //r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord(context.Background(), id).Execute() @@ -11998,7 +12000,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12015,7 +12017,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordInBulk(context.Background()).DeleteNonEmployeeRecordInBulkRequest(deleteNonEmployeeRecordInBulkRequest).Execute() //r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordInBulk(context.Background()).DeleteNonEmployeeRecordInBulkRequest(deleteNonEmployeeRecordInBulkRequest).Execute() @@ -12036,7 +12038,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12047,7 +12049,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest(context.Background(), id).Execute() //r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest(context.Background(), id).Execute() @@ -12068,7 +12070,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12080,7 +12082,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() //r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() @@ -12101,7 +12103,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12112,7 +12114,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource(context.Background(), sourceId).Execute() //r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource(context.Background(), sourceId).Execute() @@ -12133,7 +12135,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12144,7 +12146,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() //r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() @@ -12165,7 +12167,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12176,7 +12178,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords(context.Background(), id).Execute() //r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords(context.Background(), id).Execute() @@ -12197,7 +12199,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12208,7 +12210,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate(context.Background(), id).Execute() //r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate(context.Background(), id).Execute() @@ -12229,7 +12231,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12241,7 +12243,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval(context.Background(), id).IncludeDetail(includeDetail).Execute() @@ -12264,7 +12266,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12275,7 +12277,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary(context.Background(), requestedFor).Execute() //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary(context.Background(), requestedFor).Execute() @@ -12298,7 +12300,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12309,7 +12311,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus(context.Background(), id).Execute() @@ -12332,7 +12334,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12343,7 +12345,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord(context.Background(), id).Execute() @@ -12366,7 +12368,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12377,7 +12379,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest(context.Background(), id).Execute() @@ -12400,7 +12402,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12411,7 +12413,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary(context.Background(), requestedFor).Execute() //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary(context.Background(), requestedFor).Execute() @@ -12434,7 +12436,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12446,7 +12448,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() @@ -12469,7 +12471,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12480,7 +12482,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource(context.Background(), sourceId).Execute() //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource(context.Background(), sourceId).Execute() @@ -12503,7 +12505,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12514,7 +12516,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() @@ -12537,7 +12539,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12549,7 +12551,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk(context.Background(), id).Data(data).Execute() //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk(context.Background(), id).Data(data).Execute() @@ -12572,7 +12574,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12588,7 +12590,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ListNonEmployeeApproval(context.Background()).Execute() //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ListNonEmployeeApproval(context.Background()).RequestedFor(requestedFor).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -12611,7 +12613,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12626,7 +12628,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords(context.Background()).Execute() //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords(context.Background()).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() @@ -12649,7 +12651,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12665,7 +12667,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests(context.Background()).RequestedFor(requestedFor).Execute() //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests(context.Background()).RequestedFor(requestedFor).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() @@ -12688,7 +12690,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12704,7 +12706,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources(context.Background()).Execute() //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources(context.Background()).Limit(limit).Offset(offset).Count(count).RequestedFor(requestedFor).NonEmployeeCount(nonEmployeeCount).Sorters(sorters).Execute() @@ -12727,7 +12729,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12737,7 +12739,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/endDate, value={2019-08-23T18:40:35.772Z=null}}]`) // []JsonPatchOperation | A list of non-employee update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Attributes are restricted by user type. Owner of source can update end date. Organization admins can update all available fields. - var jsonPatchOperation beta.[]JsonPatchOperation + var jsonPatchOperation []beta.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -12745,7 +12747,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -12768,7 +12770,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12779,7 +12781,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/label, value={new attribute label=null}}]`) // []JsonPatchOperation | A list of schema attribute update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following properties are allowed for update ':' 'label', 'helpText', 'placeholder', 'required'. - var jsonPatchOperation beta.[]JsonPatchOperation + var jsonPatchOperation []beta.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -12787,7 +12789,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -12810,7 +12812,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12820,7 +12822,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/name, value={new name=null}}, {op=replace, path=/approvers, value=[2c91809f703bb37a017040a2fe8748c7, 48b1f463c9e8427db5a5071bd81914b8]}]`) // []JsonPatchOperation | A list of non-employee source update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - var jsonPatchOperation beta.[]JsonPatchOperation + var jsonPatchOperation []beta.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -12828,7 +12830,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource(context.Background(), sourceId).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource(context.Background(), sourceId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -12851,7 +12853,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12871,7 +12873,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest(context.Background(), id).NonEmployeeRejectApprovalDecision(nonEmployeeRejectApprovalDecision).Execute() //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest(context.Background(), id).NonEmployeeRejectApprovalDecision(nonEmployeeRejectApprovalDecision).Execute() @@ -12894,7 +12896,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" "time" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -12926,7 +12928,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord(context.Background(), id).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() //resp, r, err := apiClient.Beta.NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord(context.Background(), id).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() @@ -12949,7 +12951,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12968,7 +12970,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NotificationsAPI.CreateDomainDkim(context.Background()).DomainAddress(domainAddress).Execute() //resp, r, err := apiClient.Beta.NotificationsAPI.CreateDomainDkim(context.Background()).DomainAddress(domainAddress).Execute() @@ -12991,7 +12993,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13025,7 +13027,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NotificationsAPI.CreateNotificationTemplate(context.Background()).TemplateDto(templateDto).Execute() //resp, r, err := apiClient.Beta.NotificationsAPI.CreateNotificationTemplate(context.Background()).TemplateDto(templateDto).Execute() @@ -13048,7 +13050,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13070,7 +13072,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NotificationsAPI.CreateVerifiedFromAddress(context.Background()).EmailStatusDto(emailStatusDto).Execute() //resp, r, err := apiClient.Beta.NotificationsAPI.CreateVerifiedFromAddress(context.Background()).EmailStatusDto(emailStatusDto).Execute() @@ -13093,7 +13095,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13102,7 +13104,7 @@ templatebulkdeletedto := []byte(``) // []TemplateBulkDeleteDto | - var templateBulkDeleteDto beta.[]TemplateBulkDeleteDto + var templateBulkDeleteDto []beta.TemplateBulkDeleteDto if err := json.Unmarshal(templatebulkdeletedto, &templateBulkDeleteDto); err != nil { fmt.Println("Error:", err) return @@ -13110,7 +13112,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.NotificationsAPI.DeleteNotificationTemplatesInBulk(context.Background()).TemplateBulkDeleteDto(templateBulkDeleteDto).Execute() //r, err := apiClient.Beta.NotificationsAPI.DeleteNotificationTemplatesInBulk(context.Background()).TemplateBulkDeleteDto(templateBulkDeleteDto).Execute() @@ -13131,7 +13133,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13142,7 +13144,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.NotificationsAPI.DeleteVerifiedFromAddress(context.Background(), id).Execute() //r, err := apiClient.Beta.NotificationsAPI.DeleteVerifiedFromAddress(context.Background(), id).Execute() @@ -13163,7 +13165,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13173,7 +13175,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NotificationsAPI.GetDkimAttributes(context.Background()).Execute() //resp, r, err := apiClient.Beta.NotificationsAPI.GetDkimAttributes(context.Background()).Execute() @@ -13196,7 +13198,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13207,7 +13209,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NotificationsAPI.GetMailFromAttributes(context.Background(), identityId).Execute() //resp, r, err := apiClient.Beta.NotificationsAPI.GetMailFromAttributes(context.Background(), identityId).Execute() @@ -13230,7 +13232,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13241,7 +13243,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NotificationsAPI.GetNotificationTemplate(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.NotificationsAPI.GetNotificationTemplate(context.Background(), id).Execute() @@ -13264,7 +13266,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13274,7 +13276,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NotificationsAPI.GetNotificationsTemplateContext(context.Background()).Execute() //resp, r, err := apiClient.Beta.NotificationsAPI.GetNotificationsTemplateContext(context.Background()).Execute() @@ -13297,7 +13299,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13312,7 +13314,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NotificationsAPI.ListFromAddresses(context.Background()).Execute() //resp, r, err := apiClient.Beta.NotificationsAPI.ListFromAddresses(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -13335,7 +13337,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13346,7 +13348,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NotificationsAPI.ListNotificationPreferences(context.Background(), key).Execute() //resp, r, err := apiClient.Beta.NotificationsAPI.ListNotificationPreferences(context.Background(), key).Execute() @@ -13369,7 +13371,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13382,7 +13384,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NotificationsAPI.ListNotificationTemplateDefaults(context.Background()).Execute() //resp, r, err := apiClient.Beta.NotificationsAPI.ListNotificationTemplateDefaults(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() @@ -13405,7 +13407,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13418,7 +13420,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NotificationsAPI.ListNotificationTemplates(context.Background()).Execute() //resp, r, err := apiClient.Beta.NotificationsAPI.ListNotificationTemplates(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() @@ -13441,7 +13443,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13461,7 +13463,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.NotificationsAPI.PutMailFromAttributes(context.Background()).MailFromAttributesDto(mailFromAttributesDto).Execute() //resp, r, err := apiClient.Beta.NotificationsAPI.PutMailFromAttributes(context.Background()).MailFromAttributesDto(mailFromAttributesDto).Execute() @@ -13484,7 +13486,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13505,7 +13507,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.NotificationsAPI.SendTestNotification(context.Background()).SendTestNotificationRequestDto(sendTestNotificationRequestDto).Execute() //r, err := apiClient.Beta.NotificationsAPI.SendTestNotification(context.Background()).SendTestNotificationRequestDto(sendTestNotificationRequestDto).Execute() @@ -13526,7 +13528,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13559,7 +13561,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.OAuthClientsAPI.CreateOauthClient(context.Background()).CreateOAuthClientRequest(createOAuthClientRequest).Execute() //resp, r, err := apiClient.Beta.OAuthClientsAPI.CreateOauthClient(context.Background()).CreateOAuthClientRequest(createOAuthClientRequest).Execute() @@ -13582,7 +13584,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13593,7 +13595,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.OAuthClientsAPI.DeleteOauthClient(context.Background(), id).Execute() //r, err := apiClient.Beta.OAuthClientsAPI.DeleteOauthClient(context.Background(), id).Execute() @@ -13614,7 +13616,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13625,7 +13627,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.OAuthClientsAPI.GetOauthClient(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.OAuthClientsAPI.GetOauthClient(context.Background(), id).Execute() @@ -13648,7 +13650,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13659,7 +13661,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.OAuthClientsAPI.ListOauthClients(context.Background()).Execute() //resp, r, err := apiClient.Beta.OAuthClientsAPI.ListOauthClients(context.Background()).Filters(filters).Execute() @@ -13682,7 +13684,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13692,7 +13694,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/strongAuthSupported, value=true}, {op=replace, path=/businessName, value=acme-solar}]`) // []JsonPatchOperation | A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * tenant * businessName * homepageUrl * name * description * accessTokenValiditySeconds * refreshTokenValiditySeconds * redirectUris * grantTypes * accessType * enabled * strongAuthSupported * claimsSupported - var jsonPatchOperation beta.[]JsonPatchOperation + var jsonPatchOperation []beta.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -13700,7 +13702,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.OAuthClientsAPI.PatchOauthClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.Beta.OAuthClientsAPI.PatchOauthClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -13723,7 +13725,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13733,7 +13735,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.OrgConfigAPI.GetOrgConfig(context.Background()).Execute() //resp, r, err := apiClient.Beta.OrgConfigAPI.GetOrgConfig(context.Background()).Execute() @@ -13756,7 +13758,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13766,7 +13768,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.OrgConfigAPI.GetValidTimeZones(context.Background()).Execute() //resp, r, err := apiClient.Beta.OrgConfigAPI.GetValidTimeZones(context.Background()).Execute() @@ -13789,7 +13791,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13798,7 +13800,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/timeZone, value=America/Toronto}]`) // []JsonPatchOperation | A list of schema attribute update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - var jsonPatchOperation beta.[]JsonPatchOperation + var jsonPatchOperation []beta.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -13806,7 +13808,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.OrgConfigAPI.PatchOrgConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.Beta.OrgConfigAPI.PatchOrgConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() @@ -13829,7 +13831,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13851,7 +13853,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PasswordConfigurationAPI.CreatePasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() //resp, r, err := apiClient.Beta.PasswordConfigurationAPI.CreatePasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() @@ -13874,7 +13876,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13884,7 +13886,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PasswordConfigurationAPI.GetPasswordOrgConfig(context.Background()).Execute() //resp, r, err := apiClient.Beta.PasswordConfigurationAPI.GetPasswordOrgConfig(context.Background()).Execute() @@ -13907,7 +13909,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13929,7 +13931,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PasswordConfigurationAPI.PutPasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() //resp, r, err := apiClient.Beta.PasswordConfigurationAPI.PutPasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() @@ -13952,7 +13954,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13962,7 +13964,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PasswordDictionaryAPI.GetPasswordDictionary(context.Background()).Execute() //resp, r, err := apiClient.Beta.PasswordDictionaryAPI.GetPasswordDictionary(context.Background()).Execute() @@ -13985,7 +13987,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13996,7 +13998,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.PasswordDictionaryAPI.PutPasswordDictionary(context.Background()).Execute() //r, err := apiClient.Beta.PasswordDictionaryAPI.PutPasswordDictionary(context.Background()).File(file).Execute() @@ -14017,7 +14019,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14038,7 +14040,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PasswordManagementAPI.CreateDigitToken(context.Background()).PasswordDigitTokenReset(passwordDigitTokenReset).Execute() //resp, r, err := apiClient.Beta.PasswordManagementAPI.CreateDigitToken(context.Background()).PasswordDigitTokenReset(passwordDigitTokenReset).Execute() @@ -14061,7 +14063,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14072,7 +14074,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PasswordManagementAPI.GetIdentityPasswordChangeStatus(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.PasswordManagementAPI.GetIdentityPasswordChangeStatus(context.Background(), id).Execute() @@ -14095,7 +14097,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14115,7 +14117,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PasswordManagementAPI.QueryPasswordInfo(context.Background()).PasswordInfoQueryDTO(passwordInfoQueryDTO).Execute() //resp, r, err := apiClient.Beta.PasswordManagementAPI.QueryPasswordInfo(context.Background()).PasswordInfoQueryDTO(passwordInfoQueryDTO).Execute() @@ -14138,7 +14140,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14161,7 +14163,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PasswordManagementAPI.SetIdentityPassword(context.Background()).PasswordChangeRequest(passwordChangeRequest).Execute() //resp, r, err := apiClient.Beta.PasswordManagementAPI.SetIdentityPassword(context.Background()).PasswordChangeRequest(passwordChangeRequest).Execute() @@ -14184,7 +14186,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14233,7 +14235,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PasswordPoliciesAPI.CreatePasswordPolicy(context.Background()).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() //resp, r, err := apiClient.Beta.PasswordPoliciesAPI.CreatePasswordPolicy(context.Background()).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() @@ -14256,7 +14258,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14267,7 +14269,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.PasswordPoliciesAPI.DeletePasswordPolicy(context.Background(), id).Execute() //r, err := apiClient.Beta.PasswordPoliciesAPI.DeletePasswordPolicy(context.Background(), id).Execute() @@ -14288,7 +14290,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14299,7 +14301,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PasswordPoliciesAPI.GetPasswordPolicyById(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.PasswordPoliciesAPI.GetPasswordPolicyById(context.Background(), id).Execute() @@ -14322,7 +14324,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14335,7 +14337,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PasswordPoliciesAPI.ListPasswordPolicies(context.Background()).Execute() //resp, r, err := apiClient.Beta.PasswordPoliciesAPI.ListPasswordPolicies(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() @@ -14358,7 +14360,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14408,7 +14410,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PasswordPoliciesAPI.SetPasswordPolicy(context.Background(), id).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() //resp, r, err := apiClient.Beta.PasswordPoliciesAPI.SetPasswordPolicy(context.Background(), id).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() @@ -14431,7 +14433,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14455,7 +14457,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PasswordSyncGroupsAPI.CreatePasswordSyncGroup(context.Background()).PasswordSyncGroup(passwordSyncGroup).Execute() //resp, r, err := apiClient.Beta.PasswordSyncGroupsAPI.CreatePasswordSyncGroup(context.Background()).PasswordSyncGroup(passwordSyncGroup).Execute() @@ -14478,7 +14480,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14489,7 +14491,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.PasswordSyncGroupsAPI.DeletePasswordSyncGroup(context.Background(), id).Execute() //r, err := apiClient.Beta.PasswordSyncGroupsAPI.DeletePasswordSyncGroup(context.Background(), id).Execute() @@ -14510,7 +14512,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14521,7 +14523,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PasswordSyncGroupsAPI.GetPasswordSyncGroup(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.PasswordSyncGroupsAPI.GetPasswordSyncGroup(context.Background(), id).Execute() @@ -14544,7 +14546,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14557,7 +14559,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PasswordSyncGroupsAPI.GetPasswordSyncGroups(context.Background()).Execute() //resp, r, err := apiClient.Beta.PasswordSyncGroupsAPI.GetPasswordSyncGroups(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() @@ -14580,7 +14582,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14605,7 +14607,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PasswordSyncGroupsAPI.UpdatePasswordSyncGroup(context.Background(), id).PasswordSyncGroup(passwordSyncGroup).Execute() //resp, r, err := apiClient.Beta.PasswordSyncGroupsAPI.UpdatePasswordSyncGroup(context.Background(), id).PasswordSyncGroup(passwordSyncGroup).Execute() @@ -14628,7 +14630,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14649,7 +14651,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PersonalAccessTokensAPI.CreatePersonalAccessToken(context.Background()).CreatePersonalAccessTokenRequest(createPersonalAccessTokenRequest).Execute() //resp, r, err := apiClient.Beta.PersonalAccessTokensAPI.CreatePersonalAccessToken(context.Background()).CreatePersonalAccessTokenRequest(createPersonalAccessTokenRequest).Execute() @@ -14672,7 +14674,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14683,7 +14685,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.PersonalAccessTokensAPI.DeletePersonalAccessToken(context.Background(), id).Execute() //r, err := apiClient.Beta.PersonalAccessTokensAPI.DeletePersonalAccessToken(context.Background(), id).Execute() @@ -14704,7 +14706,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14716,7 +14718,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PersonalAccessTokensAPI.ListPersonalAccessTokens(context.Background()).Execute() //resp, r, err := apiClient.Beta.PersonalAccessTokensAPI.ListPersonalAccessTokens(context.Background()).OwnerId(ownerId).Filters(filters).Execute() @@ -14739,7 +14741,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14749,7 +14751,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/name, value=New name}, {op=replace, path=/scope, value=[sp:scopes:all]}]`) // []JsonPatchOperation | A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * scope - var jsonPatchOperation beta.[]JsonPatchOperation + var jsonPatchOperation []beta.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -14757,7 +14759,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PersonalAccessTokensAPI.PatchPersonalAccessToken(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.Beta.PersonalAccessTokensAPI.PatchPersonalAccessToken(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -14780,7 +14782,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14790,7 +14792,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PublicIdentitiesConfigAPI.GetPublicIdentityConfig(context.Background()).Execute() //resp, r, err := apiClient.Beta.PublicIdentitiesConfigAPI.GetPublicIdentityConfig(context.Background()).Execute() @@ -14813,7 +14815,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14844,7 +14846,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig(context.Background()).PublicIdentityConfig(publicIdentityConfig).Execute() //resp, r, err := apiClient.Beta.PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig(context.Background()).PublicIdentityConfig(publicIdentityConfig).Execute() @@ -14867,7 +14869,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14886,7 +14888,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.RequestableObjectsAPI.ListRequestableObjects(context.Background()).Execute() //resp, r, err := apiClient.Beta.RequestableObjectsAPI.ListRequestableObjects(context.Background()).IdentityId(identityId).Types(types).Term(term).Statuses(statuses).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -14909,7 +14911,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14919,7 +14921,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.RoleInsightsAPI.CreateRoleInsightRequests(context.Background()).Execute() //resp, r, err := apiClient.Beta.RoleInsightsAPI.CreateRoleInsightRequests(context.Background()).Execute() @@ -14942,7 +14944,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14955,7 +14957,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.RoleInsightsAPI.DownloadRoleInsightsEntitlementsChanges(context.Background(), insightId).Execute() //resp, r, err := apiClient.Beta.RoleInsightsAPI.DownloadRoleInsightsEntitlementsChanges(context.Background(), insightId).Sorters(sorters).Filters(filters).Execute() @@ -14978,7 +14980,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14996,7 +14998,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.RoleInsightsAPI.GetEntitlementChangesIdentities(context.Background(), insightId, entitlementId).Execute() //resp, r, err := apiClient.Beta.RoleInsightsAPI.GetEntitlementChangesIdentities(context.Background(), insightId, entitlementId).HasEntitlement(hasEntitlement).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Filters(filters).Execute() @@ -15019,7 +15021,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15030,7 +15032,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsight(context.Background(), insightId).Execute() //resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsight(context.Background(), insightId).Execute() @@ -15053,7 +15055,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15068,7 +15070,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsights(context.Background()).Execute() //resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsights(context.Background()).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Filters(filters).Execute() @@ -15091,7 +15093,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15103,7 +15105,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsightsCurrentEntitlements(context.Background(), insightId).Execute() //resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsightsCurrentEntitlements(context.Background(), insightId).Filters(filters).Execute() @@ -15126,7 +15128,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15139,7 +15141,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsightsEntitlementsChanges(context.Background(), insightId).Execute() //resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsightsEntitlementsChanges(context.Background(), insightId).Sorters(sorters).Filters(filters).Execute() @@ -15162,7 +15164,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15173,7 +15175,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsightsRequests(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsightsRequests(context.Background(), id).Execute() @@ -15196,7 +15198,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15206,7 +15208,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsightsSummary(context.Background()).Execute() //resp, r, err := apiClient.Beta.RoleInsightsAPI.GetRoleInsightsSummary(context.Background()).Execute() @@ -15229,7 +15231,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15404,7 +15406,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.RolesAPI.CreateRole(context.Background()).Role(role).Execute() //resp, r, err := apiClient.Beta.RolesAPI.CreateRole(context.Background()).Role(role).Execute() @@ -15427,7 +15429,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15446,7 +15448,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.RolesAPI.DeleteBulkRoles(context.Background()).RoleBulkDeleteRequest(roleBulkDeleteRequest).Execute() //resp, r, err := apiClient.Beta.RolesAPI.DeleteBulkRoles(context.Background()).RoleBulkDeleteRequest(roleBulkDeleteRequest).Execute() @@ -15469,7 +15471,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15480,7 +15482,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.RolesAPI.DeleteRole(context.Background(), id).Execute() //r, err := apiClient.Beta.RolesAPI.DeleteRole(context.Background(), id).Execute() @@ -15501,7 +15503,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15512,7 +15514,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.RolesAPI.GetRole(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.RolesAPI.GetRole(context.Background(), id).Execute() @@ -15535,7 +15537,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15551,7 +15553,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.RolesAPI.GetRoleAssignedIdentities(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.RolesAPI.GetRoleAssignedIdentities(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -15574,7 +15576,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15590,7 +15592,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.RolesAPI.GetRoleEntitlements(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.RolesAPI.GetRoleEntitlements(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -15613,7 +15615,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15631,7 +15633,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.RolesAPI.ListRoles(context.Background()).Execute() //resp, r, err := apiClient.Beta.RolesAPI.ListRoles(context.Background()).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).Execute() @@ -15654,7 +15656,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15664,7 +15666,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/requestable, value=true}, {op=replace, path=/enabled, value=true}]`) // []JsonPatchOperation | - var jsonPatchOperation beta.[]JsonPatchOperation + var jsonPatchOperation []beta.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -15672,7 +15674,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.RolesAPI.PatchRole(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.Beta.RolesAPI.PatchRole(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -15695,7 +15697,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15719,7 +15721,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SearchAttributeConfigurationAPI.CreateSearchAttributeConfig(context.Background()).SearchAttributeConfig(searchAttributeConfig).Execute() //resp, r, err := apiClient.Beta.SearchAttributeConfigurationAPI.CreateSearchAttributeConfig(context.Background()).SearchAttributeConfig(searchAttributeConfig).Execute() @@ -15742,7 +15744,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15753,7 +15755,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig(context.Background(), name).Execute() //r, err := apiClient.Beta.SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig(context.Background(), name).Execute() @@ -15774,7 +15776,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15786,7 +15788,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SearchAttributeConfigurationAPI.GetSearchAttributeConfig(context.Background()).Execute() //resp, r, err := apiClient.Beta.SearchAttributeConfigurationAPI.GetSearchAttributeConfig(context.Background()).Limit(limit).Offset(offset).Execute() @@ -15809,7 +15811,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15820,7 +15822,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig(context.Background(), name).Execute() //resp, r, err := apiClient.Beta.SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig(context.Background(), name).Execute() @@ -15843,7 +15845,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15853,7 +15855,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/name, value=newAttributeName}, {op=replace, path=/displayName, value=new attribute display name}, {op=add, path=/applicationAttributes, value={2c91808b79fd2422017a0b35d30f3968=employeeNumber}}]`) // []JsonPatchOperation | - var jsonPatchOperation beta.[]JsonPatchOperation + var jsonPatchOperation []beta.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -15861,7 +15863,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SearchAttributeConfigurationAPI.PatchSearchAttributeConfig(context.Background(), name).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.Beta.SearchAttributeConfigurationAPI.PatchSearchAttributeConfig(context.Background(), name).JsonPatchOperation(jsonPatchOperation).Execute() @@ -15884,7 +15886,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15924,7 +15926,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SegmentsAPI.CreateSegment(context.Background()).Segment(segment).Execute() //resp, r, err := apiClient.Beta.SegmentsAPI.CreateSegment(context.Background()).Segment(segment).Execute() @@ -15947,7 +15949,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15958,7 +15960,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.SegmentsAPI.DeleteSegment(context.Background(), id).Execute() //r, err := apiClient.Beta.SegmentsAPI.DeleteSegment(context.Background(), id).Execute() @@ -15979,7 +15981,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15990,7 +15992,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SegmentsAPI.GetSegment(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.SegmentsAPI.GetSegment(context.Background(), id).Execute() @@ -16013,7 +16015,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16026,7 +16028,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SegmentsAPI.ListSegments(context.Background()).Execute() //resp, r, err := apiClient.Beta.SegmentsAPI.ListSegments(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() @@ -16049,7 +16051,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16059,7 +16061,7 @@ requestbody := []byte(`[{op=replace, path=/visibilityCriteria, value={expression={operator=AND, children=[{operator=EQUALS, attribute=location, value={type=STRING, value=Philadelphia}}, {operator=EQUALS, attribute=department, value={type=STRING, value=HR}}]}}}]`) // []map[string]interface{} | A list of segment update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * owner * visibilityCriteria * active - var requestBody beta.[]RequestBody + var requestBody []beta.RequestBody if err := json.Unmarshal(requestbody, &requestBody); err != nil { fmt.Println("Error:", err) return @@ -16067,7 +16069,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SegmentsAPI.PatchSegment(context.Background(), id).RequestBody(requestBody).Execute() //resp, r, err := apiClient.Beta.SegmentsAPI.PatchSegment(context.Background(), id).RequestBody(requestBody).Execute() @@ -16090,7 +16092,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16137,7 +16139,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.CreateServiceDeskIntegration(context.Background()).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() //resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.CreateServiceDeskIntegration(context.Background()).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() @@ -16160,7 +16162,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16171,7 +16173,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration(context.Background(), id).Execute() //r, err := apiClient.Beta.ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration(context.Background(), id).Execute() @@ -16192,7 +16194,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16203,7 +16205,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.GetServiceDeskIntegration(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.GetServiceDeskIntegration(context.Background(), id).Execute() @@ -16226,7 +16228,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16241,7 +16243,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationList(context.Background()).Execute() //resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationList(context.Background()).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).Execute() @@ -16264,7 +16266,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16275,7 +16277,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate(context.Background(), scriptName).Execute() //resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate(context.Background(), scriptName).Execute() @@ -16298,7 +16300,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16308,7 +16310,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes(context.Background()).Execute() //resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes(context.Background()).Execute() @@ -16331,7 +16333,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16341,7 +16343,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.GetStatusCheckDetails(context.Background()).Execute() //resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.GetStatusCheckDetails(context.Background()).Execute() @@ -16364,7 +16366,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16374,7 +16376,7 @@ jsonpatchoperation := []byte(``) // []JsonPatchOperation | A list of SDIM update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Only `replace` operations are accepted by this endpoint. A 403 Forbidden Error indicates that a PATCH operation was attempted that is not allowed. - var jsonPatchOperation beta.[]JsonPatchOperation + var jsonPatchOperation []beta.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -16382,7 +16384,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.PatchServiceDeskIntegration(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.PatchServiceDeskIntegration(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -16405,7 +16407,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16453,7 +16455,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.PutServiceDeskIntegration(context.Background(), id).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() //resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.PutServiceDeskIntegration(context.Background(), id).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() @@ -16476,7 +16478,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16496,7 +16498,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.UpdateStatusCheckDetails(context.Background()).QueuedCheckConfigDetails(queuedCheckConfigDetails).Execute() //resp, r, err := apiClient.Beta.ServiceDeskIntegrationAPI.UpdateStatusCheckDetails(context.Background()).QueuedCheckConfigDetails(queuedCheckConfigDetails).Execute() @@ -16519,7 +16521,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16553,7 +16555,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SIMIntegrationsAPI.CreateSIMIntegration(context.Background()).SimIntegrationDetails(simIntegrationDetails).Execute() //resp, r, err := apiClient.Beta.SIMIntegrationsAPI.CreateSIMIntegration(context.Background()).SimIntegrationDetails(simIntegrationDetails).Execute() @@ -16576,7 +16578,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16587,7 +16589,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.SIMIntegrationsAPI.DeleteSIMIntegration(context.Background(), id).Execute() //r, err := apiClient.Beta.SIMIntegrationsAPI.DeleteSIMIntegration(context.Background(), id).Execute() @@ -16608,7 +16610,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16619,7 +16621,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SIMIntegrationsAPI.GetSIMIntegration(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.SIMIntegrationsAPI.GetSIMIntegration(context.Background(), id).Execute() @@ -16642,7 +16644,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16652,7 +16654,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SIMIntegrationsAPI.GetSIMIntegrations(context.Background()).Execute() //resp, r, err := apiClient.Beta.SIMIntegrationsAPI.GetSIMIntegrations(context.Background()).Execute() @@ -16675,7 +16677,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16693,7 +16695,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SIMIntegrationsAPI.PatchBeforeProvisioningRule(context.Background(), id).JsonPatch(jsonPatch).Execute() //resp, r, err := apiClient.Beta.SIMIntegrationsAPI.PatchBeforeProvisioningRule(context.Background(), id).JsonPatch(jsonPatch).Execute() @@ -16716,7 +16718,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16734,7 +16736,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SIMIntegrationsAPI.PatchSIMAttributes(context.Background(), id).JsonPatch(jsonPatch).Execute() //resp, r, err := apiClient.Beta.SIMIntegrationsAPI.PatchSIMAttributes(context.Background(), id).JsonPatch(jsonPatch).Execute() @@ -16757,7 +16759,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16792,7 +16794,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SIMIntegrationsAPI.PutSIMIntegration(context.Background(), id).SimIntegrationDetails(simIntegrationDetails).Execute() //resp, r, err := apiClient.Beta.SIMIntegrationsAPI.PutSIMIntegration(context.Background(), id).SimIntegrationDetails(simIntegrationDetails).Execute() @@ -16815,7 +16817,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16887,7 +16889,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SODPoliciesAPI.CreateSodPolicy(context.Background()).SodPolicy(sodPolicy).Execute() //resp, r, err := apiClient.Beta.SODPoliciesAPI.CreateSodPolicy(context.Background()).SodPolicy(sodPolicy).Execute() @@ -16910,7 +16912,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16922,7 +16924,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.SODPoliciesAPI.DeleteSodPolicy(context.Background(), id).Execute() //r, err := apiClient.Beta.SODPoliciesAPI.DeleteSodPolicy(context.Background(), id).Logical(logical).Execute() @@ -16943,7 +16945,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16954,7 +16956,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.SODPoliciesAPI.DeleteSodPolicySchedule(context.Background(), id).Execute() //r, err := apiClient.Beta.SODPoliciesAPI.DeleteSodPolicySchedule(context.Background(), id).Execute() @@ -16975,7 +16977,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16987,7 +16989,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SODPoliciesAPI.GetCustomViolationReport(context.Background(), reportResultId, fileName).Execute() //resp, r, err := apiClient.Beta.SODPoliciesAPI.GetCustomViolationReport(context.Background(), reportResultId, fileName).Execute() @@ -17010,7 +17012,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17021,7 +17023,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SODPoliciesAPI.GetDefaultViolationReport(context.Background(), reportResultId).Execute() //resp, r, err := apiClient.Beta.SODPoliciesAPI.GetDefaultViolationReport(context.Background(), reportResultId).Execute() @@ -17044,7 +17046,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17054,7 +17056,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SODPoliciesAPI.GetSodAllReportRunStatus(context.Background()).Execute() //resp, r, err := apiClient.Beta.SODPoliciesAPI.GetSodAllReportRunStatus(context.Background()).Execute() @@ -17077,7 +17079,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17088,7 +17090,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SODPoliciesAPI.GetSodPolicy(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.SODPoliciesAPI.GetSodPolicy(context.Background(), id).Execute() @@ -17111,7 +17113,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17122,7 +17124,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SODPoliciesAPI.GetSodPolicySchedule(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.SODPoliciesAPI.GetSodPolicySchedule(context.Background(), id).Execute() @@ -17145,7 +17147,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17156,7 +17158,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SODPoliciesAPI.GetSodViolationReportRunStatus(context.Background(), reportResultId).Execute() //resp, r, err := apiClient.Beta.SODPoliciesAPI.GetSodViolationReportRunStatus(context.Background(), reportResultId).Execute() @@ -17179,7 +17181,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17190,7 +17192,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SODPoliciesAPI.GetSodViolationReportStatus(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.SODPoliciesAPI.GetSodViolationReportStatus(context.Background(), id).Execute() @@ -17213,7 +17215,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17228,7 +17230,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SODPoliciesAPI.ListSodPolicies(context.Background()).Execute() //resp, r, err := apiClient.Beta.SODPoliciesAPI.ListSodPolicies(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -17251,7 +17253,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17261,7 +17263,7 @@ requestbody := []byte(`[{op=replace, path=/description, value=Modified description}, {op=replace, path=/conflictingAccessCriteria/leftCriteria/name, value=money-in-modified}, {op=replace, path=/conflictingAccessCriteria/rightCriteria, value={name=money-out-modified, criteriaList=[{type=ENTITLEMENT, id=2c918087682f9a86016839c0509c1ab2}]}}]`) // []map[string]interface{} | A list of SOD Policy update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * ownerRef * externalPolicyReference * compensatingControls * correctionAdvice * state * tags * violationOwnerAssignmentConfig * scheduled * conflictingAccessCriteria - var requestBody beta.[]RequestBody + var requestBody []beta.RequestBody if err := json.Unmarshal(requestbody, &requestBody); err != nil { fmt.Println("Error:", err) return @@ -17269,7 +17271,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SODPoliciesAPI.PatchSodPolicy(context.Background(), id).RequestBody(requestBody).Execute() //resp, r, err := apiClient.Beta.SODPoliciesAPI.PatchSodPolicy(context.Background(), id).RequestBody(requestBody).Execute() @@ -17292,7 +17294,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17395,7 +17397,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SODPoliciesAPI.PutPolicySchedule(context.Background(), id).SodPolicySchedule(sodPolicySchedule).Execute() //resp, r, err := apiClient.Beta.SODPoliciesAPI.PutPolicySchedule(context.Background(), id).SodPolicySchedule(sodPolicySchedule).Execute() @@ -17418,7 +17420,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17491,7 +17493,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SODPoliciesAPI.PutSodPolicy(context.Background(), id).SodPolicy(sodPolicy).Execute() //resp, r, err := apiClient.Beta.SODPoliciesAPI.PutSodPolicy(context.Background(), id).SodPolicy(sodPolicy).Execute() @@ -17514,7 +17516,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17527,7 +17529,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SODPoliciesAPI.StartSodAllPoliciesForOrg(context.Background()).Execute() //resp, r, err := apiClient.Beta.SODPoliciesAPI.StartSodAllPoliciesForOrg(context.Background()).MultiPolicyRequest(multiPolicyRequest).Execute() @@ -17550,7 +17552,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17561,7 +17563,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SODPoliciesAPI.StartSodPolicy(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.SODPoliciesAPI.StartSodPolicy(context.Background(), id).Execute() @@ -17584,7 +17586,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17612,7 +17614,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SODViolationsAPI.StartPredictSodViolations(context.Background()).IdentityWithNewAccess(identityWithNewAccess).Execute() //resp, r, err := apiClient.Beta.SODViolationsAPI.StartPredictSodViolations(context.Background()).IdentityWithNewAccess(identityWithNewAccess).Execute() @@ -17635,7 +17637,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17692,7 +17694,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.CreateProvisioningPolicy(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() //resp, r, err := apiClient.Beta.SourcesAPI.CreateProvisioningPolicy(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() @@ -17715,7 +17717,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17815,7 +17817,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.CreateSource(context.Background()).Source(source).Execute() //resp, r, err := apiClient.Beta.SourcesAPI.CreateSource(context.Background()).Source(source).ProvisionAsCsv(provisionAsCsv).Execute() @@ -17838,7 +17840,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17889,7 +17891,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.CreateSourceSchema(context.Background(), sourceId).Schema(schema).Execute() //resp, r, err := apiClient.Beta.SourcesAPI.CreateSourceSchema(context.Background(), sourceId).Schema(schema).Execute() @@ -17912,7 +17914,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17923,7 +17925,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.Delete(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.SourcesAPI.Delete(context.Background(), id).Execute() @@ -17946,7 +17948,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17957,7 +17959,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.DeleteAccountsAsync(context.Background(), sourceId).Execute() //resp, r, err := apiClient.Beta.SourcesAPI.DeleteAccountsAsync(context.Background(), sourceId).Execute() @@ -17980,7 +17982,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17991,7 +17993,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.SourcesAPI.DeleteNativeChangeDetectionConfig(context.Background(), sourceId).Execute() //r, err := apiClient.Beta.SourcesAPI.DeleteNativeChangeDetectionConfig(context.Background(), sourceId).Execute() @@ -18012,7 +18014,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18024,7 +18026,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.SourcesAPI.DeleteProvisioningPolicy(context.Background(), sourceId, usageType).Execute() //r, err := apiClient.Beta.SourcesAPI.DeleteProvisioningPolicy(context.Background(), sourceId, usageType).Execute() @@ -18045,7 +18047,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18057,7 +18059,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.SourcesAPI.DeleteSourceSchema(context.Background(), sourceId, schemaId).Execute() //r, err := apiClient.Beta.SourcesAPI.DeleteSourceSchema(context.Background(), sourceId, schemaId).Execute() @@ -18078,7 +18080,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18089,7 +18091,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.GetCorrelationConfig(context.Background(), sourceId).Execute() //resp, r, err := apiClient.Beta.SourcesAPI.GetCorrelationConfig(context.Background(), sourceId).Execute() @@ -18112,7 +18114,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18123,7 +18125,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.GetNativeChangeDetectionConfig(context.Background(), sourceId).Execute() //resp, r, err := apiClient.Beta.SourcesAPI.GetNativeChangeDetectionConfig(context.Background(), sourceId).Execute() @@ -18146,7 +18148,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18158,7 +18160,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.GetProvisioningPolicy(context.Background(), sourceId, usageType).Execute() //resp, r, err := apiClient.Beta.SourcesAPI.GetProvisioningPolicy(context.Background(), sourceId, usageType).Execute() @@ -18181,7 +18183,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18192,7 +18194,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.GetSource(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.SourcesAPI.GetSource(context.Background(), id).Execute() @@ -18215,7 +18217,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18226,7 +18228,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.SourcesAPI.GetSourceAccountsSchema(context.Background(), sourceId).Execute() //r, err := apiClient.Beta.SourcesAPI.GetSourceAccountsSchema(context.Background(), sourceId).Execute() @@ -18247,7 +18249,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18258,7 +18260,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.GetSourceAttrSyncConfig(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.SourcesAPI.GetSourceAttrSyncConfig(context.Background(), id).Execute() @@ -18281,7 +18283,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18293,7 +18295,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.GetSourceConfig(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.SourcesAPI.GetSourceConfig(context.Background(), id).Locale(locale).Execute() @@ -18316,7 +18318,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18327,7 +18329,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.GetSourceEntitlementRequestConfig(context.Background(), sourceId).Execute() //resp, r, err := apiClient.Beta.SourcesAPI.GetSourceEntitlementRequestConfig(context.Background(), sourceId).Execute() @@ -18350,7 +18352,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18362,7 +18364,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.SourcesAPI.GetSourceEntitlementsSchema(context.Background(), sourceId).Execute() //r, err := apiClient.Beta.SourcesAPI.GetSourceEntitlementsSchema(context.Background(), sourceId).SchemaName(schemaName).Execute() @@ -18383,7 +18385,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18395,7 +18397,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.GetSourceSchema(context.Background(), sourceId, schemaId).Execute() //resp, r, err := apiClient.Beta.SourcesAPI.GetSourceSchema(context.Background(), sourceId, schemaId).Execute() @@ -18418,7 +18420,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18431,7 +18433,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.GetSourceSchemas(context.Background(), sourceId).Execute() //resp, r, err := apiClient.Beta.SourcesAPI.GetSourceSchemas(context.Background(), sourceId).IncludeTypes(includeTypes).IncludeNames(includeNames).Execute() @@ -18454,7 +18456,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18467,7 +18469,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.ImportAccounts(context.Background(), sourceId).Execute() //resp, r, err := apiClient.Beta.SourcesAPI.ImportAccounts(context.Background(), sourceId).File(file).DisableOptimization(disableOptimization).Execute() @@ -18490,7 +18492,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18502,7 +18504,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.ImportEntitlements(context.Background(), sourceId).Execute() //resp, r, err := apiClient.Beta.SourcesAPI.ImportEntitlements(context.Background(), sourceId).File(file).Execute() @@ -18525,7 +18527,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18537,7 +18539,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.ImportSourceAccountsSchema(context.Background(), sourceId).Execute() //resp, r, err := apiClient.Beta.SourcesAPI.ImportSourceAccountsSchema(context.Background(), sourceId).File(file).Execute() @@ -18560,7 +18562,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18572,7 +18574,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.ImportSourceConnectorFile(context.Background(), sourceId).Execute() //resp, r, err := apiClient.Beta.SourcesAPI.ImportSourceConnectorFile(context.Background(), sourceId).File(file).Execute() @@ -18595,7 +18597,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18608,7 +18610,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.ImportSourceEntitlementsSchema(context.Background(), sourceId).Execute() //resp, r, err := apiClient.Beta.SourcesAPI.ImportSourceEntitlementsSchema(context.Background(), sourceId).SchemaName(schemaName).File(file).Execute() @@ -18631,7 +18633,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18643,7 +18645,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.ImportUncorrelatedAccounts(context.Background(), sourceId).Execute() //resp, r, err := apiClient.Beta.SourcesAPI.ImportUncorrelatedAccounts(context.Background(), sourceId).File(file).Execute() @@ -18666,7 +18668,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18677,7 +18679,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.ListProvisioningPolicies(context.Background(), sourceId).Execute() //resp, r, err := apiClient.Beta.SourcesAPI.ListProvisioningPolicies(context.Background(), sourceId).Execute() @@ -18700,7 +18702,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18717,7 +18719,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.ListSources(context.Background()).Execute() //resp, r, err := apiClient.Beta.SourcesAPI.ListSources(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSubadmin(forSubadmin).IncludeIDNSource(includeIDNSource).Execute() @@ -18740,7 +18742,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18761,7 +18763,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.PeekResourceObjects(context.Background(), sourceId).ResourceObjectsRequest(resourceObjectsRequest).Execute() //resp, r, err := apiClient.Beta.SourcesAPI.PeekResourceObjects(context.Background(), sourceId).ResourceObjectsRequest(resourceObjectsRequest).Execute() @@ -18784,7 +18786,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18795,7 +18797,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.PingCluster(context.Background(), sourceId).Execute() //resp, r, err := apiClient.Beta.SourcesAPI.PingCluster(context.Background(), sourceId).Execute() @@ -18818,7 +18820,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18856,7 +18858,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.PutCorrelationConfig(context.Background(), sourceId).CorrelationConfig(correlationConfig).Execute() //resp, r, err := apiClient.Beta.SourcesAPI.PutCorrelationConfig(context.Background(), sourceId).CorrelationConfig(correlationConfig).Execute() @@ -18879,7 +18881,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18904,7 +18906,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.PutNativeChangeDetectionConfig(context.Background(), sourceId).NativeChangeDetectionConfig(nativeChangeDetectionConfig).Execute() //resp, r, err := apiClient.Beta.SourcesAPI.PutNativeChangeDetectionConfig(context.Background(), sourceId).NativeChangeDetectionConfig(nativeChangeDetectionConfig).Execute() @@ -18927,7 +18929,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18985,7 +18987,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.PutProvisioningPolicy(context.Background(), sourceId, usageType).ProvisioningPolicyDto(provisioningPolicyDto).Execute() //resp, r, err := apiClient.Beta.SourcesAPI.PutProvisioningPolicy(context.Background(), sourceId, usageType).ProvisioningPolicyDto(provisioningPolicyDto).Execute() @@ -19008,7 +19010,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19108,7 +19110,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.PutSource(context.Background(), id).Source(source).Execute() //resp, r, err := apiClient.Beta.SourcesAPI.PutSource(context.Background(), id).Source(source).Execute() @@ -19131,7 +19133,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19166,7 +19168,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.PutSourceAttrSyncConfig(context.Background(), id).AttrSyncSourceConfig(attrSyncSourceConfig).Execute() //resp, r, err := apiClient.Beta.SourcesAPI.PutSourceAttrSyncConfig(context.Background(), id).AttrSyncSourceConfig(attrSyncSourceConfig).Execute() @@ -19189,7 +19191,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19241,7 +19243,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.PutSourceSchema(context.Background(), sourceId, schemaId).Schema(schema).Execute() //resp, r, err := apiClient.Beta.SourcesAPI.PutSourceSchema(context.Background(), sourceId, schemaId).Schema(schema).Execute() @@ -19264,7 +19266,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19275,7 +19277,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.SyncAttributesForSource(context.Background(), sourceId).Execute() //resp, r, err := apiClient.Beta.SourcesAPI.SyncAttributesForSource(context.Background(), sourceId).Execute() @@ -19298,7 +19300,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19309,7 +19311,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.TestSourceConfiguration(context.Background(), sourceId).Execute() //resp, r, err := apiClient.Beta.SourcesAPI.TestSourceConfiguration(context.Background(), sourceId).Execute() @@ -19332,7 +19334,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19343,7 +19345,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.TestSourceConnection(context.Background(), sourceId).Execute() //resp, r, err := apiClient.Beta.SourcesAPI.TestSourceConnection(context.Background(), sourceId).Execute() @@ -19366,7 +19368,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19376,7 +19378,7 @@ provisioningpolicydto := []byte(``) // []ProvisioningPolicyDto | - var provisioningPolicyDto beta.[]ProvisioningPolicyDto + var provisioningPolicyDto []beta.ProvisioningPolicyDto if err := json.Unmarshal(provisioningpolicydto, &provisioningPolicyDto); err != nil { fmt.Println("Error:", err) return @@ -19384,7 +19386,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.UpdateProvisioningPoliciesInBulk(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() //resp, r, err := apiClient.Beta.SourcesAPI.UpdateProvisioningPoliciesInBulk(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() @@ -19407,7 +19409,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19418,7 +19420,7 @@ jsonpatchoperation := []byte(`[{op=add, path=/fields/0, value={name=email, transform={type=identityAttribute, attributes={name=email}}, attributes={}, isRequired=false, type=string, isMultiValued=false}}]`) // []JsonPatchOperation | The JSONPatch payload used to update the schema. - var jsonPatchOperation beta.[]JsonPatchOperation + var jsonPatchOperation []beta.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -19426,7 +19428,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.UpdateProvisioningPolicy(context.Background(), sourceId, usageType).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.Beta.SourcesAPI.UpdateProvisioningPolicy(context.Background(), sourceId, usageType).JsonPatchOperation(jsonPatchOperation).Execute() @@ -19449,7 +19451,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19459,7 +19461,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/description, value=new description}]`) // []JsonPatchOperation | A list of account update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Any password changes are submitted as plain-text and encrypted upon receipt in Identity Security Cloud (ISC). - var jsonPatchOperation beta.[]JsonPatchOperation + var jsonPatchOperation []beta.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -19467,7 +19469,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.UpdateSource(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.Beta.SourcesAPI.UpdateSource(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -19490,7 +19492,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19507,7 +19509,17 @@ "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", "approverType" : "GOVERNANCE_GROUP" } ], + "reauthorizationRequired" : false, "requestCommentRequired" : true + }, + "revocationRequestConfig" : { + "approvalSchemes" : [ { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + }, { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + } ] } }`) // SourceEntitlementRequestConfig | @@ -19520,7 +19532,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.UpdateSourceEntitlementRequestConfig(context.Background(), sourceId).SourceEntitlementRequestConfig(sourceEntitlementRequestConfig).Execute() //resp, r, err := apiClient.Beta.SourcesAPI.UpdateSourceEntitlementRequestConfig(context.Background(), sourceId).SourceEntitlementRequestConfig(sourceEntitlementRequestConfig).Execute() @@ -19543,7 +19555,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19554,7 +19566,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/displayAttribute, value={new-display-attribute=null}}]`) // []JsonPatchOperation | The JSONPatch payload used to update the schema. - var jsonPatchOperation beta.[]JsonPatchOperation + var jsonPatchOperation []beta.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -19562,7 +19574,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourcesAPI.UpdateSourceSchema(context.Background(), sourceId, schemaId).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.Beta.SourcesAPI.UpdateSourceSchema(context.Background(), sourceId, schemaId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -19585,7 +19597,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19596,7 +19608,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourceUsagesAPI.GetStatusBySourceId(context.Background(), sourceId).Execute() //resp, r, err := apiClient.Beta.SourceUsagesAPI.GetStatusBySourceId(context.Background(), sourceId).Execute() @@ -19619,7 +19631,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19634,7 +19646,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SourceUsagesAPI.GetUsagesBySourceId(context.Background(), sourceId).Execute() //resp, r, err := apiClient.Beta.SourceUsagesAPI.GetUsagesBySourceId(context.Background(), sourceId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() @@ -19657,7 +19669,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19676,7 +19688,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SPConfigAPI.ExportSpConfig(context.Background()).ExportPayload(exportPayload).Execute() //resp, r, err := apiClient.Beta.SPConfigAPI.ExportSpConfig(context.Background()).ExportPayload(exportPayload).Execute() @@ -19699,7 +19711,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19710,7 +19722,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SPConfigAPI.GetSpConfigExport(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.SPConfigAPI.GetSpConfigExport(context.Background(), id).Execute() @@ -19733,7 +19745,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19744,7 +19756,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SPConfigAPI.GetSpConfigExportStatus(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.SPConfigAPI.GetSpConfigExportStatus(context.Background(), id).Execute() @@ -19767,7 +19779,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19778,7 +19790,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SPConfigAPI.GetSpConfigImport(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.SPConfigAPI.GetSpConfigImport(context.Background(), id).Execute() @@ -19801,7 +19813,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19812,7 +19824,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SPConfigAPI.GetSpConfigImportStatus(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.SPConfigAPI.GetSpConfigImportStatus(context.Background(), id).Execute() @@ -19835,7 +19847,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19848,7 +19860,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SPConfigAPI.ImportSpConfig(context.Background()).Data(data).Execute() //resp, r, err := apiClient.Beta.SPConfigAPI.ImportSpConfig(context.Background()).Data(data).Preview(preview).Options(options).Execute() @@ -19871,7 +19883,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19881,7 +19893,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SPConfigAPI.ListSpConfigObjects(context.Background()).Execute() //resp, r, err := apiClient.Beta.SPConfigAPI.ListSpConfigObjects(context.Background()).Execute() @@ -19904,7 +19916,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19915,7 +19927,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.GetSedBatchStats(context.Background(), batchId).Execute() //resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.GetSedBatchStats(context.Background(), batchId).Execute() @@ -19938,7 +19950,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19948,7 +19960,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.GetSedBatches(context.Background()).Execute() //resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.GetSedBatches(context.Background()).Execute() @@ -19971,7 +19983,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19988,7 +20000,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.ListSeds(context.Background()).Execute() //resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.ListSeds(context.Background()).Limit(limit).Filters(filters).Sorters(sorters).Count(count).CountOnly(countOnly).RequestedByAnyone(requestedByAnyone).ShowPendingStatusOnly(showPendingStatusOnly).Execute() @@ -20011,7 +20023,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20021,7 +20033,7 @@ sedpatch := []byte(``) // []SedPatch | Sed Patch Request - var sedPatch beta.[]SedPatch + var sedPatch []beta.SedPatch if err := json.Unmarshal(sedpatch, &sedPatch); err != nil { fmt.Println("Error:", err) return @@ -20029,7 +20041,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.PatchSed(context.Background(), id).SedPatch(sedPatch).Execute() //resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.PatchSed(context.Background(), id).SedPatch(sedPatch).Execute() @@ -20052,7 +20064,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20061,7 +20073,7 @@ sedapproval := []byte(``) // []SedApproval | Sed Approval - var sedApproval beta.[]SedApproval + var sedApproval []beta.SedApproval if err := json.Unmarshal(sedapproval, &sedApproval); err != nil { fmt.Println("Error:", err) return @@ -20069,7 +20081,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.SubmitSedApproval(context.Background()).SedApproval(sedApproval).Execute() //resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.SubmitSedApproval(context.Background()).SedApproval(sedApproval).Execute() @@ -20092,7 +20104,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20115,7 +20127,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.SubmitSedAssignment(context.Background()).SedAssignment(sedAssignment).Execute() //resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.SubmitSedAssignment(context.Background()).SedAssignment(sedAssignment).Execute() @@ -20138,7 +20150,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20152,7 +20164,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.SubmitSedBatchRequest(context.Background()).Execute() //resp, r, err := apiClient.Beta.SuggestedEntitlementDescriptionAPI.SubmitSedBatchRequest(context.Background()).SedBatchRequest(sedBatchRequest).Execute() @@ -20175,7 +20187,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20187,7 +20199,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.TaggedObjectsAPI.DeleteTaggedObject(context.Background(), type_, id).Execute() //r, err := apiClient.Beta.TaggedObjectsAPI.DeleteTaggedObject(context.Background(), type_, id).Execute() @@ -20208,7 +20220,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20237,7 +20249,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.TaggedObjectsAPI.DeleteTagsToManyObject(context.Background()).BulkTaggedObject(bulkTaggedObject).Execute() //r, err := apiClient.Beta.TaggedObjectsAPI.DeleteTagsToManyObject(context.Background()).BulkTaggedObject(bulkTaggedObject).Execute() @@ -20258,7 +20270,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20270,7 +20282,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TaggedObjectsAPI.GetTaggedObject(context.Background(), type_, id).Execute() //resp, r, err := apiClient.Beta.TaggedObjectsAPI.GetTaggedObject(context.Background(), type_, id).Execute() @@ -20293,7 +20305,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20307,7 +20319,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TaggedObjectsAPI.ListTaggedObjects(context.Background()).Execute() //resp, r, err := apiClient.Beta.TaggedObjectsAPI.ListTaggedObjects(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() @@ -20330,7 +20342,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20345,7 +20357,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TaggedObjectsAPI.ListTaggedObjectsByType(context.Background(), type_).Execute() //resp, r, err := apiClient.Beta.TaggedObjectsAPI.ListTaggedObjectsByType(context.Background(), type_).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() @@ -20368,7 +20380,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20394,7 +20406,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TaggedObjectsAPI.PutTaggedObject(context.Background(), type_, id).TaggedObject(taggedObject).Execute() //resp, r, err := apiClient.Beta.TaggedObjectsAPI.PutTaggedObject(context.Background(), type_, id).TaggedObject(taggedObject).Execute() @@ -20417,7 +20429,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20441,7 +20453,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.TaggedObjectsAPI.SetTagToObject(context.Background()).TaggedObject(taggedObject).Execute() //r, err := apiClient.Beta.TaggedObjectsAPI.SetTagToObject(context.Background()).TaggedObject(taggedObject).Execute() @@ -20462,7 +20474,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20491,7 +20503,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TaggedObjectsAPI.SetTagsToManyObjects(context.Background()).BulkTaggedObject(bulkTaggedObject).Execute() //resp, r, err := apiClient.Beta.TaggedObjectsAPI.SetTagsToManyObjects(context.Background()).BulkTaggedObject(bulkTaggedObject).Execute() @@ -20514,7 +20526,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" "time" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -20546,7 +20558,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TagsAPI.CreateTag(context.Background()).Tag(tag).Execute() //resp, r, err := apiClient.Beta.TagsAPI.CreateTag(context.Background()).Tag(tag).Execute() @@ -20569,7 +20581,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20580,7 +20592,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.TagsAPI.DeleteTagById(context.Background(), id).Execute() //r, err := apiClient.Beta.TagsAPI.DeleteTagById(context.Background(), id).Execute() @@ -20601,7 +20613,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20612,7 +20624,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TagsAPI.GetTagById(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.TagsAPI.GetTagById(context.Background(), id).Execute() @@ -20635,7 +20647,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20650,7 +20662,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TagsAPI.ListTags(context.Background()).Execute() //resp, r, err := apiClient.Beta.TagsAPI.ListTags(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -20673,7 +20685,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20686,7 +20698,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.TaskManagementAPI.GetPendingTaskHeaders(context.Background()).Execute() //r, err := apiClient.Beta.TaskManagementAPI.GetPendingTaskHeaders(context.Background()).Offset(offset).Limit(limit).Count(count).Execute() @@ -20707,7 +20719,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20720,7 +20732,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TaskManagementAPI.GetPendingTasks(context.Background()).Execute() //resp, r, err := apiClient.Beta.TaskManagementAPI.GetPendingTasks(context.Background()).Offset(offset).Limit(limit).Count(count).Execute() @@ -20743,7 +20755,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20754,7 +20766,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TaskManagementAPI.GetTaskStatus(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.TaskManagementAPI.GetTaskStatus(context.Background(), id).Execute() @@ -20777,7 +20789,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20792,7 +20804,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TaskManagementAPI.GetTaskStatusList(context.Background()).Execute() //resp, r, err := apiClient.Beta.TaskManagementAPI.GetTaskStatusList(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -20815,7 +20827,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20825,7 +20837,7 @@ jsonpatchoperation := []byte(``) // []JsonPatchOperation | The JSONPatch payload used to update the object. - var jsonPatchOperation beta.[]JsonPatchOperation + var jsonPatchOperation []beta.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -20833,7 +20845,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TaskManagementAPI.UpdateTaskStatus(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.Beta.TaskManagementAPI.UpdateTaskStatus(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -20856,7 +20868,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20866,7 +20878,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TenantAPI.GetTenant(context.Background()).Execute() //resp, r, err := apiClient.Beta.TenantAPI.GetTenant(context.Background()).Execute() @@ -20889,7 +20901,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20910,7 +20922,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TransformsAPI.CreateTransform(context.Background()).Transform(transform).Execute() //resp, r, err := apiClient.Beta.TransformsAPI.CreateTransform(context.Background()).Transform(transform).Execute() @@ -20933,7 +20945,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20944,7 +20956,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.TransformsAPI.DeleteTransform(context.Background(), id).Execute() //r, err := apiClient.Beta.TransformsAPI.DeleteTransform(context.Background(), id).Execute() @@ -20965,7 +20977,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20976,7 +20988,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TransformsAPI.GetTransform(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.TransformsAPI.GetTransform(context.Background(), id).Execute() @@ -20999,7 +21011,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21014,7 +21026,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TransformsAPI.ListTransforms(context.Background()).Execute() //resp, r, err := apiClient.Beta.TransformsAPI.ListTransforms(context.Background()).Offset(offset).Limit(limit).Count(count).Name(name).Filters(filters).Execute() @@ -21037,7 +21049,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21053,7 +21065,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TransformsAPI.UpdateTransform(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.TransformsAPI.UpdateTransform(context.Background(), id).Transform(transform).Execute() @@ -21076,7 +21088,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21100,7 +21112,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.TriggersAPI.CompleteTriggerInvocation(context.Background(), id).CompleteInvocation(completeInvocation).Execute() //r, err := apiClient.Beta.TriggersAPI.CompleteTriggerInvocation(context.Background(), id).CompleteInvocation(completeInvocation).Execute() @@ -21121,7 +21133,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21162,7 +21174,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TriggersAPI.CreateSubscription(context.Background()).SubscriptionPostRequest(subscriptionPostRequest).Execute() //resp, r, err := apiClient.Beta.TriggersAPI.CreateSubscription(context.Background()).SubscriptionPostRequest(subscriptionPostRequest).Execute() @@ -21185,7 +21197,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21196,7 +21208,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.TriggersAPI.DeleteSubscription(context.Background(), id).Execute() //r, err := apiClient.Beta.TriggersAPI.DeleteSubscription(context.Background(), id).Execute() @@ -21217,7 +21229,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21232,7 +21244,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TriggersAPI.ListSubscriptions(context.Background()).Execute() //resp, r, err := apiClient.Beta.TriggersAPI.ListSubscriptions(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -21255,7 +21267,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21270,7 +21282,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TriggersAPI.ListTriggerInvocationStatus(context.Background()).Execute() //resp, r, err := apiClient.Beta.TriggersAPI.ListTriggerInvocationStatus(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -21293,7 +21305,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21308,7 +21320,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TriggersAPI.ListTriggers(context.Background()).Execute() //resp, r, err := apiClient.Beta.TriggersAPI.ListTriggers(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -21331,7 +21343,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21341,7 +21353,7 @@ subscriptionpatchrequestinner := []byte(``) // []SubscriptionPatchRequestInner | - var subscriptionPatchRequestInner beta.[]SubscriptionPatchRequestInner + var subscriptionPatchRequestInner []beta.SubscriptionPatchRequestInner if err := json.Unmarshal(subscriptionpatchrequestinner, &subscriptionPatchRequestInner); err != nil { fmt.Println("Error:", err) return @@ -21349,7 +21361,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TriggersAPI.PatchSubscription(context.Background(), id).SubscriptionPatchRequestInner(subscriptionPatchRequestInner).Execute() //resp, r, err := apiClient.Beta.TriggersAPI.PatchSubscription(context.Background(), id).SubscriptionPatchRequestInner(subscriptionPatchRequestInner).Execute() @@ -21372,7 +21384,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21398,7 +21410,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TriggersAPI.StartTestTriggerInvocation(context.Background()).TestInvocation(testInvocation).Execute() //resp, r, err := apiClient.Beta.TriggersAPI.StartTestTriggerInvocation(context.Background()).TestInvocation(testInvocation).Execute() @@ -21421,7 +21433,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21443,7 +21455,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TriggersAPI.TestSubscriptionFilter(context.Background()).ValidateFilterInputDto(validateFilterInputDto).Execute() //resp, r, err := apiClient.Beta.TriggersAPI.TestSubscriptionFilter(context.Background()).ValidateFilterInputDto(validateFilterInputDto).Execute() @@ -21466,7 +21478,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21507,7 +21519,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.TriggersAPI.UpdateSubscription(context.Background(), id).SubscriptionPutRequest(subscriptionPutRequest).Execute() //resp, r, err := apiClient.Beta.TriggersAPI.UpdateSubscription(context.Background(), id).SubscriptionPutRequest(subscriptionPutRequest).Execute() @@ -21530,7 +21542,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21540,7 +21552,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.UIMetadataAPI.GetTenantUiMetadata(context.Background()).Execute() //resp, r, err := apiClient.Beta.UIMetadataAPI.GetTenantUiMetadata(context.Background()).Execute() @@ -21563,7 +21575,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21584,7 +21596,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.UIMetadataAPI.SetTenantUiMetadata(context.Background()).TenantUiMetadataItemUpdateRequest(tenantUiMetadataItemUpdateRequest).Execute() //resp, r, err := apiClient.Beta.UIMetadataAPI.SetTenantUiMetadata(context.Background()).TenantUiMetadataItemUpdateRequest(tenantUiMetadataItemUpdateRequest).Execute() @@ -21607,7 +21619,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21646,7 +21658,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.VendorConnectorMappingsAPI.CreateVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() //resp, r, err := apiClient.Beta.VendorConnectorMappingsAPI.CreateVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() @@ -21669,7 +21681,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21708,7 +21720,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.VendorConnectorMappingsAPI.DeleteVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() //resp, r, err := apiClient.Beta.VendorConnectorMappingsAPI.DeleteVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() @@ -21731,7 +21743,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21741,7 +21753,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.VendorConnectorMappingsAPI.GetVendorConnectorMappings(context.Background()).Execute() //resp, r, err := apiClient.Beta.VendorConnectorMappingsAPI.GetVendorConnectorMappings(context.Background()).Execute() @@ -21764,7 +21776,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21775,7 +21787,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.WorkflowsAPI.CancelWorkflowExecution(context.Background(), id).Execute() //r, err := apiClient.Beta.WorkflowsAPI.CancelWorkflowExecution(context.Background(), id).Execute() @@ -21796,7 +21808,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21813,7 +21825,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkflowsAPI.CreateWorkflow(context.Background()).CreateWorkflowRequest(createWorkflowRequest).Execute() //resp, r, err := apiClient.Beta.WorkflowsAPI.CreateWorkflow(context.Background()).CreateWorkflowRequest(createWorkflowRequest).Execute() @@ -21836,7 +21848,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21847,7 +21859,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.WorkflowsAPI.DeleteWorkflow(context.Background(), id).Execute() //r, err := apiClient.Beta.WorkflowsAPI.DeleteWorkflow(context.Background(), id).Execute() @@ -21868,7 +21880,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21880,7 +21892,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkflowsAPI.GetWorkflow(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.WorkflowsAPI.GetWorkflow(context.Background(), id).WorkflowMetrics(workflowMetrics).Execute() @@ -21903,7 +21915,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21914,7 +21926,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkflowsAPI.GetWorkflowExecution(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.WorkflowsAPI.GetWorkflowExecution(context.Background(), id).Execute() @@ -21937,7 +21949,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21948,7 +21960,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkflowsAPI.GetWorkflowExecutionHistory(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.WorkflowsAPI.GetWorkflowExecutionHistory(context.Background(), id).Execute() @@ -21971,7 +21983,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21986,7 +21998,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkflowsAPI.GetWorkflowExecutions(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.WorkflowsAPI.GetWorkflowExecutions(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() @@ -22009,7 +22021,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22021,7 +22033,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkflowsAPI.ListCompleteWorkflowLibrary(context.Background()).Execute() //resp, r, err := apiClient.Beta.WorkflowsAPI.ListCompleteWorkflowLibrary(context.Background()).Limit(limit).Offset(offset).Execute() @@ -22044,7 +22056,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22057,7 +22069,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkflowsAPI.ListWorkflowLibraryActions(context.Background()).Execute() //resp, r, err := apiClient.Beta.WorkflowsAPI.ListWorkflowLibraryActions(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() @@ -22080,7 +22092,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22090,7 +22102,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkflowsAPI.ListWorkflowLibraryOperators(context.Background()).Execute() //resp, r, err := apiClient.Beta.WorkflowsAPI.ListWorkflowLibraryOperators(context.Background()).Execute() @@ -22113,7 +22125,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22126,7 +22138,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkflowsAPI.ListWorkflowLibraryTriggers(context.Background()).Execute() //resp, r, err := apiClient.Beta.WorkflowsAPI.ListWorkflowLibraryTriggers(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() @@ -22149,7 +22161,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22163,7 +22175,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkflowsAPI.ListWorkflows(context.Background()).Execute() //resp, r, err := apiClient.Beta.WorkflowsAPI.ListWorkflows(context.Background()).Limit(limit).Offset(offset).TriggerId(triggerId).ConnectorInstanceId(connectorInstanceId).Execute() @@ -22186,7 +22198,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22196,7 +22208,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/name, value=Send Email}, {op=replace, path=/owner, value={type=IDENTITY, id=2c91808568c529c60168cca6f90c1313, name=William Wilson}}, {op=replace, path=/description, value=Send an email to the identity who's attributes changed.}, {op=replace, path=/enabled, value=false}, {op=replace, path=/definition, value={start=Send Email Test, steps={Send Email={actionId=sp:send-email, attributes={body=This is a test, from=sailpoint@sailpoint.com, recipientId.$=$.identity.id, subject=test}, nextStep=success, selectResult=null, type=action}, success={type=success}}}}, {op=replace, path=/trigger, value={type=EVENT, attributes={id=idn:identity-attributes-changed}}}]`) // []JsonPatchOperation | - var jsonPatchOperation beta.[]JsonPatchOperation + var jsonPatchOperation []beta.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -22204,7 +22216,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkflowsAPI.PatchWorkflow(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.Beta.WorkflowsAPI.PatchWorkflow(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -22227,7 +22239,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22239,7 +22251,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkflowsAPI.PostExternalExecuteWorkflow(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.WorkflowsAPI.PostExternalExecuteWorkflow(context.Background(), id).PostExternalExecuteWorkflowRequest(postExternalExecuteWorkflowRequest).Execute() @@ -22262,7 +22274,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22273,7 +22285,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkflowsAPI.PostWorkflowExternalTrigger(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.WorkflowsAPI.PostWorkflowExternalTrigger(context.Background(), id).Execute() @@ -22296,7 +22308,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22347,7 +22359,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkflowsAPI.PutWorkflow(context.Background(), id).WorkflowBody(workflowBody).Execute() //resp, r, err := apiClient.Beta.WorkflowsAPI.PutWorkflow(context.Background(), id).WorkflowBody(workflowBody).Execute() @@ -22370,7 +22382,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22382,7 +22394,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkflowsAPI.TestExternalExecuteWorkflow(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.WorkflowsAPI.TestExternalExecuteWorkflow(context.Background(), id).TestExternalExecuteWorkflowRequest(testExternalExecuteWorkflowRequest).Execute() @@ -22405,7 +22417,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22423,7 +22435,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkflowsAPI.TestWorkflow(context.Background(), id).TestWorkflowRequest(testWorkflowRequest).Execute() //resp, r, err := apiClient.Beta.WorkflowsAPI.TestWorkflow(context.Background(), id).TestWorkflowRequest(testWorkflowRequest).Execute() @@ -22446,7 +22458,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22458,7 +22470,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkItemsAPI.ApproveApprovalItem(context.Background(), id, approvalItemId).Execute() //resp, r, err := apiClient.Beta.WorkItemsAPI.ApproveApprovalItem(context.Background(), id, approvalItemId).Execute() @@ -22481,7 +22493,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22492,7 +22504,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkItemsAPI.ApproveApprovalItemsInBulk(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.WorkItemsAPI.ApproveApprovalItemsInBulk(context.Background(), id).Execute() @@ -22515,7 +22527,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22527,7 +22539,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkItemsAPI.CompleteWorkItem(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.WorkItemsAPI.CompleteWorkItem(context.Background(), id).Body(body).Execute() @@ -22550,7 +22562,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22564,7 +22576,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkItemsAPI.GetCompletedWorkItems(context.Background()).Execute() //resp, r, err := apiClient.Beta.WorkItemsAPI.GetCompletedWorkItems(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Execute() @@ -22587,7 +22599,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22600,7 +22612,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkItemsAPI.GetCountCompletedWorkItems(context.Background()).Execute() //resp, r, err := apiClient.Beta.WorkItemsAPI.GetCountCompletedWorkItems(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Execute() @@ -22623,7 +22635,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22634,7 +22646,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkItemsAPI.GetCountWorkItems(context.Background()).Execute() //resp, r, err := apiClient.Beta.WorkItemsAPI.GetCountWorkItems(context.Background()).OwnerId(ownerId).Execute() @@ -22657,7 +22669,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22669,7 +22681,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkItemsAPI.GetWorkItem(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.WorkItemsAPI.GetWorkItem(context.Background(), id).OwnerId(ownerId).Execute() @@ -22692,7 +22704,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22703,7 +22715,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkItemsAPI.GetWorkItemsSummary(context.Background()).Execute() //resp, r, err := apiClient.Beta.WorkItemsAPI.GetWorkItemsSummary(context.Background()).OwnerId(ownerId).Execute() @@ -22726,7 +22738,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22740,7 +22752,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkItemsAPI.ListWorkItems(context.Background()).Execute() //resp, r, err := apiClient.Beta.WorkItemsAPI.ListWorkItems(context.Background()).Limit(limit).Offset(offset).Count(count).OwnerId(ownerId).Execute() @@ -22763,7 +22775,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22775,7 +22787,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkItemsAPI.RejectApprovalItem(context.Background(), id, approvalItemId).Execute() //resp, r, err := apiClient.Beta.WorkItemsAPI.RejectApprovalItem(context.Background(), id, approvalItemId).Execute() @@ -22798,7 +22810,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22809,7 +22821,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkItemsAPI.RejectApprovalItemsInBulk(context.Background(), id).Execute() //resp, r, err := apiClient.Beta.WorkItemsAPI.RejectApprovalItemsInBulk(context.Background(), id).Execute() @@ -22832,7 +22844,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22850,7 +22862,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkItemsAPI.SubmitAccountSelection(context.Background(), id).RequestBody(requestBody).Execute() //resp, r, err := apiClient.Beta.WorkItemsAPI.SubmitAccountSelection(context.Background(), id).RequestBody(requestBody).Execute() @@ -22873,7 +22885,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22895,7 +22907,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.WorkItemsAPI.SubmitForwardWorkItem(context.Background(), id).WorkItemForward(workItemForward).Execute() //r, err := apiClient.Beta.WorkItemsAPI.SubmitForwardWorkItem(context.Background(), id).WorkItemForward(workItemForward).Execute() @@ -22916,7 +22928,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22939,7 +22951,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkReassignmentAPI.CreateReassignmentConfiguration(context.Background()).ConfigurationItemRequest(configurationItemRequest).Execute() //resp, r, err := apiClient.Beta.WorkReassignmentAPI.CreateReassignmentConfiguration(context.Background()).ConfigurationItemRequest(configurationItemRequest).Execute() @@ -22962,7 +22974,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22974,7 +22986,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.Beta.WorkReassignmentAPI.DeleteReassignmentConfiguration(context.Background(), identityId, configType).Execute() //r, err := apiClient.Beta.WorkReassignmentAPI.DeleteReassignmentConfiguration(context.Background(), identityId, configType).Execute() @@ -22995,7 +23007,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23008,7 +23020,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkReassignmentAPI.GetEvaluateReassignmentConfiguration(context.Background(), identityId, configType).Execute() //resp, r, err := apiClient.Beta.WorkReassignmentAPI.GetEvaluateReassignmentConfiguration(context.Background(), identityId, configType).ExclusionFilters(exclusionFilters).Execute() @@ -23031,7 +23043,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23041,7 +23053,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkReassignmentAPI.GetReassignmentConfigTypes(context.Background()).Execute() //resp, r, err := apiClient.Beta.WorkReassignmentAPI.GetReassignmentConfigTypes(context.Background()).Execute() @@ -23064,7 +23076,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23075,7 +23087,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkReassignmentAPI.GetReassignmentConfiguration(context.Background(), identityId).Execute() //resp, r, err := apiClient.Beta.WorkReassignmentAPI.GetReassignmentConfiguration(context.Background(), identityId).Execute() @@ -23098,7 +23110,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23108,7 +23120,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkReassignmentAPI.GetTenantConfigConfiguration(context.Background()).Execute() //resp, r, err := apiClient.Beta.WorkReassignmentAPI.GetTenantConfigConfiguration(context.Background()).Execute() @@ -23131,7 +23143,7 @@ "context" "fmt" "os" - "encoding/json" + beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23143,7 +23155,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkReassignmentAPI.ListReassignmentConfigurations(context.Background()).Execute() //resp, r, err := apiClient.Beta.WorkReassignmentAPI.ListReassignmentConfigurations(context.Background()).Limit(limit).Offset(offset).Execute() @@ -23166,7 +23178,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23190,7 +23202,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkReassignmentAPI.PutReassignmentConfig(context.Background(), identityId).ConfigurationItemRequest(configurationItemRequest).Execute() //resp, r, err := apiClient.Beta.WorkReassignmentAPI.PutReassignmentConfig(context.Background(), identityId).ConfigurationItemRequest(configurationItemRequest).Execute() @@ -23213,7 +23225,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" beta "github.com/sailpoint-oss/golang-sdk/v2/api_beta" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23234,7 +23246,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.Beta.WorkReassignmentAPI.PutTenantConfiguration(context.Background()).TenantConfigurationRequest(tenantConfigurationRequest).Execute() //resp, r, err := apiClient.Beta.WorkReassignmentAPI.PutTenantConfiguration(context.Background()).TenantConfigurationRequest(tenantConfigurationRequest).Execute() diff --git a/static/code-examples/v2024/go_code_examples_overlay.yaml b/static/code-examples/v2024/go_code_examples_overlay.yaml index ad8e54245..d45d96699 100644 --- a/static/code-examples/v2024/go_code_examples_overlay.yaml +++ b/static/code-examples/v2024/go_code_examples_overlay.yaml @@ -10,7 +10,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22,7 +22,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessModelMetadataAPI.GetAccessModelMetadataAttribute(context.Background(), key).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.AccessModelMetadataAPI.GetAccessModelMetadataAttribute(context.Background(), key).XSailPointExperimental(xSailPointExperimental).Execute() @@ -45,7 +45,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -58,7 +58,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessModelMetadataAPI.GetAccessModelMetadataAttributeValue(context.Background(), key, value).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.AccessModelMetadataAPI.GetAccessModelMetadataAttributeValue(context.Background(), key, value).XSailPointExperimental(xSailPointExperimental).Execute() @@ -81,7 +81,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -93,7 +93,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessModelMetadataAPI.ListAccessModelMetadataAttribute(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.AccessModelMetadataAPI.ListAccessModelMetadataAttribute(context.Background()).XSailPointExperimental(xSailPointExperimental).Filters(filters).Execute() @@ -116,7 +116,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -128,7 +128,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessModelMetadataAPI.ListAccessModelMetadataAttributeValue(context.Background(), key).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.AccessModelMetadataAPI.ListAccessModelMetadataAttributeValue(context.Background(), key).XSailPointExperimental(xSailPointExperimental).Execute() @@ -151,7 +151,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -253,7 +253,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessProfilesAPI.CreateAccessProfile(context.Background()).AccessProfile(accessProfile).Execute() //resp, r, err := apiClient.V2024.AccessProfilesAPI.CreateAccessProfile(context.Background()).AccessProfile(accessProfile).Execute() @@ -276,7 +276,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -287,7 +287,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.AccessProfilesAPI.DeleteAccessProfile(context.Background(), id).Execute() //r, err := apiClient.V2024.AccessProfilesAPI.DeleteAccessProfile(context.Background(), id).Execute() @@ -308,7 +308,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -328,7 +328,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessProfilesAPI.DeleteAccessProfilesInBulk(context.Background()).AccessProfileBulkDeleteRequest(accessProfileBulkDeleteRequest).Execute() //resp, r, err := apiClient.V2024.AccessProfilesAPI.DeleteAccessProfilesInBulk(context.Background()).AccessProfileBulkDeleteRequest(accessProfileBulkDeleteRequest).Execute() @@ -351,7 +351,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -362,7 +362,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessProfilesAPI.GetAccessProfile(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.AccessProfilesAPI.GetAccessProfile(context.Background(), id).Execute() @@ -385,7 +385,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -401,7 +401,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessProfilesAPI.GetAccessProfileEntitlements(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.AccessProfilesAPI.GetAccessProfileEntitlements(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -424,7 +424,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -442,7 +442,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessProfilesAPI.ListAccessProfiles(context.Background()).Execute() //resp, r, err := apiClient.V2024.AccessProfilesAPI.ListAccessProfiles(context.Background()).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).Execute() @@ -465,7 +465,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -475,7 +475,7 @@ jsonpatchoperation := []byte(`[{op=add, path=/entitlements, value=[{id=2c9180857725c14301772a93bb77242d, type=ENTITLEMENT, name=AD User Group}]}]`) // []JsonPatchOperation | - var jsonPatchOperation v2024.[]JsonPatchOperation + var jsonPatchOperation []v2024.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -483,7 +483,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessProfilesAPI.PatchAccessProfile(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2024.AccessProfilesAPI.PatchAccessProfile(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -506,7 +506,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -516,7 +516,7 @@ accessprofilebulkupdaterequestinner := []byte(`[{id=464ae7bf-791e-49fd-b746-06a2e4a89635, requestable=false}]`) // []AccessProfileBulkUpdateRequestInner | - var accessProfileBulkUpdateRequestInner v2024.[]AccessProfileBulkUpdateRequestInner + var accessProfileBulkUpdateRequestInner []v2024.AccessProfileBulkUpdateRequestInner if err := json.Unmarshal(accessprofilebulkupdaterequestinner, &accessProfileBulkUpdateRequestInner); err != nil { fmt.Println("Error:", err) return @@ -524,7 +524,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessProfilesAPI.UpdateAccessProfilesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessProfileBulkUpdateRequestInner(accessProfileBulkUpdateRequestInner).Execute() //resp, r, err := apiClient.V2024.AccessProfilesAPI.UpdateAccessProfilesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessProfileBulkUpdateRequestInner(accessProfileBulkUpdateRequestInner).Execute() @@ -547,7 +547,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -567,7 +567,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.ApproveAccessRequest(context.Background(), approvalId).Execute() //resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.ApproveAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() @@ -590,7 +590,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -611,7 +611,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.ForwardAccessRequest(context.Background(), approvalId).ForwardApprovalDto(forwardApprovalDto).Execute() //resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.ForwardAccessRequest(context.Background(), approvalId).ForwardApprovalDto(forwardApprovalDto).Execute() @@ -634,7 +634,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -646,7 +646,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary(context.Background()).Execute() //resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary(context.Background()).OwnerId(ownerId).FromDate(fromDate).Execute() @@ -669,7 +669,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -683,7 +683,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.ListAccessRequestApprovers(context.Background(), accessRequestId).Execute() //resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.ListAccessRequestApprovers(context.Background(), accessRequestId).Limit(limit).Offset(offset).Count(count).Execute() @@ -706,7 +706,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -722,7 +722,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.ListCompletedApprovals(context.Background()).Execute() //resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.ListCompletedApprovals(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -745,7 +745,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -761,7 +761,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.ListPendingApprovals(context.Background()).Execute() //resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.ListPendingApprovals(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -784,7 +784,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -810,7 +810,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.RejectAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() //resp, r, err := apiClient.V2024.AccessRequestApprovalsAPI.RejectAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() @@ -833,7 +833,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -846,7 +846,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessRequestIdentityMetricsAPI.GetAccessRequestIdentityMetrics(context.Background(), identityId, requestedObjectId, type_).Execute() //resp, r, err := apiClient.V2024.AccessRequestIdentityMetricsAPI.GetAccessRequestIdentityMetrics(context.Background(), identityId, requestedObjectId, type_).Execute() @@ -869,7 +869,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -889,7 +889,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessRequestsAPI.ApproveBulkAccessRequest(context.Background()).BulkApproveAccessRequest(bulkApproveAccessRequest).Execute() //resp, r, err := apiClient.V2024.AccessRequestsAPI.ApproveBulkAccessRequest(context.Background()).BulkApproveAccessRequest(bulkApproveAccessRequest).Execute() @@ -912,7 +912,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -932,7 +932,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessRequestsAPI.CancelAccessRequest(context.Background()).CancelAccessRequest(cancelAccessRequest).Execute() //resp, r, err := apiClient.V2024.AccessRequestsAPI.CancelAccessRequest(context.Background()).CancelAccessRequest(cancelAccessRequest).Execute() @@ -955,7 +955,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -975,7 +975,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessRequestsAPI.CancelAccessRequestInBulk(context.Background()).BulkCancelAccessRequest(bulkCancelAccessRequest).Execute() //resp, r, err := apiClient.V2024.AccessRequestsAPI.CancelAccessRequestInBulk(context.Background()).BulkCancelAccessRequest(bulkCancelAccessRequest).Execute() @@ -998,7 +998,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1021,7 +1021,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessRequestsAPI.CloseAccessRequest(context.Background()).XSailPointExperimental(xSailPointExperimental).CloseAccessRequest(closeAccessRequest).Execute() //resp, r, err := apiClient.V2024.AccessRequestsAPI.CloseAccessRequest(context.Background()).XSailPointExperimental(xSailPointExperimental).CloseAccessRequest(closeAccessRequest).Execute() @@ -1044,7 +1044,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1142,9 +1142,7 @@ } ], "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE", - "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", - "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + "type" : "ACCESS_PROFILE" }, { "clientMetadata" : { "requestedAppName" : "test-app", @@ -1172,9 +1170,7 @@ } ], "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE", - "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", - "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + "type" : "ACCESS_PROFILE" } ] }, { "identityId" : "cb89bc2f1ee6445fbea12224c526ba3a", @@ -1205,9 +1201,7 @@ } ], "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE", - "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", - "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + "type" : "ACCESS_PROFILE" }, { "clientMetadata" : { "requestedAppName" : "test-app", @@ -1235,9 +1229,7 @@ } ], "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE", - "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", - "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + "type" : "ACCESS_PROFILE" } ] } ] }`) // AccessRequest | @@ -1251,7 +1243,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessRequestsAPI.CreateAccessRequest(context.Background()).AccessRequest(accessRequest).Execute() //resp, r, err := apiClient.V2024.AccessRequestsAPI.CreateAccessRequest(context.Background()).AccessRequest(accessRequest).Execute() @@ -1274,7 +1266,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1284,7 +1276,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessRequestsAPI.GetAccessRequestConfig(context.Background()).Execute() //resp, r, err := apiClient.V2024.AccessRequestsAPI.GetAccessRequestConfig(context.Background()).Execute() @@ -1307,7 +1299,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1327,7 +1319,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessRequestsAPI.ListAccessRequestStatus(context.Background()).Execute() //resp, r, err := apiClient.V2024.AccessRequestsAPI.ListAccessRequestStatus(context.Background()).RequestedFor(requestedFor).RequestedBy(requestedBy).RegardingIdentity(regardingIdentity).AssignedTo(assignedTo).Count(count).Limit(limit).Offset(offset).Filters(filters).Sorters(sorters).RequestState(requestState).Execute() @@ -1350,7 +1342,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1370,7 +1362,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessRequestsAPI.ListAdministratorsAccessRequestStatus(context.Background()).Execute() //resp, r, err := apiClient.V2024.AccessRequestsAPI.ListAdministratorsAccessRequestStatus(context.Background()).RequestedFor(requestedFor).RequestedBy(requestedBy).RegardingIdentity(regardingIdentity).AssignedTo(assignedTo).Count(count).Limit(limit).Offset(offset).Filters(filters).Sorters(sorters).RequestState(requestState).Execute() @@ -1393,7 +1385,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1473,7 +1465,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessRequestsAPI.LoadAccountSelections(context.Background()).AccountsSelectionRequest(accountsSelectionRequest).Execute() //resp, r, err := apiClient.V2024.AccessRequestsAPI.LoadAccountSelections(context.Background()).AccountsSelectionRequest(accountsSelectionRequest).Execute() @@ -1496,7 +1488,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1529,7 +1521,17 @@ "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", "approverType" : "GOVERNANCE_GROUP" } ], + "reauthorizationRequired" : false, "requestCommentRequired" : true + }, + "revocationRequestConfig" : { + "approvalSchemes" : [ { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + }, { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + } ] } }, "reauthorizationEnabled" : true, @@ -1545,7 +1547,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccessRequestsAPI.SetAccessRequestConfig(context.Background()).AccessRequestConfig(accessRequestConfig).Execute() //resp, r, err := apiClient.V2024.AccessRequestsAPI.SetAccessRequestConfig(context.Background()).AccessRequestConfig(accessRequestConfig).Execute() @@ -1568,7 +1570,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1579,7 +1581,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountActivitiesAPI.GetAccountActivity(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.AccountActivitiesAPI.GetAccountActivity(context.Background(), id).Execute() @@ -1602,7 +1604,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1620,7 +1622,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountActivitiesAPI.ListAccountActivities(context.Background()).Execute() //resp, r, err := apiClient.V2024.AccountActivitiesAPI.ListAccountActivities(context.Background()).RequestedFor(requestedFor).RequestedBy(requestedBy).RegardingIdentity(regardingIdentity).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -1643,7 +1645,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1655,7 +1657,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountAggregationsAPI.GetAccountAggregationStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.AccountAggregationsAPI.GetAccountAggregationStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -1678,7 +1680,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1704,7 +1706,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountsAPI.CreateAccount(context.Background()).AccountAttributesCreate(accountAttributesCreate).Execute() //resp, r, err := apiClient.V2024.AccountsAPI.CreateAccount(context.Background()).AccountAttributesCreate(accountAttributesCreate).Execute() @@ -1727,7 +1729,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1738,7 +1740,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountsAPI.DeleteAccount(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.AccountsAPI.DeleteAccount(context.Background(), id).Execute() @@ -1761,7 +1763,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1773,7 +1775,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountsAPI.DeleteAccountAsync(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.AccountsAPI.DeleteAccountAsync(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -1796,7 +1798,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1817,7 +1819,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountsAPI.DisableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() //resp, r, err := apiClient.V2024.AccountsAPI.DisableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() @@ -1840,7 +1842,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1852,7 +1854,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountsAPI.DisableAccountForIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.AccountsAPI.DisableAccountForIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -1875,7 +1877,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1895,7 +1897,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountsAPI.DisableAccountsForIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentitiesAccountsBulkRequest(identitiesAccountsBulkRequest).Execute() //resp, r, err := apiClient.V2024.AccountsAPI.DisableAccountsForIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentitiesAccountsBulkRequest(identitiesAccountsBulkRequest).Execute() @@ -1918,7 +1920,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1939,7 +1941,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountsAPI.EnableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() //resp, r, err := apiClient.V2024.AccountsAPI.EnableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() @@ -1962,7 +1964,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1974,7 +1976,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountsAPI.EnableAccountForIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.AccountsAPI.EnableAccountForIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -1997,7 +1999,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2017,7 +2019,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountsAPI.EnableAccountsForIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentitiesAccountsBulkRequest(identitiesAccountsBulkRequest).Execute() //resp, r, err := apiClient.V2024.AccountsAPI.EnableAccountsForIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentitiesAccountsBulkRequest(identitiesAccountsBulkRequest).Execute() @@ -2040,7 +2042,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2051,7 +2053,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountsAPI.GetAccount(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.AccountsAPI.GetAccount(context.Background(), id).Execute() @@ -2074,7 +2076,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2088,7 +2090,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountsAPI.GetAccountEntitlements(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.AccountsAPI.GetAccountEntitlements(context.Background(), id).Limit(limit).Offset(offset).Count(count).Execute() @@ -2111,7 +2113,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2127,7 +2129,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountsAPI.ListAccounts(context.Background()).Execute() //resp, r, err := apiClient.V2024.AccountsAPI.ListAccounts(context.Background()).Limit(limit).Offset(offset).Count(count).DetailLevel(detailLevel).Filters(filters).Sorters(sorters).Execute() @@ -2150,7 +2152,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2176,7 +2178,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountsAPI.PutAccount(context.Background(), id).AccountAttributes(accountAttributes).Execute() //resp, r, err := apiClient.V2024.AccountsAPI.PutAccount(context.Background(), id).AccountAttributes(accountAttributes).Execute() @@ -2199,7 +2201,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2210,7 +2212,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountsAPI.SubmitReloadAccount(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.AccountsAPI.SubmitReloadAccount(context.Background(), id).Execute() @@ -2233,7 +2235,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2255,7 +2257,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountsAPI.UnlockAccount(context.Background(), id).AccountUnlockRequest(accountUnlockRequest).Execute() //resp, r, err := apiClient.V2024.AccountsAPI.UnlockAccount(context.Background(), id).AccountUnlockRequest(accountUnlockRequest).Execute() @@ -2278,7 +2280,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2288,7 +2290,7 @@ requestbody := []byte(`[{op=remove, path=/identityId}]`) // []map[string]interface{} | A list of account update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - var requestBody v2024.[]RequestBody + var requestBody []v2024.RequestBody if err := json.Unmarshal(requestbody, &requestBody); err != nil { fmt.Println("Error:", err) return @@ -2296,7 +2298,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountsAPI.UpdateAccount(context.Background(), id).RequestBody(requestBody).Execute() //resp, r, err := apiClient.V2024.AccountsAPI.UpdateAccount(context.Background(), id).RequestBody(requestBody).Execute() @@ -2319,7 +2321,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2334,7 +2336,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AccountUsagesAPI.GetUsagesByAccountId(context.Background(), accountId).Execute() //resp, r, err := apiClient.V2024.AccountUsagesAPI.GetUsagesByAccountId(context.Background(), accountId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() @@ -2357,7 +2359,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2372,7 +2374,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ApplicationDiscoveryAPI.GetDiscoveredApplications(context.Background()).Execute() //resp, r, err := apiClient.V2024.ApplicationDiscoveryAPI.GetDiscoveredApplications(context.Background()).Limit(limit).Offset(offset).Detail(detail).Filter(filter).Sorters(sorters).Execute() @@ -2395,7 +2397,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2405,7 +2407,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() //resp, r, err := apiClient.V2024.ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() @@ -2428,7 +2430,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2439,7 +2441,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate(context.Background()).File(file).Execute() //r, err := apiClient.V2024.ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate(context.Background()).File(file).Execute() @@ -2460,7 +2462,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2472,7 +2474,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ApprovalsAPI.GetApproval(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.ApprovalsAPI.GetApproval(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -2495,7 +2497,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2509,7 +2511,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ApprovalsAPI.GetApprovals(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.ApprovalsAPI.GetApprovals(context.Background()).XSailPointExperimental(xSailPointExperimental).Mine(mine).RequesterId(requesterId).Filters(filters).Execute() @@ -2532,7 +2534,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2559,7 +2561,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AppsAPI.CreateSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).SourceAppCreateDto(sourceAppCreateDto).Execute() //resp, r, err := apiClient.V2024.AppsAPI.CreateSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).SourceAppCreateDto(sourceAppCreateDto).Execute() @@ -2582,7 +2584,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2594,7 +2596,7 @@ limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - var requestBody v2024.[]RequestBody + var requestBody []v2024.RequestBody if err := json.Unmarshal(requestbody, &requestBody); err != nil { fmt.Println("Error:", err) return @@ -2602,7 +2604,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AppsAPI.DeleteAccessProfilesFromSourceAppByBulk(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() //resp, r, err := apiClient.V2024.AppsAPI.DeleteAccessProfilesFromSourceAppByBulk(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Limit(limit).Execute() @@ -2625,7 +2627,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2637,7 +2639,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AppsAPI.DeleteSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.AppsAPI.DeleteSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -2660,7 +2662,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2672,7 +2674,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AppsAPI.GetSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.AppsAPI.GetSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -2695,7 +2697,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2710,7 +2712,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AppsAPI.ListAccessProfilesForSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.AppsAPI.ListAccessProfilesForSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Filters(filters).Execute() @@ -2733,7 +2735,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2749,7 +2751,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AppsAPI.ListAllSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.AppsAPI.ListAllSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Sorters(sorters).Filters(filters).Execute() @@ -2772,7 +2774,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2787,7 +2789,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AppsAPI.ListAllUserApps(context.Background()).Filters(filters).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.AppsAPI.ListAllUserApps(context.Background()).Filters(filters).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Execute() @@ -2810,7 +2812,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2826,7 +2828,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AppsAPI.ListAssignedSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.AppsAPI.ListAssignedSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Sorters(sorters).Filters(filters).Execute() @@ -2849,7 +2851,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2863,7 +2865,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AppsAPI.ListAvailableAccountsForUserApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.AppsAPI.ListAvailableAccountsForUserApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Execute() @@ -2886,7 +2888,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2902,7 +2904,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AppsAPI.ListAvailableSourceApps(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.AppsAPI.ListAvailableSourceApps(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Sorters(sorters).Filters(filters).Execute() @@ -2925,7 +2927,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2940,7 +2942,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AppsAPI.ListOwnedUserApps(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.AppsAPI.ListOwnedUserApps(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Filters(filters).Execute() @@ -2963,7 +2965,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2976,7 +2978,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AppsAPI.PatchSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.AppsAPI.PatchSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() @@ -2999,7 +3001,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3012,7 +3014,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AppsAPI.PatchUserApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.AppsAPI.PatchUserApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() @@ -3035,7 +3037,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3058,7 +3060,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.AppsAPI.UpdateSourceAppsInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //r, err := apiClient.V2024.AppsAPI.UpdateSourceAppsInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).SourceAppBulkUpdateRequest(sourceAppBulkUpdateRequest).Execute() @@ -3079,7 +3081,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3091,7 +3093,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AuthProfileAPI.GetProfileConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.AuthProfileAPI.GetProfileConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -3114,7 +3116,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3125,7 +3127,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AuthProfileAPI.GetProfileConfigList(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.AuthProfileAPI.GetProfileConfigList(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -3148,7 +3150,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3159,7 +3161,7 @@ jsonpatchoperation := []byte(``) // []JsonPatchOperation | - var jsonPatchOperation v2024.[]JsonPatchOperation + var jsonPatchOperation []v2024.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -3167,7 +3169,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AuthProfileAPI.PatchProfileConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2024.AuthProfileAPI.PatchProfileConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() @@ -3190,7 +3192,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3201,7 +3203,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AuthUsersAPI.GetAuthUser(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.AuthUsersAPI.GetAuthUser(context.Background(), id).Execute() @@ -3224,7 +3226,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3234,7 +3236,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/capabilities, value=[ORG_ADMIN]}]`) // []JsonPatchOperation | A list of auth user update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - var jsonPatchOperation v2024.[]JsonPatchOperation + var jsonPatchOperation []v2024.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -3242,7 +3244,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.AuthUsersAPI.PatchAuthUser(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2024.AuthUsersAPI.PatchAuthUser(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -3265,7 +3267,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3283,7 +3285,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.BrandingAPI.CreateBrandingItem(context.Background()).Name(name).ProductName(productName).Execute() //resp, r, err := apiClient.V2024.BrandingAPI.CreateBrandingItem(context.Background()).Name(name).ProductName(productName).ActionButtonColor(actionButtonColor).ActiveLinkColor(activeLinkColor).NavigationColor(navigationColor).EmailFromAddress(emailFromAddress).LoginInformationalMessage(loginInformationalMessage).FileStandard(fileStandard).Execute() @@ -3306,7 +3308,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3317,7 +3319,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.BrandingAPI.DeleteBranding(context.Background(), name).Execute() //r, err := apiClient.V2024.BrandingAPI.DeleteBranding(context.Background(), name).Execute() @@ -3338,7 +3340,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3349,7 +3351,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.BrandingAPI.GetBranding(context.Background(), name).Execute() //resp, r, err := apiClient.V2024.BrandingAPI.GetBranding(context.Background(), name).Execute() @@ -3372,7 +3374,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3382,7 +3384,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.BrandingAPI.GetBrandingList(context.Background()).Execute() //resp, r, err := apiClient.V2024.BrandingAPI.GetBrandingList(context.Background()).Execute() @@ -3405,7 +3407,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3424,7 +3426,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.BrandingAPI.SetBrandingItem(context.Background(), name).Name2(name2).ProductName(productName).Execute() //resp, r, err := apiClient.V2024.BrandingAPI.SetBrandingItem(context.Background(), name).Name2(name2).ProductName(productName).ActionButtonColor(actionButtonColor).ActiveLinkColor(activeLinkColor).NavigationColor(navigationColor).EmailFromAddress(emailFromAddress).LoginInformationalMessage(loginInformationalMessage).FileStandard(fileStandard).Execute() @@ -3447,7 +3449,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3481,7 +3483,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignFiltersAPI.CreateCampaignFilter(context.Background()).CampaignFilterDetails(campaignFilterDetails).Execute() //resp, r, err := apiClient.V2024.CertificationCampaignFiltersAPI.CreateCampaignFilter(context.Background()).CampaignFilterDetails(campaignFilterDetails).Execute() @@ -3504,7 +3506,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3513,7 +3515,7 @@ requestbody := []byte(``) // []string | A json list of IDs of campaign filters to delete. - var requestBody v2024.[]RequestBody + var requestBody []v2024.RequestBody if err := json.Unmarshal(requestbody, &requestBody); err != nil { fmt.Println("Error:", err) return @@ -3521,7 +3523,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.CertificationCampaignFiltersAPI.DeleteCampaignFilters(context.Background()).RequestBody(requestBody).Execute() //r, err := apiClient.V2024.CertificationCampaignFiltersAPI.DeleteCampaignFilters(context.Background()).RequestBody(requestBody).Execute() @@ -3542,7 +3544,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3553,7 +3555,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignFiltersAPI.GetCampaignFilterById(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.CertificationCampaignFiltersAPI.GetCampaignFilterById(context.Background(), id).Execute() @@ -3576,7 +3578,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3589,7 +3591,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignFiltersAPI.ListCampaignFilters(context.Background()).Execute() //resp, r, err := apiClient.V2024.CertificationCampaignFiltersAPI.ListCampaignFilters(context.Background()).Limit(limit).Start(start).IncludeSystemFilters(includeSystemFilters).Execute() @@ -3612,7 +3614,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3647,7 +3649,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignFiltersAPI.UpdateCampaignFilter(context.Background(), filterId).CampaignFilterDetails(campaignFilterDetails).Execute() //resp, r, err := apiClient.V2024.CertificationCampaignFiltersAPI.UpdateCampaignFilter(context.Background(), filterId).CampaignFilterDetails(campaignFilterDetails).Execute() @@ -3670,7 +3672,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3684,7 +3686,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.CompleteCampaign(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.CompleteCampaign(context.Background(), id).CampaignCompleteOptions(campaignCompleteOptions).Execute() @@ -3707,7 +3709,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3833,7 +3835,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.CreateCampaign(context.Background()).Campaign(campaign).Execute() //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.CreateCampaign(context.Background()).Campaign(campaign).Execute() @@ -3856,7 +3858,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" "time" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -3998,7 +4000,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.CreateCampaignTemplate(context.Background()).CampaignTemplate(campaignTemplate).Execute() //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.CreateCampaignTemplate(context.Background()).CampaignTemplate(campaignTemplate).Execute() @@ -4021,7 +4023,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4032,7 +4034,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.CertificationCampaignsAPI.DeleteCampaignTemplate(context.Background(), id).Execute() //r, err := apiClient.V2024.CertificationCampaignsAPI.DeleteCampaignTemplate(context.Background(), id).Execute() @@ -4053,7 +4055,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4064,7 +4066,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.CertificationCampaignsAPI.DeleteCampaignTemplateSchedule(context.Background(), id).Execute() //r, err := apiClient.V2024.CertificationCampaignsAPI.DeleteCampaignTemplateSchedule(context.Background(), id).Execute() @@ -4085,7 +4087,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4104,7 +4106,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.DeleteCampaigns(context.Background()).CampaignsDeleteRequest(campaignsDeleteRequest).Execute() //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.DeleteCampaigns(context.Background()).CampaignsDeleteRequest(campaignsDeleteRequest).Execute() @@ -4127,7 +4129,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4143,7 +4145,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetActiveCampaigns(context.Background()).Execute() //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetActiveCampaigns(context.Background()).Detail(detail).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -4166,7 +4168,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4178,7 +4180,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaign(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaign(context.Background(), id).Detail(detail).Execute() @@ -4201,7 +4203,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4212,7 +4214,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaignReports(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaignReports(context.Background(), id).Execute() @@ -4235,7 +4237,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4245,7 +4247,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaignReportsConfig(context.Background()).Execute() //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaignReportsConfig(context.Background()).Execute() @@ -4268,7 +4270,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4279,7 +4281,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaignTemplate(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaignTemplate(context.Background(), id).Execute() @@ -4302,7 +4304,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4313,7 +4315,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaignTemplateSchedule(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaignTemplateSchedule(context.Background(), id).Execute() @@ -4336,7 +4338,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4351,7 +4353,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaignTemplates(context.Background()).Execute() //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.GetCampaignTemplates(context.Background()).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() @@ -4374,7 +4376,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4399,7 +4401,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.Move(context.Background(), id).AdminReviewReassign(adminReviewReassign).Execute() //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.Move(context.Background(), id).AdminReviewReassign(adminReviewReassign).Execute() @@ -4422,7 +4424,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4432,7 +4434,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/description, value=Updated description!}, {op=replace, path=/campaign/filter/id, value=ff80818155fe8c080155fe8d925b0316}]`) // []JsonPatchOperation | A list of campaign update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * deadlineDuration * campaign (all fields that are allowed during create) - var jsonPatchOperation v2024.[]JsonPatchOperation + var jsonPatchOperation []v2024.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -4440,7 +4442,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.PatchCampaignTemplate(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.PatchCampaignTemplate(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -4463,7 +4465,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4482,7 +4484,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.SetCampaignReportsConfig(context.Background()).CampaignReportsConfig(campaignReportsConfig).Execute() //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.SetCampaignReportsConfig(context.Background()).CampaignReportsConfig(campaignReportsConfig).Execute() @@ -4505,7 +4507,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4536,7 +4538,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.CertificationCampaignsAPI.SetCampaignTemplateSchedule(context.Background(), id).Execute() //r, err := apiClient.V2024.CertificationCampaignsAPI.SetCampaignTemplateSchedule(context.Background(), id).Schedule(schedule).Execute() @@ -4557,7 +4559,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4571,7 +4573,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.StartCampaign(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.StartCampaign(context.Background(), id).ActivateCampaignOptions(activateCampaignOptions).Execute() @@ -4594,7 +4596,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4605,7 +4607,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.StartCampaignRemediationScan(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.StartCampaignRemediationScan(context.Background(), id).Execute() @@ -4628,7 +4630,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4640,7 +4642,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.StartCampaignReport(context.Background(), id, type_).Execute() //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.StartCampaignReport(context.Background(), id, type_).Execute() @@ -4663,7 +4665,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4674,7 +4676,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.StartGenerateCampaignTemplate(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.StartGenerateCampaignTemplate(context.Background(), id).Execute() @@ -4697,7 +4699,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4707,7 +4709,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/name, value=This field has been updated!}, {op=copy, from=/name, path=/description}]`) // []JsonPatchOperation | A list of campaign update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The fields that can be patched differ based on the status of the campaign. When the campaign is in the *STAGED* status, you can patch these fields: * name * description * recommendationsEnabled * deadline * emailNotificationEnabled * autoRevokeAllowed When the campaign is in the *ACTIVE* status, you can patch these fields: * deadline - var jsonPatchOperation v2024.[]JsonPatchOperation + var jsonPatchOperation []v2024.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -4715,7 +4717,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationCampaignsAPI.UpdateCampaign(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2024.CertificationCampaignsAPI.UpdateCampaign(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -4738,7 +4740,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4749,7 +4751,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationsAPI.GetCertificationTask(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.CertificationsAPI.GetCertificationTask(context.Background(), id).Execute() @@ -4772,7 +4774,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4783,7 +4785,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationsAPI.GetIdentityCertification(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.CertificationsAPI.GetIdentityCertification(context.Background(), id).Execute() @@ -4806,7 +4808,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4822,7 +4824,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationsAPI.GetIdentityCertificationItemPermissions(context.Background(), certificationId, itemId).Execute() //resp, r, err := apiClient.V2024.CertificationsAPI.GetIdentityCertificationItemPermissions(context.Background(), certificationId, itemId).Filters(filters).Limit(limit).Offset(offset).Count(count).Execute() @@ -4845,7 +4847,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4860,7 +4862,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationsAPI.GetPendingCertificationTasks(context.Background()).Execute() //resp, r, err := apiClient.V2024.CertificationsAPI.GetPendingCertificationTasks(context.Background()).ReviewerIdentity(reviewerIdentity).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() @@ -4883,7 +4885,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4899,7 +4901,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationsAPI.ListCertificationReviewers(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.CertificationsAPI.ListCertificationReviewers(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -4922,7 +4924,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4941,7 +4943,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationsAPI.ListIdentityAccessReviewItems(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.CertificationsAPI.ListIdentityAccessReviewItems(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Entitlements(entitlements).AccessProfiles(accessProfiles).Roles(roles).Execute() @@ -4964,7 +4966,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4980,7 +4982,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationsAPI.ListIdentityCertifications(context.Background()).Execute() //resp, r, err := apiClient.V2024.CertificationsAPI.ListIdentityCertifications(context.Background()).ReviewerIdentity(reviewerIdentity).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -5003,7 +5005,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5013,7 +5015,7 @@ reviewdecision := []byte(`[{id=ef38f94347e94562b5bb8424a56396b5, decision=APPROVE, bulk=true, comments=This user still needs access to this source.}, {id=ef38f94347e94562b5bb8424a56397d8, decision=APPROVE, bulk=true, comments=This user still needs access to this source too.}]`) // []ReviewDecision | A non-empty array of decisions to be made. - var reviewDecision v2024.[]ReviewDecision + var reviewDecision []v2024.ReviewDecision if err := json.Unmarshal(reviewdecision, &reviewDecision); err != nil { fmt.Println("Error:", err) return @@ -5021,7 +5023,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationsAPI.MakeIdentityDecision(context.Background(), id).ReviewDecision(reviewDecision).Execute() //resp, r, err := apiClient.V2024.CertificationsAPI.MakeIdentityDecision(context.Background(), id).ReviewDecision(reviewDecision).Execute() @@ -5044,7 +5046,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5072,7 +5074,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationsAPI.ReassignIdentityCertifications(context.Background(), id).ReviewReassign(reviewReassign).Execute() //resp, r, err := apiClient.V2024.CertificationsAPI.ReassignIdentityCertifications(context.Background(), id).ReviewReassign(reviewReassign).Execute() @@ -5095,7 +5097,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5106,7 +5108,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationsAPI.SignOffIdentityCertification(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.CertificationsAPI.SignOffIdentityCertification(context.Background(), id).Execute() @@ -5129,7 +5131,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5157,7 +5159,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationsAPI.SubmitReassignCertsAsync(context.Background(), id).ReviewReassign(reviewReassign).Execute() //resp, r, err := apiClient.V2024.CertificationsAPI.SubmitReassignCertsAsync(context.Background(), id).ReviewReassign(reviewReassign).Execute() @@ -5180,7 +5182,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5197,7 +5199,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationSummariesAPI.GetIdentityAccessSummaries(context.Background(), id, type_).Execute() //resp, r, err := apiClient.V2024.CertificationSummariesAPI.GetIdentityAccessSummaries(context.Background(), id, type_).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -5220,7 +5222,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5232,7 +5234,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationSummariesAPI.GetIdentityDecisionSummary(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.CertificationSummariesAPI.GetIdentityDecisionSummary(context.Background(), id).Filters(filters).Execute() @@ -5255,7 +5257,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5271,7 +5273,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationSummariesAPI.GetIdentitySummaries(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.CertificationSummariesAPI.GetIdentitySummaries(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -5294,7 +5296,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5306,7 +5308,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CertificationSummariesAPI.GetIdentitySummary(context.Background(), id, identitySummaryId).Execute() //resp, r, err := apiClient.V2024.CertificationSummariesAPI.GetIdentitySummary(context.Background(), id, identitySummaryId).Execute() @@ -5329,7 +5331,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5348,7 +5350,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConfigurationHubAPI.CreateDeploy(context.Background()).DeployRequest(deployRequest).Execute() //resp, r, err := apiClient.V2024.ConfigurationHubAPI.CreateDeploy(context.Background()).DeployRequest(deployRequest).Execute() @@ -5371,7 +5373,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5395,7 +5397,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConfigurationHubAPI.CreateObjectMapping(context.Background(), sourceOrg).ObjectMappingRequest(objectMappingRequest).Execute() //resp, r, err := apiClient.V2024.ConfigurationHubAPI.CreateObjectMapping(context.Background(), sourceOrg).ObjectMappingRequest(objectMappingRequest).Execute() @@ -5418,7 +5420,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5450,7 +5452,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConfigurationHubAPI.CreateObjectMappings(context.Background(), sourceOrg).ObjectMappingBulkCreateRequest(objectMappingBulkCreateRequest).Execute() //resp, r, err := apiClient.V2024.ConfigurationHubAPI.CreateObjectMappings(context.Background(), sourceOrg).ObjectMappingBulkCreateRequest(objectMappingBulkCreateRequest).Execute() @@ -5473,7 +5475,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5512,7 +5514,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConfigurationHubAPI.CreateScheduledAction(context.Background()).ScheduledActionPayload(scheduledActionPayload).Execute() //resp, r, err := apiClient.V2024.ConfigurationHubAPI.CreateScheduledAction(context.Background()).ScheduledActionPayload(scheduledActionPayload).Execute() @@ -5535,7 +5537,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5547,7 +5549,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConfigurationHubAPI.CreateUploadedConfiguration(context.Background()).Data(data).Name(name).Execute() //resp, r, err := apiClient.V2024.ConfigurationHubAPI.CreateUploadedConfiguration(context.Background()).Data(data).Name(name).Execute() @@ -5570,7 +5572,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5581,7 +5583,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.ConfigurationHubAPI.DeleteBackup(context.Background(), id).Execute() //r, err := apiClient.V2024.ConfigurationHubAPI.DeleteBackup(context.Background(), id).Execute() @@ -5602,7 +5604,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5613,7 +5615,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.ConfigurationHubAPI.DeleteDraft(context.Background(), id).Execute() //r, err := apiClient.V2024.ConfigurationHubAPI.DeleteDraft(context.Background(), id).Execute() @@ -5634,7 +5636,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5646,7 +5648,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.ConfigurationHubAPI.DeleteObjectMapping(context.Background(), sourceOrg, objectMappingId).Execute() //r, err := apiClient.V2024.ConfigurationHubAPI.DeleteObjectMapping(context.Background(), sourceOrg, objectMappingId).Execute() @@ -5667,7 +5669,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5678,7 +5680,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.ConfigurationHubAPI.DeleteScheduledAction(context.Background(), scheduledActionId).Execute() //r, err := apiClient.V2024.ConfigurationHubAPI.DeleteScheduledAction(context.Background(), scheduledActionId).Execute() @@ -5699,7 +5701,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5710,7 +5712,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.ConfigurationHubAPI.DeleteUploadedConfiguration(context.Background(), id).Execute() //r, err := apiClient.V2024.ConfigurationHubAPI.DeleteUploadedConfiguration(context.Background(), id).Execute() @@ -5731,7 +5733,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5742,7 +5744,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConfigurationHubAPI.GetDeploy(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.ConfigurationHubAPI.GetDeploy(context.Background(), id).Execute() @@ -5765,7 +5767,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5776,7 +5778,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConfigurationHubAPI.GetObjectMappings(context.Background(), sourceOrg).Execute() //resp, r, err := apiClient.V2024.ConfigurationHubAPI.GetObjectMappings(context.Background(), sourceOrg).Execute() @@ -5799,7 +5801,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5810,7 +5812,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConfigurationHubAPI.GetUploadedConfiguration(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.ConfigurationHubAPI.GetUploadedConfiguration(context.Background(), id).Execute() @@ -5833,7 +5835,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5844,7 +5846,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConfigurationHubAPI.ListBackups(context.Background()).Execute() //resp, r, err := apiClient.V2024.ConfigurationHubAPI.ListBackups(context.Background()).Filters(filters).Execute() @@ -5867,7 +5869,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5877,7 +5879,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConfigurationHubAPI.ListDeploys(context.Background()).Execute() //resp, r, err := apiClient.V2024.ConfigurationHubAPI.ListDeploys(context.Background()).Execute() @@ -5900,7 +5902,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5911,7 +5913,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConfigurationHubAPI.ListDrafts(context.Background()).Execute() //resp, r, err := apiClient.V2024.ConfigurationHubAPI.ListDrafts(context.Background()).Filters(filters).Execute() @@ -5934,7 +5936,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5944,7 +5946,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConfigurationHubAPI.ListScheduledActions(context.Background()).Execute() //resp, r, err := apiClient.V2024.ConfigurationHubAPI.ListScheduledActions(context.Background()).Execute() @@ -5967,7 +5969,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5978,7 +5980,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConfigurationHubAPI.ListUploadedConfigurations(context.Background()).Execute() //resp, r, err := apiClient.V2024.ConfigurationHubAPI.ListUploadedConfigurations(context.Background()).Filters(filters).Execute() @@ -6001,7 +6003,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6032,7 +6034,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConfigurationHubAPI.UpdateObjectMappings(context.Background(), sourceOrg).ObjectMappingBulkPatchRequest(objectMappingBulkPatchRequest).Execute() //resp, r, err := apiClient.V2024.ConfigurationHubAPI.UpdateObjectMappings(context.Background(), sourceOrg).ObjectMappingBulkPatchRequest(objectMappingBulkPatchRequest).Execute() @@ -6055,7 +6057,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6083,7 +6085,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConfigurationHubAPI.UpdateScheduledAction(context.Background(), scheduledActionId).JsonPatch(jsonPatch).Execute() //resp, r, err := apiClient.V2024.ConfigurationHubAPI.UpdateScheduledAction(context.Background(), scheduledActionId).JsonPatch(jsonPatch).Execute() @@ -6106,7 +6108,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6125,7 +6127,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorCustomizersAPI.CreateConnectorCustomizer(context.Background()).ConnectorCustomizerCreateRequest(connectorCustomizerCreateRequest).Execute() //resp, r, err := apiClient.V2024.ConnectorCustomizersAPI.CreateConnectorCustomizer(context.Background()).ConnectorCustomizerCreateRequest(connectorCustomizerCreateRequest).Execute() @@ -6148,7 +6150,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6159,7 +6161,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorCustomizersAPI.CreateConnectorCustomizerVersion(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.ConnectorCustomizersAPI.CreateConnectorCustomizerVersion(context.Background(), id).Execute() @@ -6182,7 +6184,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6193,7 +6195,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.ConnectorCustomizersAPI.DeleteConnectorCustomizer(context.Background(), id).Execute() //r, err := apiClient.V2024.ConnectorCustomizersAPI.DeleteConnectorCustomizer(context.Background(), id).Execute() @@ -6214,7 +6216,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6225,7 +6227,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorCustomizersAPI.GetConnectorCustomizer(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.ConnectorCustomizersAPI.GetConnectorCustomizer(context.Background(), id).Execute() @@ -6248,7 +6250,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6260,7 +6262,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorCustomizersAPI.ListConnectorCustomizers(context.Background()).Execute() //resp, r, err := apiClient.V2024.ConnectorCustomizersAPI.ListConnectorCustomizers(context.Background()).Offset(offset).Limit(limit).Execute() @@ -6283,7 +6285,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6297,7 +6299,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorCustomizersAPI.PutConnectorCustomizer(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.ConnectorCustomizersAPI.PutConnectorCustomizer(context.Background(), id).ConnectorCustomizerUpdateRequest(connectorCustomizerUpdateRequest).Execute() @@ -6320,7 +6322,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6362,7 +6364,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorRuleManagementAPI.CreateConnectorRule(context.Background()).ConnectorRuleCreateRequest(connectorRuleCreateRequest).Execute() //resp, r, err := apiClient.V2024.ConnectorRuleManagementAPI.CreateConnectorRule(context.Background()).ConnectorRuleCreateRequest(connectorRuleCreateRequest).Execute() @@ -6385,7 +6387,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6396,7 +6398,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.ConnectorRuleManagementAPI.DeleteConnectorRule(context.Background(), id).Execute() //r, err := apiClient.V2024.ConnectorRuleManagementAPI.DeleteConnectorRule(context.Background(), id).Execute() @@ -6417,7 +6419,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6428,7 +6430,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorRuleManagementAPI.GetConnectorRule(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.ConnectorRuleManagementAPI.GetConnectorRule(context.Background(), id).Execute() @@ -6451,7 +6453,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6464,7 +6466,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorRuleManagementAPI.GetConnectorRuleList(context.Background()).Execute() //resp, r, err := apiClient.V2024.ConnectorRuleManagementAPI.GetConnectorRuleList(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() @@ -6487,7 +6489,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6525,7 +6527,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorRuleManagementAPI.PutConnectorRule(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.ConnectorRuleManagementAPI.PutConnectorRule(context.Background(), id).ConnectorRuleUpdateRequest(connectorRuleUpdateRequest).Execute() @@ -6548,7 +6550,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6568,7 +6570,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorRuleManagementAPI.TestConnectorRule(context.Background()).SourceCode(sourceCode).Execute() //resp, r, err := apiClient.V2024.ConnectorRuleManagementAPI.TestConnectorRule(context.Background()).SourceCode(sourceCode).Execute() @@ -6591,7 +6593,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6614,7 +6616,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorsAPI.CreateCustomConnector(context.Background()).V3CreateConnectorDto(v3CreateConnectorDto).Execute() //resp, r, err := apiClient.V2024.ConnectorsAPI.CreateCustomConnector(context.Background()).V3CreateConnectorDto(v3CreateConnectorDto).Execute() @@ -6637,7 +6639,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6648,7 +6650,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.ConnectorsAPI.DeleteCustomConnector(context.Background(), scriptName).Execute() //r, err := apiClient.V2024.ConnectorsAPI.DeleteCustomConnector(context.Background(), scriptName).Execute() @@ -6669,7 +6671,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6681,7 +6683,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnector(context.Background(), scriptName).Execute() //resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnector(context.Background(), scriptName).Locale(locale).Execute() @@ -6704,7 +6706,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6715,7 +6717,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnectorCorrelationConfig(context.Background(), scriptName).Execute() //resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnectorCorrelationConfig(context.Background(), scriptName).Execute() @@ -6738,7 +6740,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6753,7 +6755,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnectorList(context.Background()).Execute() //resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnectorList(context.Background()).Filters(filters).Limit(limit).Offset(offset).Count(count).Locale(locale).Execute() @@ -6776,7 +6778,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6787,7 +6789,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnectorSourceConfig(context.Background(), scriptName).Execute() //resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnectorSourceConfig(context.Background(), scriptName).Execute() @@ -6810,7 +6812,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6821,7 +6823,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnectorSourceTemplate(context.Background(), scriptName).Execute() //resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnectorSourceTemplate(context.Background(), scriptName).Execute() @@ -6844,7 +6846,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6856,7 +6858,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnectorTranslations(context.Background(), scriptName, locale).Execute() //resp, r, err := apiClient.V2024.ConnectorsAPI.GetConnectorTranslations(context.Background(), scriptName, locale).Execute() @@ -6879,7 +6881,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6891,7 +6893,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorsAPI.PutConnectorCorrelationConfig(context.Background(), scriptName).File(file).Execute() //resp, r, err := apiClient.V2024.ConnectorsAPI.PutConnectorCorrelationConfig(context.Background(), scriptName).File(file).Execute() @@ -6914,7 +6916,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6926,7 +6928,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorsAPI.PutConnectorSourceConfig(context.Background(), scriptName).File(file).Execute() //resp, r, err := apiClient.V2024.ConnectorsAPI.PutConnectorSourceConfig(context.Background(), scriptName).File(file).Execute() @@ -6949,7 +6951,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6961,7 +6963,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorsAPI.PutConnectorSourceTemplate(context.Background(), scriptName).File(file).Execute() //resp, r, err := apiClient.V2024.ConnectorsAPI.PutConnectorSourceTemplate(context.Background(), scriptName).File(file).Execute() @@ -6984,7 +6986,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6996,7 +6998,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorsAPI.PutConnectorTranslations(context.Background(), scriptName, locale).Execute() //resp, r, err := apiClient.V2024.ConnectorsAPI.PutConnectorTranslations(context.Background(), scriptName, locale).Execute() @@ -7019,7 +7021,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7029,7 +7031,7 @@ jsonpatchoperation := []byte(``) // []JsonPatchOperation | A list of connector detail update operations - var jsonPatchOperation v2024.[]JsonPatchOperation + var jsonPatchOperation []v2024.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -7037,7 +7039,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ConnectorsAPI.UpdateConnector(context.Background(), scriptName).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2024.ConnectorsAPI.UpdateConnector(context.Background(), scriptName).JsonPatchOperation(jsonPatchOperation).Execute() @@ -7060,7 +7062,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7181,7 +7183,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.CreateFormDefinition(context.Background()).Execute() //resp, r, err := apiClient.V2024.CustomFormsAPI.CreateFormDefinition(context.Background()).Body(body).Execute() @@ -7204,7 +7206,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7223,7 +7225,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.CreateFormDefinitionDynamicSchema(context.Background()).Execute() //resp, r, err := apiClient.V2024.CustomFormsAPI.CreateFormDefinitionDynamicSchema(context.Background()).Body(body).Execute() @@ -7246,7 +7248,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7258,7 +7260,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.CreateFormDefinitionFileRequest(context.Background(), formDefinitionID).File(file).Execute() //resp, r, err := apiClient.V2024.CustomFormsAPI.CreateFormDefinitionFileRequest(context.Background(), formDefinitionID).File(file).Execute() @@ -7281,7 +7283,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7312,7 +7314,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.CreateFormInstance(context.Background()).Execute() //resp, r, err := apiClient.V2024.CustomFormsAPI.CreateFormInstance(context.Background()).Body(body).Execute() @@ -7335,7 +7337,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7346,7 +7348,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.DeleteFormDefinition(context.Background(), formDefinitionID).Execute() //resp, r, err := apiClient.V2024.CustomFormsAPI.DeleteFormDefinition(context.Background(), formDefinitionID).Execute() @@ -7369,7 +7371,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7383,7 +7385,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.ExportFormDefinitionsByTenant(context.Background()).Execute() //resp, r, err := apiClient.V2024.CustomFormsAPI.ExportFormDefinitionsByTenant(context.Background()).Offset(offset).Limit(limit).Filters(filters).Sorters(sorters).Execute() @@ -7406,7 +7408,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7418,7 +7420,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.GetFileFromS3(context.Background(), formDefinitionID, fileID).Execute() //resp, r, err := apiClient.V2024.CustomFormsAPI.GetFileFromS3(context.Background(), formDefinitionID, fileID).Execute() @@ -7441,7 +7443,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7452,7 +7454,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.GetFormDefinitionByKey(context.Background(), formDefinitionID).Execute() //resp, r, err := apiClient.V2024.CustomFormsAPI.GetFormDefinitionByKey(context.Background(), formDefinitionID).Execute() @@ -7475,7 +7477,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7486,7 +7488,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.GetFormInstanceByKey(context.Background(), formInstanceID).Execute() //resp, r, err := apiClient.V2024.CustomFormsAPI.GetFormInstanceByKey(context.Background(), formInstanceID).Execute() @@ -7509,7 +7511,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7521,7 +7523,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.GetFormInstanceFile(context.Background(), formInstanceID, fileID).Execute() //resp, r, err := apiClient.V2024.CustomFormsAPI.GetFormInstanceFile(context.Background(), formInstanceID, fileID).Execute() @@ -7544,7 +7546,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7555,7 +7557,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.ImportFormDefinitions(context.Background()).Execute() //resp, r, err := apiClient.V2024.CustomFormsAPI.ImportFormDefinitions(context.Background()).Body(body).Execute() @@ -7578,7 +7580,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7590,7 +7592,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.PatchFormDefinition(context.Background(), formDefinitionID).Execute() //resp, r, err := apiClient.V2024.CustomFormsAPI.PatchFormDefinition(context.Background(), formDefinitionID).Body(body).Execute() @@ -7613,7 +7615,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7625,7 +7627,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.PatchFormInstance(context.Background(), formInstanceID).Execute() //resp, r, err := apiClient.V2024.CustomFormsAPI.PatchFormInstance(context.Background(), formInstanceID).Body(body).Execute() @@ -7648,7 +7650,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7662,7 +7664,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.SearchFormDefinitionsByTenant(context.Background()).Execute() //resp, r, err := apiClient.V2024.CustomFormsAPI.SearchFormDefinitionsByTenant(context.Background()).Offset(offset).Limit(limit).Filters(filters).Sorters(sorters).Execute() @@ -7685,7 +7687,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7700,7 +7702,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.SearchFormElementDataByElementID(context.Background(), formInstanceID, formElementID).Execute() //resp, r, err := apiClient.V2024.CustomFormsAPI.SearchFormElementDataByElementID(context.Background(), formInstanceID, formElementID).Limit(limit).Filters(filters).Query(query).Execute() @@ -7723,7 +7725,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7733,7 +7735,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.SearchFormInstancesByTenant(context.Background()).Execute() //resp, r, err := apiClient.V2024.CustomFormsAPI.SearchFormInstancesByTenant(context.Background()).Execute() @@ -7756,7 +7758,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7766,7 +7768,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.SearchPreDefinedSelectOptions(context.Background()).Execute() //resp, r, err := apiClient.V2024.CustomFormsAPI.SearchPreDefinedSelectOptions(context.Background()).Execute() @@ -7789,7 +7791,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7814,7 +7816,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomFormsAPI.ShowPreviewDataSource(context.Background(), formDefinitionID).Execute() //resp, r, err := apiClient.V2024.CustomFormsAPI.ShowPreviewDataSource(context.Background(), formDefinitionID).Limit(limit).Filters(filters).Query(query).FormElementPreviewRequest(formElementPreviewRequest).Execute() @@ -7837,7 +7839,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7859,7 +7861,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomPasswordInstructionsAPI.CreateCustomPasswordInstructions(context.Background()).XSailPointExperimental(xSailPointExperimental).CustomPasswordInstruction(customPasswordInstruction).Execute() //resp, r, err := apiClient.V2024.CustomPasswordInstructionsAPI.CreateCustomPasswordInstructions(context.Background()).XSailPointExperimental(xSailPointExperimental).CustomPasswordInstruction(customPasswordInstruction).Execute() @@ -7882,7 +7884,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7895,7 +7897,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.CustomPasswordInstructionsAPI.DeleteCustomPasswordInstructions(context.Background(), pageId).XSailPointExperimental(xSailPointExperimental).Execute() //r, err := apiClient.V2024.CustomPasswordInstructionsAPI.DeleteCustomPasswordInstructions(context.Background(), pageId).XSailPointExperimental(xSailPointExperimental).Locale(locale).Execute() @@ -7916,7 +7918,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7929,7 +7931,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.CustomPasswordInstructionsAPI.GetCustomPasswordInstructions(context.Background(), pageId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.CustomPasswordInstructionsAPI.GetCustomPasswordInstructions(context.Background(), pageId).XSailPointExperimental(xSailPointExperimental).Locale(locale).Execute() @@ -7952,7 +7954,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7969,7 +7971,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.DataSegmentationAPI.CreateDataSegment(context.Background()).DataSegment(dataSegment).Execute() //resp, r, err := apiClient.V2024.DataSegmentationAPI.CreateDataSegment(context.Background()).DataSegment(dataSegment).Execute() @@ -7992,7 +7994,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8005,7 +8007,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.DataSegmentationAPI.DeleteDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //r, err := apiClient.V2024.DataSegmentationAPI.DeleteDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Published(published).Execute() @@ -8026,7 +8028,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8038,7 +8040,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.DataSegmentationAPI.GetDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.DataSegmentationAPI.GetDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -8061,7 +8063,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8073,7 +8075,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.DataSegmentationAPI.GetDataSegmentIdentityMembership(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.DataSegmentationAPI.GetDataSegmentIdentityMembership(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -8096,7 +8098,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8108,7 +8110,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.DataSegmentationAPI.GetDataSegmentationEnabledForUser(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.DataSegmentationAPI.GetDataSegmentationEnabledForUser(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -8131,7 +8133,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8149,7 +8151,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.DataSegmentationAPI.ListDataSegments(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.DataSegmentationAPI.ListDataSegments(context.Background()).XSailPointExperimental(xSailPointExperimental).Enabled(enabled).Unique(unique).Published(published).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() @@ -8172,7 +8174,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8183,7 +8185,7 @@ requestbody := []byte(`[{op=replace, path=/memberFilter, value={expression={operator=AND, children=[{operator=EQUALS, attribute=location, value={type=STRING, value=Philadelphia}}, {operator=EQUALS, attribute=department, value={type=STRING, value=HR}}]}}}]`) // []map[string]interface{} | A list of segment update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * membership * memberFilter * memberSelection * scopes * enabled - var requestBody v2024.[]RequestBody + var requestBody []v2024.RequestBody if err := json.Unmarshal(requestbody, &requestBody); err != nil { fmt.Println("Error:", err) return @@ -8191,7 +8193,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.DataSegmentationAPI.PatchDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() //resp, r, err := apiClient.V2024.DataSegmentationAPI.PatchDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() @@ -8214,7 +8216,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8225,7 +8227,7 @@ publishAll := true // bool | This flag decides whether you want to publish all unpublished or a list of specific segment ids (optional) (default to true) # bool | This flag decides whether you want to publish all unpublished or a list of specific segment ids (optional) (default to true) - var requestBody v2024.[]RequestBody + var requestBody []v2024.RequestBody if err := json.Unmarshal(requestbody, &requestBody); err != nil { fmt.Println("Error:", err) return @@ -8233,7 +8235,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.DataSegmentationAPI.PublishDataSegment(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() //r, err := apiClient.V2024.DataSegmentationAPI.PublishDataSegment(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).PublishAll(publishAll).Execute() @@ -8254,7 +8256,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8358,7 +8360,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.DimensionsAPI.CreateDimension(context.Background(), roleId).Dimension(dimension).Execute() //resp, r, err := apiClient.V2024.DimensionsAPI.CreateDimension(context.Background(), roleId).Dimension(dimension).Execute() @@ -8381,7 +8383,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8401,7 +8403,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.DimensionsAPI.DeleteBulkDimensions(context.Background(), roleId).DimensionBulkDeleteRequest(dimensionBulkDeleteRequest).Execute() //resp, r, err := apiClient.V2024.DimensionsAPI.DeleteBulkDimensions(context.Background(), roleId).DimensionBulkDeleteRequest(dimensionBulkDeleteRequest).Execute() @@ -8424,7 +8426,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8436,7 +8438,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.DimensionsAPI.DeleteDimension(context.Background(), roleId, dimensionId).Execute() //r, err := apiClient.V2024.DimensionsAPI.DeleteDimension(context.Background(), roleId, dimensionId).Execute() @@ -8457,7 +8459,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8469,7 +8471,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.DimensionsAPI.GetDimension(context.Background(), roleId, dimensionId).Execute() //resp, r, err := apiClient.V2024.DimensionsAPI.GetDimension(context.Background(), roleId, dimensionId).Execute() @@ -8492,7 +8494,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8509,7 +8511,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.DimensionsAPI.GetDimensionEntitlements(context.Background(), roleId, dimensionId).Execute() //resp, r, err := apiClient.V2024.DimensionsAPI.GetDimensionEntitlements(context.Background(), roleId, dimensionId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -8532,7 +8534,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8549,7 +8551,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.DimensionsAPI.ListDimensionAccessProfiles(context.Background(), roleId, dimensionId).Execute() //resp, r, err := apiClient.V2024.DimensionsAPI.ListDimensionAccessProfiles(context.Background(), roleId, dimensionId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -8572,7 +8574,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8589,7 +8591,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.DimensionsAPI.ListDimensions(context.Background(), roleId).Execute() //resp, r, err := apiClient.V2024.DimensionsAPI.ListDimensions(context.Background(), roleId).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -8612,7 +8614,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8623,7 +8625,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/description, value=Test Description}, {op=replace, path=/name, value=new name}]`) // []JsonPatchOperation | - var jsonPatchOperation v2024.[]JsonPatchOperation + var jsonPatchOperation []v2024.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -8631,7 +8633,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.DimensionsAPI.PatchDimension(context.Background(), roleId, dimensionId).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2024.DimensionsAPI.PatchDimension(context.Background(), roleId, dimensionId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -8654,7 +8656,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8668,7 +8670,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.EntitlementsAPI.CreateAccessModelMetadataForEntitlement(context.Background(), id, attributeKey, attributeValue).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.EntitlementsAPI.CreateAccessModelMetadataForEntitlement(context.Background(), id, attributeKey, attributeValue).XSailPointExperimental(xSailPointExperimental).Execute() @@ -8691,7 +8693,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8705,7 +8707,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.EntitlementsAPI.DeleteAccessModelMetadataFromEntitlement(context.Background(), id, attributeKey, attributeValue).XSailPointExperimental(xSailPointExperimental).Execute() //r, err := apiClient.V2024.EntitlementsAPI.DeleteAccessModelMetadataFromEntitlement(context.Background(), id, attributeKey, attributeValue).XSailPointExperimental(xSailPointExperimental).Execute() @@ -8726,7 +8728,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8738,7 +8740,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.EntitlementsAPI.GetEntitlement(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.EntitlementsAPI.GetEntitlement(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -8761,7 +8763,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8773,7 +8775,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.EntitlementsAPI.GetEntitlementRequestConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.EntitlementsAPI.GetEntitlementRequestConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -8796,7 +8798,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8809,7 +8811,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.EntitlementsAPI.ImportEntitlementsBySource(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.EntitlementsAPI.ImportEntitlementsBySource(context.Background(), id).XSailPointExperimental(xSailPointExperimental).CsvFile(csvFile).Execute() @@ -8832,7 +8834,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8849,7 +8851,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.EntitlementsAPI.ListEntitlementChildren(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.EntitlementsAPI.ListEntitlementChildren(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() @@ -8872,7 +8874,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8889,7 +8891,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.EntitlementsAPI.ListEntitlementParents(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.EntitlementsAPI.ListEntitlementParents(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() @@ -8912,7 +8914,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8932,7 +8934,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.EntitlementsAPI.ListEntitlements(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.EntitlementsAPI.ListEntitlements(context.Background()).XSailPointExperimental(xSailPointExperimental).AccountId(accountId).SegmentedForIdentity(segmentedForIdentity).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Filters(filters).Execute() @@ -8955,7 +8957,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8968,7 +8970,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.EntitlementsAPI.PatchEntitlement(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.EntitlementsAPI.PatchEntitlement(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() @@ -8991,7 +8993,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9009,7 +9011,17 @@ "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", "approverType" : "GOVERNANCE_GROUP" } ], + "reauthorizationRequired" : false, "requestCommentRequired" : true + }, + "revocationRequestConfig" : { + "approvalSchemes" : [ { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + }, { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + } ] } }`) // EntitlementRequestConfig | @@ -9022,7 +9034,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.EntitlementsAPI.PutEntitlementRequestConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).EntitlementRequestConfig(entitlementRequestConfig).Execute() //resp, r, err := apiClient.V2024.EntitlementsAPI.PutEntitlementRequestConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).EntitlementRequestConfig(entitlementRequestConfig).Execute() @@ -9045,7 +9057,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9057,7 +9069,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.EntitlementsAPI.ResetSourceEntitlements(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.EntitlementsAPI.ResetSourceEntitlements(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9080,7 +9092,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9109,7 +9121,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.EntitlementsAPI.UpdateEntitlementsInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).EntitlementBulkUpdateRequest(entitlementBulkUpdateRequest).Execute() //r, err := apiClient.V2024.EntitlementsAPI.UpdateEntitlementsInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).EntitlementBulkUpdateRequest(entitlementBulkUpdateRequest).Execute() @@ -9130,7 +9142,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9151,7 +9163,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.CreateAuthOrgNetworkConfig(context.Background()).NetworkConfiguration(networkConfiguration).Execute() //resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.CreateAuthOrgNetworkConfig(context.Background()).NetworkConfiguration(networkConfiguration).Execute() @@ -9174,7 +9186,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9184,7 +9196,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.GetAuthOrgLockoutConfig(context.Background()).Execute() //resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.GetAuthOrgLockoutConfig(context.Background()).Execute() @@ -9207,7 +9219,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9217,7 +9229,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.GetAuthOrgNetworkConfig(context.Background()).Execute() //resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.GetAuthOrgNetworkConfig(context.Background()).Execute() @@ -9240,7 +9252,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9250,7 +9262,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.GetAuthOrgServiceProviderConfig(context.Background()).Execute() //resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.GetAuthOrgServiceProviderConfig(context.Background()).Execute() @@ -9273,7 +9285,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9283,7 +9295,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.GetAuthOrgSessionConfig(context.Background()).Execute() //resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.GetAuthOrgSessionConfig(context.Background()).Execute() @@ -9306,7 +9318,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9315,7 +9327,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/maximumAttempts, value=7,}, {op=add, path=/lockoutDuration, value=35}]`) // []JsonPatchOperation | A list of auth org lockout configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Ensures that the patched Lockout Config conforms to certain logical guidelines, which are: `1. maximumAttempts >= 1 && maximumAttempts <= 15 2. lockoutDuration >= 5 && lockoutDuration <= 60 3. lockoutWindow >= 5 && lockoutDuration <= 60` - var jsonPatchOperation v2024.[]JsonPatchOperation + var jsonPatchOperation []v2024.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -9323,7 +9335,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() @@ -9346,7 +9358,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9355,7 +9367,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/whitelisted, value=false,}, {op=add, path=/geolocation, value=[AF, HN, ES]}]`) // []JsonPatchOperation | A list of auth org network configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Ensures that the patched Network Config conforms to certain logical guidelines, which are: 1. Each string element in the range array must be a valid ip address or ip subnet mask. 2. Each string element in the geolocation array must be 2 characters, and they can only be uppercase letters. - var jsonPatchOperation v2024.[]JsonPatchOperation + var jsonPatchOperation []v2024.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -9363,7 +9375,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() @@ -9386,7 +9398,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9395,7 +9407,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/enabled, value=true,}, {op=add, path=/federationProtocolDetails/0/jitConfiguration, value={enabled=true, sourceId=2c9180857377ed2901739c12a2da5ac8, sourceAttributeMappings={firstName=okta.firstName, lastName=okta.lastName, email=okta.email, employeeNumber=okta.employeeNumber}}}]`) // []JsonPatchOperation | A list of auth org service provider configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Note: /federationProtocolDetails/0 is IdpDetails /federationProtocolDetails/1 is SpDetails Ensures that the patched ServiceProviderConfig conforms to certain logical guidelines, which are: 1. Do not add or remove any elements in the federation protocol details in the service provider configuration. 2. Do not modify, add, or delete the service provider details element in the federation protocol details. 3. If this is the first time the patched ServiceProviderConfig enables Remote IDP sign-in, it must also include IDPDetails. 4. If the patch enables Remote IDP sign in, the entityID in the IDPDetails cannot be null. IDPDetails must include an entityID. 5. Any JIT configuration update must be valid. Just in time configuration update must be valid when enabled. This includes: - A Source ID - Source attribute mappings - Source attribute maps have all the required key values (firstName, lastName, email) - var jsonPatchOperation v2024.[]JsonPatchOperation + var jsonPatchOperation []v2024.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -9403,7 +9415,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() @@ -9426,7 +9438,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9435,7 +9447,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/rememberMe, value=true,}, {op=add, path=/maxSessionTime, value=480}]`) // []JsonPatchOperation | A list of auth org session configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Ensures that the patched Session Config conforms to certain logical guidelines, which are: `1. maxSessionTime >= 1 && maxSessionTime <= 10080 (1 week) 2. maxIdleTime >= 1 && maxIdleTime <= 1440 (1 day) 3. maxSessionTime must have a greater duration than maxIdleTime.` - var jsonPatchOperation v2024.[]JsonPatchOperation + var jsonPatchOperation []v2024.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -9443,7 +9455,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2024.GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() @@ -9466,7 +9478,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9499,7 +9511,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GovernanceGroupsAPI.CreateWorkgroup(context.Background()).XSailPointExperimental(xSailPointExperimental).WorkgroupDto(workgroupDto).Execute() //resp, r, err := apiClient.V2024.GovernanceGroupsAPI.CreateWorkgroup(context.Background()).XSailPointExperimental(xSailPointExperimental).WorkgroupDto(workgroupDto).Execute() @@ -9522,7 +9534,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9534,7 +9546,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.GovernanceGroupsAPI.DeleteWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //r, err := apiClient.V2024.GovernanceGroupsAPI.DeleteWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9555,7 +9567,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9566,7 +9578,7 @@ identitypreviewresponseidentity := []byte(``) // []IdentityPreviewResponseIdentity | List of identities to be removed from a Governance Group members list. - var identityPreviewResponseIdentity v2024.[]IdentityPreviewResponseIdentity + var identityPreviewResponseIdentity []v2024.IdentityPreviewResponseIdentity if err := json.Unmarshal(identitypreviewresponseidentity, &identityPreviewResponseIdentity); err != nil { fmt.Println("Error:", err) return @@ -9574,7 +9586,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GovernanceGroupsAPI.DeleteWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).IdentityPreviewResponseIdentity(identityPreviewResponseIdentity).Execute() //resp, r, err := apiClient.V2024.GovernanceGroupsAPI.DeleteWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).IdentityPreviewResponseIdentity(identityPreviewResponseIdentity).Execute() @@ -9597,7 +9609,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9617,7 +9629,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GovernanceGroupsAPI.DeleteWorkgroupsInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).WorkgroupBulkDeleteRequest(workgroupBulkDeleteRequest).Execute() //resp, r, err := apiClient.V2024.GovernanceGroupsAPI.DeleteWorkgroupsInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).WorkgroupBulkDeleteRequest(workgroupBulkDeleteRequest).Execute() @@ -9640,7 +9652,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9652,7 +9664,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GovernanceGroupsAPI.GetWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.GovernanceGroupsAPI.GetWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9675,7 +9687,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9691,7 +9703,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GovernanceGroupsAPI.ListConnections(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.GovernanceGroupsAPI.ListConnections(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Execute() @@ -9714,7 +9726,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9730,7 +9742,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GovernanceGroupsAPI.ListWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.GovernanceGroupsAPI.ListWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Execute() @@ -9753,7 +9765,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9769,7 +9781,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GovernanceGroupsAPI.ListWorkgroups(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.GovernanceGroupsAPI.ListWorkgroups(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -9792,7 +9804,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9805,7 +9817,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GovernanceGroupsAPI.PatchWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.GovernanceGroupsAPI.PatchWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() @@ -9828,7 +9840,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9839,7 +9851,7 @@ identitypreviewresponseidentity := []byte(``) // []IdentityPreviewResponseIdentity | List of identities to be added to a Governance Group members list. - var identityPreviewResponseIdentity v2024.[]IdentityPreviewResponseIdentity + var identityPreviewResponseIdentity []v2024.IdentityPreviewResponseIdentity if err := json.Unmarshal(identitypreviewresponseidentity, &identityPreviewResponseIdentity); err != nil { fmt.Println("Error:", err) return @@ -9847,7 +9859,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.GovernanceGroupsAPI.UpdateWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).IdentityPreviewResponseIdentity(identityPreviewResponseIdentity).Execute() //resp, r, err := apiClient.V2024.GovernanceGroupsAPI.UpdateWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).IdentityPreviewResponseIdentity(identityPreviewResponseIdentity).Execute() @@ -9870,7 +9882,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9894,7 +9906,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsIgnoredItem(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() //resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsIgnoredItem(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() @@ -9917,7 +9929,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9941,7 +9953,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsRequestedItem(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() //resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsRequestedItem(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() @@ -9964,7 +9976,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9988,7 +10000,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItem(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() //resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItem(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() @@ -10011,7 +10023,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10021,7 +10033,7 @@ accessrequestrecommendationactionitemdto := []byte(``) // []AccessRequestRecommendationActionItemDto | The recommended access items that were viewed for an identity. - var accessRequestRecommendationActionItemDto v2024.[]AccessRequestRecommendationActionItemDto + var accessRequestRecommendationActionItemDto []v2024.AccessRequestRecommendationActionItemDto if err := json.Unmarshal(accessrequestrecommendationactionitemdto, &accessRequestRecommendationActionItemDto); err != nil { fmt.Println("Error:", err) return @@ -10029,7 +10041,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() //resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() @@ -10052,7 +10064,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10070,7 +10082,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendations(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendations(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityId(identityId).Limit(limit).Offset(offset).Count(count).IncludeTranslationMessages(includeTranslationMessages).Filters(filters).Sorters(sorters).Execute() @@ -10093,7 +10105,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10104,7 +10116,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10127,7 +10139,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10143,7 +10155,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsIgnoredItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsIgnoredItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -10166,7 +10178,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10182,7 +10194,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsRequestedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsRequestedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -10205,7 +10217,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10221,7 +10233,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsViewedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsViewedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -10244,7 +10256,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10269,7 +10281,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.SetAccessRequestRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationConfigDto(accessRequestRecommendationConfigDto).Execute() //resp, r, err := apiClient.V2024.IAIAccessRequestRecommendationsAPI.SetAccessRequestRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationConfigDto(accessRequestRecommendationConfigDto).Execute() @@ -10292,7 +10304,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10320,7 +10332,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAICommonAccessAPI.CreateCommonAccess(context.Background()).XSailPointExperimental(xSailPointExperimental).CommonAccessItemRequest(commonAccessItemRequest).Execute() //resp, r, err := apiClient.V2024.IAICommonAccessAPI.CreateCommonAccess(context.Background()).XSailPointExperimental(xSailPointExperimental).CommonAccessItemRequest(commonAccessItemRequest).Execute() @@ -10343,7 +10355,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10359,7 +10371,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAICommonAccessAPI.GetCommonAccess(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IAICommonAccessAPI.GetCommonAccess(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -10382,7 +10394,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10392,7 +10404,7 @@ commonaccessidstatus := []byte(``) // []CommonAccessIDStatus | Confirm or deny in bulk the common access ids that are (or aren't) common access - var commonAccessIDStatus v2024.[]CommonAccessIDStatus + var commonAccessIDStatus []v2024.CommonAccessIDStatus if err := json.Unmarshal(commonaccessidstatus, &commonAccessIDStatus); err != nil { fmt.Println("Error:", err) return @@ -10400,7 +10412,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAICommonAccessAPI.UpdateCommonAccessStatusInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).CommonAccessIDStatus(commonAccessIDStatus).Execute() //resp, r, err := apiClient.V2024.IAICommonAccessAPI.UpdateCommonAccessStatusInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).CommonAccessIDStatus(commonAccessIDStatus).Execute() @@ -10423,7 +10435,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10435,7 +10447,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIOutliersAPI.ExportOutliersZip(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IAIOutliersAPI.ExportOutliersZip(context.Background()).XSailPointExperimental(xSailPointExperimental).Type_(type_).Execute() @@ -10458,7 +10470,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10474,7 +10486,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIOutliersAPI.GetIdentityOutlierSnapshots(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IAIOutliersAPI.GetIdentityOutlierSnapshots(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Type_(type_).Filters(filters).Sorters(sorters).Execute() @@ -10497,7 +10509,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10514,7 +10526,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIOutliersAPI.GetIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IAIOutliersAPI.GetIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Type_(type_).Filters(filters).Sorters(sorters).Execute() @@ -10537,7 +10549,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10549,7 +10561,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIOutliersAPI.GetLatestIdentityOutlierSnapshots(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IAIOutliersAPI.GetLatestIdentityOutlierSnapshots(context.Background()).XSailPointExperimental(xSailPointExperimental).Type_(type_).Execute() @@ -10572,7 +10584,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10584,7 +10596,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIOutliersAPI.GetOutlierContributingFeatureSummary(context.Background(), outlierFeatureId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IAIOutliersAPI.GetOutlierContributingFeatureSummary(context.Background(), outlierFeatureId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10607,7 +10619,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10624,7 +10636,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIOutliersAPI.GetPeerGroupOutliersContributingFeatures(context.Background(), outlierId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IAIOutliersAPI.GetPeerGroupOutliersContributingFeatures(context.Background(), outlierId).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).IncludeTranslationMessages(includeTranslationMessages).Sorters(sorters).Execute() @@ -10647,7 +10659,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10657,7 +10669,7 @@ requestbody := []byte(``) // []string | - var requestBody v2024.[]RequestBody + var requestBody []v2024.RequestBody if err := json.Unmarshal(requestbody, &requestBody); err != nil { fmt.Println("Error:", err) return @@ -10665,7 +10677,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.IAIOutliersAPI.IgnoreIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() //r, err := apiClient.V2024.IAIOutliersAPI.IgnoreIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() @@ -10686,7 +10698,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10704,7 +10716,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIOutliersAPI.ListOutliersContributingFeatureAccessItems(context.Background(), outlierId, contributingFeatureName).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IAIOutliersAPI.ListOutliersContributingFeatureAccessItems(context.Background(), outlierId, contributingFeatureName).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).AccessType(accessType).Sorters(sorters).Execute() @@ -10727,7 +10739,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10737,7 +10749,7 @@ requestbody := []byte(``) // []string | - var requestBody v2024.[]RequestBody + var requestBody []v2024.RequestBody if err := json.Unmarshal(requestbody, &requestBody); err != nil { fmt.Println("Error:", err) return @@ -10745,7 +10757,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.IAIOutliersAPI.UnIgnoreIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() //r, err := apiClient.V2024.IAIOutliersAPI.UnIgnoreIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() @@ -10766,7 +10778,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10781,7 +10793,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIPeerGroupStrategiesAPI.GetPeerGroupOutliers(context.Background(), strategy).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IAIPeerGroupStrategiesAPI.GetPeerGroupOutliers(context.Background(), strategy).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Execute() @@ -10804,7 +10816,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10840,7 +10852,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRecommendationsAPI.GetRecommendations(context.Background()).XSailPointExperimental(xSailPointExperimental).RecommendationRequestDto(recommendationRequestDto).Execute() //resp, r, err := apiClient.V2024.IAIRecommendationsAPI.GetRecommendations(context.Background()).XSailPointExperimental(xSailPointExperimental).RecommendationRequestDto(recommendationRequestDto).Execute() @@ -10863,7 +10875,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10874,7 +10886,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRecommendationsAPI.GetRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IAIRecommendationsAPI.GetRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10897,7 +10909,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10920,7 +10932,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRecommendationsAPI.UpdateRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).RecommendationConfigDto(recommendationConfigDto).Execute() //resp, r, err := apiClient.V2024.IAIRecommendationsAPI.UpdateRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).RecommendationConfigDto(recommendationConfigDto).Execute() @@ -10943,7 +10955,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10965,7 +10977,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.CreatePotentialRoleProvisionRequest(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.CreatePotentialRoleProvisionRequest(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).MinEntitlementPopularity(minEntitlementPopularity).IncludeCommonAccess(includeCommonAccess).RoleMiningPotentialRoleProvisionRequest(roleMiningPotentialRoleProvisionRequest).Execute() @@ -10988,7 +11000,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11037,7 +11049,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.CreateRoleMiningSessions(context.Background()).XSailPointExperimental(xSailPointExperimental).RoleMiningSessionDto(roleMiningSessionDto).Execute() //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.CreateRoleMiningSessions(context.Background()).XSailPointExperimental(xSailPointExperimental).RoleMiningSessionDto(roleMiningSessionDto).Execute() @@ -11060,7 +11072,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11074,7 +11086,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.DownloadRoleMiningPotentialRoleZip(context.Background(), sessionId, potentialRoleId, exportId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.DownloadRoleMiningPotentialRoleZip(context.Background(), sessionId, potentialRoleId, exportId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -11097,7 +11109,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11110,7 +11122,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.ExportRoleMiningPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.ExportRoleMiningPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -11133,7 +11145,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11150,7 +11162,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleAsync(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleAsync(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).RoleMiningPotentialRoleExportRequest(roleMiningPotentialRoleExportRequest).Execute() @@ -11173,7 +11185,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11187,7 +11199,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleStatus(context.Background(), sessionId, potentialRoleId, exportId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleStatus(context.Background(), sessionId, potentialRoleId, exportId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -11210,7 +11222,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11226,7 +11238,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetAllPotentialRoleSummaries(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetAllPotentialRoleSummaries(context.Background()).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() @@ -11249,7 +11261,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11263,7 +11275,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetEntitlementDistributionPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetEntitlementDistributionPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).IncludeCommonAccess(includeCommonAccess).Execute() @@ -11286,7 +11298,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11305,7 +11317,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).IncludeCommonAccess(includeCommonAccess).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() @@ -11328,7 +11340,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11346,7 +11358,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetExcludedEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetExcludedEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() @@ -11369,7 +11381,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11387,7 +11399,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetIdentitiesPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetIdentitiesPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() @@ -11410,7 +11422,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11423,7 +11435,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -11446,7 +11458,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11463,7 +11475,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetPotentialRoleApplications(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetPotentialRoleApplications(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() @@ -11486,7 +11498,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11503,7 +11515,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetPotentialRoleEntitlements(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetPotentialRoleEntitlements(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() @@ -11526,7 +11538,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11543,7 +11555,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetPotentialRoleSourceIdentityUsage(context.Background(), potentialRoleId, sourceId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetPotentialRoleSourceIdentityUsage(context.Background(), potentialRoleId, sourceId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Offset(offset).Limit(limit).Count(count).Execute() @@ -11566,7 +11578,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11583,7 +11595,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetPotentialRoleSummaries(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetPotentialRoleSummaries(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() @@ -11606,7 +11618,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11618,7 +11630,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetRoleMiningPotentialRole(context.Background(), potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetRoleMiningPotentialRole(context.Background(), potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -11641,7 +11653,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11653,7 +11665,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetRoleMiningSession(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetRoleMiningSession(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -11676,7 +11688,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11688,7 +11700,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetRoleMiningSessionStatus(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetRoleMiningSessionStatus(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -11711,7 +11723,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11727,7 +11739,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetRoleMiningSessions(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetRoleMiningSessions(context.Background()).XSailPointExperimental(xSailPointExperimental).Filters(filters).Sorters(sorters).Offset(offset).Limit(limit).Count(count).Execute() @@ -11750,7 +11762,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11765,7 +11777,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetSavedPotentialRoles(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.GetSavedPotentialRoles(context.Background()).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Offset(offset).Limit(limit).Count(count).Execute() @@ -11788,7 +11800,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11800,7 +11812,7 @@ patchpotentialrolerequestinner := []byte(`[{op=remove, path=/description}, {op=replace, path=/description, value=Acct I - Potential Role}, {op=remove, path=/saved}, {op=replace, path=/saved, value=false}, {op=remove, path=/name}, {op=replace, path=/name, value=Potential Role Accounting}]`) // []PatchPotentialRoleRequestInner | - var patchPotentialRoleRequestInner v2024.[]PatchPotentialRoleRequestInner + var patchPotentialRoleRequestInner []v2024.PatchPotentialRoleRequestInner if err := json.Unmarshal(patchpotentialrolerequestinner, &patchPotentialRoleRequestInner); err != nil { fmt.Println("Error:", err) return @@ -11808,7 +11820,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.PatchPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.PatchPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() @@ -11831,7 +11843,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11843,7 +11855,7 @@ patchpotentialrolerequestinner := []byte(`[{op=remove, path=/description}, {op=replace, path=/description, value=Acct I - Potential Role}, {op=remove, path=/saved}, {op=replace, path=/saved, value=false}, {op=remove, path=/name}, {op=replace, path=/name, value=Potential Role Accounting}]`) // []PatchPotentialRoleRequestInner | - var patchPotentialRoleRequestInner v2024.[]PatchPotentialRoleRequestInner + var patchPotentialRoleRequestInner []v2024.PatchPotentialRoleRequestInner if err := json.Unmarshal(patchpotentialrolerequestinner, &patchPotentialRoleRequestInner); err != nil { fmt.Println("Error:", err) return @@ -11851,7 +11863,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.PatchPotentialRole_0(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.PatchPotentialRole_0(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() @@ -11874,7 +11886,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11885,7 +11897,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/pruneThreshold, value=83}, {op=replace, path=/minNumIdentitiesInPotentialRole, value=10}, {op=replace, path=/saved, value=false}, {op=replace, path=/name, value=RM Session - 07/10/22}, {op=add, path=/name, value=RM Session - 07/10/22}]`) // []JsonPatchOperation | Replace pruneThreshold and/or minNumIdentitiesInPotentialRole in role mining session. Update saved status or saved name for a role mining session. - var jsonPatchOperation v2024.[]JsonPatchOperation + var jsonPatchOperation []v2024.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -11893,7 +11905,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.PatchRoleMiningSession(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.PatchRoleMiningSession(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() @@ -11916,7 +11928,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11939,7 +11951,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IAIRoleMiningAPI.UpdateEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).RoleMiningPotentialRoleEditEntitlements(roleMiningPotentialRoleEditEntitlements).Execute() //resp, r, err := apiClient.V2024.IAIRoleMiningAPI.UpdateEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).RoleMiningPotentialRoleEditEntitlements(roleMiningPotentialRoleEditEntitlements).Execute() @@ -11962,7 +11974,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11975,7 +11987,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.IconsAPI.DeleteIcon(context.Background(), objectType, objectId).XSailPointExperimental(xSailPointExperimental).Execute() //r, err := apiClient.V2024.IconsAPI.DeleteIcon(context.Background(), objectType, objectId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -11996,7 +12008,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12010,7 +12022,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IconsAPI.SetIcon(context.Background(), objectType, objectId).XSailPointExperimental(xSailPointExperimental).Image(image).Execute() //resp, r, err := apiClient.V2024.IconsAPI.SetIcon(context.Background(), objectType, objectId).XSailPointExperimental(xSailPointExperimental).Image(image).Execute() @@ -12033,7 +12045,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12045,7 +12057,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.IdentitiesAPI.DeleteIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //r, err := apiClient.V2024.IdentitiesAPI.DeleteIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -12066,7 +12078,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12078,7 +12090,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentitiesAPI.GetIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IdentitiesAPI.GetIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -12101,7 +12113,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12113,7 +12125,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentitiesAPI.GetIdentityOwnershipDetails(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IdentitiesAPI.GetIdentityOwnershipDetails(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -12136,7 +12148,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12149,7 +12161,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentitiesAPI.GetRoleAssignment(context.Background(), identityId, assignmentId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IdentitiesAPI.GetRoleAssignment(context.Background(), identityId, assignmentId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -12172,7 +12184,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12186,7 +12198,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentitiesAPI.GetRoleAssignments(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IdentitiesAPI.GetRoleAssignments(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).RoleId(roleId).RoleName(roleName).Execute() @@ -12209,7 +12221,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12226,7 +12238,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentitiesAPI.ListIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IdentitiesAPI.ListIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).Filters(filters).Sorters(sorters).DefaultFilter(defaultFilter).Count(count).Limit(limit).Offset(offset).Execute() @@ -12249,7 +12261,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12261,7 +12273,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.IdentitiesAPI.ResetIdentity(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() //r, err := apiClient.V2024.IdentitiesAPI.ResetIdentity(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -12282,7 +12294,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12304,7 +12316,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.IdentitiesAPI.SendIdentityVerificationAccountToken(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SendAccountVerificationRequest(sendAccountVerificationRequest).Execute() //r, err := apiClient.V2024.IdentitiesAPI.SendIdentityVerificationAccountToken(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SendAccountVerificationRequest(sendAccountVerificationRequest).Execute() @@ -12325,7 +12337,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12346,7 +12358,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentitiesAPI.StartIdentitiesInvite(context.Background()).XSailPointExperimental(xSailPointExperimental).InviteIdentitiesRequest(inviteIdentitiesRequest).Execute() //resp, r, err := apiClient.V2024.IdentitiesAPI.StartIdentitiesInvite(context.Background()).XSailPointExperimental(xSailPointExperimental).InviteIdentitiesRequest(inviteIdentitiesRequest).Execute() @@ -12369,7 +12381,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12389,7 +12401,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentitiesAPI.StartIdentityProcessing(context.Background()).XSailPointExperimental(xSailPointExperimental).ProcessIdentitiesRequest(processIdentitiesRequest).Execute() //resp, r, err := apiClient.V2024.IdentitiesAPI.StartIdentityProcessing(context.Background()).XSailPointExperimental(xSailPointExperimental).ProcessIdentitiesRequest(processIdentitiesRequest).Execute() @@ -12412,7 +12424,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12424,7 +12436,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentitiesAPI.SynchronizeAttributesForIdentity(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IdentitiesAPI.SynchronizeAttributesForIdentity(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -12447,7 +12459,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12486,7 +12498,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityAttributesAPI.CreateIdentityAttribute(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityAttribute(identityAttribute).Execute() //resp, r, err := apiClient.V2024.IdentityAttributesAPI.CreateIdentityAttribute(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityAttribute(identityAttribute).Execute() @@ -12509,7 +12521,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12521,7 +12533,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.IdentityAttributesAPI.DeleteIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() //r, err := apiClient.V2024.IdentityAttributesAPI.DeleteIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() @@ -12542,7 +12554,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12562,7 +12574,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.IdentityAttributesAPI.DeleteIdentityAttributesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityAttributeNames(identityAttributeNames).Execute() //r, err := apiClient.V2024.IdentityAttributesAPI.DeleteIdentityAttributesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityAttributeNames(identityAttributeNames).Execute() @@ -12583,7 +12595,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12595,7 +12607,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityAttributesAPI.GetIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IdentityAttributesAPI.GetIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() @@ -12618,7 +12630,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12633,7 +12645,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityAttributesAPI.ListIdentityAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IdentityAttributesAPI.ListIdentityAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).IncludeSystem(includeSystem).IncludeSilent(includeSilent).SearchableOnly(searchableOnly).Count(count).Execute() @@ -12656,7 +12668,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12696,7 +12708,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityAttributesAPI.PutIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).IdentityAttribute(identityAttribute).Execute() //resp, r, err := apiClient.V2024.IdentityAttributesAPI.PutIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).IdentityAttribute(identityAttribute).Execute() @@ -12719,7 +12731,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12737,7 +12749,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityHistoryAPI.CompareIdentitySnapshots(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IdentityHistoryAPI.CompareIdentitySnapshots(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Snapshot1(snapshot1).Snapshot2(snapshot2).AccessItemTypes(accessItemTypes).Limit(limit).Offset(offset).Count(count).Execute() @@ -12760,7 +12772,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12779,7 +12791,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityHistoryAPI.CompareIdentitySnapshotsAccessType(context.Background(), id, accessType).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IdentityHistoryAPI.CompareIdentitySnapshotsAccessType(context.Background(), id, accessType).XSailPointExperimental(xSailPointExperimental).AccessAssociated(accessAssociated).Snapshot1(snapshot1).Snapshot2(snapshot2).Limit(limit).Offset(offset).Count(count).Execute() @@ -12802,7 +12814,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12814,7 +12826,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityHistoryAPI.GetHistoricalIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IdentityHistoryAPI.GetHistoricalIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -12837,7 +12849,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12855,7 +12867,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityHistoryAPI.GetHistoricalIdentityEvents(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IdentityHistoryAPI.GetHistoricalIdentityEvents(context.Background(), id).XSailPointExperimental(xSailPointExperimental).From(from).EventTypes(eventTypes).AccessItemTypes(accessItemTypes).Limit(limit).Offset(offset).Count(count).Execute() @@ -12878,7 +12890,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12891,7 +12903,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityHistoryAPI.GetIdentitySnapshot(context.Background(), id, date).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IdentityHistoryAPI.GetIdentitySnapshot(context.Background(), id, date).XSailPointExperimental(xSailPointExperimental).Execute() @@ -12914,7 +12926,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12932,7 +12944,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityHistoryAPI.GetIdentitySnapshotSummary(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IdentityHistoryAPI.GetIdentitySnapshotSummary(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Before(before).Interval(interval).TimeZone(timeZone).Limit(limit).Offset(offset).Count(count).Execute() @@ -12955,7 +12967,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12967,7 +12979,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityHistoryAPI.GetIdentityStartDate(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IdentityHistoryAPI.GetIdentityStartDate(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -12990,7 +13002,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13006,7 +13018,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityHistoryAPI.ListHistoricalIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IdentityHistoryAPI.ListHistoricalIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).StartsWithQuery(startsWithQuery).IsDeleted(isDeleted).IsActive(isActive).Limit(limit).Offset(offset).Execute() @@ -13029,7 +13041,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13045,7 +13057,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityHistoryAPI.ListIdentityAccessItems(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IdentityHistoryAPI.ListIdentityAccessItems(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Type_(type_).Limit(limit).Count(count).Offset(offset).Execute() @@ -13068,7 +13080,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13082,7 +13094,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityHistoryAPI.ListIdentitySnapshotAccessItems(context.Background(), id, date).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IdentityHistoryAPI.ListIdentitySnapshotAccessItems(context.Background(), id, date).XSailPointExperimental(xSailPointExperimental).Type_(type_).Execute() @@ -13105,7 +13117,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13122,7 +13134,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityHistoryAPI.ListIdentitySnapshots(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.IdentityHistoryAPI.ListIdentitySnapshots(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Start(start).Interval(interval).Limit(limit).Offset(offset).Count(count).Execute() @@ -13145,7 +13157,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13210,7 +13222,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityProfilesAPI.CreateIdentityProfile(context.Background()).IdentityProfile(identityProfile).Execute() //resp, r, err := apiClient.V2024.IdentityProfilesAPI.CreateIdentityProfile(context.Background()).IdentityProfile(identityProfile).Execute() @@ -13233,7 +13245,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13244,7 +13256,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityProfilesAPI.DeleteIdentityProfile(context.Background(), identityProfileId).Execute() //resp, r, err := apiClient.V2024.IdentityProfilesAPI.DeleteIdentityProfile(context.Background(), identityProfileId).Execute() @@ -13267,7 +13279,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13276,7 +13288,7 @@ requestbody := []byte(``) // []string | Identity Profile bulk delete request body. - var requestBody v2024.[]RequestBody + var requestBody []v2024.RequestBody if err := json.Unmarshal(requestbody, &requestBody); err != nil { fmt.Println("Error:", err) return @@ -13284,7 +13296,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityProfilesAPI.DeleteIdentityProfiles(context.Background()).RequestBody(requestBody).Execute() //resp, r, err := apiClient.V2024.IdentityProfilesAPI.DeleteIdentityProfiles(context.Background()).RequestBody(requestBody).Execute() @@ -13307,7 +13319,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13322,7 +13334,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityProfilesAPI.ExportIdentityProfiles(context.Background()).Execute() //resp, r, err := apiClient.V2024.IdentityProfilesAPI.ExportIdentityProfiles(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -13345,7 +13357,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13389,7 +13401,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityProfilesAPI.GenerateIdentityPreview(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityPreviewRequest(identityPreviewRequest).Execute() //resp, r, err := apiClient.V2024.IdentityProfilesAPI.GenerateIdentityPreview(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityPreviewRequest(identityPreviewRequest).Execute() @@ -13412,7 +13424,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13423,7 +13435,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityProfilesAPI.GetDefaultIdentityAttributeConfig(context.Background(), identityProfileId).Execute() //resp, r, err := apiClient.V2024.IdentityProfilesAPI.GetDefaultIdentityAttributeConfig(context.Background(), identityProfileId).Execute() @@ -13446,7 +13458,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13457,7 +13469,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityProfilesAPI.GetIdentityProfile(context.Background(), identityProfileId).Execute() //resp, r, err := apiClient.V2024.IdentityProfilesAPI.GetIdentityProfile(context.Background(), identityProfileId).Execute() @@ -13480,7 +13492,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13489,7 +13501,7 @@ identityprofileexportedobject := []byte(``) // []IdentityProfileExportedObject | Previously exported Identity Profiles. - var identityProfileExportedObject v2024.[]IdentityProfileExportedObject + var identityProfileExportedObject []v2024.IdentityProfileExportedObject if err := json.Unmarshal(identityprofileexportedobject, &identityProfileExportedObject); err != nil { fmt.Println("Error:", err) return @@ -13497,7 +13509,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityProfilesAPI.ImportIdentityProfiles(context.Background()).IdentityProfileExportedObject(identityProfileExportedObject).Execute() //resp, r, err := apiClient.V2024.IdentityProfilesAPI.ImportIdentityProfiles(context.Background()).IdentityProfileExportedObject(identityProfileExportedObject).Execute() @@ -13520,7 +13532,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13535,7 +13547,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityProfilesAPI.ListIdentityProfiles(context.Background()).Execute() //resp, r, err := apiClient.V2024.IdentityProfilesAPI.ListIdentityProfiles(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -13558,7 +13570,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13569,7 +13581,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityProfilesAPI.SyncIdentityProfile(context.Background(), identityProfileId).Execute() //resp, r, err := apiClient.V2024.IdentityProfilesAPI.SyncIdentityProfile(context.Background(), identityProfileId).Execute() @@ -13592,7 +13604,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13602,7 +13614,7 @@ jsonpatchoperation := []byte(`[{op=add, path=/identityAttributeConfig/attributeTransforms/0, value={identityAttributeName=location, transformDefinition={type=accountAttribute, attributes={sourceName=Employees, attributeName=location, sourceId=2c91808878b7d63b0178c66ffcdc4ce4}}}}]`) // []JsonPatchOperation | List of identity profile update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - var jsonPatchOperation v2024.[]JsonPatchOperation + var jsonPatchOperation []v2024.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -13610,7 +13622,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.IdentityProfilesAPI.UpdateIdentityProfile(context.Background(), identityProfileId).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2024.IdentityProfilesAPI.UpdateIdentityProfile(context.Background(), identityProfileId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -13633,7 +13645,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13675,7 +13687,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.LifecycleStatesAPI.CreateLifecycleState(context.Background(), identityProfileId).LifecycleState(lifecycleState).Execute() //resp, r, err := apiClient.V2024.LifecycleStatesAPI.CreateLifecycleState(context.Background(), identityProfileId).LifecycleState(lifecycleState).Execute() @@ -13698,7 +13710,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13710,7 +13722,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.LifecycleStatesAPI.DeleteLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() //resp, r, err := apiClient.V2024.LifecycleStatesAPI.DeleteLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() @@ -13733,7 +13745,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13745,7 +13757,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.LifecycleStatesAPI.GetLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() //resp, r, err := apiClient.V2024.LifecycleStatesAPI.GetLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() @@ -13768,7 +13780,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13783,7 +13795,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.LifecycleStatesAPI.GetLifecycleStates(context.Background(), identityProfileId).Execute() //resp, r, err := apiClient.V2024.LifecycleStatesAPI.GetLifecycleStates(context.Background(), identityProfileId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() @@ -13806,7 +13818,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13824,7 +13836,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.LifecycleStatesAPI.SetLifecycleState(context.Background(), identityId).SetLifecycleStateRequest(setLifecycleStateRequest).Execute() //resp, r, err := apiClient.V2024.LifecycleStatesAPI.SetLifecycleState(context.Background(), identityId).SetLifecycleStateRequest(setLifecycleStateRequest).Execute() @@ -13847,7 +13859,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13858,7 +13870,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/description, value=Updated description!}, {op=replace, path=/accessProfileIds, value=[2c918087742bab150174407a80f3125e, 2c918087742bab150174407a80f3124f]}, {op=replace, path=/accountActions, value=[{action=ENABLE, sourceIds=[2c9180846a2f82fb016a481c1b1560c5, 2c9180846a2f82fb016a481c1b1560cc]}, {action=DISABLE, sourceIds=[2c91808869a0c9980169a207258513fb]}]}, {op=replace, path=/emailNotificationOption, value={notifyManagers=true, notifyAllAdmins=false, notifySpecificUsers=false, emailAddressList=[]}}]`) // []JsonPatchOperation | A list of lifecycle state update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields can be updated: * enabled * description * accountActions * accessProfileIds * emailNotificationOption - var jsonPatchOperation v2024.[]JsonPatchOperation + var jsonPatchOperation []v2024.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -13866,7 +13878,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.LifecycleStatesAPI.UpdateLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2024.LifecycleStatesAPI.UpdateLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -13889,7 +13901,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13901,7 +13913,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MachineAccountClassifyAPI.SendClassifyMachineAccount(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.MachineAccountClassifyAPI.SendClassifyMachineAccount(context.Background(), id).ClassificationMode(classificationMode).Execute() @@ -13924,7 +13936,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13962,7 +13974,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MachineAccountMappingsAPI.CreateMachineAccountMappings(context.Background(), id).AttributeMappings(attributeMappings).Execute() //resp, r, err := apiClient.V2024.MachineAccountMappingsAPI.CreateMachineAccountMappings(context.Background(), id).AttributeMappings(attributeMappings).Execute() @@ -13985,7 +13997,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13996,7 +14008,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.MachineAccountMappingsAPI.DeleteMachineAccountMappings(context.Background(), id).Execute() //r, err := apiClient.V2024.MachineAccountMappingsAPI.DeleteMachineAccountMappings(context.Background(), id).Execute() @@ -14017,7 +14029,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14030,7 +14042,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MachineAccountMappingsAPI.ListMachineAccountMappings(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.MachineAccountMappingsAPI.ListMachineAccountMappings(context.Background(), id).Limit(limit).Offset(offset).Execute() @@ -14053,7 +14065,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14091,7 +14103,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MachineAccountMappingsAPI.SetMachineAccountMappings(context.Background(), id).AttributeMappings(attributeMappings).Execute() //resp, r, err := apiClient.V2024.MachineAccountMappingsAPI.SetMachineAccountMappings(context.Background(), id).AttributeMappings(attributeMappings).Execute() @@ -14114,7 +14126,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14126,7 +14138,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MachineAccountsAPI.GetMachineAccount(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.MachineAccountsAPI.GetMachineAccount(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -14149,7 +14161,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14165,7 +14177,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MachineAccountsAPI.ListMachineAccounts(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.MachineAccountsAPI.ListMachineAccounts(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -14188,7 +14200,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14199,7 +14211,7 @@ requestbody := []byte(`[{op=add, path=/environment, value=test}]`) // []map[string]interface{} | A JSON of updated values [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * description * ownerIdentity * subType * accessType * environment * attributes * classificationMethod * manuallyEdited * nativeIdentity * uuid * source * manuallyCorrelated * enabled * locked * hasEntitlements * connectorAttributes - var requestBody v2024.[]RequestBody + var requestBody []v2024.RequestBody if err := json.Unmarshal(requestbody, &requestBody); err != nil { fmt.Println("Error:", err) return @@ -14207,7 +14219,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MachineAccountsAPI.UpdateMachineAccount(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() //resp, r, err := apiClient.V2024.MachineAccountsAPI.UpdateMachineAccount(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() @@ -14230,7 +14242,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14241,7 +14253,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.MachineClassificationConfigAPI.DeleteMachineClassificationConfig(context.Background(), id).Execute() //r, err := apiClient.V2024.MachineClassificationConfigAPI.DeleteMachineClassificationConfig(context.Background(), id).Execute() @@ -14262,7 +14274,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14273,7 +14285,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MachineClassificationConfigAPI.GetMachineClassificationConfig(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.MachineClassificationConfigAPI.GetMachineClassificationConfig(context.Background(), id).Execute() @@ -14296,7 +14308,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14320,7 +14332,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MachineClassificationConfigAPI.SetMachineClassificationConfig(context.Background(), id).MachineClassificationConfig(machineClassificationConfig).Execute() //resp, r, err := apiClient.V2024.MachineClassificationConfigAPI.SetMachineClassificationConfig(context.Background(), id).MachineClassificationConfig(machineClassificationConfig).Execute() @@ -14343,7 +14355,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14370,7 +14382,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MachineIdentitiesAPI.CreateMachineIdentity(context.Background()).XSailPointExperimental(xSailPointExperimental).MachineIdentity(machineIdentity).Execute() //resp, r, err := apiClient.V2024.MachineIdentitiesAPI.CreateMachineIdentity(context.Background()).XSailPointExperimental(xSailPointExperimental).MachineIdentity(machineIdentity).Execute() @@ -14393,7 +14405,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14405,7 +14417,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.MachineIdentitiesAPI.DeleteMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //r, err := apiClient.V2024.MachineIdentitiesAPI.DeleteMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -14426,7 +14438,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14438,7 +14450,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MachineIdentitiesAPI.GetMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.MachineIdentitiesAPI.GetMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -14461,7 +14473,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14477,7 +14489,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MachineIdentitiesAPI.ListMachineIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.MachineIdentitiesAPI.ListMachineIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).Filters(filters).Sorters(sorters).Count(count).Limit(limit).Offset(offset).Execute() @@ -14500,7 +14512,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14511,7 +14523,7 @@ requestbody := []byte(`[{op=add, path=/attributes/securityRisk, value=medium}]`) // []map[string]interface{} | A JSON of updated values [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - var requestBody v2024.[]RequestBody + var requestBody []v2024.RequestBody if err := json.Unmarshal(requestbody, &requestBody); err != nil { fmt.Println("Error:", err) return @@ -14519,7 +14531,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MachineIdentitiesAPI.UpdateMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() //resp, r, err := apiClient.V2024.MachineIdentitiesAPI.UpdateMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() @@ -14542,7 +14554,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14564,7 +14576,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ManagedClientsAPI.CreateManagedClient(context.Background()).ManagedClientRequest(managedClientRequest).Execute() //resp, r, err := apiClient.V2024.ManagedClientsAPI.CreateManagedClient(context.Background()).ManagedClientRequest(managedClientRequest).Execute() @@ -14587,7 +14599,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14598,7 +14610,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.ManagedClientsAPI.DeleteManagedClient(context.Background(), id).Execute() //r, err := apiClient.V2024.ManagedClientsAPI.DeleteManagedClient(context.Background(), id).Execute() @@ -14619,7 +14631,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14630,7 +14642,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ManagedClientsAPI.GetManagedClient(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.ManagedClientsAPI.GetManagedClient(context.Background(), id).Execute() @@ -14653,7 +14665,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14665,7 +14677,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ManagedClientsAPI.GetManagedClientStatus(context.Background(), id).Type_(type_).Execute() //resp, r, err := apiClient.V2024.ManagedClientsAPI.GetManagedClientStatus(context.Background(), id).Type_(type_).Execute() @@ -14688,7 +14700,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14702,7 +14714,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ManagedClientsAPI.GetManagedClients(context.Background()).Execute() //resp, r, err := apiClient.V2024.ManagedClientsAPI.GetManagedClients(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() @@ -14725,7 +14737,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14735,7 +14747,7 @@ jsonpatchoperation := []byte(``) // []JsonPatchOperation | JSONPatch payload used to update the object. - var jsonPatchOperation v2024.[]JsonPatchOperation + var jsonPatchOperation []v2024.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -14743,7 +14755,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ManagedClientsAPI.UpdateManagedClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2024.ManagedClientsAPI.UpdateManagedClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -14766,7 +14778,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14791,7 +14803,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ManagedClustersAPI.CreateManagedCluster(context.Background()).ManagedClusterRequest(managedClusterRequest).Execute() //resp, r, err := apiClient.V2024.ManagedClustersAPI.CreateManagedCluster(context.Background()).ManagedClusterRequest(managedClusterRequest).Execute() @@ -14814,7 +14826,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14826,7 +14838,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.ManagedClustersAPI.DeleteManagedCluster(context.Background(), id).Execute() //r, err := apiClient.V2024.ManagedClustersAPI.DeleteManagedCluster(context.Background(), id).RemoveClients(removeClients).Execute() @@ -14847,7 +14859,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14858,7 +14870,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ManagedClustersAPI.GetClientLogConfiguration(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.ManagedClustersAPI.GetClientLogConfiguration(context.Background(), id).Execute() @@ -14881,7 +14893,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14892,7 +14904,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ManagedClustersAPI.GetManagedCluster(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.ManagedClustersAPI.GetManagedCluster(context.Background(), id).Execute() @@ -14915,7 +14927,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14929,7 +14941,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ManagedClustersAPI.GetManagedClusters(context.Background()).Execute() //resp, r, err := apiClient.V2024.ManagedClustersAPI.GetManagedClusters(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() @@ -14952,7 +14964,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14970,7 +14982,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ManagedClustersAPI.PutClientLogConfiguration(context.Background(), id).PutClientLogConfigurationRequest(putClientLogConfigurationRequest).Execute() //resp, r, err := apiClient.V2024.ManagedClustersAPI.PutClientLogConfiguration(context.Background(), id).PutClientLogConfigurationRequest(putClientLogConfigurationRequest).Execute() @@ -14993,7 +15005,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15004,7 +15016,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ManagedClustersAPI.Update(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.ManagedClustersAPI.Update(context.Background(), id).Execute() @@ -15027,7 +15039,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15037,7 +15049,7 @@ jsonpatchoperation := []byte(``) // []JsonPatchOperation | JSONPatch payload used to update the object. - var jsonPatchOperation v2024.[]JsonPatchOperation + var jsonPatchOperation []v2024.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -15045,7 +15057,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ManagedClustersAPI.UpdateManagedCluster(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2024.ManagedClustersAPI.UpdateManagedCluster(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -15068,7 +15080,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15091,7 +15103,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ManagedClusterTypesAPI.CreateManagedClusterType(context.Background()).ManagedClusterType(managedClusterType).Execute() //resp, r, err := apiClient.V2024.ManagedClusterTypesAPI.CreateManagedClusterType(context.Background()).ManagedClusterType(managedClusterType).Execute() @@ -15114,7 +15126,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15125,7 +15137,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.ManagedClusterTypesAPI.DeleteManagedClusterType(context.Background(), id).Execute() //r, err := apiClient.V2024.ManagedClusterTypesAPI.DeleteManagedClusterType(context.Background(), id).Execute() @@ -15146,7 +15158,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15157,7 +15169,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ManagedClusterTypesAPI.GetManagedClusterType(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.ManagedClusterTypesAPI.GetManagedClusterType(context.Background(), id).Execute() @@ -15180,7 +15192,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15195,7 +15207,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ManagedClusterTypesAPI.GetManagedClusterTypes(context.Background()).Execute() //resp, r, err := apiClient.V2024.ManagedClusterTypesAPI.GetManagedClusterTypes(context.Background()).Type_(type_).Pod(pod).Org(org).Offset(offset).Limit(limit).Execute() @@ -15218,7 +15230,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15246,7 +15258,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ManagedClusterTypesAPI.UpdateManagedClusterType(context.Background(), id).JsonPatch(jsonPatch).Execute() //resp, r, err := apiClient.V2024.ManagedClusterTypesAPI.UpdateManagedClusterType(context.Background(), id).JsonPatch(jsonPatch).Execute() @@ -15269,7 +15281,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15279,7 +15291,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MFAConfigurationAPI.GetMFADuoConfig(context.Background()).Execute() //resp, r, err := apiClient.V2024.MFAConfigurationAPI.GetMFADuoConfig(context.Background()).Execute() @@ -15302,7 +15314,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15313,7 +15325,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MFAConfigurationAPI.GetMFAKbaConfig(context.Background()).Execute() //resp, r, err := apiClient.V2024.MFAConfigurationAPI.GetMFAKbaConfig(context.Background()).AllLanguages(allLanguages).Execute() @@ -15336,7 +15348,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15346,7 +15358,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MFAConfigurationAPI.GetMFAOktaConfig(context.Background()).Execute() //resp, r, err := apiClient.V2024.MFAConfigurationAPI.GetMFAOktaConfig(context.Background()).Execute() @@ -15369,7 +15381,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15396,7 +15408,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MFAConfigurationAPI.SetMFADuoConfig(context.Background()).MfaDuoConfig(mfaDuoConfig).Execute() //resp, r, err := apiClient.V2024.MFAConfigurationAPI.SetMFADuoConfig(context.Background()).MfaDuoConfig(mfaDuoConfig).Execute() @@ -15419,7 +15431,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15428,7 +15440,7 @@ kbaanswerrequestitem := []byte(`[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]`) // []KbaAnswerRequestItem | - var kbaAnswerRequestItem v2024.[]KbaAnswerRequestItem + var kbaAnswerRequestItem []v2024.KbaAnswerRequestItem if err := json.Unmarshal(kbaanswerrequestitem, &kbaAnswerRequestItem); err != nil { fmt.Println("Error:", err) return @@ -15436,7 +15448,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MFAConfigurationAPI.SetMFAKBAConfig(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() //resp, r, err := apiClient.V2024.MFAConfigurationAPI.SetMFAKBAConfig(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() @@ -15459,7 +15471,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15482,7 +15494,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MFAConfigurationAPI.SetMFAOktaConfig(context.Background()).MfaOktaConfig(mfaOktaConfig).Execute() //resp, r, err := apiClient.V2024.MFAConfigurationAPI.SetMFAOktaConfig(context.Background()).MfaOktaConfig(mfaOktaConfig).Execute() @@ -15505,7 +15517,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15516,7 +15528,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MFAConfigurationAPI.TestMFAConfig(context.Background(), method).Execute() //resp, r, err := apiClient.V2024.MFAConfigurationAPI.TestMFAConfig(context.Background(), method).Execute() @@ -15539,7 +15551,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15581,7 +15593,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.CreateMultiHostIntegration(context.Background()).MultiHostIntegrationsCreate(multiHostIntegrationsCreate).Execute() //resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.CreateMultiHostIntegration(context.Background()).MultiHostIntegrationsCreate(multiHostIntegrationsCreate).Execute() @@ -15604,7 +15616,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15614,7 +15626,7 @@ multihostintegrationscreatesources := []byte(``) // []MultiHostIntegrationsCreateSources | The specifics of the sources to create within Multi-Host Integration. - var multiHostIntegrationsCreateSources v2024.[]MultiHostIntegrationsCreateSources + var multiHostIntegrationsCreateSources []v2024.MultiHostIntegrationsCreateSources if err := json.Unmarshal(multihostintegrationscreatesources, &multiHostIntegrationsCreateSources); err != nil { fmt.Println("Error:", err) return @@ -15622,7 +15634,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.MultiHostIntegrationAPI.CreateSourcesWithinMultiHost(context.Background(), multihostId).MultiHostIntegrationsCreateSources(multiHostIntegrationsCreateSources).Execute() //r, err := apiClient.V2024.MultiHostIntegrationAPI.CreateSourcesWithinMultiHost(context.Background(), multihostId).MultiHostIntegrationsCreateSources(multiHostIntegrationsCreateSources).Execute() @@ -15643,7 +15655,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15654,7 +15666,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.MultiHostIntegrationAPI.DeleteMultiHost(context.Background(), multihostId).Execute() //r, err := apiClient.V2024.MultiHostIntegrationAPI.DeleteMultiHost(context.Background(), multihostId).Execute() @@ -15675,7 +15687,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15688,7 +15700,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetAcctAggregationGroups(context.Background(), multihostId).Execute() //resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetAcctAggregationGroups(context.Background(), multihostId).Offset(offset).Limit(limit).Execute() @@ -15711,7 +15723,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15724,7 +15736,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetEntitlementAggregationGroups(context.Background(), multiHostId).Execute() //resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetEntitlementAggregationGroups(context.Background(), multiHostId).Offset(offset).Limit(limit).Execute() @@ -15747,7 +15759,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15758,7 +15770,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetMultiHostIntegrations(context.Background(), multihostId).Execute() //resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetMultiHostIntegrations(context.Background(), multihostId).Execute() @@ -15781,7 +15793,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15797,7 +15809,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetMultiHostIntegrationsList(context.Background()).Execute() //resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetMultiHostIntegrationsList(context.Background()).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).ForSubadmin(forSubadmin).Execute() @@ -15820,7 +15832,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15831,7 +15843,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetMultiHostSourceCreationErrors(context.Background(), multiHostId).Execute() //resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetMultiHostSourceCreationErrors(context.Background(), multiHostId).Execute() @@ -15854,7 +15866,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15864,7 +15876,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetMultihostIntegrationTypes(context.Background()).Execute() //resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetMultihostIntegrationTypes(context.Background()).Execute() @@ -15887,7 +15899,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15903,7 +15915,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetSourcesWithinMultiHost(context.Background(), multihostId).Execute() //resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.GetSourcesWithinMultiHost(context.Background(), multihostId).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).Execute() @@ -15926,7 +15938,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15937,7 +15949,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.MultiHostIntegrationAPI.TestConnectionMultiHostSources(context.Background(), multihostId).Execute() //r, err := apiClient.V2024.MultiHostIntegrationAPI.TestConnectionMultiHostSources(context.Background(), multihostId).Execute() @@ -15958,7 +15970,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15970,7 +15982,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.TestSourceConnectionMultihost(context.Background(), multihostId, sourceId).Execute() //resp, r, err := apiClient.V2024.MultiHostIntegrationAPI.TestSourceConnectionMultihost(context.Background(), multihostId, sourceId).Execute() @@ -15993,7 +16005,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16003,7 +16015,7 @@ updatemultihostsourcesrequestinner := []byte(`[{op=add, path=/description, value=MDK Multi-Host Integration 222 description}]`) // []UpdateMultiHostSourcesRequestInner | This endpoint allows you to update a Multi-Host Integration. - var updateMultiHostSourcesRequestInner v2024.[]UpdateMultiHostSourcesRequestInner + var updateMultiHostSourcesRequestInner []v2024.UpdateMultiHostSourcesRequestInner if err := json.Unmarshal(updatemultihostsourcesrequestinner, &updateMultiHostSourcesRequestInner); err != nil { fmt.Println("Error:", err) return @@ -16011,7 +16023,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.MultiHostIntegrationAPI.UpdateMultiHostSources(context.Background(), multihostId).UpdateMultiHostSourcesRequestInner(updateMultiHostSourcesRequestInner).Execute() //r, err := apiClient.V2024.MultiHostIntegrationAPI.UpdateMultiHostSources(context.Background(), multihostId).UpdateMultiHostSourcesRequestInner(updateMultiHostSourcesRequestInner).Execute() @@ -16032,7 +16044,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16052,7 +16064,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest(context.Background(), id).NonEmployeeApprovalDecision(nonEmployeeApprovalDecision).Execute() //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest(context.Background(), id).NonEmployeeApprovalDecision(nonEmployeeApprovalDecision).Execute() @@ -16075,7 +16087,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" "time" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -16106,7 +16118,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() @@ -16129,7 +16141,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" "time" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -16160,7 +16172,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() @@ -16183,7 +16195,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16225,7 +16237,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource(context.Background()).NonEmployeeSourceRequestBody(nonEmployeeSourceRequestBody).Execute() //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource(context.Background()).NonEmployeeSourceRequestBody(nonEmployeeSourceRequestBody).Execute() @@ -16248,7 +16260,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16273,7 +16285,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).NonEmployeeSchemaAttributeBody(nonEmployeeSchemaAttributeBody).Execute() //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).NonEmployeeSchemaAttributeBody(nonEmployeeSchemaAttributeBody).Execute() @@ -16296,7 +16308,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16307,7 +16319,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord(context.Background(), id).Execute() //r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord(context.Background(), id).Execute() @@ -16328,7 +16340,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16345,7 +16357,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordsInBulk(context.Background()).DeleteNonEmployeeRecordsInBulkRequest(deleteNonEmployeeRecordsInBulkRequest).Execute() //r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordsInBulk(context.Background()).DeleteNonEmployeeRecordsInBulkRequest(deleteNonEmployeeRecordsInBulkRequest).Execute() @@ -16366,7 +16378,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16377,7 +16389,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest(context.Background(), id).Execute() //r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest(context.Background(), id).Execute() @@ -16398,7 +16410,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16410,7 +16422,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() //r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() @@ -16431,7 +16443,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16442,7 +16454,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource(context.Background(), sourceId).Execute() //r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource(context.Background(), sourceId).Execute() @@ -16463,7 +16475,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16474,7 +16486,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() //r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() @@ -16495,7 +16507,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16506,7 +16518,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords(context.Background(), id).Execute() //r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords(context.Background(), id).Execute() @@ -16527,7 +16539,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16538,7 +16550,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate(context.Background(), id).Execute() //r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate(context.Background(), id).Execute() @@ -16559,7 +16571,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16571,7 +16583,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval(context.Background(), id).IncludeDetail(includeDetail).Execute() @@ -16594,7 +16606,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16605,7 +16617,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary(context.Background(), requestedFor).Execute() //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary(context.Background(), requestedFor).Execute() @@ -16628,7 +16640,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16639,7 +16651,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus(context.Background(), id).Execute() @@ -16662,7 +16674,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16673,7 +16685,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord(context.Background(), id).Execute() @@ -16696,7 +16708,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16707,7 +16719,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest(context.Background(), id).Execute() @@ -16730,7 +16742,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16741,7 +16753,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary(context.Background(), requestedFor).Execute() //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary(context.Background(), requestedFor).Execute() @@ -16764,7 +16776,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16776,7 +16788,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() @@ -16799,7 +16811,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16810,7 +16822,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource(context.Background(), sourceId).Execute() //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource(context.Background(), sourceId).Execute() @@ -16833,7 +16845,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16844,7 +16856,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() @@ -16867,7 +16879,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16879,7 +16891,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk(context.Background(), id).Data(data).Execute() //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk(context.Background(), id).Data(data).Execute() @@ -16902,7 +16914,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16918,7 +16930,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals(context.Background()).Execute() //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals(context.Background()).RequestedFor(requestedFor).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -16941,7 +16953,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16956,7 +16968,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords(context.Background()).Execute() //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords(context.Background()).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() @@ -16979,7 +16991,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16995,7 +17007,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests(context.Background()).RequestedFor(requestedFor).Execute() //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests(context.Background()).RequestedFor(requestedFor).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() @@ -17018,7 +17030,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17034,7 +17046,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources(context.Background()).Execute() //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources(context.Background()).Limit(limit).Offset(offset).Count(count).RequestedFor(requestedFor).NonEmployeeCount(nonEmployeeCount).Sorters(sorters).Execute() @@ -17057,7 +17069,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17067,7 +17079,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/endDate, value=2019-08-23T18:40:35.772Z}]`) // []JsonPatchOperation | A list of non-employee update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Attributes are restricted by user type. Owner of source can update end date. Organization admins can update all available fields. - var jsonPatchOperation v2024.[]JsonPatchOperation + var jsonPatchOperation []v2024.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -17075,7 +17087,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -17098,7 +17110,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17109,7 +17121,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/label, value={new attribute label=null}}]`) // []JsonPatchOperation | A list of schema attribute update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following properties are allowed for update ':' 'label', 'helpText', 'placeholder', 'required'. - var jsonPatchOperation v2024.[]JsonPatchOperation + var jsonPatchOperation []v2024.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -17117,7 +17129,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -17140,7 +17152,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17150,7 +17162,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/name, value={new name=null}}, {op=replace, path=/approvers, value=[2c91809f703bb37a017040a2fe8748c7, 48b1f463c9e8427db5a5071bd81914b8]}]`) // []JsonPatchOperation | A list of non-employee source update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - var jsonPatchOperation v2024.[]JsonPatchOperation + var jsonPatchOperation []v2024.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -17158,7 +17170,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource(context.Background(), sourceId).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource(context.Background(), sourceId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -17181,7 +17193,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17201,7 +17213,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest(context.Background(), id).NonEmployeeRejectApprovalDecision(nonEmployeeRejectApprovalDecision).Execute() //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest(context.Background(), id).NonEmployeeRejectApprovalDecision(nonEmployeeRejectApprovalDecision).Execute() @@ -17224,7 +17236,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" "time" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -17256,7 +17268,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord(context.Background(), id).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() //resp, r, err := apiClient.V2024.NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord(context.Background(), id).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() @@ -17279,7 +17291,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17299,7 +17311,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NotificationsAPI.CreateDomainDkim(context.Background()).XSailPointExperimental(xSailPointExperimental).DomainAddress(domainAddress).Execute() //resp, r, err := apiClient.V2024.NotificationsAPI.CreateDomainDkim(context.Background()).XSailPointExperimental(xSailPointExperimental).DomainAddress(domainAddress).Execute() @@ -17322,7 +17334,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17357,7 +17369,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NotificationsAPI.CreateNotificationTemplate(context.Background()).XSailPointExperimental(xSailPointExperimental).TemplateDto(templateDto).Execute() //resp, r, err := apiClient.V2024.NotificationsAPI.CreateNotificationTemplate(context.Background()).XSailPointExperimental(xSailPointExperimental).TemplateDto(templateDto).Execute() @@ -17380,7 +17392,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17403,7 +17415,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NotificationsAPI.CreateVerifiedFromAddress(context.Background()).XSailPointExperimental(xSailPointExperimental).EmailStatusDto(emailStatusDto).Execute() //resp, r, err := apiClient.V2024.NotificationsAPI.CreateVerifiedFromAddress(context.Background()).XSailPointExperimental(xSailPointExperimental).EmailStatusDto(emailStatusDto).Execute() @@ -17426,7 +17438,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17436,7 +17448,7 @@ templatebulkdeletedto := []byte(``) // []TemplateBulkDeleteDto | - var templateBulkDeleteDto v2024.[]TemplateBulkDeleteDto + var templateBulkDeleteDto []v2024.TemplateBulkDeleteDto if err := json.Unmarshal(templatebulkdeletedto, &templateBulkDeleteDto); err != nil { fmt.Println("Error:", err) return @@ -17444,7 +17456,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.NotificationsAPI.DeleteNotificationTemplatesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).TemplateBulkDeleteDto(templateBulkDeleteDto).Execute() //r, err := apiClient.V2024.NotificationsAPI.DeleteNotificationTemplatesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).TemplateBulkDeleteDto(templateBulkDeleteDto).Execute() @@ -17465,7 +17477,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17477,7 +17489,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.NotificationsAPI.DeleteVerifiedFromAddress(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //r, err := apiClient.V2024.NotificationsAPI.DeleteVerifiedFromAddress(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -17498,7 +17510,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17509,7 +17521,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NotificationsAPI.GetDkimAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.NotificationsAPI.GetDkimAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -17532,7 +17544,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17544,7 +17556,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NotificationsAPI.GetMailFromAttributes(context.Background()).Id(id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.NotificationsAPI.GetMailFromAttributes(context.Background()).Id(id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -17567,7 +17579,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17579,7 +17591,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NotificationsAPI.GetNotificationTemplate(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.NotificationsAPI.GetNotificationTemplate(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -17602,7 +17614,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17613,7 +17625,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NotificationsAPI.GetNotificationsTemplateContext(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.NotificationsAPI.GetNotificationsTemplateContext(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -17636,7 +17648,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17652,7 +17664,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NotificationsAPI.ListFromAddresses(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.NotificationsAPI.ListFromAddresses(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -17675,7 +17687,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17686,7 +17698,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NotificationsAPI.ListNotificationPreferences(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.NotificationsAPI.ListNotificationPreferences(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -17709,7 +17721,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17723,7 +17735,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NotificationsAPI.ListNotificationTemplateDefaults(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.NotificationsAPI.ListNotificationTemplateDefaults(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Filters(filters).Execute() @@ -17746,7 +17758,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17760,7 +17772,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NotificationsAPI.ListNotificationTemplates(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.NotificationsAPI.ListNotificationTemplates(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Filters(filters).Execute() @@ -17783,7 +17795,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17804,7 +17816,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.NotificationsAPI.PutMailFromAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).MailFromAttributesDto(mailFromAttributesDto).Execute() //resp, r, err := apiClient.V2024.NotificationsAPI.PutMailFromAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).MailFromAttributesDto(mailFromAttributesDto).Execute() @@ -17827,7 +17839,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17849,7 +17861,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.NotificationsAPI.SendTestNotification(context.Background()).XSailPointExperimental(xSailPointExperimental).SendTestNotificationRequestDto(sendTestNotificationRequestDto).Execute() //r, err := apiClient.V2024.NotificationsAPI.SendTestNotification(context.Background()).XSailPointExperimental(xSailPointExperimental).SendTestNotificationRequestDto(sendTestNotificationRequestDto).Execute() @@ -17870,7 +17882,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17903,7 +17915,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.OAuthClientsAPI.CreateOauthClient(context.Background()).CreateOAuthClientRequest(createOAuthClientRequest).Execute() //resp, r, err := apiClient.V2024.OAuthClientsAPI.CreateOauthClient(context.Background()).CreateOAuthClientRequest(createOAuthClientRequest).Execute() @@ -17926,7 +17938,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17937,7 +17949,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.OAuthClientsAPI.DeleteOauthClient(context.Background(), id).Execute() //r, err := apiClient.V2024.OAuthClientsAPI.DeleteOauthClient(context.Background(), id).Execute() @@ -17958,7 +17970,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17969,7 +17981,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.OAuthClientsAPI.GetOauthClient(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.OAuthClientsAPI.GetOauthClient(context.Background(), id).Execute() @@ -17992,7 +18004,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18003,7 +18015,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.OAuthClientsAPI.ListOauthClients(context.Background()).Execute() //resp, r, err := apiClient.V2024.OAuthClientsAPI.ListOauthClients(context.Background()).Filters(filters).Execute() @@ -18026,7 +18038,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18036,7 +18048,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/strongAuthSupported, value=true}, {op=replace, path=/businessName, value=acme-solar}]`) // []JsonPatchOperation | A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * tenant * businessName * homepageUrl * name * description * accessTokenValiditySeconds * refreshTokenValiditySeconds * redirectUris * grantTypes * accessType * enabled * strongAuthSupported * claimsSupported - var jsonPatchOperation v2024.[]JsonPatchOperation + var jsonPatchOperation []v2024.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -18044,7 +18056,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.OAuthClientsAPI.PatchOauthClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2024.OAuthClientsAPI.PatchOauthClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -18067,7 +18079,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18078,7 +18090,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.OrgConfigAPI.GetOrgConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.OrgConfigAPI.GetOrgConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -18101,7 +18113,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18115,7 +18127,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.OrgConfigAPI.GetValidTimeZones(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.OrgConfigAPI.GetValidTimeZones(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Execute() @@ -18138,7 +18150,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18148,7 +18160,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/timeZone, value=America/Toronto}]`) // []JsonPatchOperation | A list of schema attribute update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - var jsonPatchOperation v2024.[]JsonPatchOperation + var jsonPatchOperation []v2024.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -18156,7 +18168,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.OrgConfigAPI.PatchOrgConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2024.OrgConfigAPI.PatchOrgConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() @@ -18179,7 +18191,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18201,7 +18213,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PasswordConfigurationAPI.CreatePasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() //resp, r, err := apiClient.V2024.PasswordConfigurationAPI.CreatePasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() @@ -18224,7 +18236,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18234,7 +18246,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PasswordConfigurationAPI.GetPasswordOrgConfig(context.Background()).Execute() //resp, r, err := apiClient.V2024.PasswordConfigurationAPI.GetPasswordOrgConfig(context.Background()).Execute() @@ -18257,7 +18269,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18279,7 +18291,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PasswordConfigurationAPI.PutPasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() //resp, r, err := apiClient.V2024.PasswordConfigurationAPI.PutPasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() @@ -18302,7 +18314,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18312,7 +18324,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PasswordDictionaryAPI.GetPasswordDictionary(context.Background()).Execute() //resp, r, err := apiClient.V2024.PasswordDictionaryAPI.GetPasswordDictionary(context.Background()).Execute() @@ -18335,7 +18347,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18346,7 +18358,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.PasswordDictionaryAPI.PutPasswordDictionary(context.Background()).Execute() //r, err := apiClient.V2024.PasswordDictionaryAPI.PutPasswordDictionary(context.Background()).File(file).Execute() @@ -18367,7 +18379,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18389,7 +18401,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PasswordManagementAPI.CreateDigitToken(context.Background()).XSailPointExperimental(xSailPointExperimental).PasswordDigitTokenReset(passwordDigitTokenReset).Execute() //resp, r, err := apiClient.V2024.PasswordManagementAPI.CreateDigitToken(context.Background()).XSailPointExperimental(xSailPointExperimental).PasswordDigitTokenReset(passwordDigitTokenReset).Execute() @@ -18412,7 +18424,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18423,7 +18435,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PasswordManagementAPI.GetPasswordChangeStatus(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.PasswordManagementAPI.GetPasswordChangeStatus(context.Background(), id).Execute() @@ -18446,7 +18458,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18466,7 +18478,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PasswordManagementAPI.QueryPasswordInfo(context.Background()).PasswordInfoQueryDTO(passwordInfoQueryDTO).Execute() //resp, r, err := apiClient.V2024.PasswordManagementAPI.QueryPasswordInfo(context.Background()).PasswordInfoQueryDTO(passwordInfoQueryDTO).Execute() @@ -18489,7 +18501,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18512,7 +18524,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PasswordManagementAPI.SetPassword(context.Background()).PasswordChangeRequest(passwordChangeRequest).Execute() //resp, r, err := apiClient.V2024.PasswordManagementAPI.SetPassword(context.Background()).PasswordChangeRequest(passwordChangeRequest).Execute() @@ -18535,7 +18547,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18584,7 +18596,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PasswordPoliciesAPI.CreatePasswordPolicy(context.Background()).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() //resp, r, err := apiClient.V2024.PasswordPoliciesAPI.CreatePasswordPolicy(context.Background()).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() @@ -18607,7 +18619,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18618,7 +18630,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.PasswordPoliciesAPI.DeletePasswordPolicy(context.Background(), id).Execute() //r, err := apiClient.V2024.PasswordPoliciesAPI.DeletePasswordPolicy(context.Background(), id).Execute() @@ -18639,7 +18651,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18650,7 +18662,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PasswordPoliciesAPI.GetPasswordPolicyById(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.PasswordPoliciesAPI.GetPasswordPolicyById(context.Background(), id).Execute() @@ -18673,7 +18685,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18686,7 +18698,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PasswordPoliciesAPI.ListPasswordPolicies(context.Background()).Execute() //resp, r, err := apiClient.V2024.PasswordPoliciesAPI.ListPasswordPolicies(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() @@ -18709,7 +18721,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18759,7 +18771,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PasswordPoliciesAPI.SetPasswordPolicy(context.Background(), id).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() //resp, r, err := apiClient.V2024.PasswordPoliciesAPI.SetPasswordPolicy(context.Background(), id).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() @@ -18782,7 +18794,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18806,7 +18818,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PasswordSyncGroupsAPI.CreatePasswordSyncGroup(context.Background()).PasswordSyncGroup(passwordSyncGroup).Execute() //resp, r, err := apiClient.V2024.PasswordSyncGroupsAPI.CreatePasswordSyncGroup(context.Background()).PasswordSyncGroup(passwordSyncGroup).Execute() @@ -18829,7 +18841,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18840,7 +18852,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.PasswordSyncGroupsAPI.DeletePasswordSyncGroup(context.Background(), id).Execute() //r, err := apiClient.V2024.PasswordSyncGroupsAPI.DeletePasswordSyncGroup(context.Background(), id).Execute() @@ -18861,7 +18873,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18872,7 +18884,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PasswordSyncGroupsAPI.GetPasswordSyncGroup(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.PasswordSyncGroupsAPI.GetPasswordSyncGroup(context.Background(), id).Execute() @@ -18895,7 +18907,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18908,7 +18920,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PasswordSyncGroupsAPI.GetPasswordSyncGroups(context.Background()).Execute() //resp, r, err := apiClient.V2024.PasswordSyncGroupsAPI.GetPasswordSyncGroups(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() @@ -18931,7 +18943,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18956,7 +18968,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PasswordSyncGroupsAPI.UpdatePasswordSyncGroup(context.Background(), id).PasswordSyncGroup(passwordSyncGroup).Execute() //resp, r, err := apiClient.V2024.PasswordSyncGroupsAPI.UpdatePasswordSyncGroup(context.Background(), id).PasswordSyncGroup(passwordSyncGroup).Execute() @@ -18979,7 +18991,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19000,7 +19012,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PersonalAccessTokensAPI.CreatePersonalAccessToken(context.Background()).CreatePersonalAccessTokenRequest(createPersonalAccessTokenRequest).Execute() //resp, r, err := apiClient.V2024.PersonalAccessTokensAPI.CreatePersonalAccessToken(context.Background()).CreatePersonalAccessTokenRequest(createPersonalAccessTokenRequest).Execute() @@ -19023,7 +19035,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19034,7 +19046,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.PersonalAccessTokensAPI.DeletePersonalAccessToken(context.Background(), id).Execute() //r, err := apiClient.V2024.PersonalAccessTokensAPI.DeletePersonalAccessToken(context.Background(), id).Execute() @@ -19055,7 +19067,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19067,7 +19079,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PersonalAccessTokensAPI.ListPersonalAccessTokens(context.Background()).Execute() //resp, r, err := apiClient.V2024.PersonalAccessTokensAPI.ListPersonalAccessTokens(context.Background()).OwnerId(ownerId).Filters(filters).Execute() @@ -19090,7 +19102,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19100,7 +19112,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/name, value=New name}, {op=replace, path=/scope, value=[sp:scopes:all]}]`) // []JsonPatchOperation | A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * scope - var jsonPatchOperation v2024.[]JsonPatchOperation + var jsonPatchOperation []v2024.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -19108,7 +19120,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PersonalAccessTokensAPI.PatchPersonalAccessToken(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2024.PersonalAccessTokensAPI.PatchPersonalAccessToken(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -19131,7 +19143,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19147,7 +19159,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PublicIdentitiesAPI.GetPublicIdentities(context.Background()).Execute() //resp, r, err := apiClient.V2024.PublicIdentitiesAPI.GetPublicIdentities(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).AddCoreFilters(addCoreFilters).Sorters(sorters).Execute() @@ -19170,7 +19182,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19180,7 +19192,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PublicIdentitiesConfigAPI.GetPublicIdentityConfig(context.Background()).Execute() //resp, r, err := apiClient.V2024.PublicIdentitiesConfigAPI.GetPublicIdentityConfig(context.Background()).Execute() @@ -19203,7 +19215,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19234,7 +19246,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig(context.Background()).PublicIdentityConfig(publicIdentityConfig).Execute() //resp, r, err := apiClient.V2024.PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig(context.Background()).PublicIdentityConfig(publicIdentityConfig).Execute() @@ -19257,7 +19269,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19268,7 +19280,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.ReportsDataExtractionAPI.CancelReport(context.Background(), id).Execute() //r, err := apiClient.V2024.ReportsDataExtractionAPI.CancelReport(context.Background(), id).Execute() @@ -19289,7 +19301,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19303,7 +19315,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ReportsDataExtractionAPI.GetReport(context.Background(), taskResultId).FileFormat(fileFormat).Execute() //resp, r, err := apiClient.V2024.ReportsDataExtractionAPI.GetReport(context.Background(), taskResultId).FileFormat(fileFormat).Name(name).Auditable(auditable).Execute() @@ -19326,7 +19338,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19338,7 +19350,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ReportsDataExtractionAPI.GetReportResult(context.Background(), taskResultId).Execute() //resp, r, err := apiClient.V2024.ReportsDataExtractionAPI.GetReportResult(context.Background(), taskResultId).Completed(completed).Execute() @@ -19361,7 +19373,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19384,7 +19396,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ReportsDataExtractionAPI.StartReport(context.Background()).ReportDetails(reportDetails).Execute() //resp, r, err := apiClient.V2024.ReportsDataExtractionAPI.StartReport(context.Background()).ReportDetails(reportDetails).Execute() @@ -19407,7 +19419,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19426,7 +19438,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RequestableObjectsAPI.ListRequestableObjects(context.Background()).Execute() //resp, r, err := apiClient.V2024.RequestableObjectsAPI.ListRequestableObjects(context.Background()).IdentityId(identityId).Types(types).Term(term).Statuses(statuses).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -19449,7 +19461,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19460,7 +19472,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RoleInsightsAPI.CreateRoleInsightRequests(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.RoleInsightsAPI.CreateRoleInsightRequests(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -19483,7 +19495,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19497,7 +19509,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RoleInsightsAPI.DownloadRoleInsightsEntitlementsChanges(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.RoleInsightsAPI.DownloadRoleInsightsEntitlementsChanges(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Execute() @@ -19520,7 +19532,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19539,7 +19551,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RoleInsightsAPI.GetEntitlementChangesIdentities(context.Background(), insightId, entitlementId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.RoleInsightsAPI.GetEntitlementChangesIdentities(context.Background(), insightId, entitlementId).XSailPointExperimental(xSailPointExperimental).HasEntitlement(hasEntitlement).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Filters(filters).Execute() @@ -19562,7 +19574,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19574,7 +19586,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsight(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsight(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -19597,7 +19609,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19613,7 +19625,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsights(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsights(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Filters(filters).Execute() @@ -19636,7 +19648,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19649,7 +19661,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsightsCurrentEntitlements(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsightsCurrentEntitlements(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Filters(filters).Execute() @@ -19672,7 +19684,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19686,7 +19698,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsightsEntitlementsChanges(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsightsEntitlementsChanges(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Execute() @@ -19709,7 +19721,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19721,7 +19733,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsightsRequests(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsightsRequests(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -19744,7 +19756,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19755,7 +19767,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsightsSummary(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.RoleInsightsAPI.GetRoleInsightsSummary(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -19778,7 +19790,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19953,7 +19965,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RolesAPI.CreateRole(context.Background()).Role(role).Execute() //resp, r, err := apiClient.V2024.RolesAPI.CreateRole(context.Background()).Role(role).Execute() @@ -19976,7 +19988,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19995,7 +20007,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RolesAPI.DeleteBulkRoles(context.Background()).RoleBulkDeleteRequest(roleBulkDeleteRequest).Execute() //resp, r, err := apiClient.V2024.RolesAPI.DeleteBulkRoles(context.Background()).RoleBulkDeleteRequest(roleBulkDeleteRequest).Execute() @@ -20018,7 +20030,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20031,7 +20043,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.RolesAPI.DeleteMetadataFromRoleByKeyAndValue(context.Background(), id, attributeKey, attributeValue).Execute() //r, err := apiClient.V2024.RolesAPI.DeleteMetadataFromRoleByKeyAndValue(context.Background(), id, attributeKey, attributeValue).Execute() @@ -20052,7 +20064,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20063,7 +20075,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.RolesAPI.DeleteRole(context.Background(), id).Execute() //r, err := apiClient.V2024.RolesAPI.DeleteRole(context.Background(), id).Execute() @@ -20084,7 +20096,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20094,7 +20106,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RolesAPI.GetBulkUpdateStatus(context.Background()).Execute() //resp, r, err := apiClient.V2024.RolesAPI.GetBulkUpdateStatus(context.Background()).Execute() @@ -20117,7 +20129,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20128,7 +20140,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RolesAPI.GetBulkUpdateStatusById(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.RolesAPI.GetBulkUpdateStatusById(context.Background(), id).Execute() @@ -20151,7 +20163,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20162,7 +20174,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RolesAPI.GetRole(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.RolesAPI.GetRole(context.Background(), id).Execute() @@ -20185,7 +20197,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20201,7 +20213,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RolesAPI.GetRoleAssignedIdentities(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.RolesAPI.GetRoleAssignedIdentities(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -20224,7 +20236,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20241,7 +20253,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RolesAPI.GetRoleEntitlements(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.RolesAPI.GetRoleEntitlements(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -20264,7 +20276,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20282,7 +20294,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RolesAPI.ListRoles(context.Background()).Execute() //resp, r, err := apiClient.V2024.RolesAPI.ListRoles(context.Background()).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).Execute() @@ -20305,7 +20317,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20315,7 +20327,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/requestable, value=true}, {op=replace, path=/enabled, value=true}]`) // []JsonPatchOperation | - var jsonPatchOperation v2024.[]JsonPatchOperation + var jsonPatchOperation []v2024.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -20323,7 +20335,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RolesAPI.PatchRole(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2024.RolesAPI.PatchRole(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -20346,7 +20358,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20370,7 +20382,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RolesAPI.SearchRolesByFilter(context.Background()).Execute() //resp, r, err := apiClient.V2024.RolesAPI.SearchRolesByFilter(context.Background()).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Sorters(sorters).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).RoleListFilterDTO(roleListFilterDTO).Execute() @@ -20393,7 +20405,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20406,7 +20418,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RolesAPI.UpdateAttributeKeyAndValueToRole(context.Background(), id, attributeKey, attributeValue).Execute() //resp, r, err := apiClient.V2024.RolesAPI.UpdateAttributeKeyAndValueToRole(context.Background(), id, attributeKey, attributeValue).Execute() @@ -20429,7 +20441,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20454,7 +20466,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RolesAPI.UpdateRolesMetadataByFilter(context.Background()).RoleMetadataBulkUpdateByFilterRequest(roleMetadataBulkUpdateByFilterRequest).Execute() //resp, r, err := apiClient.V2024.RolesAPI.UpdateRolesMetadataByFilter(context.Background()).RoleMetadataBulkUpdateByFilterRequest(roleMetadataBulkUpdateByFilterRequest).Execute() @@ -20477,7 +20489,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20502,7 +20514,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RolesAPI.UpdateRolesMetadataByIds(context.Background()).RoleMetadataBulkUpdateByIdRequest(roleMetadataBulkUpdateByIdRequest).Execute() //resp, r, err := apiClient.V2024.RolesAPI.UpdateRolesMetadataByIds(context.Background()).RoleMetadataBulkUpdateByIdRequest(roleMetadataBulkUpdateByIdRequest).Execute() @@ -20525,7 +20537,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20565,7 +20577,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.RolesAPI.UpdateRolesMetadataByQuery(context.Background()).RoleMetadataBulkUpdateByQueryRequest(roleMetadataBulkUpdateByQueryRequest).Execute() //resp, r, err := apiClient.V2024.RolesAPI.UpdateRolesMetadataByQuery(context.Background()).RoleMetadataBulkUpdateByQueryRequest(roleMetadataBulkUpdateByQueryRequest).Execute() @@ -20588,7 +20600,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20605,7 +20617,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SavedSearchAPI.CreateSavedSearch(context.Background()).CreateSavedSearchRequest(createSavedSearchRequest).Execute() //resp, r, err := apiClient.V2024.SavedSearchAPI.CreateSavedSearch(context.Background()).CreateSavedSearchRequest(createSavedSearchRequest).Execute() @@ -20628,7 +20640,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20639,7 +20651,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.SavedSearchAPI.DeleteSavedSearch(context.Background(), id).Execute() //r, err := apiClient.V2024.SavedSearchAPI.DeleteSavedSearch(context.Background(), id).Execute() @@ -20660,7 +20672,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20688,7 +20700,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.SavedSearchAPI.ExecuteSavedSearch(context.Background(), id).SearchArguments(searchArguments).Execute() //r, err := apiClient.V2024.SavedSearchAPI.ExecuteSavedSearch(context.Background(), id).SearchArguments(searchArguments).Execute() @@ -20709,7 +20721,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20720,7 +20732,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SavedSearchAPI.GetSavedSearch(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.SavedSearchAPI.GetSavedSearch(context.Background(), id).Execute() @@ -20743,7 +20755,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20757,7 +20769,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SavedSearchAPI.ListSavedSearches(context.Background()).Execute() //resp, r, err := apiClient.V2024.SavedSearchAPI.ListSavedSearches(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() @@ -20780,7 +20792,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20842,7 +20854,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SavedSearchAPI.PutSavedSearch(context.Background(), id).SavedSearch(savedSearch).Execute() //resp, r, err := apiClient.V2024.SavedSearchAPI.PutSavedSearch(context.Background(), id).SavedSearch(savedSearch).Execute() @@ -20865,7 +20877,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20882,7 +20894,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ScheduledSearchAPI.CreateScheduledSearch(context.Background()).CreateScheduledSearchRequest(createScheduledSearchRequest).Execute() //resp, r, err := apiClient.V2024.ScheduledSearchAPI.CreateScheduledSearch(context.Background()).CreateScheduledSearchRequest(createScheduledSearchRequest).Execute() @@ -20905,7 +20917,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20916,7 +20928,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.ScheduledSearchAPI.DeleteScheduledSearch(context.Background(), id).Execute() //r, err := apiClient.V2024.ScheduledSearchAPI.DeleteScheduledSearch(context.Background(), id).Execute() @@ -20937,7 +20949,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20948,7 +20960,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ScheduledSearchAPI.GetScheduledSearch(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.ScheduledSearchAPI.GetScheduledSearch(context.Background(), id).Execute() @@ -20971,7 +20983,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20985,7 +20997,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ScheduledSearchAPI.ListScheduledSearch(context.Background()).Execute() //resp, r, err := apiClient.V2024.ScheduledSearchAPI.ListScheduledSearch(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() @@ -21008,7 +21020,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21029,7 +21041,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.ScheduledSearchAPI.UnsubscribeScheduledSearch(context.Background(), id).TypedReference(typedReference).Execute() //r, err := apiClient.V2024.ScheduledSearchAPI.UnsubscribeScheduledSearch(context.Background(), id).TypedReference(typedReference).Execute() @@ -21050,7 +21062,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21158,7 +21170,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ScheduledSearchAPI.UpdateScheduledSearch(context.Background(), id).ScheduledSearch(scheduledSearch).Execute() //resp, r, err := apiClient.V2024.ScheduledSearchAPI.UpdateScheduledSearch(context.Background(), id).ScheduledSearch(scheduledSearch).Execute() @@ -21181,7 +21193,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21317,7 +21329,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SearchAPI.SearchAggregate(context.Background()).Search(search).Execute() //resp, r, err := apiClient.V2024.SearchAPI.SearchAggregate(context.Background()).Search(search).Offset(offset).Limit(limit).Count(count).Execute() @@ -21340,7 +21352,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21473,7 +21485,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.SearchAPI.SearchCount(context.Background()).Search(search).Execute() //r, err := apiClient.V2024.SearchAPI.SearchCount(context.Background()).Search(search).Execute() @@ -21494,7 +21506,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21506,7 +21518,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SearchAPI.SearchGet(context.Background(), index, id).Execute() //resp, r, err := apiClient.V2024.SearchAPI.SearchGet(context.Background(), index, id).Execute() @@ -21529,7 +21541,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21665,7 +21677,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SearchAPI.SearchPost(context.Background()).Search(search).Execute() //resp, r, err := apiClient.V2024.SearchAPI.SearchPost(context.Background()).Search(search).Offset(offset).Limit(limit).Count(count).Execute() @@ -21688,7 +21700,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21713,7 +21725,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SearchAttributeConfigurationAPI.CreateSearchAttributeConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).SearchAttributeConfig(searchAttributeConfig).Execute() //resp, r, err := apiClient.V2024.SearchAttributeConfigurationAPI.CreateSearchAttributeConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).SearchAttributeConfig(searchAttributeConfig).Execute() @@ -21736,7 +21748,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21748,7 +21760,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() //r, err := apiClient.V2024.SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() @@ -21769,7 +21781,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21782,7 +21794,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SearchAttributeConfigurationAPI.GetSearchAttributeConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.SearchAttributeConfigurationAPI.GetSearchAttributeConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Execute() @@ -21805,7 +21817,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21817,7 +21829,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() @@ -21840,7 +21852,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21851,7 +21863,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/name, value=newAttributeName}, {op=replace, path=/displayName, value=new attribute display name}, {op=add, path=/applicationAttributes, value={2c91808b79fd2422017a0b35d30f3968=employeeNumber}}]`) // []JsonPatchOperation | - var jsonPatchOperation v2024.[]JsonPatchOperation + var jsonPatchOperation []v2024.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -21859,7 +21871,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SearchAttributeConfigurationAPI.PatchSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2024.SearchAttributeConfigurationAPI.PatchSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() @@ -21882,7 +21894,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21922,7 +21934,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SegmentsAPI.CreateSegment(context.Background()).Segment(segment).Execute() //resp, r, err := apiClient.V2024.SegmentsAPI.CreateSegment(context.Background()).Segment(segment).Execute() @@ -21945,7 +21957,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21956,7 +21968,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.SegmentsAPI.DeleteSegment(context.Background(), id).Execute() //r, err := apiClient.V2024.SegmentsAPI.DeleteSegment(context.Background(), id).Execute() @@ -21977,7 +21989,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21988,7 +22000,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SegmentsAPI.GetSegment(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.SegmentsAPI.GetSegment(context.Background(), id).Execute() @@ -22011,7 +22023,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22024,7 +22036,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SegmentsAPI.ListSegments(context.Background()).Execute() //resp, r, err := apiClient.V2024.SegmentsAPI.ListSegments(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() @@ -22047,7 +22059,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22057,7 +22069,7 @@ requestbody := []byte(`[{op=replace, path=/visibilityCriteria, value={expression={operator=AND, children=[{operator=EQUALS, attribute=location, value={type=STRING, value=Philadelphia}}, {operator=EQUALS, attribute=department, value={type=STRING, value=HR}}]}}}]`) // []map[string]interface{} | A list of segment update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * owner * visibilityCriteria * active - var requestBody v2024.[]RequestBody + var requestBody []v2024.RequestBody if err := json.Unmarshal(requestbody, &requestBody); err != nil { fmt.Println("Error:", err) return @@ -22065,7 +22077,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SegmentsAPI.PatchSegment(context.Background(), id).RequestBody(requestBody).Execute() //resp, r, err := apiClient.V2024.SegmentsAPI.PatchSegment(context.Background(), id).RequestBody(requestBody).Execute() @@ -22088,7 +22100,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22138,7 +22150,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.CreateServiceDeskIntegration(context.Background()).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() //resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.CreateServiceDeskIntegration(context.Background()).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() @@ -22161,7 +22173,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22172,7 +22184,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration(context.Background(), id).Execute() //r, err := apiClient.V2024.ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration(context.Background(), id).Execute() @@ -22193,7 +22205,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22204,7 +22216,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.GetServiceDeskIntegration(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.GetServiceDeskIntegration(context.Background(), id).Execute() @@ -22227,7 +22239,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22238,7 +22250,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate(context.Background(), scriptName).Execute() //resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate(context.Background(), scriptName).Execute() @@ -22261,7 +22273,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22271,7 +22283,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes(context.Background()).Execute() //resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes(context.Background()).Execute() @@ -22294,7 +22306,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22309,7 +22321,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.GetServiceDeskIntegrations(context.Background()).Execute() //resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.GetServiceDeskIntegrations(context.Background()).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).Execute() @@ -22332,7 +22344,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22342,7 +22354,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.GetStatusCheckDetails(context.Background()).Execute() //resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.GetStatusCheckDetails(context.Background()).Execute() @@ -22365,7 +22377,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22375,7 +22387,7 @@ jsonpatchoperation := []byte(``) // []JsonPatchOperation | A list of SDIM update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Only `replace` operations are accepted by this endpoint. A 403 Forbidden Error indicates that a PATCH operation was attempted that is not allowed. - var jsonPatchOperation v2024.[]JsonPatchOperation + var jsonPatchOperation []v2024.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -22383,7 +22395,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.PatchServiceDeskIntegration(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.PatchServiceDeskIntegration(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -22406,7 +22418,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22457,7 +22469,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.PutServiceDeskIntegration(context.Background(), id).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() //resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.PutServiceDeskIntegration(context.Background(), id).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() @@ -22480,7 +22492,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22500,7 +22512,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.UpdateStatusCheckDetails(context.Background()).QueuedCheckConfigDetails(queuedCheckConfigDetails).Execute() //resp, r, err := apiClient.V2024.ServiceDeskIntegrationAPI.UpdateStatusCheckDetails(context.Background()).QueuedCheckConfigDetails(queuedCheckConfigDetails).Execute() @@ -22523,7 +22535,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22558,7 +22570,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SIMIntegrationsAPI.CreateSIMIntegration(context.Background()).XSailPointExperimental(xSailPointExperimental).SimIntegrationDetails(simIntegrationDetails).Execute() //resp, r, err := apiClient.V2024.SIMIntegrationsAPI.CreateSIMIntegration(context.Background()).XSailPointExperimental(xSailPointExperimental).SimIntegrationDetails(simIntegrationDetails).Execute() @@ -22581,7 +22593,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22593,7 +22605,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.SIMIntegrationsAPI.DeleteSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //r, err := apiClient.V2024.SIMIntegrationsAPI.DeleteSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -22614,7 +22626,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22626,7 +22638,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SIMIntegrationsAPI.GetSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.SIMIntegrationsAPI.GetSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -22649,7 +22661,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22660,7 +22672,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SIMIntegrationsAPI.GetSIMIntegrations(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.SIMIntegrationsAPI.GetSIMIntegrations(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -22683,7 +22695,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22712,7 +22724,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SIMIntegrationsAPI.PatchBeforeProvisioningRule(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatch(jsonPatch).Execute() //resp, r, err := apiClient.V2024.SIMIntegrationsAPI.PatchBeforeProvisioningRule(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatch(jsonPatch).Execute() @@ -22735,7 +22747,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22764,7 +22776,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SIMIntegrationsAPI.PatchSIMAttributes(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatch(jsonPatch).Execute() //resp, r, err := apiClient.V2024.SIMIntegrationsAPI.PatchSIMAttributes(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatch(jsonPatch).Execute() @@ -22787,7 +22799,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22823,7 +22835,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SIMIntegrationsAPI.PutSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SimIntegrationDetails(simIntegrationDetails).Execute() //resp, r, err := apiClient.V2024.SIMIntegrationsAPI.PutSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SimIntegrationDetails(simIntegrationDetails).Execute() @@ -22846,7 +22858,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22918,7 +22930,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SODPoliciesAPI.CreateSodPolicy(context.Background()).SodPolicy(sodPolicy).Execute() //resp, r, err := apiClient.V2024.SODPoliciesAPI.CreateSodPolicy(context.Background()).SodPolicy(sodPolicy).Execute() @@ -22941,7 +22953,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22953,7 +22965,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.SODPoliciesAPI.DeleteSodPolicy(context.Background(), id).Execute() //r, err := apiClient.V2024.SODPoliciesAPI.DeleteSodPolicy(context.Background(), id).Logical(logical).Execute() @@ -22974,7 +22986,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22985,7 +22997,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.SODPoliciesAPI.DeleteSodPolicySchedule(context.Background(), id).Execute() //r, err := apiClient.V2024.SODPoliciesAPI.DeleteSodPolicySchedule(context.Background(), id).Execute() @@ -23006,7 +23018,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23018,7 +23030,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SODPoliciesAPI.GetCustomViolationReport(context.Background(), reportResultId, fileName).Execute() //resp, r, err := apiClient.V2024.SODPoliciesAPI.GetCustomViolationReport(context.Background(), reportResultId, fileName).Execute() @@ -23041,7 +23053,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23052,7 +23064,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SODPoliciesAPI.GetDefaultViolationReport(context.Background(), reportResultId).Execute() //resp, r, err := apiClient.V2024.SODPoliciesAPI.GetDefaultViolationReport(context.Background(), reportResultId).Execute() @@ -23075,7 +23087,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23085,7 +23097,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SODPoliciesAPI.GetSodAllReportRunStatus(context.Background()).Execute() //resp, r, err := apiClient.V2024.SODPoliciesAPI.GetSodAllReportRunStatus(context.Background()).Execute() @@ -23108,7 +23120,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23119,7 +23131,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SODPoliciesAPI.GetSodPolicy(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.SODPoliciesAPI.GetSodPolicy(context.Background(), id).Execute() @@ -23142,7 +23154,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23153,7 +23165,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SODPoliciesAPI.GetSodPolicySchedule(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.SODPoliciesAPI.GetSodPolicySchedule(context.Background(), id).Execute() @@ -23176,7 +23188,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23187,7 +23199,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SODPoliciesAPI.GetSodViolationReportRunStatus(context.Background(), reportResultId).Execute() //resp, r, err := apiClient.V2024.SODPoliciesAPI.GetSodViolationReportRunStatus(context.Background(), reportResultId).Execute() @@ -23210,7 +23222,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23221,7 +23233,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SODPoliciesAPI.GetSodViolationReportStatus(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.SODPoliciesAPI.GetSodViolationReportStatus(context.Background(), id).Execute() @@ -23244,7 +23256,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23259,7 +23271,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SODPoliciesAPI.ListSodPolicies(context.Background()).Execute() //resp, r, err := apiClient.V2024.SODPoliciesAPI.ListSodPolicies(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -23282,7 +23294,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23292,7 +23304,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/description, value=Modified description}, {op=replace, path=/conflictingAccessCriteria/leftCriteria/name, value=money-in-modified}, {op=replace, path=/conflictingAccessCriteria/rightCriteria, value={name=money-out-modified, criteriaList=[{type=ENTITLEMENT, id=2c918087682f9a86016839c0509c1ab2}]}}]`) // []JsonPatchOperation | A list of SOD Policy update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * ownerRef * externalPolicyReference * compensatingControls * correctionAdvice * state * tags * violationOwnerAssignmentConfig * scheduled * conflictingAccessCriteria - var jsonPatchOperation v2024.[]JsonPatchOperation + var jsonPatchOperation []v2024.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -23300,7 +23312,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SODPoliciesAPI.PatchSodPolicy(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2024.SODPoliciesAPI.PatchSodPolicy(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -23323,7 +23335,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23426,7 +23438,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SODPoliciesAPI.PutPolicySchedule(context.Background(), id).SodPolicySchedule(sodPolicySchedule).Execute() //resp, r, err := apiClient.V2024.SODPoliciesAPI.PutPolicySchedule(context.Background(), id).SodPolicySchedule(sodPolicySchedule).Execute() @@ -23449,7 +23461,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23522,7 +23534,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SODPoliciesAPI.PutSodPolicy(context.Background(), id).SodPolicy(sodPolicy).Execute() //resp, r, err := apiClient.V2024.SODPoliciesAPI.PutSodPolicy(context.Background(), id).SodPolicy(sodPolicy).Execute() @@ -23545,7 +23557,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23556,7 +23568,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SODPoliciesAPI.StartEvaluateSodPolicy(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.SODPoliciesAPI.StartEvaluateSodPolicy(context.Background(), id).Execute() @@ -23579,7 +23591,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23592,7 +23604,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SODPoliciesAPI.StartSodAllPoliciesForOrg(context.Background()).Execute() //resp, r, err := apiClient.V2024.SODPoliciesAPI.StartSodAllPoliciesForOrg(context.Background()).MultiPolicyRequest(multiPolicyRequest).Execute() @@ -23615,7 +23627,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23626,7 +23638,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SODPoliciesAPI.StartSodPolicy(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.SODPoliciesAPI.StartSodPolicy(context.Background(), id).Execute() @@ -23649,7 +23661,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23677,7 +23689,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SODViolationsAPI.StartPredictSodViolations(context.Background()).IdentityWithNewAccess(identityWithNewAccess).Execute() //resp, r, err := apiClient.V2024.SODViolationsAPI.StartPredictSodViolations(context.Background()).IdentityWithNewAccess(identityWithNewAccess).Execute() @@ -23700,7 +23712,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23717,7 +23729,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SODViolationsAPI.StartViolationCheck(context.Background()).IdentityWithNewAccess1(identityWithNewAccess1).Execute() //resp, r, err := apiClient.V2024.SODViolationsAPI.StartViolationCheck(context.Background()).IdentityWithNewAccess1(identityWithNewAccess1).Execute() @@ -23740,7 +23752,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23797,7 +23809,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.CreateProvisioningPolicy(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.CreateProvisioningPolicy(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() @@ -23820,7 +23832,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23920,7 +23932,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.CreateSource(context.Background()).Source(source).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.CreateSource(context.Background()).Source(source).ProvisionAsCsv(provisionAsCsv).Execute() @@ -23943,7 +23955,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23961,7 +23973,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.CreateSourceSchedule(context.Background(), sourceId).Schedule1(schedule1).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.CreateSourceSchedule(context.Background(), sourceId).Schedule1(schedule1).Execute() @@ -23984,7 +23996,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24035,7 +24047,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.CreateSourceSchema(context.Background(), sourceId).Schema(schema).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.CreateSourceSchema(context.Background(), sourceId).Schema(schema).Execute() @@ -24058,7 +24070,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24070,7 +24082,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.DeleteAccountsAsync(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.DeleteAccountsAsync(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -24093,7 +24105,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24105,7 +24117,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.SourcesAPI.DeleteNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //r, err := apiClient.V2024.SourcesAPI.DeleteNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -24126,7 +24138,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24138,7 +24150,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.SourcesAPI.DeleteProvisioningPolicy(context.Background(), sourceId, usageType).Execute() //r, err := apiClient.V2024.SourcesAPI.DeleteProvisioningPolicy(context.Background(), sourceId, usageType).Execute() @@ -24159,7 +24171,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24170,7 +24182,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.DeleteSource(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.DeleteSource(context.Background(), id).Execute() @@ -24193,7 +24205,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24205,7 +24217,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.SourcesAPI.DeleteSourceSchedule(context.Background(), sourceId, scheduleType).Execute() //r, err := apiClient.V2024.SourcesAPI.DeleteSourceSchedule(context.Background(), sourceId, scheduleType).Execute() @@ -24226,7 +24238,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24238,7 +24250,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.SourcesAPI.DeleteSourceSchema(context.Background(), sourceId, schemaId).Execute() //r, err := apiClient.V2024.SourcesAPI.DeleteSourceSchema(context.Background(), sourceId, schemaId).Execute() @@ -24259,7 +24271,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24270,7 +24282,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.SourcesAPI.GetAccountsSchema(context.Background(), id).Execute() //r, err := apiClient.V2024.SourcesAPI.GetAccountsSchema(context.Background(), id).Execute() @@ -24291,7 +24303,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24302,7 +24314,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.GetCorrelationConfig(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.GetCorrelationConfig(context.Background(), id).Execute() @@ -24325,7 +24337,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24337,7 +24349,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.SourcesAPI.GetEntitlementsSchema(context.Background(), id).Execute() //r, err := apiClient.V2024.SourcesAPI.GetEntitlementsSchema(context.Background(), id).SchemaName(schemaName).Execute() @@ -24358,7 +24370,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24370,7 +24382,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.GetNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.GetNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -24393,7 +24405,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24405,7 +24417,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.GetProvisioningPolicy(context.Background(), sourceId, usageType).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.GetProvisioningPolicy(context.Background(), sourceId, usageType).Execute() @@ -24428,7 +24440,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24439,7 +24451,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.GetSource(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.GetSource(context.Background(), id).Execute() @@ -24462,7 +24474,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24474,7 +24486,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.GetSourceAttrSyncConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.GetSourceAttrSyncConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -24497,7 +24509,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24509,7 +24521,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.GetSourceConfig(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.GetSourceConfig(context.Background(), id).Locale(locale).Execute() @@ -24532,7 +24544,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24543,7 +24555,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.GetSourceConnections(context.Background(), sourceId).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.GetSourceConnections(context.Background(), sourceId).Execute() @@ -24566,7 +24578,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24577,7 +24589,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.GetSourceEntitlementRequestConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.GetSourceEntitlementRequestConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -24600,7 +24612,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24611,7 +24623,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.GetSourceHealth(context.Background(), sourceId).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.GetSourceHealth(context.Background(), sourceId).Execute() @@ -24634,7 +24646,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24646,7 +24658,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.GetSourceSchedule(context.Background(), sourceId, scheduleType).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.GetSourceSchedule(context.Background(), sourceId, scheduleType).Execute() @@ -24669,7 +24681,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24680,7 +24692,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.GetSourceSchedules(context.Background(), sourceId).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.GetSourceSchedules(context.Background(), sourceId).Execute() @@ -24703,7 +24715,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24715,7 +24727,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.GetSourceSchema(context.Background(), sourceId, schemaId).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.GetSourceSchema(context.Background(), sourceId, schemaId).Execute() @@ -24738,7 +24750,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24751,7 +24763,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.GetSourceSchemas(context.Background(), sourceId).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.GetSourceSchemas(context.Background(), sourceId).IncludeTypes(includeTypes).IncludeNames(includeNames).Execute() @@ -24774,7 +24786,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24788,7 +24800,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.ImportAccounts(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.ImportAccounts(context.Background(), id).XSailPointExperimental(xSailPointExperimental).File(file).DisableOptimization(disableOptimization).Execute() @@ -24811,7 +24823,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24823,7 +24835,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.ImportAccountsSchema(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.ImportAccountsSchema(context.Background(), id).File(file).Execute() @@ -24846,7 +24858,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24858,7 +24870,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.ImportConnectorFile(context.Background(), sourceId).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.ImportConnectorFile(context.Background(), sourceId).File(file).Execute() @@ -24881,7 +24893,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24894,7 +24906,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.ImportEntitlementsSchema(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.ImportEntitlementsSchema(context.Background(), id).SchemaName(schemaName).File(file).Execute() @@ -24917,7 +24929,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24930,7 +24942,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.ImportUncorrelatedAccounts(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.ImportUncorrelatedAccounts(context.Background(), id).XSailPointExperimental(xSailPointExperimental).File(file).Execute() @@ -24953,7 +24965,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24964,7 +24976,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.ListProvisioningPolicies(context.Background(), sourceId).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.ListProvisioningPolicies(context.Background(), sourceId).Execute() @@ -24987,7 +24999,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25004,7 +25016,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.ListSources(context.Background()).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.ListSources(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSubadmin(forSubadmin).IncludeIDNSource(includeIDNSource).Execute() @@ -25027,7 +25039,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25038,7 +25050,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.PingCluster(context.Background(), sourceId).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.PingCluster(context.Background(), sourceId).Execute() @@ -25061,7 +25073,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25099,7 +25111,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.PutCorrelationConfig(context.Background(), id).CorrelationConfig(correlationConfig).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.PutCorrelationConfig(context.Background(), id).CorrelationConfig(correlationConfig).Execute() @@ -25122,7 +25134,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25148,7 +25160,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.PutNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).NativeChangeDetectionConfig(nativeChangeDetectionConfig).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.PutNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).NativeChangeDetectionConfig(nativeChangeDetectionConfig).Execute() @@ -25171,7 +25183,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25229,7 +25241,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.PutProvisioningPolicy(context.Background(), sourceId, usageType).ProvisioningPolicyDto(provisioningPolicyDto).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.PutProvisioningPolicy(context.Background(), sourceId, usageType).ProvisioningPolicyDto(provisioningPolicyDto).Execute() @@ -25252,7 +25264,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25352,7 +25364,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.PutSource(context.Background(), id).Source(source).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.PutSource(context.Background(), id).Source(source).Execute() @@ -25375,7 +25387,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25411,7 +25423,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.PutSourceAttrSyncConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).AttrSyncSourceConfig(attrSyncSourceConfig).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.PutSourceAttrSyncConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).AttrSyncSourceConfig(attrSyncSourceConfig).Execute() @@ -25434,7 +25446,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25486,7 +25498,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.PutSourceSchema(context.Background(), sourceId, schemaId).Schema(schema).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.PutSourceSchema(context.Background(), sourceId, schemaId).Schema(schema).Execute() @@ -25509,7 +25521,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25530,7 +25542,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.SearchResourceObjects(context.Background(), sourceId).ResourceObjectsRequest(resourceObjectsRequest).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.SearchResourceObjects(context.Background(), sourceId).ResourceObjectsRequest(resourceObjectsRequest).Execute() @@ -25553,7 +25565,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25565,7 +25577,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.SyncAttributesForSource(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.SyncAttributesForSource(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -25588,7 +25600,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25599,7 +25611,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.TestSourceConfiguration(context.Background(), sourceId).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.TestSourceConfiguration(context.Background(), sourceId).Execute() @@ -25622,7 +25634,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25633,7 +25645,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.TestSourceConnection(context.Background(), sourceId).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.TestSourceConnection(context.Background(), sourceId).Execute() @@ -25656,7 +25668,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25666,7 +25678,7 @@ passwordpolicyholdersdtoinner := []byte(``) // []PasswordPolicyHoldersDtoInner | - var passwordPolicyHoldersDtoInner v2024.[]PasswordPolicyHoldersDtoInner + var passwordPolicyHoldersDtoInner []v2024.PasswordPolicyHoldersDtoInner if err := json.Unmarshal(passwordpolicyholdersdtoinner, &passwordPolicyHoldersDtoInner); err != nil { fmt.Println("Error:", err) return @@ -25674,7 +25686,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.UpdatePasswordPolicyHolders(context.Background(), sourceId).PasswordPolicyHoldersDtoInner(passwordPolicyHoldersDtoInner).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.UpdatePasswordPolicyHolders(context.Background(), sourceId).PasswordPolicyHoldersDtoInner(passwordPolicyHoldersDtoInner).Execute() @@ -25697,7 +25709,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25707,7 +25719,7 @@ provisioningpolicydto := []byte(``) // []ProvisioningPolicyDto | - var provisioningPolicyDto v2024.[]ProvisioningPolicyDto + var provisioningPolicyDto []v2024.ProvisioningPolicyDto if err := json.Unmarshal(provisioningpolicydto, &provisioningPolicyDto); err != nil { fmt.Println("Error:", err) return @@ -25715,7 +25727,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.UpdateProvisioningPoliciesInBulk(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.UpdateProvisioningPoliciesInBulk(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() @@ -25738,7 +25750,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25749,7 +25761,7 @@ jsonpatchoperation := []byte(`[{op=add, path=/fields/0, value={name=email, transform={type=identityAttribute, attributes={name=email}}, attributes={}, isRequired=false, type=string, isMultiValued=false}}]`) // []JsonPatchOperation | The JSONPatch payload used to update the schema. - var jsonPatchOperation v2024.[]JsonPatchOperation + var jsonPatchOperation []v2024.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -25757,7 +25769,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.UpdateProvisioningPolicy(context.Background(), sourceId, usageType).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.UpdateProvisioningPolicy(context.Background(), sourceId, usageType).JsonPatchOperation(jsonPatchOperation).Execute() @@ -25780,7 +25792,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25790,7 +25802,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/description, value=new description}]`) // []JsonPatchOperation | A list of account update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Any password changes are submitted as plain-text and encrypted upon receipt in Identity Security Cloud (ISC). - var jsonPatchOperation v2024.[]JsonPatchOperation + var jsonPatchOperation []v2024.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -25798,7 +25810,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.UpdateSource(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.UpdateSource(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -25821,7 +25833,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25838,7 +25850,17 @@ "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", "approverType" : "GOVERNANCE_GROUP" } ], + "reauthorizationRequired" : false, "requestCommentRequired" : true + }, + "revocationRequestConfig" : { + "approvalSchemes" : [ { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + }, { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + } ] } }`) // SourceEntitlementRequestConfig | @@ -25851,7 +25873,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.UpdateSourceEntitlementRequestConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).SourceEntitlementRequestConfig(sourceEntitlementRequestConfig).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.UpdateSourceEntitlementRequestConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).SourceEntitlementRequestConfig(sourceEntitlementRequestConfig).Execute() @@ -25874,7 +25896,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25885,7 +25907,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/cronExpression, value=0 0 6 * * ?}]`) // []JsonPatchOperation | The JSONPatch payload used to update the schedule. - var jsonPatchOperation v2024.[]JsonPatchOperation + var jsonPatchOperation []v2024.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -25893,7 +25915,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.UpdateSourceSchedule(context.Background(), sourceId, scheduleType).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.UpdateSourceSchedule(context.Background(), sourceId, scheduleType).JsonPatchOperation(jsonPatchOperation).Execute() @@ -25916,7 +25938,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25927,7 +25949,7 @@ jsonpatchoperation := []byte(`[{op=add, path=/attributes/-, value={name=location, type=STRING, schema=null, description=Employee location, isMulti=false, isEntitlement=false, isGroup=false}}]`) // []JsonPatchOperation | The JSONPatch payload used to update the schema. - var jsonPatchOperation v2024.[]JsonPatchOperation + var jsonPatchOperation []v2024.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -25935,7 +25957,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourcesAPI.UpdateSourceSchema(context.Background(), sourceId, schemaId).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2024.SourcesAPI.UpdateSourceSchema(context.Background(), sourceId, schemaId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -25958,7 +25980,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25969,7 +25991,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourceUsagesAPI.GetStatusBySourceId(context.Background(), sourceId).Execute() //resp, r, err := apiClient.V2024.SourceUsagesAPI.GetStatusBySourceId(context.Background(), sourceId).Execute() @@ -25992,7 +26014,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26007,7 +26029,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SourceUsagesAPI.GetUsagesBySourceId(context.Background(), sourceId).Execute() //resp, r, err := apiClient.V2024.SourceUsagesAPI.GetUsagesBySourceId(context.Background(), sourceId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() @@ -26030,7 +26052,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26049,7 +26071,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SPConfigAPI.ExportSpConfig(context.Background()).ExportPayload(exportPayload).Execute() //resp, r, err := apiClient.V2024.SPConfigAPI.ExportSpConfig(context.Background()).ExportPayload(exportPayload).Execute() @@ -26072,7 +26094,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26083,7 +26105,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SPConfigAPI.GetSpConfigExport(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.SPConfigAPI.GetSpConfigExport(context.Background(), id).Execute() @@ -26106,7 +26128,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26117,7 +26139,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SPConfigAPI.GetSpConfigExportStatus(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.SPConfigAPI.GetSpConfigExportStatus(context.Background(), id).Execute() @@ -26140,7 +26162,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26151,7 +26173,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SPConfigAPI.GetSpConfigImport(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.SPConfigAPI.GetSpConfigImport(context.Background(), id).Execute() @@ -26174,7 +26196,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26185,7 +26207,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SPConfigAPI.GetSpConfigImportStatus(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.SPConfigAPI.GetSpConfigImportStatus(context.Background(), id).Execute() @@ -26208,7 +26230,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26221,7 +26243,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SPConfigAPI.ImportSpConfig(context.Background()).Data(data).Execute() //resp, r, err := apiClient.V2024.SPConfigAPI.ImportSpConfig(context.Background()).Data(data).Preview(preview).Options(options).Execute() @@ -26244,7 +26266,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26254,7 +26276,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SPConfigAPI.ListSpConfigObjects(context.Background()).Execute() //resp, r, err := apiClient.V2024.SPConfigAPI.ListSpConfigObjects(context.Background()).Execute() @@ -26277,7 +26299,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26288,7 +26310,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.GetSedBatchStats(context.Background(), batchId).Execute() //resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.GetSedBatchStats(context.Background(), batchId).Execute() @@ -26311,7 +26333,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26321,7 +26343,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.GetSedBatches(context.Background()).Execute() //resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.GetSedBatches(context.Background()).Execute() @@ -26344,7 +26366,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26362,7 +26384,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.ListSeds(context.Background()).Execute() //resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.ListSeds(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).CountOnly(countOnly).RequestedByAnyone(requestedByAnyone).ShowPendingStatusOnly(showPendingStatusOnly).Execute() @@ -26385,7 +26407,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26395,7 +26417,7 @@ sedpatch := []byte(``) // []SedPatch | Sed Patch Request - var sedPatch v2024.[]SedPatch + var sedPatch []v2024.SedPatch if err := json.Unmarshal(sedpatch, &sedPatch); err != nil { fmt.Println("Error:", err) return @@ -26403,7 +26425,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.PatchSed(context.Background(), id).SedPatch(sedPatch).Execute() //resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.PatchSed(context.Background(), id).SedPatch(sedPatch).Execute() @@ -26426,7 +26448,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26435,7 +26457,7 @@ sedapproval := []byte(``) // []SedApproval | Sed Approval - var sedApproval v2024.[]SedApproval + var sedApproval []v2024.SedApproval if err := json.Unmarshal(sedapproval, &sedApproval); err != nil { fmt.Println("Error:", err) return @@ -26443,7 +26465,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.SubmitSedApproval(context.Background()).SedApproval(sedApproval).Execute() //resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.SubmitSedApproval(context.Background()).SedApproval(sedApproval).Execute() @@ -26466,7 +26488,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26489,7 +26511,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.SubmitSedAssignment(context.Background()).SedAssignment(sedAssignment).Execute() //resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.SubmitSedAssignment(context.Background()).SedAssignment(sedAssignment).Execute() @@ -26512,7 +26534,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26526,7 +26548,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.SubmitSedBatchRequest(context.Background()).Execute() //resp, r, err := apiClient.V2024.SuggestedEntitlementDescriptionAPI.SubmitSedBatchRequest(context.Background()).SedBatchRequest(sedBatchRequest).Execute() @@ -26549,7 +26571,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26561,7 +26583,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.TaggedObjectsAPI.DeleteTaggedObject(context.Background(), type_, id).Execute() //r, err := apiClient.V2024.TaggedObjectsAPI.DeleteTaggedObject(context.Background(), type_, id).Execute() @@ -26582,7 +26604,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26610,7 +26632,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.TaggedObjectsAPI.DeleteTagsToManyObject(context.Background()).BulkRemoveTaggedObject(bulkRemoveTaggedObject).Execute() //r, err := apiClient.V2024.TaggedObjectsAPI.DeleteTagsToManyObject(context.Background()).BulkRemoveTaggedObject(bulkRemoveTaggedObject).Execute() @@ -26631,7 +26653,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26643,7 +26665,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TaggedObjectsAPI.GetTaggedObject(context.Background(), type_, id).Execute() //resp, r, err := apiClient.V2024.TaggedObjectsAPI.GetTaggedObject(context.Background(), type_, id).Execute() @@ -26666,7 +26688,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26680,7 +26702,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TaggedObjectsAPI.ListTaggedObjects(context.Background()).Execute() //resp, r, err := apiClient.V2024.TaggedObjectsAPI.ListTaggedObjects(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() @@ -26703,7 +26725,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26718,7 +26740,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TaggedObjectsAPI.ListTaggedObjectsByType(context.Background(), type_).Execute() //resp, r, err := apiClient.V2024.TaggedObjectsAPI.ListTaggedObjectsByType(context.Background(), type_).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() @@ -26741,7 +26763,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26767,7 +26789,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TaggedObjectsAPI.PutTaggedObject(context.Background(), type_, id).TaggedObject(taggedObject).Execute() //resp, r, err := apiClient.V2024.TaggedObjectsAPI.PutTaggedObject(context.Background(), type_, id).TaggedObject(taggedObject).Execute() @@ -26790,7 +26812,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26814,7 +26836,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.TaggedObjectsAPI.SetTagToObject(context.Background()).TaggedObject(taggedObject).Execute() //r, err := apiClient.V2024.TaggedObjectsAPI.SetTagToObject(context.Background()).TaggedObject(taggedObject).Execute() @@ -26835,7 +26857,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26864,7 +26886,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TaggedObjectsAPI.SetTagsToManyObjects(context.Background()).BulkAddTaggedObject(bulkAddTaggedObject).Execute() //resp, r, err := apiClient.V2024.TaggedObjectsAPI.SetTagsToManyObjects(context.Background()).BulkAddTaggedObject(bulkAddTaggedObject).Execute() @@ -26887,7 +26909,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26901,7 +26923,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.TaskManagementAPI.GetPendingTaskHeaders(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //r, err := apiClient.V2024.TaskManagementAPI.GetPendingTaskHeaders(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Execute() @@ -26922,7 +26944,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26936,7 +26958,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TaskManagementAPI.GetPendingTasks(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.TaskManagementAPI.GetPendingTasks(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Execute() @@ -26959,7 +26981,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26971,7 +26993,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TaskManagementAPI.GetTaskStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.TaskManagementAPI.GetTaskStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -26994,7 +27016,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27010,7 +27032,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TaskManagementAPI.GetTaskStatusList(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.TaskManagementAPI.GetTaskStatusList(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -27033,7 +27055,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27044,7 +27066,7 @@ jsonpatchoperation := []byte(``) // []JsonPatchOperation | The JSONPatch payload used to update the object. - var jsonPatchOperation v2024.[]JsonPatchOperation + var jsonPatchOperation []v2024.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -27052,7 +27074,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TaskManagementAPI.UpdateTaskStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2024.TaskManagementAPI.UpdateTaskStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() @@ -27075,7 +27097,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27085,7 +27107,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TenantAPI.GetTenant(context.Background()).Execute() //resp, r, err := apiClient.V2024.TenantAPI.GetTenant(context.Background()).Execute() @@ -27108,7 +27130,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27119,7 +27141,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TenantContextAPI.GetTenantContext(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.TenantContextAPI.GetTenantContext(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -27142,7 +27164,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27164,7 +27186,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.TenantContextAPI.PatchTenantContext(context.Background()).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() //r, err := apiClient.V2024.TenantContextAPI.PatchTenantContext(context.Background()).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() @@ -27185,7 +27207,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27206,7 +27228,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TransformsAPI.CreateTransform(context.Background()).Transform(transform).Execute() //resp, r, err := apiClient.V2024.TransformsAPI.CreateTransform(context.Background()).Transform(transform).Execute() @@ -27229,7 +27251,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27240,7 +27262,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.TransformsAPI.DeleteTransform(context.Background(), id).Execute() //r, err := apiClient.V2024.TransformsAPI.DeleteTransform(context.Background(), id).Execute() @@ -27261,7 +27283,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27272,7 +27294,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TransformsAPI.GetTransform(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.TransformsAPI.GetTransform(context.Background(), id).Execute() @@ -27295,7 +27317,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27310,7 +27332,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TransformsAPI.ListTransforms(context.Background()).Execute() //resp, r, err := apiClient.V2024.TransformsAPI.ListTransforms(context.Background()).Offset(offset).Limit(limit).Count(count).Name(name).Filters(filters).Execute() @@ -27333,7 +27355,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27349,7 +27371,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TransformsAPI.UpdateTransform(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.TransformsAPI.UpdateTransform(context.Background(), id).Transform(transform).Execute() @@ -27372,7 +27394,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27397,7 +27419,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.TriggersAPI.CompleteTriggerInvocation(context.Background(), id).XSailPointExperimental(xSailPointExperimental).CompleteInvocation(completeInvocation).Execute() //r, err := apiClient.V2024.TriggersAPI.CompleteTriggerInvocation(context.Background(), id).XSailPointExperimental(xSailPointExperimental).CompleteInvocation(completeInvocation).Execute() @@ -27418,7 +27440,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27460,7 +27482,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TriggersAPI.CreateSubscription(context.Background()).XSailPointExperimental(xSailPointExperimental).SubscriptionPostRequest(subscriptionPostRequest).Execute() //resp, r, err := apiClient.V2024.TriggersAPI.CreateSubscription(context.Background()).XSailPointExperimental(xSailPointExperimental).SubscriptionPostRequest(subscriptionPostRequest).Execute() @@ -27483,7 +27505,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27495,7 +27517,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.TriggersAPI.DeleteSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //r, err := apiClient.V2024.TriggersAPI.DeleteSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -27516,7 +27538,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27532,7 +27554,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TriggersAPI.ListSubscriptions(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.TriggersAPI.ListSubscriptions(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -27555,7 +27577,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27571,7 +27593,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TriggersAPI.ListTriggerInvocationStatus(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.TriggersAPI.ListTriggerInvocationStatus(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -27594,7 +27616,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27610,7 +27632,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TriggersAPI.ListTriggers(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.TriggersAPI.ListTriggers(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -27633,7 +27655,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27644,7 +27666,7 @@ subscriptionpatchrequestinner := []byte(``) // []SubscriptionPatchRequestInner | - var subscriptionPatchRequestInner v2024.[]SubscriptionPatchRequestInner + var subscriptionPatchRequestInner []v2024.SubscriptionPatchRequestInner if err := json.Unmarshal(subscriptionpatchrequestinner, &subscriptionPatchRequestInner); err != nil { fmt.Println("Error:", err) return @@ -27652,7 +27674,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TriggersAPI.PatchSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SubscriptionPatchRequestInner(subscriptionPatchRequestInner).Execute() //resp, r, err := apiClient.V2024.TriggersAPI.PatchSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SubscriptionPatchRequestInner(subscriptionPatchRequestInner).Execute() @@ -27675,7 +27697,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27702,7 +27724,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TriggersAPI.StartTestTriggerInvocation(context.Background()).XSailPointExperimental(xSailPointExperimental).TestInvocation(testInvocation).Execute() //resp, r, err := apiClient.V2024.TriggersAPI.StartTestTriggerInvocation(context.Background()).XSailPointExperimental(xSailPointExperimental).TestInvocation(testInvocation).Execute() @@ -27725,7 +27747,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27748,7 +27770,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TriggersAPI.TestSubscriptionFilter(context.Background()).XSailPointExperimental(xSailPointExperimental).ValidateFilterInputDto(validateFilterInputDto).Execute() //resp, r, err := apiClient.V2024.TriggersAPI.TestSubscriptionFilter(context.Background()).XSailPointExperimental(xSailPointExperimental).ValidateFilterInputDto(validateFilterInputDto).Execute() @@ -27771,7 +27793,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27813,7 +27835,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.TriggersAPI.UpdateSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SubscriptionPutRequest(subscriptionPutRequest).Execute() //resp, r, err := apiClient.V2024.TriggersAPI.UpdateSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SubscriptionPutRequest(subscriptionPutRequest).Execute() @@ -27836,7 +27858,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27847,7 +27869,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.UIMetadataAPI.GetTenantUiMetadata(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.UIMetadataAPI.GetTenantUiMetadata(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -27870,7 +27892,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27892,7 +27914,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.UIMetadataAPI.SetTenantUiMetadata(context.Background()).XSailPointExperimental(xSailPointExperimental).TenantUiMetadataItemUpdateRequest(tenantUiMetadataItemUpdateRequest).Execute() //resp, r, err := apiClient.V2024.UIMetadataAPI.SetTenantUiMetadata(context.Background()).XSailPointExperimental(xSailPointExperimental).TenantUiMetadataItemUpdateRequest(tenantUiMetadataItemUpdateRequest).Execute() @@ -27915,7 +27937,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27954,7 +27976,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.VendorConnectorMappingsAPI.CreateVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() //resp, r, err := apiClient.V2024.VendorConnectorMappingsAPI.CreateVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() @@ -27977,7 +27999,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28016,7 +28038,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.VendorConnectorMappingsAPI.DeleteVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() //resp, r, err := apiClient.V2024.VendorConnectorMappingsAPI.DeleteVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() @@ -28039,7 +28061,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28049,7 +28071,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.VendorConnectorMappingsAPI.GetVendorConnectorMappings(context.Background()).Execute() //resp, r, err := apiClient.V2024.VendorConnectorMappingsAPI.GetVendorConnectorMappings(context.Background()).Execute() @@ -28072,7 +28094,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28083,7 +28105,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.WorkflowsAPI.CancelWorkflowExecution(context.Background(), id).Execute() //r, err := apiClient.V2024.WorkflowsAPI.CancelWorkflowExecution(context.Background(), id).Execute() @@ -28104,7 +28126,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28116,7 +28138,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkflowsAPI.CreateExternalExecuteWorkflow(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.WorkflowsAPI.CreateExternalExecuteWorkflow(context.Background(), id).CreateExternalExecuteWorkflowRequest(createExternalExecuteWorkflowRequest).Execute() @@ -28139,7 +28161,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28156,7 +28178,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkflowsAPI.CreateWorkflow(context.Background()).CreateWorkflowRequest(createWorkflowRequest).Execute() //resp, r, err := apiClient.V2024.WorkflowsAPI.CreateWorkflow(context.Background()).CreateWorkflowRequest(createWorkflowRequest).Execute() @@ -28179,7 +28201,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28190,7 +28212,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkflowsAPI.CreateWorkflowExternalTrigger(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.WorkflowsAPI.CreateWorkflowExternalTrigger(context.Background(), id).Execute() @@ -28213,7 +28235,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28224,7 +28246,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.WorkflowsAPI.DeleteWorkflow(context.Background(), id).Execute() //r, err := apiClient.V2024.WorkflowsAPI.DeleteWorkflow(context.Background(), id).Execute() @@ -28245,7 +28267,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28256,7 +28278,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkflowsAPI.GetWorkflow(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.WorkflowsAPI.GetWorkflow(context.Background(), id).Execute() @@ -28279,7 +28301,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28290,7 +28312,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkflowsAPI.GetWorkflowExecution(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.WorkflowsAPI.GetWorkflowExecution(context.Background(), id).Execute() @@ -28313,7 +28335,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28324,7 +28346,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkflowsAPI.GetWorkflowExecutionHistory(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.WorkflowsAPI.GetWorkflowExecutionHistory(context.Background(), id).Execute() @@ -28347,7 +28369,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28362,7 +28384,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkflowsAPI.GetWorkflowExecutions(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.WorkflowsAPI.GetWorkflowExecutions(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() @@ -28385,7 +28407,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28397,7 +28419,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkflowsAPI.ListCompleteWorkflowLibrary(context.Background()).Execute() //resp, r, err := apiClient.V2024.WorkflowsAPI.ListCompleteWorkflowLibrary(context.Background()).Limit(limit).Offset(offset).Execute() @@ -28420,7 +28442,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28433,7 +28455,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkflowsAPI.ListWorkflowLibraryActions(context.Background()).Execute() //resp, r, err := apiClient.V2024.WorkflowsAPI.ListWorkflowLibraryActions(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() @@ -28456,7 +28478,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28466,7 +28488,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkflowsAPI.ListWorkflowLibraryOperators(context.Background()).Execute() //resp, r, err := apiClient.V2024.WorkflowsAPI.ListWorkflowLibraryOperators(context.Background()).Execute() @@ -28489,7 +28511,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28502,7 +28524,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkflowsAPI.ListWorkflowLibraryTriggers(context.Background()).Execute() //resp, r, err := apiClient.V2024.WorkflowsAPI.ListWorkflowLibraryTriggers(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() @@ -28525,7 +28547,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28535,7 +28557,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkflowsAPI.ListWorkflows(context.Background()).Execute() //resp, r, err := apiClient.V2024.WorkflowsAPI.ListWorkflows(context.Background()).Execute() @@ -28558,7 +28580,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28568,7 +28590,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/name, value=Send Email}, {op=replace, path=/owner, value={type=IDENTITY, id=2c91808568c529c60168cca6f90c1313, name=William Wilson}}, {op=replace, path=/description, value=Send an email to the identity who's attributes changed.}, {op=replace, path=/enabled, value=false}, {op=replace, path=/definition, value={start=Send Email Test, steps={Send Email={actionId=sp:send-email, attributes={body=This is a test, from=sailpoint@sailpoint.com, recipientId.$=$.identity.id, subject=test}, nextStep=success, selectResult=null, type=action}, success={type=success}}}}, {op=replace, path=/trigger, value={type=EVENT, attributes={id=idn:identity-attributes-changed}}}]`) // []JsonPatchOperation | - var jsonPatchOperation v2024.[]JsonPatchOperation + var jsonPatchOperation []v2024.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -28576,7 +28598,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkflowsAPI.PatchWorkflow(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2024.WorkflowsAPI.PatchWorkflow(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -28599,7 +28621,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28650,7 +28672,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkflowsAPI.PutWorkflow(context.Background(), id).WorkflowBody(workflowBody).Execute() //resp, r, err := apiClient.V2024.WorkflowsAPI.PutWorkflow(context.Background(), id).WorkflowBody(workflowBody).Execute() @@ -28673,7 +28695,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28685,7 +28707,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkflowsAPI.TestExternalExecuteWorkflow(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.WorkflowsAPI.TestExternalExecuteWorkflow(context.Background(), id).TestExternalExecuteWorkflowRequest(testExternalExecuteWorkflowRequest).Execute() @@ -28708,7 +28730,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28726,7 +28748,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkflowsAPI.TestWorkflow(context.Background(), id).TestWorkflowRequest(testWorkflowRequest).Execute() //resp, r, err := apiClient.V2024.WorkflowsAPI.TestWorkflow(context.Background(), id).TestWorkflowRequest(testWorkflowRequest).Execute() @@ -28749,7 +28771,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28761,7 +28783,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkItemsAPI.ApproveApprovalItem(context.Background(), id, approvalItemId).Execute() //resp, r, err := apiClient.V2024.WorkItemsAPI.ApproveApprovalItem(context.Background(), id, approvalItemId).Execute() @@ -28784,7 +28806,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28795,7 +28817,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkItemsAPI.ApproveApprovalItemsInBulk(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.WorkItemsAPI.ApproveApprovalItemsInBulk(context.Background(), id).Execute() @@ -28818,7 +28840,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28830,7 +28852,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkItemsAPI.CompleteWorkItem(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.WorkItemsAPI.CompleteWorkItem(context.Background(), id).Body(body).Execute() @@ -28853,7 +28875,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28876,7 +28898,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.WorkItemsAPI.ForwardWorkItem(context.Background(), id).XSailPointExperimental(xSailPointExperimental).WorkItemForward(workItemForward).Execute() //r, err := apiClient.V2024.WorkItemsAPI.ForwardWorkItem(context.Background(), id).XSailPointExperimental(xSailPointExperimental).WorkItemForward(workItemForward).Execute() @@ -28897,7 +28919,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28911,7 +28933,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkItemsAPI.GetCompletedWorkItems(context.Background()).Execute() //resp, r, err := apiClient.V2024.WorkItemsAPI.GetCompletedWorkItems(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Execute() @@ -28934,7 +28956,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28946,7 +28968,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkItemsAPI.GetCountCompletedWorkItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.WorkItemsAPI.GetCountCompletedWorkItems(context.Background()).XSailPointExperimental(xSailPointExperimental).OwnerId(ownerId).Execute() @@ -28969,7 +28991,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28980,7 +29002,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkItemsAPI.GetCountWorkItems(context.Background()).Execute() //resp, r, err := apiClient.V2024.WorkItemsAPI.GetCountWorkItems(context.Background()).OwnerId(ownerId).Execute() @@ -29003,7 +29025,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -29014,7 +29036,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkItemsAPI.GetWorkItem(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.WorkItemsAPI.GetWorkItem(context.Background(), id).Execute() @@ -29037,7 +29059,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -29048,7 +29070,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkItemsAPI.GetWorkItemsSummary(context.Background()).Execute() //resp, r, err := apiClient.V2024.WorkItemsAPI.GetWorkItemsSummary(context.Background()).OwnerId(ownerId).Execute() @@ -29071,7 +29093,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -29085,7 +29107,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkItemsAPI.ListWorkItems(context.Background()).Execute() //resp, r, err := apiClient.V2024.WorkItemsAPI.ListWorkItems(context.Background()).Limit(limit).Offset(offset).Count(count).OwnerId(ownerId).Execute() @@ -29108,7 +29130,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -29120,7 +29142,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkItemsAPI.RejectApprovalItem(context.Background(), id, approvalItemId).Execute() //resp, r, err := apiClient.V2024.WorkItemsAPI.RejectApprovalItem(context.Background(), id, approvalItemId).Execute() @@ -29143,7 +29165,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -29154,7 +29176,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkItemsAPI.RejectApprovalItemsInBulk(context.Background(), id).Execute() //resp, r, err := apiClient.V2024.WorkItemsAPI.RejectApprovalItemsInBulk(context.Background(), id).Execute() @@ -29177,7 +29199,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -29195,7 +29217,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkItemsAPI.SubmitAccountSelection(context.Background(), id).RequestBody(requestBody).Execute() //resp, r, err := apiClient.V2024.WorkItemsAPI.SubmitAccountSelection(context.Background(), id).RequestBody(requestBody).Execute() @@ -29218,7 +29240,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -29242,7 +29264,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkReassignmentAPI.CreateReassignmentConfiguration(context.Background()).XSailPointExperimental(xSailPointExperimental).ConfigurationItemRequest(configurationItemRequest).Execute() //resp, r, err := apiClient.V2024.WorkReassignmentAPI.CreateReassignmentConfiguration(context.Background()).XSailPointExperimental(xSailPointExperimental).ConfigurationItemRequest(configurationItemRequest).Execute() @@ -29265,7 +29287,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -29278,7 +29300,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2024.WorkReassignmentAPI.DeleteReassignmentConfiguration(context.Background(), identityId, configType).XSailPointExperimental(xSailPointExperimental).Execute() //r, err := apiClient.V2024.WorkReassignmentAPI.DeleteReassignmentConfiguration(context.Background(), identityId, configType).XSailPointExperimental(xSailPointExperimental).Execute() @@ -29299,7 +29321,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -29313,7 +29335,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkReassignmentAPI.GetEvaluateReassignmentConfiguration(context.Background(), identityId, configType).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.WorkReassignmentAPI.GetEvaluateReassignmentConfiguration(context.Background(), identityId, configType).XSailPointExperimental(xSailPointExperimental).ExclusionFilters(exclusionFilters).Execute() @@ -29336,7 +29358,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -29347,7 +29369,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkReassignmentAPI.GetReassignmentConfigTypes(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.WorkReassignmentAPI.GetReassignmentConfigTypes(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -29370,7 +29392,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -29382,7 +29404,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkReassignmentAPI.GetReassignmentConfiguration(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.WorkReassignmentAPI.GetReassignmentConfiguration(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -29405,7 +29427,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -29416,7 +29438,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkReassignmentAPI.GetTenantConfigConfiguration(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.WorkReassignmentAPI.GetTenantConfigConfiguration(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -29439,7 +29461,7 @@ "context" "fmt" "os" - "encoding/json" + v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -29450,7 +29472,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkReassignmentAPI.ListReassignmentConfigurations(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2024.WorkReassignmentAPI.ListReassignmentConfigurations(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -29473,7 +29495,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -29498,7 +29520,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkReassignmentAPI.PutReassignmentConfig(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).ConfigurationItemRequest(configurationItemRequest).Execute() //resp, r, err := apiClient.V2024.WorkReassignmentAPI.PutReassignmentConfig(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).ConfigurationItemRequest(configurationItemRequest).Execute() @@ -29521,7 +29543,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2024 "github.com/sailpoint-oss/golang-sdk/v2/api_v2024" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -29543,7 +29565,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2024.WorkReassignmentAPI.PutTenantConfiguration(context.Background()).XSailPointExperimental(xSailPointExperimental).TenantConfigurationRequest(tenantConfigurationRequest).Execute() //resp, r, err := apiClient.V2024.WorkReassignmentAPI.PutTenantConfiguration(context.Background()).XSailPointExperimental(xSailPointExperimental).TenantConfigurationRequest(tenantConfigurationRequest).Execute() diff --git a/static/code-examples/v2025/go_code_examples_overlay.yaml b/static/code-examples/v2025/go_code_examples_overlay.yaml index c26c2c899..7b4c190fc 100644 --- a/static/code-examples/v2025/go_code_examples_overlay.yaml +++ b/static/code-examples/v2025/go_code_examples_overlay.yaml @@ -10,7 +10,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22,7 +22,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessModelMetadataAPI.GetAccessModelMetadataAttribute(context.Background(), key).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.AccessModelMetadataAPI.GetAccessModelMetadataAttribute(context.Background(), key).XSailPointExperimental(xSailPointExperimental).Execute() @@ -45,7 +45,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -58,7 +58,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessModelMetadataAPI.GetAccessModelMetadataAttributeValue(context.Background(), key, value).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.AccessModelMetadataAPI.GetAccessModelMetadataAttributeValue(context.Background(), key, value).XSailPointExperimental(xSailPointExperimental).Execute() @@ -81,7 +81,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -93,7 +93,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessModelMetadataAPI.ListAccessModelMetadataAttribute(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.AccessModelMetadataAPI.ListAccessModelMetadataAttribute(context.Background()).XSailPointExperimental(xSailPointExperimental).Filters(filters).Execute() @@ -116,7 +116,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -128,7 +128,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessModelMetadataAPI.ListAccessModelMetadataAttributeValue(context.Background(), key).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.AccessModelMetadataAPI.ListAccessModelMetadataAttributeValue(context.Background(), key).XSailPointExperimental(xSailPointExperimental).Execute() @@ -151,7 +151,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -253,7 +253,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessProfilesAPI.CreateAccessProfile(context.Background()).AccessProfile(accessProfile).Execute() //resp, r, err := apiClient.V2025.AccessProfilesAPI.CreateAccessProfile(context.Background()).AccessProfile(accessProfile).Execute() @@ -276,7 +276,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -287,7 +287,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.AccessProfilesAPI.DeleteAccessProfile(context.Background(), id).Execute() //r, err := apiClient.V2025.AccessProfilesAPI.DeleteAccessProfile(context.Background(), id).Execute() @@ -308,7 +308,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -328,7 +328,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessProfilesAPI.DeleteAccessProfilesInBulk(context.Background()).AccessProfileBulkDeleteRequest(accessProfileBulkDeleteRequest).Execute() //resp, r, err := apiClient.V2025.AccessProfilesAPI.DeleteAccessProfilesInBulk(context.Background()).AccessProfileBulkDeleteRequest(accessProfileBulkDeleteRequest).Execute() @@ -351,7 +351,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -362,7 +362,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessProfilesAPI.GetAccessProfile(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.AccessProfilesAPI.GetAccessProfile(context.Background(), id).Execute() @@ -385,7 +385,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -401,7 +401,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessProfilesAPI.GetAccessProfileEntitlements(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.AccessProfilesAPI.GetAccessProfileEntitlements(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -424,7 +424,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -442,7 +442,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessProfilesAPI.ListAccessProfiles(context.Background()).Execute() //resp, r, err := apiClient.V2025.AccessProfilesAPI.ListAccessProfiles(context.Background()).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).Execute() @@ -465,7 +465,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -475,7 +475,7 @@ jsonpatchoperation := []byte(`[{op=add, path=/entitlements, value=[{id=2c9180857725c14301772a93bb77242d, type=ENTITLEMENT, name=AD User Group}]}]`) // []JsonPatchOperation | - var jsonPatchOperation v2025.[]JsonPatchOperation + var jsonPatchOperation []v2025.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -483,7 +483,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessProfilesAPI.PatchAccessProfile(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2025.AccessProfilesAPI.PatchAccessProfile(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -506,7 +506,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -516,7 +516,7 @@ accessprofilebulkupdaterequestinner := []byte(`[{id=464ae7bf-791e-49fd-b746-06a2e4a89635, requestable=false}]`) // []AccessProfileBulkUpdateRequestInner | - var accessProfileBulkUpdateRequestInner v2025.[]AccessProfileBulkUpdateRequestInner + var accessProfileBulkUpdateRequestInner []v2025.AccessProfileBulkUpdateRequestInner if err := json.Unmarshal(accessprofilebulkupdaterequestinner, &accessProfileBulkUpdateRequestInner); err != nil { fmt.Println("Error:", err) return @@ -524,7 +524,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessProfilesAPI.UpdateAccessProfilesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessProfileBulkUpdateRequestInner(accessProfileBulkUpdateRequestInner).Execute() //resp, r, err := apiClient.V2025.AccessProfilesAPI.UpdateAccessProfilesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessProfileBulkUpdateRequestInner(accessProfileBulkUpdateRequestInner).Execute() @@ -547,7 +547,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -567,7 +567,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.ApproveAccessRequest(context.Background(), approvalId).Execute() //resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.ApproveAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() @@ -590,7 +590,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -611,7 +611,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.ForwardAccessRequest(context.Background(), approvalId).ForwardApprovalDto(forwardApprovalDto).Execute() //resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.ForwardAccessRequest(context.Background(), approvalId).ForwardApprovalDto(forwardApprovalDto).Execute() @@ -634,7 +634,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -646,7 +646,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary(context.Background()).Execute() //resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary(context.Background()).OwnerId(ownerId).FromDate(fromDate).Execute() @@ -669,7 +669,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -683,7 +683,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.ListAccessRequestApprovers(context.Background(), accessRequestId).Execute() //resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.ListAccessRequestApprovers(context.Background(), accessRequestId).Limit(limit).Offset(offset).Count(count).Execute() @@ -706,7 +706,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -722,7 +722,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.ListCompletedApprovals(context.Background()).Execute() //resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.ListCompletedApprovals(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -745,7 +745,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -761,7 +761,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.ListPendingApprovals(context.Background()).Execute() //resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.ListPendingApprovals(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -784,7 +784,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -810,7 +810,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.RejectAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() //resp, r, err := apiClient.V2025.AccessRequestApprovalsAPI.RejectAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() @@ -833,7 +833,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -846,7 +846,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestIdentityMetricsAPI.GetAccessRequestIdentityMetrics(context.Background(), identityId, requestedObjectId, type_).Execute() //resp, r, err := apiClient.V2025.AccessRequestIdentityMetricsAPI.GetAccessRequestIdentityMetrics(context.Background(), identityId, requestedObjectId, type_).Execute() @@ -869,7 +869,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -889,7 +889,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestsAPI.ApproveBulkAccessRequest(context.Background()).BulkApproveAccessRequest(bulkApproveAccessRequest).Execute() //resp, r, err := apiClient.V2025.AccessRequestsAPI.ApproveBulkAccessRequest(context.Background()).BulkApproveAccessRequest(bulkApproveAccessRequest).Execute() @@ -912,7 +912,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -932,7 +932,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestsAPI.CancelAccessRequest(context.Background()).CancelAccessRequest(cancelAccessRequest).Execute() //resp, r, err := apiClient.V2025.AccessRequestsAPI.CancelAccessRequest(context.Background()).CancelAccessRequest(cancelAccessRequest).Execute() @@ -955,7 +955,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -975,7 +975,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestsAPI.CancelAccessRequestInBulk(context.Background()).BulkCancelAccessRequest(bulkCancelAccessRequest).Execute() //resp, r, err := apiClient.V2025.AccessRequestsAPI.CancelAccessRequestInBulk(context.Background()).BulkCancelAccessRequest(bulkCancelAccessRequest).Execute() @@ -998,7 +998,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1021,7 +1021,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestsAPI.CloseAccessRequest(context.Background()).XSailPointExperimental(xSailPointExperimental).CloseAccessRequest(closeAccessRequest).Execute() //resp, r, err := apiClient.V2025.AccessRequestsAPI.CloseAccessRequest(context.Background()).XSailPointExperimental(xSailPointExperimental).CloseAccessRequest(closeAccessRequest).Execute() @@ -1044,7 +1044,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1065,7 +1065,9 @@ "removeDate" : "2020-07-11T21:23:15Z", "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE" + "type" : "ACCESS_PROFILE", + "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", + "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" }, { "clientMetadata" : { "requestedAppName" : "test-app", @@ -1074,7 +1076,9 @@ "removeDate" : "2020-07-11T21:23:15Z", "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE" + "type" : "ACCESS_PROFILE", + "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", + "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" }, { "clientMetadata" : { "requestedAppName" : "test-app", @@ -1083,7 +1087,9 @@ "removeDate" : "2020-07-11T21:23:15Z", "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE" + "type" : "ACCESS_PROFILE", + "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", + "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" }, { "clientMetadata" : { "requestedAppName" : "test-app", @@ -1092,7 +1098,9 @@ "removeDate" : "2020-07-11T21:23:15Z", "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE" + "type" : "ACCESS_PROFILE", + "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", + "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" }, { "clientMetadata" : { "requestedAppName" : "test-app", @@ -1101,7 +1109,9 @@ "removeDate" : "2020-07-11T21:23:15Z", "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE" + "type" : "ACCESS_PROFILE", + "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", + "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" } ], "requestedForWithRequestedItems" : [ { "identityId" : "cb89bc2f1ee6445fbea12224c526ba3a", @@ -1132,9 +1142,7 @@ } ], "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE", - "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", - "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + "type" : "ACCESS_PROFILE" }, { "clientMetadata" : { "requestedAppName" : "test-app", @@ -1162,9 +1170,7 @@ } ], "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE", - "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", - "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + "type" : "ACCESS_PROFILE" } ] }, { "identityId" : "cb89bc2f1ee6445fbea12224c526ba3a", @@ -1195,9 +1201,7 @@ } ], "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE", - "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", - "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + "type" : "ACCESS_PROFILE" }, { "clientMetadata" : { "requestedAppName" : "test-app", @@ -1225,9 +1229,7 @@ } ], "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE", - "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", - "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + "type" : "ACCESS_PROFILE" } ] } ] }`) // AccessRequest | @@ -1241,7 +1243,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestsAPI.CreateAccessRequest(context.Background()).AccessRequest(accessRequest).Execute() //resp, r, err := apiClient.V2025.AccessRequestsAPI.CreateAccessRequest(context.Background()).AccessRequest(accessRequest).Execute() @@ -1264,7 +1266,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1274,7 +1276,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestsAPI.GetAccessRequestConfig(context.Background()).Execute() //resp, r, err := apiClient.V2025.AccessRequestsAPI.GetAccessRequestConfig(context.Background()).Execute() @@ -1297,7 +1299,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1310,7 +1312,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestsAPI.GetEntitlementDetailsForIdentity(context.Background(), identityId, entitlementId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.AccessRequestsAPI.GetEntitlementDetailsForIdentity(context.Background(), identityId, entitlementId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -1333,7 +1335,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1353,7 +1355,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestsAPI.ListAccessRequestStatus(context.Background()).Execute() //resp, r, err := apiClient.V2025.AccessRequestsAPI.ListAccessRequestStatus(context.Background()).RequestedFor(requestedFor).RequestedBy(requestedBy).RegardingIdentity(regardingIdentity).AssignedTo(assignedTo).Count(count).Limit(limit).Offset(offset).Filters(filters).Sorters(sorters).RequestState(requestState).Execute() @@ -1376,7 +1378,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1396,7 +1398,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestsAPI.ListAdministratorsAccessRequestStatus(context.Background()).Execute() //resp, r, err := apiClient.V2025.AccessRequestsAPI.ListAdministratorsAccessRequestStatus(context.Background()).RequestedFor(requestedFor).RequestedBy(requestedBy).RegardingIdentity(regardingIdentity).AssignedTo(assignedTo).Count(count).Limit(limit).Offset(offset).Filters(filters).Sorters(sorters).RequestState(requestState).Execute() @@ -1419,7 +1421,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1499,7 +1501,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestsAPI.LoadAccountSelections(context.Background()).AccountsSelectionRequest(accountsSelectionRequest).Execute() //resp, r, err := apiClient.V2025.AccessRequestsAPI.LoadAccountSelections(context.Background()).AccountsSelectionRequest(accountsSelectionRequest).Execute() @@ -1522,7 +1524,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1555,7 +1557,17 @@ "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", "approverType" : "GOVERNANCE_GROUP" } ], + "reauthorizationRequired" : false, "requestCommentRequired" : true + }, + "revocationRequestConfig" : { + "approvalSchemes" : [ { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + }, { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + } ] } }, "reauthorizationEnabled" : true, @@ -1571,7 +1583,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccessRequestsAPI.SetAccessRequestConfig(context.Background()).AccessRequestConfig(accessRequestConfig).Execute() //resp, r, err := apiClient.V2025.AccessRequestsAPI.SetAccessRequestConfig(context.Background()).AccessRequestConfig(accessRequestConfig).Execute() @@ -1594,7 +1606,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1605,7 +1617,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountActivitiesAPI.GetAccountActivity(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.AccountActivitiesAPI.GetAccountActivity(context.Background(), id).Execute() @@ -1628,7 +1640,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1646,7 +1658,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountActivitiesAPI.ListAccountActivities(context.Background()).Execute() //resp, r, err := apiClient.V2025.AccountActivitiesAPI.ListAccountActivities(context.Background()).RequestedFor(requestedFor).RequestedBy(requestedBy).RegardingIdentity(regardingIdentity).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -1669,7 +1681,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1681,7 +1693,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountAggregationsAPI.GetAccountAggregationStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.AccountAggregationsAPI.GetAccountAggregationStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -1704,7 +1716,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1730,7 +1742,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountsAPI.CreateAccount(context.Background()).AccountAttributesCreate(accountAttributesCreate).Execute() //resp, r, err := apiClient.V2025.AccountsAPI.CreateAccount(context.Background()).AccountAttributesCreate(accountAttributesCreate).Execute() @@ -1753,7 +1765,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1764,7 +1776,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountsAPI.DeleteAccount(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.AccountsAPI.DeleteAccount(context.Background(), id).Execute() @@ -1787,7 +1799,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1799,7 +1811,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountsAPI.DeleteAccountAsync(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.AccountsAPI.DeleteAccountAsync(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -1822,7 +1834,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1843,7 +1855,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountsAPI.DisableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() //resp, r, err := apiClient.V2025.AccountsAPI.DisableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() @@ -1866,7 +1878,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1878,7 +1890,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountsAPI.DisableAccountForIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.AccountsAPI.DisableAccountForIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -1901,7 +1913,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1921,7 +1933,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountsAPI.DisableAccountsForIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentitiesAccountsBulkRequest(identitiesAccountsBulkRequest).Execute() //resp, r, err := apiClient.V2025.AccountsAPI.DisableAccountsForIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentitiesAccountsBulkRequest(identitiesAccountsBulkRequest).Execute() @@ -1944,7 +1956,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1965,7 +1977,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountsAPI.EnableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() //resp, r, err := apiClient.V2025.AccountsAPI.EnableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() @@ -1988,7 +2000,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2000,7 +2012,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountsAPI.EnableAccountForIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.AccountsAPI.EnableAccountForIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -2023,7 +2035,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2043,7 +2055,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountsAPI.EnableAccountsForIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentitiesAccountsBulkRequest(identitiesAccountsBulkRequest).Execute() //resp, r, err := apiClient.V2025.AccountsAPI.EnableAccountsForIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentitiesAccountsBulkRequest(identitiesAccountsBulkRequest).Execute() @@ -2066,7 +2078,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2077,7 +2089,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountsAPI.GetAccount(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.AccountsAPI.GetAccount(context.Background(), id).Execute() @@ -2100,7 +2112,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2114,7 +2126,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountsAPI.GetAccountEntitlements(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.AccountsAPI.GetAccountEntitlements(context.Background(), id).Limit(limit).Offset(offset).Count(count).Execute() @@ -2137,7 +2149,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2153,7 +2165,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountsAPI.ListAccounts(context.Background()).Execute() //resp, r, err := apiClient.V2025.AccountsAPI.ListAccounts(context.Background()).Limit(limit).Offset(offset).Count(count).DetailLevel(detailLevel).Filters(filters).Sorters(sorters).Execute() @@ -2176,7 +2188,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2202,7 +2214,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountsAPI.PutAccount(context.Background(), id).AccountAttributes(accountAttributes).Execute() //resp, r, err := apiClient.V2025.AccountsAPI.PutAccount(context.Background(), id).AccountAttributes(accountAttributes).Execute() @@ -2225,7 +2237,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2236,7 +2248,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountsAPI.SubmitReloadAccount(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.AccountsAPI.SubmitReloadAccount(context.Background(), id).Execute() @@ -2259,7 +2271,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2281,7 +2293,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountsAPI.UnlockAccount(context.Background(), id).AccountUnlockRequest(accountUnlockRequest).Execute() //resp, r, err := apiClient.V2025.AccountsAPI.UnlockAccount(context.Background(), id).AccountUnlockRequest(accountUnlockRequest).Execute() @@ -2304,7 +2316,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2314,7 +2326,7 @@ requestbody := []byte(`[{op=remove, path=/identityId}]`) // []map[string]interface{} | A list of account update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - var requestBody v2025.[]RequestBody + var requestBody []v2025.RequestBody if err := json.Unmarshal(requestbody, &requestBody); err != nil { fmt.Println("Error:", err) return @@ -2322,7 +2334,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountsAPI.UpdateAccount(context.Background(), id).RequestBody(requestBody).Execute() //resp, r, err := apiClient.V2025.AccountsAPI.UpdateAccount(context.Background(), id).RequestBody(requestBody).Execute() @@ -2345,7 +2357,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2360,7 +2372,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AccountUsagesAPI.GetUsagesByAccountId(context.Background(), accountId).Execute() //resp, r, err := apiClient.V2025.AccountUsagesAPI.GetUsagesByAccountId(context.Background(), accountId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() @@ -2383,7 +2395,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2398,7 +2410,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ApplicationDiscoveryAPI.GetDiscoveredApplications(context.Background()).Execute() //resp, r, err := apiClient.V2025.ApplicationDiscoveryAPI.GetDiscoveredApplications(context.Background()).Limit(limit).Offset(offset).Detail(detail).Filter(filter).Sorters(sorters).Execute() @@ -2421,7 +2433,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2431,7 +2443,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() //resp, r, err := apiClient.V2025.ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() @@ -2454,7 +2466,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2465,7 +2477,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate(context.Background()).File(file).Execute() //r, err := apiClient.V2025.ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate(context.Background()).File(file).Execute() @@ -2486,7 +2498,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2498,7 +2510,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ApprovalsAPI.GetApproval(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.ApprovalsAPI.GetApproval(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -2521,7 +2533,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2535,7 +2547,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ApprovalsAPI.GetApprovals(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.ApprovalsAPI.GetApprovals(context.Background()).XSailPointExperimental(xSailPointExperimental).Mine(mine).RequesterId(requesterId).Filters(filters).Execute() @@ -2558,7 +2570,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2585,7 +2597,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AppsAPI.CreateSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).SourceAppCreateDto(sourceAppCreateDto).Execute() //resp, r, err := apiClient.V2025.AppsAPI.CreateSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).SourceAppCreateDto(sourceAppCreateDto).Execute() @@ -2608,7 +2620,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2620,7 +2632,7 @@ limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) - var requestBody v2025.[]RequestBody + var requestBody []v2025.RequestBody if err := json.Unmarshal(requestbody, &requestBody); err != nil { fmt.Println("Error:", err) return @@ -2628,7 +2640,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AppsAPI.DeleteAccessProfilesFromSourceAppByBulk(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() //resp, r, err := apiClient.V2025.AppsAPI.DeleteAccessProfilesFromSourceAppByBulk(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Limit(limit).Execute() @@ -2651,7 +2663,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2663,7 +2675,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AppsAPI.DeleteSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.AppsAPI.DeleteSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -2686,7 +2698,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2698,7 +2710,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AppsAPI.GetSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.AppsAPI.GetSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -2721,7 +2733,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2736,7 +2748,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AppsAPI.ListAccessProfilesForSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.AppsAPI.ListAccessProfilesForSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Filters(filters).Execute() @@ -2759,7 +2771,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2775,7 +2787,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AppsAPI.ListAllSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.AppsAPI.ListAllSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Sorters(sorters).Filters(filters).Execute() @@ -2798,7 +2810,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2813,7 +2825,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AppsAPI.ListAllUserApps(context.Background()).Filters(filters).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.AppsAPI.ListAllUserApps(context.Background()).Filters(filters).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Execute() @@ -2836,7 +2848,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2852,7 +2864,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AppsAPI.ListAssignedSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.AppsAPI.ListAssignedSourceApp(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Sorters(sorters).Filters(filters).Execute() @@ -2875,7 +2887,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2889,7 +2901,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AppsAPI.ListAvailableAccountsForUserApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.AppsAPI.ListAvailableAccountsForUserApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Execute() @@ -2912,7 +2924,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2928,7 +2940,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AppsAPI.ListAvailableSourceApps(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.AppsAPI.ListAvailableSourceApps(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Sorters(sorters).Filters(filters).Execute() @@ -2951,7 +2963,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2966,7 +2978,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AppsAPI.ListOwnedUserApps(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.AppsAPI.ListOwnedUserApps(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Count(count).Offset(offset).Filters(filters).Execute() @@ -2989,7 +3001,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3002,7 +3014,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AppsAPI.PatchSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.AppsAPI.PatchSourceApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() @@ -3025,7 +3037,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3038,7 +3050,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AppsAPI.PatchUserApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.AppsAPI.PatchUserApp(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() @@ -3061,7 +3073,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3084,7 +3096,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.AppsAPI.UpdateSourceAppsInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //r, err := apiClient.V2025.AppsAPI.UpdateSourceAppsInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).SourceAppBulkUpdateRequest(sourceAppBulkUpdateRequest).Execute() @@ -3105,7 +3117,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3117,7 +3129,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AuthProfileAPI.GetProfileConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.AuthProfileAPI.GetProfileConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -3140,7 +3152,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3151,7 +3163,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AuthProfileAPI.GetProfileConfigList(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.AuthProfileAPI.GetProfileConfigList(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -3174,7 +3186,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3185,7 +3197,7 @@ jsonpatchoperation := []byte(``) // []JsonPatchOperation | - var jsonPatchOperation v2025.[]JsonPatchOperation + var jsonPatchOperation []v2025.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -3193,7 +3205,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AuthProfileAPI.PatchProfileConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2025.AuthProfileAPI.PatchProfileConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() @@ -3216,7 +3228,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3227,7 +3239,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AuthUsersAPI.GetAuthUser(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.AuthUsersAPI.GetAuthUser(context.Background(), id).Execute() @@ -3250,7 +3262,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3260,7 +3272,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/capabilities, value=[ORG_ADMIN]}]`) // []JsonPatchOperation | A list of auth user update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - var jsonPatchOperation v2025.[]JsonPatchOperation + var jsonPatchOperation []v2025.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -3268,7 +3280,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.AuthUsersAPI.PatchAuthUser(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2025.AuthUsersAPI.PatchAuthUser(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -3291,7 +3303,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3309,7 +3321,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.BrandingAPI.CreateBrandingItem(context.Background()).Name(name).ProductName(productName).Execute() //resp, r, err := apiClient.V2025.BrandingAPI.CreateBrandingItem(context.Background()).Name(name).ProductName(productName).ActionButtonColor(actionButtonColor).ActiveLinkColor(activeLinkColor).NavigationColor(navigationColor).EmailFromAddress(emailFromAddress).LoginInformationalMessage(loginInformationalMessage).FileStandard(fileStandard).Execute() @@ -3332,7 +3344,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3343,7 +3355,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.BrandingAPI.DeleteBranding(context.Background(), name).Execute() //r, err := apiClient.V2025.BrandingAPI.DeleteBranding(context.Background(), name).Execute() @@ -3364,7 +3376,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3375,7 +3387,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.BrandingAPI.GetBranding(context.Background(), name).Execute() //resp, r, err := apiClient.V2025.BrandingAPI.GetBranding(context.Background(), name).Execute() @@ -3398,7 +3410,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3408,7 +3420,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.BrandingAPI.GetBrandingList(context.Background()).Execute() //resp, r, err := apiClient.V2025.BrandingAPI.GetBrandingList(context.Background()).Execute() @@ -3431,7 +3443,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3450,7 +3462,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.BrandingAPI.SetBrandingItem(context.Background(), name).Name2(name2).ProductName(productName).Execute() //resp, r, err := apiClient.V2025.BrandingAPI.SetBrandingItem(context.Background(), name).Name2(name2).ProductName(productName).ActionButtonColor(actionButtonColor).ActiveLinkColor(activeLinkColor).NavigationColor(navigationColor).EmailFromAddress(emailFromAddress).LoginInformationalMessage(loginInformationalMessage).FileStandard(fileStandard).Execute() @@ -3473,7 +3485,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3507,7 +3519,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignFiltersAPI.CreateCampaignFilter(context.Background()).CampaignFilterDetails(campaignFilterDetails).Execute() //resp, r, err := apiClient.V2025.CertificationCampaignFiltersAPI.CreateCampaignFilter(context.Background()).CampaignFilterDetails(campaignFilterDetails).Execute() @@ -3530,7 +3542,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3539,7 +3551,7 @@ requestbody := []byte(``) // []string | A json list of IDs of campaign filters to delete. - var requestBody v2025.[]RequestBody + var requestBody []v2025.RequestBody if err := json.Unmarshal(requestbody, &requestBody); err != nil { fmt.Println("Error:", err) return @@ -3547,7 +3559,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.CertificationCampaignFiltersAPI.DeleteCampaignFilters(context.Background()).RequestBody(requestBody).Execute() //r, err := apiClient.V2025.CertificationCampaignFiltersAPI.DeleteCampaignFilters(context.Background()).RequestBody(requestBody).Execute() @@ -3568,7 +3580,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3579,7 +3591,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignFiltersAPI.GetCampaignFilterById(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.CertificationCampaignFiltersAPI.GetCampaignFilterById(context.Background(), id).Execute() @@ -3602,7 +3614,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3615,7 +3627,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignFiltersAPI.ListCampaignFilters(context.Background()).Execute() //resp, r, err := apiClient.V2025.CertificationCampaignFiltersAPI.ListCampaignFilters(context.Background()).Limit(limit).Start(start).IncludeSystemFilters(includeSystemFilters).Execute() @@ -3638,7 +3650,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3673,7 +3685,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignFiltersAPI.UpdateCampaignFilter(context.Background(), filterId).CampaignFilterDetails(campaignFilterDetails).Execute() //resp, r, err := apiClient.V2025.CertificationCampaignFiltersAPI.UpdateCampaignFilter(context.Background(), filterId).CampaignFilterDetails(campaignFilterDetails).Execute() @@ -3696,7 +3708,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3710,7 +3722,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.CompleteCampaign(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.CompleteCampaign(context.Background(), id).CampaignCompleteOptions(campaignCompleteOptions).Execute() @@ -3733,7 +3745,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3859,7 +3871,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.CreateCampaign(context.Background()).Campaign(campaign).Execute() //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.CreateCampaign(context.Background()).Campaign(campaign).Execute() @@ -3882,7 +3894,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" "time" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -4024,7 +4036,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.CreateCampaignTemplate(context.Background()).CampaignTemplate(campaignTemplate).Execute() //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.CreateCampaignTemplate(context.Background()).CampaignTemplate(campaignTemplate).Execute() @@ -4047,7 +4059,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4058,7 +4070,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.CertificationCampaignsAPI.DeleteCampaignTemplate(context.Background(), id).Execute() //r, err := apiClient.V2025.CertificationCampaignsAPI.DeleteCampaignTemplate(context.Background(), id).Execute() @@ -4079,7 +4091,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4090,7 +4102,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.CertificationCampaignsAPI.DeleteCampaignTemplateSchedule(context.Background(), id).Execute() //r, err := apiClient.V2025.CertificationCampaignsAPI.DeleteCampaignTemplateSchedule(context.Background(), id).Execute() @@ -4111,7 +4123,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4130,7 +4142,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.DeleteCampaigns(context.Background()).CampaignsDeleteRequest(campaignsDeleteRequest).Execute() //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.DeleteCampaigns(context.Background()).CampaignsDeleteRequest(campaignsDeleteRequest).Execute() @@ -4153,7 +4165,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4169,7 +4181,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetActiveCampaigns(context.Background()).Execute() //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetActiveCampaigns(context.Background()).Detail(detail).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -4192,7 +4204,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4204,7 +4216,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaign(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaign(context.Background(), id).Detail(detail).Execute() @@ -4227,7 +4239,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4238,7 +4250,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaignReports(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaignReports(context.Background(), id).Execute() @@ -4261,7 +4273,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4271,7 +4283,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaignReportsConfig(context.Background()).Execute() //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaignReportsConfig(context.Background()).Execute() @@ -4294,7 +4306,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4305,7 +4317,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaignTemplate(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaignTemplate(context.Background(), id).Execute() @@ -4328,7 +4340,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4339,7 +4351,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaignTemplateSchedule(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaignTemplateSchedule(context.Background(), id).Execute() @@ -4362,7 +4374,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4377,7 +4389,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaignTemplates(context.Background()).Execute() //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.GetCampaignTemplates(context.Background()).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() @@ -4400,7 +4412,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4425,7 +4437,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.Move(context.Background(), id).AdminReviewReassign(adminReviewReassign).Execute() //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.Move(context.Background(), id).AdminReviewReassign(adminReviewReassign).Execute() @@ -4448,7 +4460,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4458,7 +4470,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/description, value=Updated description!}, {op=replace, path=/campaign/filter/id, value=ff80818155fe8c080155fe8d925b0316}]`) // []JsonPatchOperation | A list of campaign update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * deadlineDuration * campaign (all fields that are allowed during create) - var jsonPatchOperation v2025.[]JsonPatchOperation + var jsonPatchOperation []v2025.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -4466,7 +4478,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.PatchCampaignTemplate(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.PatchCampaignTemplate(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -4489,7 +4501,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4508,7 +4520,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.SetCampaignReportsConfig(context.Background()).CampaignReportsConfig(campaignReportsConfig).Execute() //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.SetCampaignReportsConfig(context.Background()).CampaignReportsConfig(campaignReportsConfig).Execute() @@ -4531,7 +4543,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4562,7 +4574,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.CertificationCampaignsAPI.SetCampaignTemplateSchedule(context.Background(), id).Execute() //r, err := apiClient.V2025.CertificationCampaignsAPI.SetCampaignTemplateSchedule(context.Background(), id).Schedule(schedule).Execute() @@ -4583,7 +4595,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4597,7 +4609,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.StartCampaign(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.StartCampaign(context.Background(), id).ActivateCampaignOptions(activateCampaignOptions).Execute() @@ -4620,7 +4632,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4631,7 +4643,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.StartCampaignRemediationScan(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.StartCampaignRemediationScan(context.Background(), id).Execute() @@ -4654,7 +4666,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4666,7 +4678,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.StartCampaignReport(context.Background(), id, type_).Execute() //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.StartCampaignReport(context.Background(), id, type_).Execute() @@ -4689,7 +4701,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4700,7 +4712,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.StartGenerateCampaignTemplate(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.StartGenerateCampaignTemplate(context.Background(), id).Execute() @@ -4723,7 +4735,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4733,7 +4745,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/name, value=This field has been updated!}, {op=copy, from=/name, path=/description}]`) // []JsonPatchOperation | A list of campaign update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The fields that can be patched differ based on the status of the campaign. When the campaign is in the *STAGED* status, you can patch these fields: * name * description * recommendationsEnabled * deadline * emailNotificationEnabled * autoRevokeAllowed When the campaign is in the *ACTIVE* status, you can patch these fields: * deadline - var jsonPatchOperation v2025.[]JsonPatchOperation + var jsonPatchOperation []v2025.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -4741,7 +4753,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationCampaignsAPI.UpdateCampaign(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2025.CertificationCampaignsAPI.UpdateCampaign(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -4764,7 +4776,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4775,7 +4787,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationsAPI.GetCertificationTask(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.CertificationsAPI.GetCertificationTask(context.Background(), id).Execute() @@ -4798,7 +4810,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4809,7 +4821,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationsAPI.GetIdentityCertification(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.CertificationsAPI.GetIdentityCertification(context.Background(), id).Execute() @@ -4832,7 +4844,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4848,7 +4860,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationsAPI.GetIdentityCertificationItemPermissions(context.Background(), certificationId, itemId).Execute() //resp, r, err := apiClient.V2025.CertificationsAPI.GetIdentityCertificationItemPermissions(context.Background(), certificationId, itemId).Filters(filters).Limit(limit).Offset(offset).Count(count).Execute() @@ -4871,7 +4883,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4886,7 +4898,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationsAPI.GetPendingCertificationTasks(context.Background()).Execute() //resp, r, err := apiClient.V2025.CertificationsAPI.GetPendingCertificationTasks(context.Background()).ReviewerIdentity(reviewerIdentity).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() @@ -4909,7 +4921,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4925,7 +4937,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationsAPI.ListCertificationReviewers(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.CertificationsAPI.ListCertificationReviewers(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -4948,7 +4960,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4967,7 +4979,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationsAPI.ListIdentityAccessReviewItems(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.CertificationsAPI.ListIdentityAccessReviewItems(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Entitlements(entitlements).AccessProfiles(accessProfiles).Roles(roles).Execute() @@ -4990,7 +5002,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5006,7 +5018,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationsAPI.ListIdentityCertifications(context.Background()).Execute() //resp, r, err := apiClient.V2025.CertificationsAPI.ListIdentityCertifications(context.Background()).ReviewerIdentity(reviewerIdentity).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -5029,7 +5041,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5039,7 +5051,7 @@ reviewdecision := []byte(`[{id=ef38f94347e94562b5bb8424a56396b5, decision=APPROVE, bulk=true, comments=This user still needs access to this source.}, {id=ef38f94347e94562b5bb8424a56397d8, decision=APPROVE, bulk=true, comments=This user still needs access to this source too.}]`) // []ReviewDecision | A non-empty array of decisions to be made. - var reviewDecision v2025.[]ReviewDecision + var reviewDecision []v2025.ReviewDecision if err := json.Unmarshal(reviewdecision, &reviewDecision); err != nil { fmt.Println("Error:", err) return @@ -5047,7 +5059,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationsAPI.MakeIdentityDecision(context.Background(), id).ReviewDecision(reviewDecision).Execute() //resp, r, err := apiClient.V2025.CertificationsAPI.MakeIdentityDecision(context.Background(), id).ReviewDecision(reviewDecision).Execute() @@ -5070,7 +5082,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5098,7 +5110,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationsAPI.ReassignIdentityCertifications(context.Background(), id).ReviewReassign(reviewReassign).Execute() //resp, r, err := apiClient.V2025.CertificationsAPI.ReassignIdentityCertifications(context.Background(), id).ReviewReassign(reviewReassign).Execute() @@ -5121,7 +5133,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5132,7 +5144,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationsAPI.SignOffIdentityCertification(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.CertificationsAPI.SignOffIdentityCertification(context.Background(), id).Execute() @@ -5155,7 +5167,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5183,7 +5195,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationsAPI.SubmitReassignCertsAsync(context.Background(), id).ReviewReassign(reviewReassign).Execute() //resp, r, err := apiClient.V2025.CertificationsAPI.SubmitReassignCertsAsync(context.Background(), id).ReviewReassign(reviewReassign).Execute() @@ -5206,7 +5218,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5223,7 +5235,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationSummariesAPI.GetIdentityAccessSummaries(context.Background(), id, type_).Execute() //resp, r, err := apiClient.V2025.CertificationSummariesAPI.GetIdentityAccessSummaries(context.Background(), id, type_).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -5246,7 +5258,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5258,7 +5270,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationSummariesAPI.GetIdentityDecisionSummary(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.CertificationSummariesAPI.GetIdentityDecisionSummary(context.Background(), id).Filters(filters).Execute() @@ -5281,7 +5293,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5297,7 +5309,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationSummariesAPI.GetIdentitySummaries(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.CertificationSummariesAPI.GetIdentitySummaries(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -5320,7 +5332,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5332,7 +5344,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CertificationSummariesAPI.GetIdentitySummary(context.Background(), id, identitySummaryId).Execute() //resp, r, err := apiClient.V2025.CertificationSummariesAPI.GetIdentitySummary(context.Background(), id, identitySummaryId).Execute() @@ -5355,7 +5367,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5374,7 +5386,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConfigurationHubAPI.CreateDeploy(context.Background()).DeployRequest(deployRequest).Execute() //resp, r, err := apiClient.V2025.ConfigurationHubAPI.CreateDeploy(context.Background()).DeployRequest(deployRequest).Execute() @@ -5397,7 +5409,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5421,7 +5433,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConfigurationHubAPI.CreateObjectMapping(context.Background(), sourceOrg).ObjectMappingRequest(objectMappingRequest).Execute() //resp, r, err := apiClient.V2025.ConfigurationHubAPI.CreateObjectMapping(context.Background(), sourceOrg).ObjectMappingRequest(objectMappingRequest).Execute() @@ -5444,7 +5456,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5476,7 +5488,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConfigurationHubAPI.CreateObjectMappings(context.Background(), sourceOrg).ObjectMappingBulkCreateRequest(objectMappingBulkCreateRequest).Execute() //resp, r, err := apiClient.V2025.ConfigurationHubAPI.CreateObjectMappings(context.Background(), sourceOrg).ObjectMappingBulkCreateRequest(objectMappingBulkCreateRequest).Execute() @@ -5499,7 +5511,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5538,7 +5550,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConfigurationHubAPI.CreateScheduledAction(context.Background()).ScheduledActionPayload(scheduledActionPayload).Execute() //resp, r, err := apiClient.V2025.ConfigurationHubAPI.CreateScheduledAction(context.Background()).ScheduledActionPayload(scheduledActionPayload).Execute() @@ -5561,7 +5573,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5573,7 +5585,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConfigurationHubAPI.CreateUploadedConfiguration(context.Background()).Data(data).Name(name).Execute() //resp, r, err := apiClient.V2025.ConfigurationHubAPI.CreateUploadedConfiguration(context.Background()).Data(data).Name(name).Execute() @@ -5596,7 +5608,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5607,7 +5619,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.ConfigurationHubAPI.DeleteBackup(context.Background(), id).Execute() //r, err := apiClient.V2025.ConfigurationHubAPI.DeleteBackup(context.Background(), id).Execute() @@ -5628,7 +5640,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5639,7 +5651,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.ConfigurationHubAPI.DeleteDraft(context.Background(), id).Execute() //r, err := apiClient.V2025.ConfigurationHubAPI.DeleteDraft(context.Background(), id).Execute() @@ -5660,7 +5672,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5672,7 +5684,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.ConfigurationHubAPI.DeleteObjectMapping(context.Background(), sourceOrg, objectMappingId).Execute() //r, err := apiClient.V2025.ConfigurationHubAPI.DeleteObjectMapping(context.Background(), sourceOrg, objectMappingId).Execute() @@ -5693,7 +5705,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5704,7 +5716,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.ConfigurationHubAPI.DeleteScheduledAction(context.Background(), scheduledActionId).Execute() //r, err := apiClient.V2025.ConfigurationHubAPI.DeleteScheduledAction(context.Background(), scheduledActionId).Execute() @@ -5725,7 +5737,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5736,7 +5748,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.ConfigurationHubAPI.DeleteUploadedConfiguration(context.Background(), id).Execute() //r, err := apiClient.V2025.ConfigurationHubAPI.DeleteUploadedConfiguration(context.Background(), id).Execute() @@ -5757,7 +5769,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5768,7 +5780,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConfigurationHubAPI.GetDeploy(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.ConfigurationHubAPI.GetDeploy(context.Background(), id).Execute() @@ -5791,7 +5803,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5802,7 +5814,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConfigurationHubAPI.GetObjectMappings(context.Background(), sourceOrg).Execute() //resp, r, err := apiClient.V2025.ConfigurationHubAPI.GetObjectMappings(context.Background(), sourceOrg).Execute() @@ -5825,7 +5837,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5836,7 +5848,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConfigurationHubAPI.GetUploadedConfiguration(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.ConfigurationHubAPI.GetUploadedConfiguration(context.Background(), id).Execute() @@ -5859,7 +5871,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5870,7 +5882,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConfigurationHubAPI.ListBackups(context.Background()).Execute() //resp, r, err := apiClient.V2025.ConfigurationHubAPI.ListBackups(context.Background()).Filters(filters).Execute() @@ -5893,7 +5905,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5903,7 +5915,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConfigurationHubAPI.ListDeploys(context.Background()).Execute() //resp, r, err := apiClient.V2025.ConfigurationHubAPI.ListDeploys(context.Background()).Execute() @@ -5926,7 +5938,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5937,7 +5949,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConfigurationHubAPI.ListDrafts(context.Background()).Execute() //resp, r, err := apiClient.V2025.ConfigurationHubAPI.ListDrafts(context.Background()).Filters(filters).Execute() @@ -5960,7 +5972,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5970,7 +5982,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConfigurationHubAPI.ListScheduledActions(context.Background()).Execute() //resp, r, err := apiClient.V2025.ConfigurationHubAPI.ListScheduledActions(context.Background()).Execute() @@ -5993,7 +6005,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6004,7 +6016,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConfigurationHubAPI.ListUploadedConfigurations(context.Background()).Execute() //resp, r, err := apiClient.V2025.ConfigurationHubAPI.ListUploadedConfigurations(context.Background()).Filters(filters).Execute() @@ -6027,7 +6039,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6058,7 +6070,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConfigurationHubAPI.UpdateObjectMappings(context.Background(), sourceOrg).ObjectMappingBulkPatchRequest(objectMappingBulkPatchRequest).Execute() //resp, r, err := apiClient.V2025.ConfigurationHubAPI.UpdateObjectMappings(context.Background(), sourceOrg).ObjectMappingBulkPatchRequest(objectMappingBulkPatchRequest).Execute() @@ -6081,7 +6093,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6109,7 +6121,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConfigurationHubAPI.UpdateScheduledAction(context.Background(), scheduledActionId).JsonPatch(jsonPatch).Execute() //resp, r, err := apiClient.V2025.ConfigurationHubAPI.UpdateScheduledAction(context.Background(), scheduledActionId).JsonPatch(jsonPatch).Execute() @@ -6132,7 +6144,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6151,7 +6163,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorCustomizersAPI.CreateConnectorCustomizer(context.Background()).ConnectorCustomizerCreateRequest(connectorCustomizerCreateRequest).Execute() //resp, r, err := apiClient.V2025.ConnectorCustomizersAPI.CreateConnectorCustomizer(context.Background()).ConnectorCustomizerCreateRequest(connectorCustomizerCreateRequest).Execute() @@ -6174,7 +6186,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6185,7 +6197,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorCustomizersAPI.CreateConnectorCustomizerVersion(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.ConnectorCustomizersAPI.CreateConnectorCustomizerVersion(context.Background(), id).Execute() @@ -6208,7 +6220,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6219,7 +6231,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.ConnectorCustomizersAPI.DeleteConnectorCustomizer(context.Background(), id).Execute() //r, err := apiClient.V2025.ConnectorCustomizersAPI.DeleteConnectorCustomizer(context.Background(), id).Execute() @@ -6240,7 +6252,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6251,7 +6263,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorCustomizersAPI.GetConnectorCustomizer(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.ConnectorCustomizersAPI.GetConnectorCustomizer(context.Background(), id).Execute() @@ -6274,7 +6286,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6286,7 +6298,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorCustomizersAPI.ListConnectorCustomizers(context.Background()).Execute() //resp, r, err := apiClient.V2025.ConnectorCustomizersAPI.ListConnectorCustomizers(context.Background()).Offset(offset).Limit(limit).Execute() @@ -6309,7 +6321,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6323,7 +6335,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorCustomizersAPI.PutConnectorCustomizer(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.ConnectorCustomizersAPI.PutConnectorCustomizer(context.Background(), id).ConnectorCustomizerUpdateRequest(connectorCustomizerUpdateRequest).Execute() @@ -6346,7 +6358,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6388,7 +6400,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorRuleManagementAPI.CreateConnectorRule(context.Background()).ConnectorRuleCreateRequest(connectorRuleCreateRequest).Execute() //resp, r, err := apiClient.V2025.ConnectorRuleManagementAPI.CreateConnectorRule(context.Background()).ConnectorRuleCreateRequest(connectorRuleCreateRequest).Execute() @@ -6411,7 +6423,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6422,7 +6434,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.ConnectorRuleManagementAPI.DeleteConnectorRule(context.Background(), id).Execute() //r, err := apiClient.V2025.ConnectorRuleManagementAPI.DeleteConnectorRule(context.Background(), id).Execute() @@ -6443,7 +6455,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6454,7 +6466,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorRuleManagementAPI.GetConnectorRule(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.ConnectorRuleManagementAPI.GetConnectorRule(context.Background(), id).Execute() @@ -6477,7 +6489,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6490,7 +6502,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorRuleManagementAPI.GetConnectorRuleList(context.Background()).Execute() //resp, r, err := apiClient.V2025.ConnectorRuleManagementAPI.GetConnectorRuleList(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() @@ -6513,7 +6525,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6551,7 +6563,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorRuleManagementAPI.PutConnectorRule(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.ConnectorRuleManagementAPI.PutConnectorRule(context.Background(), id).ConnectorRuleUpdateRequest(connectorRuleUpdateRequest).Execute() @@ -6574,7 +6586,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6594,7 +6606,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorRuleManagementAPI.TestConnectorRule(context.Background()).SourceCode(sourceCode).Execute() //resp, r, err := apiClient.V2025.ConnectorRuleManagementAPI.TestConnectorRule(context.Background()).SourceCode(sourceCode).Execute() @@ -6617,7 +6629,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6640,7 +6652,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorsAPI.CreateCustomConnector(context.Background()).V3CreateConnectorDto(v3CreateConnectorDto).Execute() //resp, r, err := apiClient.V2025.ConnectorsAPI.CreateCustomConnector(context.Background()).V3CreateConnectorDto(v3CreateConnectorDto).Execute() @@ -6663,7 +6675,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6674,7 +6686,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.ConnectorsAPI.DeleteCustomConnector(context.Background(), scriptName).Execute() //r, err := apiClient.V2025.ConnectorsAPI.DeleteCustomConnector(context.Background(), scriptName).Execute() @@ -6695,7 +6707,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6707,7 +6719,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnector(context.Background(), scriptName).Execute() //resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnector(context.Background(), scriptName).Locale(locale).Execute() @@ -6730,7 +6742,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6741,7 +6753,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnectorCorrelationConfig(context.Background(), scriptName).Execute() //resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnectorCorrelationConfig(context.Background(), scriptName).Execute() @@ -6764,7 +6776,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6779,7 +6791,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnectorList(context.Background()).Execute() //resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnectorList(context.Background()).Filters(filters).Limit(limit).Offset(offset).Count(count).Locale(locale).Execute() @@ -6802,7 +6814,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6813,7 +6825,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnectorSourceConfig(context.Background(), scriptName).Execute() //resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnectorSourceConfig(context.Background(), scriptName).Execute() @@ -6836,7 +6848,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6847,7 +6859,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnectorSourceTemplate(context.Background(), scriptName).Execute() //resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnectorSourceTemplate(context.Background(), scriptName).Execute() @@ -6870,7 +6882,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6882,7 +6894,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnectorTranslations(context.Background(), scriptName, locale).Execute() //resp, r, err := apiClient.V2025.ConnectorsAPI.GetConnectorTranslations(context.Background(), scriptName, locale).Execute() @@ -6905,7 +6917,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6917,7 +6929,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorsAPI.PutConnectorCorrelationConfig(context.Background(), scriptName).File(file).Execute() //resp, r, err := apiClient.V2025.ConnectorsAPI.PutConnectorCorrelationConfig(context.Background(), scriptName).File(file).Execute() @@ -6940,7 +6952,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6952,7 +6964,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorsAPI.PutConnectorSourceConfig(context.Background(), scriptName).File(file).Execute() //resp, r, err := apiClient.V2025.ConnectorsAPI.PutConnectorSourceConfig(context.Background(), scriptName).File(file).Execute() @@ -6975,7 +6987,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6987,7 +6999,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorsAPI.PutConnectorSourceTemplate(context.Background(), scriptName).File(file).Execute() //resp, r, err := apiClient.V2025.ConnectorsAPI.PutConnectorSourceTemplate(context.Background(), scriptName).File(file).Execute() @@ -7010,7 +7022,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7022,7 +7034,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorsAPI.PutConnectorTranslations(context.Background(), scriptName, locale).Execute() //resp, r, err := apiClient.V2025.ConnectorsAPI.PutConnectorTranslations(context.Background(), scriptName, locale).Execute() @@ -7045,7 +7057,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7055,7 +7067,7 @@ jsonpatchoperation := []byte(``) // []JsonPatchOperation | A list of connector detail update operations - var jsonPatchOperation v2025.[]JsonPatchOperation + var jsonPatchOperation []v2025.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -7063,7 +7075,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ConnectorsAPI.UpdateConnector(context.Background(), scriptName).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2025.ConnectorsAPI.UpdateConnector(context.Background(), scriptName).JsonPatchOperation(jsonPatchOperation).Execute() @@ -7086,7 +7098,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7207,7 +7219,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.CreateFormDefinition(context.Background()).Execute() //resp, r, err := apiClient.V2025.CustomFormsAPI.CreateFormDefinition(context.Background()).Body(body).Execute() @@ -7230,7 +7242,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7249,7 +7261,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.CreateFormDefinitionDynamicSchema(context.Background()).Execute() //resp, r, err := apiClient.V2025.CustomFormsAPI.CreateFormDefinitionDynamicSchema(context.Background()).Body(body).Execute() @@ -7272,7 +7284,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7284,7 +7296,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.CreateFormDefinitionFileRequest(context.Background(), formDefinitionID).File(file).Execute() //resp, r, err := apiClient.V2025.CustomFormsAPI.CreateFormDefinitionFileRequest(context.Background(), formDefinitionID).File(file).Execute() @@ -7307,7 +7319,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7338,7 +7350,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.CreateFormInstance(context.Background()).Execute() //resp, r, err := apiClient.V2025.CustomFormsAPI.CreateFormInstance(context.Background()).Body(body).Execute() @@ -7361,7 +7373,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7372,7 +7384,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.DeleteFormDefinition(context.Background(), formDefinitionID).Execute() //resp, r, err := apiClient.V2025.CustomFormsAPI.DeleteFormDefinition(context.Background(), formDefinitionID).Execute() @@ -7395,7 +7407,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7409,7 +7421,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.ExportFormDefinitionsByTenant(context.Background()).Execute() //resp, r, err := apiClient.V2025.CustomFormsAPI.ExportFormDefinitionsByTenant(context.Background()).Offset(offset).Limit(limit).Filters(filters).Sorters(sorters).Execute() @@ -7432,7 +7444,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7444,7 +7456,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.GetFileFromS3(context.Background(), formDefinitionID, fileID).Execute() //resp, r, err := apiClient.V2025.CustomFormsAPI.GetFileFromS3(context.Background(), formDefinitionID, fileID).Execute() @@ -7467,7 +7479,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7478,7 +7490,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.GetFormDefinitionByKey(context.Background(), formDefinitionID).Execute() //resp, r, err := apiClient.V2025.CustomFormsAPI.GetFormDefinitionByKey(context.Background(), formDefinitionID).Execute() @@ -7501,7 +7513,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7512,7 +7524,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.GetFormInstanceByKey(context.Background(), formInstanceID).Execute() //resp, r, err := apiClient.V2025.CustomFormsAPI.GetFormInstanceByKey(context.Background(), formInstanceID).Execute() @@ -7535,7 +7547,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7547,7 +7559,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.GetFormInstanceFile(context.Background(), formInstanceID, fileID).Execute() //resp, r, err := apiClient.V2025.CustomFormsAPI.GetFormInstanceFile(context.Background(), formInstanceID, fileID).Execute() @@ -7570,7 +7582,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7581,7 +7593,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.ImportFormDefinitions(context.Background()).Execute() //resp, r, err := apiClient.V2025.CustomFormsAPI.ImportFormDefinitions(context.Background()).Body(body).Execute() @@ -7604,7 +7616,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7616,7 +7628,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.PatchFormDefinition(context.Background(), formDefinitionID).Execute() //resp, r, err := apiClient.V2025.CustomFormsAPI.PatchFormDefinition(context.Background(), formDefinitionID).Body(body).Execute() @@ -7639,7 +7651,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7651,7 +7663,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.PatchFormInstance(context.Background(), formInstanceID).Execute() //resp, r, err := apiClient.V2025.CustomFormsAPI.PatchFormInstance(context.Background(), formInstanceID).Body(body).Execute() @@ -7674,7 +7686,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7688,7 +7700,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.SearchFormDefinitionsByTenant(context.Background()).Execute() //resp, r, err := apiClient.V2025.CustomFormsAPI.SearchFormDefinitionsByTenant(context.Background()).Offset(offset).Limit(limit).Filters(filters).Sorters(sorters).Execute() @@ -7711,7 +7723,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7726,7 +7738,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.SearchFormElementDataByElementID(context.Background(), formInstanceID, formElementID).Execute() //resp, r, err := apiClient.V2025.CustomFormsAPI.SearchFormElementDataByElementID(context.Background(), formInstanceID, formElementID).Limit(limit).Filters(filters).Query(query).Execute() @@ -7749,7 +7761,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7759,7 +7771,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.SearchFormInstancesByTenant(context.Background()).Execute() //resp, r, err := apiClient.V2025.CustomFormsAPI.SearchFormInstancesByTenant(context.Background()).Execute() @@ -7782,7 +7794,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7792,7 +7804,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.SearchPreDefinedSelectOptions(context.Background()).Execute() //resp, r, err := apiClient.V2025.CustomFormsAPI.SearchPreDefinedSelectOptions(context.Background()).Execute() @@ -7815,7 +7827,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7840,7 +7852,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomFormsAPI.ShowPreviewDataSource(context.Background(), formDefinitionID).Execute() //resp, r, err := apiClient.V2025.CustomFormsAPI.ShowPreviewDataSource(context.Background(), formDefinitionID).Limit(limit).Filters(filters).Query(query).FormElementPreviewRequest(formElementPreviewRequest).Execute() @@ -7863,7 +7875,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7885,7 +7897,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomPasswordInstructionsAPI.CreateCustomPasswordInstructions(context.Background()).XSailPointExperimental(xSailPointExperimental).CustomPasswordInstruction(customPasswordInstruction).Execute() //resp, r, err := apiClient.V2025.CustomPasswordInstructionsAPI.CreateCustomPasswordInstructions(context.Background()).XSailPointExperimental(xSailPointExperimental).CustomPasswordInstruction(customPasswordInstruction).Execute() @@ -7908,7 +7920,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7921,7 +7933,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.CustomPasswordInstructionsAPI.DeleteCustomPasswordInstructions(context.Background(), pageId).XSailPointExperimental(xSailPointExperimental).Execute() //r, err := apiClient.V2025.CustomPasswordInstructionsAPI.DeleteCustomPasswordInstructions(context.Background(), pageId).XSailPointExperimental(xSailPointExperimental).Locale(locale).Execute() @@ -7942,7 +7954,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7955,7 +7967,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.CustomPasswordInstructionsAPI.GetCustomPasswordInstructions(context.Background(), pageId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.CustomPasswordInstructionsAPI.GetCustomPasswordInstructions(context.Background(), pageId).XSailPointExperimental(xSailPointExperimental).Locale(locale).Execute() @@ -7978,7 +7990,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7995,7 +8007,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.DataSegmentationAPI.CreateDataSegment(context.Background()).DataSegment(dataSegment).Execute() //resp, r, err := apiClient.V2025.DataSegmentationAPI.CreateDataSegment(context.Background()).DataSegment(dataSegment).Execute() @@ -8018,7 +8030,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8031,7 +8043,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.DataSegmentationAPI.DeleteDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //r, err := apiClient.V2025.DataSegmentationAPI.DeleteDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Published(published).Execute() @@ -8052,7 +8064,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8064,7 +8076,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.DataSegmentationAPI.GetDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.DataSegmentationAPI.GetDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -8087,7 +8099,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8099,7 +8111,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.DataSegmentationAPI.GetDataSegmentIdentityMembership(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.DataSegmentationAPI.GetDataSegmentIdentityMembership(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -8122,7 +8134,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8134,7 +8146,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.DataSegmentationAPI.GetDataSegmentationEnabledForUser(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.DataSegmentationAPI.GetDataSegmentationEnabledForUser(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -8157,7 +8169,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8175,7 +8187,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.DataSegmentationAPI.ListDataSegments(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.DataSegmentationAPI.ListDataSegments(context.Background()).XSailPointExperimental(xSailPointExperimental).Enabled(enabled).Unique(unique).Published(published).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() @@ -8198,7 +8210,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8209,7 +8221,7 @@ requestbody := []byte(`[{op=replace, path=/memberFilter, value={expression={operator=AND, children=[{operator=EQUALS, attribute=location, value={type=STRING, value=Philadelphia}}, {operator=EQUALS, attribute=department, value={type=STRING, value=HR}}]}}}]`) // []map[string]interface{} | A list of segment update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * membership * memberFilter * memberSelection * scopes * enabled - var requestBody v2025.[]RequestBody + var requestBody []v2025.RequestBody if err := json.Unmarshal(requestbody, &requestBody); err != nil { fmt.Println("Error:", err) return @@ -8217,7 +8229,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.DataSegmentationAPI.PatchDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() //resp, r, err := apiClient.V2025.DataSegmentationAPI.PatchDataSegment(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() @@ -8240,7 +8252,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8251,7 +8263,7 @@ publishAll := true // bool | This flag decides whether you want to publish all unpublished or a list of specific segment ids (optional) (default to true) # bool | This flag decides whether you want to publish all unpublished or a list of specific segment ids (optional) (default to true) - var requestBody v2025.[]RequestBody + var requestBody []v2025.RequestBody if err := json.Unmarshal(requestbody, &requestBody); err != nil { fmt.Println("Error:", err) return @@ -8259,7 +8271,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.DataSegmentationAPI.PublishDataSegment(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() //r, err := apiClient.V2025.DataSegmentationAPI.PublishDataSegment(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).PublishAll(publishAll).Execute() @@ -8280,7 +8292,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8384,7 +8396,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.DimensionsAPI.CreateDimension(context.Background(), roleId).Dimension(dimension).Execute() //resp, r, err := apiClient.V2025.DimensionsAPI.CreateDimension(context.Background(), roleId).Dimension(dimension).Execute() @@ -8407,7 +8419,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8427,7 +8439,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.DimensionsAPI.DeleteBulkDimensions(context.Background(), roleId).DimensionBulkDeleteRequest(dimensionBulkDeleteRequest).Execute() //resp, r, err := apiClient.V2025.DimensionsAPI.DeleteBulkDimensions(context.Background(), roleId).DimensionBulkDeleteRequest(dimensionBulkDeleteRequest).Execute() @@ -8450,7 +8462,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8462,7 +8474,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.DimensionsAPI.DeleteDimension(context.Background(), roleId, dimensionId).Execute() //r, err := apiClient.V2025.DimensionsAPI.DeleteDimension(context.Background(), roleId, dimensionId).Execute() @@ -8483,7 +8495,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8495,7 +8507,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.DimensionsAPI.GetDimension(context.Background(), roleId, dimensionId).Execute() //resp, r, err := apiClient.V2025.DimensionsAPI.GetDimension(context.Background(), roleId, dimensionId).Execute() @@ -8518,7 +8530,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8535,7 +8547,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.DimensionsAPI.GetDimensionEntitlements(context.Background(), roleId, dimensionId).Execute() //resp, r, err := apiClient.V2025.DimensionsAPI.GetDimensionEntitlements(context.Background(), roleId, dimensionId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -8558,7 +8570,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8575,7 +8587,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.DimensionsAPI.ListDimensionAccessProfiles(context.Background(), roleId, dimensionId).Execute() //resp, r, err := apiClient.V2025.DimensionsAPI.ListDimensionAccessProfiles(context.Background(), roleId, dimensionId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -8598,7 +8610,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8615,7 +8627,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.DimensionsAPI.ListDimensions(context.Background(), roleId).Execute() //resp, r, err := apiClient.V2025.DimensionsAPI.ListDimensions(context.Background(), roleId).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -8638,7 +8650,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8649,7 +8661,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/description, value=Test Description}, {op=replace, path=/name, value=new name}]`) // []JsonPatchOperation | - var jsonPatchOperation v2025.[]JsonPatchOperation + var jsonPatchOperation []v2025.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -8657,7 +8669,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.DimensionsAPI.PatchDimension(context.Background(), roleId, dimensionId).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2025.DimensionsAPI.PatchDimension(context.Background(), roleId, dimensionId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -8680,7 +8692,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8694,7 +8706,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.EntitlementsAPI.CreateAccessModelMetadataForEntitlement(context.Background(), id, attributeKey, attributeValue).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.EntitlementsAPI.CreateAccessModelMetadataForEntitlement(context.Background(), id, attributeKey, attributeValue).XSailPointExperimental(xSailPointExperimental).Execute() @@ -8717,7 +8729,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8731,7 +8743,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.EntitlementsAPI.DeleteAccessModelMetadataFromEntitlement(context.Background(), id, attributeKey, attributeValue).XSailPointExperimental(xSailPointExperimental).Execute() //r, err := apiClient.V2025.EntitlementsAPI.DeleteAccessModelMetadataFromEntitlement(context.Background(), id, attributeKey, attributeValue).XSailPointExperimental(xSailPointExperimental).Execute() @@ -8752,7 +8764,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8764,7 +8776,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.EntitlementsAPI.GetEntitlement(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.EntitlementsAPI.GetEntitlement(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -8787,7 +8799,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8799,7 +8811,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.EntitlementsAPI.GetEntitlementRequestConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.EntitlementsAPI.GetEntitlementRequestConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -8822,7 +8834,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8835,7 +8847,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.EntitlementsAPI.ImportEntitlementsBySource(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.EntitlementsAPI.ImportEntitlementsBySource(context.Background(), id).XSailPointExperimental(xSailPointExperimental).CsvFile(csvFile).Execute() @@ -8858,7 +8870,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8875,7 +8887,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.EntitlementsAPI.ListEntitlementChildren(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.EntitlementsAPI.ListEntitlementChildren(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() @@ -8898,7 +8910,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8915,7 +8927,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.EntitlementsAPI.ListEntitlementParents(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.EntitlementsAPI.ListEntitlementParents(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() @@ -8938,7 +8950,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8958,7 +8970,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.EntitlementsAPI.ListEntitlements(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.EntitlementsAPI.ListEntitlements(context.Background()).XSailPointExperimental(xSailPointExperimental).AccountId(accountId).SegmentedForIdentity(segmentedForIdentity).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Filters(filters).Execute() @@ -8981,7 +8993,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8994,7 +9006,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.EntitlementsAPI.PatchEntitlement(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.EntitlementsAPI.PatchEntitlement(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() @@ -9017,7 +9029,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9035,7 +9047,17 @@ "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", "approverType" : "GOVERNANCE_GROUP" } ], + "reauthorizationRequired" : false, "requestCommentRequired" : true + }, + "revocationRequestConfig" : { + "approvalSchemes" : [ { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + }, { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + } ] } }`) // EntitlementRequestConfig | @@ -9048,7 +9070,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.EntitlementsAPI.PutEntitlementRequestConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).EntitlementRequestConfig(entitlementRequestConfig).Execute() //resp, r, err := apiClient.V2025.EntitlementsAPI.PutEntitlementRequestConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).EntitlementRequestConfig(entitlementRequestConfig).Execute() @@ -9071,7 +9093,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9083,7 +9105,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.EntitlementsAPI.ResetSourceEntitlements(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.EntitlementsAPI.ResetSourceEntitlements(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9106,7 +9128,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9135,7 +9157,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.EntitlementsAPI.UpdateEntitlementsInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).EntitlementBulkUpdateRequest(entitlementBulkUpdateRequest).Execute() //r, err := apiClient.V2025.EntitlementsAPI.UpdateEntitlementsInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).EntitlementBulkUpdateRequest(entitlementBulkUpdateRequest).Execute() @@ -9156,7 +9178,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9177,7 +9199,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.CreateAuthOrgNetworkConfig(context.Background()).NetworkConfiguration(networkConfiguration).Execute() //resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.CreateAuthOrgNetworkConfig(context.Background()).NetworkConfiguration(networkConfiguration).Execute() @@ -9200,7 +9222,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9210,7 +9232,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.GetAuthOrgLockoutConfig(context.Background()).Execute() //resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.GetAuthOrgLockoutConfig(context.Background()).Execute() @@ -9233,7 +9255,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9243,7 +9265,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.GetAuthOrgNetworkConfig(context.Background()).Execute() //resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.GetAuthOrgNetworkConfig(context.Background()).Execute() @@ -9266,7 +9288,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9276,7 +9298,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.GetAuthOrgServiceProviderConfig(context.Background()).Execute() //resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.GetAuthOrgServiceProviderConfig(context.Background()).Execute() @@ -9299,7 +9321,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9309,7 +9331,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.GetAuthOrgSessionConfig(context.Background()).Execute() //resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.GetAuthOrgSessionConfig(context.Background()).Execute() @@ -9332,7 +9354,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9341,7 +9363,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/maximumAttempts, value=7,}, {op=add, path=/lockoutDuration, value=35}]`) // []JsonPatchOperation | A list of auth org lockout configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Ensures that the patched Lockout Config conforms to certain logical guidelines, which are: `1. maximumAttempts >= 1 && maximumAttempts <= 15 2. lockoutDuration >= 5 && lockoutDuration <= 60 3. lockoutWindow >= 5 && lockoutDuration <= 60` - var jsonPatchOperation v2025.[]JsonPatchOperation + var jsonPatchOperation []v2025.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -9349,7 +9371,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() @@ -9372,7 +9394,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9381,7 +9403,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/whitelisted, value=false,}, {op=add, path=/geolocation, value=[AF, HN, ES]}]`) // []JsonPatchOperation | A list of auth org network configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Ensures that the patched Network Config conforms to certain logical guidelines, which are: 1. Each string element in the range array must be a valid ip address or ip subnet mask. 2. Each string element in the geolocation array must be 2 characters, and they can only be uppercase letters. - var jsonPatchOperation v2025.[]JsonPatchOperation + var jsonPatchOperation []v2025.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -9389,7 +9411,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() @@ -9412,7 +9434,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9421,7 +9443,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/enabled, value=true,}, {op=add, path=/federationProtocolDetails/0/jitConfiguration, value={enabled=true, sourceId=2c9180857377ed2901739c12a2da5ac8, sourceAttributeMappings={firstName=okta.firstName, lastName=okta.lastName, email=okta.email, employeeNumber=okta.employeeNumber}}}]`) // []JsonPatchOperation | A list of auth org service provider configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Note: /federationProtocolDetails/0 is IdpDetails /federationProtocolDetails/1 is SpDetails Ensures that the patched ServiceProviderConfig conforms to certain logical guidelines, which are: 1. Do not add or remove any elements in the federation protocol details in the service provider configuration. 2. Do not modify, add, or delete the service provider details element in the federation protocol details. 3. If this is the first time the patched ServiceProviderConfig enables Remote IDP sign-in, it must also include IDPDetails. 4. If the patch enables Remote IDP sign in, the entityID in the IDPDetails cannot be null. IDPDetails must include an entityID. 5. Any JIT configuration update must be valid. Just in time configuration update must be valid when enabled. This includes: - A Source ID - Source attribute mappings - Source attribute maps have all the required key values (firstName, lastName, email) - var jsonPatchOperation v2025.[]JsonPatchOperation + var jsonPatchOperation []v2025.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -9429,7 +9451,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() @@ -9452,7 +9474,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9461,7 +9483,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/rememberMe, value=true,}, {op=add, path=/maxSessionTime, value=480}]`) // []JsonPatchOperation | A list of auth org session configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Ensures that the patched Session Config conforms to certain logical guidelines, which are: `1. maxSessionTime >= 1 && maxSessionTime <= 10080 (1 week) 2. maxIdleTime >= 1 && maxIdleTime <= 1440 (1 day) 3. maxSessionTime must have a greater duration than maxIdleTime.` - var jsonPatchOperation v2025.[]JsonPatchOperation + var jsonPatchOperation []v2025.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -9469,7 +9491,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2025.GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() @@ -9492,7 +9514,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9525,7 +9547,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GovernanceGroupsAPI.CreateWorkgroup(context.Background()).XSailPointExperimental(xSailPointExperimental).WorkgroupDto(workgroupDto).Execute() //resp, r, err := apiClient.V2025.GovernanceGroupsAPI.CreateWorkgroup(context.Background()).XSailPointExperimental(xSailPointExperimental).WorkgroupDto(workgroupDto).Execute() @@ -9548,7 +9570,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9560,7 +9582,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.GovernanceGroupsAPI.DeleteWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //r, err := apiClient.V2025.GovernanceGroupsAPI.DeleteWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9581,7 +9603,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9592,7 +9614,7 @@ identitypreviewresponseidentity := []byte(``) // []IdentityPreviewResponseIdentity | List of identities to be removed from a Governance Group members list. - var identityPreviewResponseIdentity v2025.[]IdentityPreviewResponseIdentity + var identityPreviewResponseIdentity []v2025.IdentityPreviewResponseIdentity if err := json.Unmarshal(identitypreviewresponseidentity, &identityPreviewResponseIdentity); err != nil { fmt.Println("Error:", err) return @@ -9600,7 +9622,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GovernanceGroupsAPI.DeleteWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).IdentityPreviewResponseIdentity(identityPreviewResponseIdentity).Execute() //resp, r, err := apiClient.V2025.GovernanceGroupsAPI.DeleteWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).IdentityPreviewResponseIdentity(identityPreviewResponseIdentity).Execute() @@ -9623,7 +9645,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9643,7 +9665,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GovernanceGroupsAPI.DeleteWorkgroupsInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).WorkgroupBulkDeleteRequest(workgroupBulkDeleteRequest).Execute() //resp, r, err := apiClient.V2025.GovernanceGroupsAPI.DeleteWorkgroupsInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).WorkgroupBulkDeleteRequest(workgroupBulkDeleteRequest).Execute() @@ -9666,7 +9688,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9678,7 +9700,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GovernanceGroupsAPI.GetWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.GovernanceGroupsAPI.GetWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -9701,7 +9723,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9717,7 +9739,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GovernanceGroupsAPI.ListConnections(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.GovernanceGroupsAPI.ListConnections(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Execute() @@ -9740,7 +9762,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9756,7 +9778,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GovernanceGroupsAPI.ListWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.GovernanceGroupsAPI.ListWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Execute() @@ -9779,7 +9801,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9795,7 +9817,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GovernanceGroupsAPI.ListWorkgroups(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.GovernanceGroupsAPI.ListWorkgroups(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -9818,7 +9840,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9831,7 +9853,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GovernanceGroupsAPI.PatchWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.GovernanceGroupsAPI.PatchWorkgroup(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() @@ -9854,7 +9876,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9865,7 +9887,7 @@ identitypreviewresponseidentity := []byte(``) // []IdentityPreviewResponseIdentity | List of identities to be added to a Governance Group members list. - var identityPreviewResponseIdentity v2025.[]IdentityPreviewResponseIdentity + var identityPreviewResponseIdentity []v2025.IdentityPreviewResponseIdentity if err := json.Unmarshal(identitypreviewresponseidentity, &identityPreviewResponseIdentity); err != nil { fmt.Println("Error:", err) return @@ -9873,7 +9895,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.GovernanceGroupsAPI.UpdateWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).IdentityPreviewResponseIdentity(identityPreviewResponseIdentity).Execute() //resp, r, err := apiClient.V2025.GovernanceGroupsAPI.UpdateWorkgroupMembers(context.Background(), workgroupId).XSailPointExperimental(xSailPointExperimental).IdentityPreviewResponseIdentity(identityPreviewResponseIdentity).Execute() @@ -9896,7 +9918,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9920,7 +9942,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsIgnoredItem(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() //resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsIgnoredItem(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() @@ -9943,7 +9965,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9967,7 +9989,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsRequestedItem(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() //resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsRequestedItem(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() @@ -9990,7 +10012,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10014,7 +10036,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItem(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() //resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItem(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() @@ -10037,7 +10059,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10047,7 +10069,7 @@ accessrequestrecommendationactionitemdto := []byte(``) // []AccessRequestRecommendationActionItemDto | The recommended access items that were viewed for an identity. - var accessRequestRecommendationActionItemDto v2025.[]AccessRequestRecommendationActionItemDto + var accessRequestRecommendationActionItemDto []v2025.AccessRequestRecommendationActionItemDto if err := json.Unmarshal(accessrequestrecommendationactionitemdto, &accessRequestRecommendationActionItemDto); err != nil { fmt.Println("Error:", err) return @@ -10055,7 +10077,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() //resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.AddAccessRequestRecommendationsViewedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationActionItemDto(accessRequestRecommendationActionItemDto).Execute() @@ -10078,7 +10100,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10096,7 +10118,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendations(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendations(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityId(identityId).Limit(limit).Offset(offset).Count(count).IncludeTranslationMessages(includeTranslationMessages).Filters(filters).Sorters(sorters).Execute() @@ -10119,7 +10141,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10130,7 +10152,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10153,7 +10175,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10169,7 +10191,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsIgnoredItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsIgnoredItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -10192,7 +10214,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10208,7 +10230,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsRequestedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsRequestedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -10231,7 +10253,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10247,7 +10269,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsViewedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.GetAccessRequestRecommendationsViewedItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -10270,7 +10292,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10295,7 +10317,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.SetAccessRequestRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationConfigDto(accessRequestRecommendationConfigDto).Execute() //resp, r, err := apiClient.V2025.IAIAccessRequestRecommendationsAPI.SetAccessRequestRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).AccessRequestRecommendationConfigDto(accessRequestRecommendationConfigDto).Execute() @@ -10318,7 +10340,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10346,7 +10368,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAICommonAccessAPI.CreateCommonAccess(context.Background()).XSailPointExperimental(xSailPointExperimental).CommonAccessItemRequest(commonAccessItemRequest).Execute() //resp, r, err := apiClient.V2025.IAICommonAccessAPI.CreateCommonAccess(context.Background()).XSailPointExperimental(xSailPointExperimental).CommonAccessItemRequest(commonAccessItemRequest).Execute() @@ -10369,7 +10391,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10385,7 +10407,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAICommonAccessAPI.GetCommonAccess(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IAICommonAccessAPI.GetCommonAccess(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -10408,7 +10430,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10418,7 +10440,7 @@ commonaccessidstatus := []byte(``) // []CommonAccessIDStatus | Confirm or deny in bulk the common access ids that are (or aren't) common access - var commonAccessIDStatus v2025.[]CommonAccessIDStatus + var commonAccessIDStatus []v2025.CommonAccessIDStatus if err := json.Unmarshal(commonaccessidstatus, &commonAccessIDStatus); err != nil { fmt.Println("Error:", err) return @@ -10426,7 +10448,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAICommonAccessAPI.UpdateCommonAccessStatusInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).CommonAccessIDStatus(commonAccessIDStatus).Execute() //resp, r, err := apiClient.V2025.IAICommonAccessAPI.UpdateCommonAccessStatusInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).CommonAccessIDStatus(commonAccessIDStatus).Execute() @@ -10449,7 +10471,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10461,7 +10483,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIOutliersAPI.ExportOutliersZip(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IAIOutliersAPI.ExportOutliersZip(context.Background()).XSailPointExperimental(xSailPointExperimental).Type_(type_).Execute() @@ -10484,7 +10506,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10500,7 +10522,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIOutliersAPI.GetIdentityOutlierSnapshots(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IAIOutliersAPI.GetIdentityOutlierSnapshots(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Type_(type_).Filters(filters).Sorters(sorters).Execute() @@ -10523,7 +10545,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10540,7 +10562,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIOutliersAPI.GetIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IAIOutliersAPI.GetIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Type_(type_).Filters(filters).Sorters(sorters).Execute() @@ -10563,7 +10585,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10575,7 +10597,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIOutliersAPI.GetLatestIdentityOutlierSnapshots(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IAIOutliersAPI.GetLatestIdentityOutlierSnapshots(context.Background()).XSailPointExperimental(xSailPointExperimental).Type_(type_).Execute() @@ -10598,7 +10620,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10610,7 +10632,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIOutliersAPI.GetOutlierContributingFeatureSummary(context.Background(), outlierFeatureId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IAIOutliersAPI.GetOutlierContributingFeatureSummary(context.Background(), outlierFeatureId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10633,7 +10655,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10650,7 +10672,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIOutliersAPI.GetPeerGroupOutliersContributingFeatures(context.Background(), outlierId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IAIOutliersAPI.GetPeerGroupOutliersContributingFeatures(context.Background(), outlierId).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).IncludeTranslationMessages(includeTranslationMessages).Sorters(sorters).Execute() @@ -10673,7 +10695,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10683,7 +10705,7 @@ requestbody := []byte(``) // []string | - var requestBody v2025.[]RequestBody + var requestBody []v2025.RequestBody if err := json.Unmarshal(requestbody, &requestBody); err != nil { fmt.Println("Error:", err) return @@ -10691,7 +10713,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.IAIOutliersAPI.IgnoreIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() //r, err := apiClient.V2025.IAIOutliersAPI.IgnoreIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() @@ -10712,7 +10734,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10730,7 +10752,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIOutliersAPI.ListOutliersContributingFeatureAccessItems(context.Background(), outlierId, contributingFeatureName).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IAIOutliersAPI.ListOutliersContributingFeatureAccessItems(context.Background(), outlierId, contributingFeatureName).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).AccessType(accessType).Sorters(sorters).Execute() @@ -10753,7 +10775,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10763,7 +10785,7 @@ requestbody := []byte(``) // []string | - var requestBody v2025.[]RequestBody + var requestBody []v2025.RequestBody if err := json.Unmarshal(requestbody, &requestBody); err != nil { fmt.Println("Error:", err) return @@ -10771,7 +10793,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.IAIOutliersAPI.UnIgnoreIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() //r, err := apiClient.V2025.IAIOutliersAPI.UnIgnoreIdentityOutliers(context.Background()).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() @@ -10792,7 +10814,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10807,7 +10829,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIPeerGroupStrategiesAPI.GetPeerGroupOutliers(context.Background(), strategy).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IAIPeerGroupStrategiesAPI.GetPeerGroupOutliers(context.Background(), strategy).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Execute() @@ -10830,7 +10852,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10866,7 +10888,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRecommendationsAPI.GetRecommendations(context.Background()).XSailPointExperimental(xSailPointExperimental).RecommendationRequestDto(recommendationRequestDto).Execute() //resp, r, err := apiClient.V2025.IAIRecommendationsAPI.GetRecommendations(context.Background()).XSailPointExperimental(xSailPointExperimental).RecommendationRequestDto(recommendationRequestDto).Execute() @@ -10889,7 +10911,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10900,7 +10922,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRecommendationsAPI.GetRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IAIRecommendationsAPI.GetRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -10923,7 +10945,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10946,7 +10968,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRecommendationsAPI.UpdateRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).RecommendationConfigDto(recommendationConfigDto).Execute() //resp, r, err := apiClient.V2025.IAIRecommendationsAPI.UpdateRecommendationsConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).RecommendationConfigDto(recommendationConfigDto).Execute() @@ -10969,7 +10991,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10991,7 +11013,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.CreatePotentialRoleProvisionRequest(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.CreatePotentialRoleProvisionRequest(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).MinEntitlementPopularity(minEntitlementPopularity).IncludeCommonAccess(includeCommonAccess).RoleMiningPotentialRoleProvisionRequest(roleMiningPotentialRoleProvisionRequest).Execute() @@ -11014,7 +11036,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11063,7 +11085,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.CreateRoleMiningSessions(context.Background()).XSailPointExperimental(xSailPointExperimental).RoleMiningSessionDto(roleMiningSessionDto).Execute() //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.CreateRoleMiningSessions(context.Background()).XSailPointExperimental(xSailPointExperimental).RoleMiningSessionDto(roleMiningSessionDto).Execute() @@ -11086,7 +11108,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11100,7 +11122,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.DownloadRoleMiningPotentialRoleZip(context.Background(), sessionId, potentialRoleId, exportId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.DownloadRoleMiningPotentialRoleZip(context.Background(), sessionId, potentialRoleId, exportId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -11123,7 +11145,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11136,7 +11158,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.ExportRoleMiningPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.ExportRoleMiningPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -11159,7 +11181,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11176,7 +11198,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleAsync(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleAsync(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).RoleMiningPotentialRoleExportRequest(roleMiningPotentialRoleExportRequest).Execute() @@ -11199,7 +11221,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11213,7 +11235,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleStatus(context.Background(), sessionId, potentialRoleId, exportId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.ExportRoleMiningPotentialRoleStatus(context.Background(), sessionId, potentialRoleId, exportId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -11236,7 +11258,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11252,7 +11274,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetAllPotentialRoleSummaries(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetAllPotentialRoleSummaries(context.Background()).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() @@ -11275,7 +11297,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11289,7 +11311,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetEntitlementDistributionPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetEntitlementDistributionPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).IncludeCommonAccess(includeCommonAccess).Execute() @@ -11312,7 +11334,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11331,7 +11353,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).IncludeCommonAccess(includeCommonAccess).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() @@ -11354,7 +11376,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11372,7 +11394,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetExcludedEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetExcludedEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() @@ -11395,7 +11417,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11413,7 +11435,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetIdentitiesPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetIdentitiesPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() @@ -11436,7 +11458,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11449,7 +11471,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -11472,7 +11494,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11489,7 +11511,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetPotentialRoleApplications(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetPotentialRoleApplications(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() @@ -11512,7 +11534,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11529,7 +11551,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetPotentialRoleEntitlements(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetPotentialRoleEntitlements(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() @@ -11552,7 +11574,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11569,7 +11591,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetPotentialRoleSourceIdentityUsage(context.Background(), potentialRoleId, sourceId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetPotentialRoleSourceIdentityUsage(context.Background(), potentialRoleId, sourceId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Offset(offset).Limit(limit).Count(count).Execute() @@ -11592,7 +11614,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11609,7 +11631,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetPotentialRoleSummaries(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetPotentialRoleSummaries(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Offset(offset).Limit(limit).Count(count).Execute() @@ -11632,7 +11654,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11644,7 +11666,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetRoleMiningPotentialRole(context.Background(), potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetRoleMiningPotentialRole(context.Background(), potentialRoleId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -11667,7 +11689,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11679,7 +11701,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetRoleMiningSession(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetRoleMiningSession(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -11702,7 +11724,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11714,7 +11736,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetRoleMiningSessionStatus(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetRoleMiningSessionStatus(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -11737,7 +11759,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11753,7 +11775,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetRoleMiningSessions(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetRoleMiningSessions(context.Background()).XSailPointExperimental(xSailPointExperimental).Filters(filters).Sorters(sorters).Offset(offset).Limit(limit).Count(count).Execute() @@ -11776,7 +11798,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11791,7 +11813,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetSavedPotentialRoles(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.GetSavedPotentialRoles(context.Background()).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Offset(offset).Limit(limit).Count(count).Execute() @@ -11814,7 +11836,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11826,7 +11848,7 @@ patchpotentialrolerequestinner := []byte(`[{op=remove, path=/description}, {op=replace, path=/description, value=Acct I - Potential Role}, {op=remove, path=/saved}, {op=replace, path=/saved, value=false}, {op=remove, path=/name}, {op=replace, path=/name, value=Potential Role Accounting}]`) // []PatchPotentialRoleRequestInner | - var patchPotentialRoleRequestInner v2025.[]PatchPotentialRoleRequestInner + var patchPotentialRoleRequestInner []v2025.PatchPotentialRoleRequestInner if err := json.Unmarshal(patchpotentialrolerequestinner, &patchPotentialRoleRequestInner); err != nil { fmt.Println("Error:", err) return @@ -11834,7 +11856,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.PatchPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.PatchPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() @@ -11857,7 +11879,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11869,7 +11891,7 @@ patchpotentialrolerequestinner := []byte(`[{op=remove, path=/description}, {op=replace, path=/description, value=Acct I - Potential Role}, {op=remove, path=/saved}, {op=replace, path=/saved, value=false}, {op=remove, path=/name}, {op=replace, path=/name, value=Potential Role Accounting}]`) // []PatchPotentialRoleRequestInner | - var patchPotentialRoleRequestInner v2025.[]PatchPotentialRoleRequestInner + var patchPotentialRoleRequestInner []v2025.PatchPotentialRoleRequestInner if err := json.Unmarshal(patchpotentialrolerequestinner, &patchPotentialRoleRequestInner); err != nil { fmt.Println("Error:", err) return @@ -11877,7 +11899,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.PatchPotentialRole_0(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.PatchPotentialRole_0(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).PatchPotentialRoleRequestInner(patchPotentialRoleRequestInner).Execute() @@ -11900,7 +11922,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11911,7 +11933,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/pruneThreshold, value=83}, {op=replace, path=/minNumIdentitiesInPotentialRole, value=10}, {op=replace, path=/saved, value=false}, {op=replace, path=/name, value=RM Session - 07/10/22}, {op=add, path=/name, value=RM Session - 07/10/22}]`) // []JsonPatchOperation | Replace pruneThreshold and/or minNumIdentitiesInPotentialRole in role mining session. Update saved status or saved name for a role mining session. - var jsonPatchOperation v2025.[]JsonPatchOperation + var jsonPatchOperation []v2025.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -11919,7 +11941,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.PatchRoleMiningSession(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.PatchRoleMiningSession(context.Background(), sessionId).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() @@ -11942,7 +11964,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11965,7 +11987,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IAIRoleMiningAPI.UpdateEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).RoleMiningPotentialRoleEditEntitlements(roleMiningPotentialRoleEditEntitlements).Execute() //resp, r, err := apiClient.V2025.IAIRoleMiningAPI.UpdateEntitlementsPotentialRole(context.Background(), sessionId, potentialRoleId).XSailPointExperimental(xSailPointExperimental).RoleMiningPotentialRoleEditEntitlements(roleMiningPotentialRoleEditEntitlements).Execute() @@ -11988,7 +12010,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12001,7 +12023,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.IconsAPI.DeleteIcon(context.Background(), objectType, objectId).XSailPointExperimental(xSailPointExperimental).Execute() //r, err := apiClient.V2025.IconsAPI.DeleteIcon(context.Background(), objectType, objectId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -12022,7 +12044,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12036,7 +12058,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IconsAPI.SetIcon(context.Background(), objectType, objectId).XSailPointExperimental(xSailPointExperimental).Image(image).Execute() //resp, r, err := apiClient.V2025.IconsAPI.SetIcon(context.Background(), objectType, objectId).XSailPointExperimental(xSailPointExperimental).Image(image).Execute() @@ -12059,7 +12081,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12071,7 +12093,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.IdentitiesAPI.DeleteIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //r, err := apiClient.V2025.IdentitiesAPI.DeleteIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -12092,7 +12114,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12104,7 +12126,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentitiesAPI.GetIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IdentitiesAPI.GetIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -12127,7 +12149,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12139,7 +12161,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentitiesAPI.GetIdentityOwnershipDetails(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IdentitiesAPI.GetIdentityOwnershipDetails(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -12162,7 +12184,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12175,7 +12197,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentitiesAPI.GetRoleAssignment(context.Background(), identityId, assignmentId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IdentitiesAPI.GetRoleAssignment(context.Background(), identityId, assignmentId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -12198,7 +12220,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12212,7 +12234,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentitiesAPI.GetRoleAssignments(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IdentitiesAPI.GetRoleAssignments(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).RoleId(roleId).RoleName(roleName).Execute() @@ -12235,7 +12257,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12252,7 +12274,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentitiesAPI.ListIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IdentitiesAPI.ListIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).Filters(filters).Sorters(sorters).DefaultFilter(defaultFilter).Count(count).Limit(limit).Offset(offset).Execute() @@ -12275,7 +12297,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12287,7 +12309,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.IdentitiesAPI.ResetIdentity(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() //r, err := apiClient.V2025.IdentitiesAPI.ResetIdentity(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -12308,7 +12330,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12330,7 +12352,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.IdentitiesAPI.SendIdentityVerificationAccountToken(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SendAccountVerificationRequest(sendAccountVerificationRequest).Execute() //r, err := apiClient.V2025.IdentitiesAPI.SendIdentityVerificationAccountToken(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SendAccountVerificationRequest(sendAccountVerificationRequest).Execute() @@ -12351,7 +12373,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12372,7 +12394,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentitiesAPI.StartIdentitiesInvite(context.Background()).XSailPointExperimental(xSailPointExperimental).InviteIdentitiesRequest(inviteIdentitiesRequest).Execute() //resp, r, err := apiClient.V2025.IdentitiesAPI.StartIdentitiesInvite(context.Background()).XSailPointExperimental(xSailPointExperimental).InviteIdentitiesRequest(inviteIdentitiesRequest).Execute() @@ -12395,7 +12417,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12415,7 +12437,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentitiesAPI.StartIdentityProcessing(context.Background()).XSailPointExperimental(xSailPointExperimental).ProcessIdentitiesRequest(processIdentitiesRequest).Execute() //resp, r, err := apiClient.V2025.IdentitiesAPI.StartIdentityProcessing(context.Background()).XSailPointExperimental(xSailPointExperimental).ProcessIdentitiesRequest(processIdentitiesRequest).Execute() @@ -12438,7 +12460,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12450,7 +12472,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentitiesAPI.SynchronizeAttributesForIdentity(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IdentitiesAPI.SynchronizeAttributesForIdentity(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -12473,7 +12495,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12512,7 +12534,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityAttributesAPI.CreateIdentityAttribute(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityAttribute(identityAttribute).Execute() //resp, r, err := apiClient.V2025.IdentityAttributesAPI.CreateIdentityAttribute(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityAttribute(identityAttribute).Execute() @@ -12535,7 +12557,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12547,7 +12569,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.IdentityAttributesAPI.DeleteIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() //r, err := apiClient.V2025.IdentityAttributesAPI.DeleteIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() @@ -12568,7 +12590,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12588,7 +12610,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.IdentityAttributesAPI.DeleteIdentityAttributesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityAttributeNames(identityAttributeNames).Execute() //r, err := apiClient.V2025.IdentityAttributesAPI.DeleteIdentityAttributesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityAttributeNames(identityAttributeNames).Execute() @@ -12609,7 +12631,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12621,7 +12643,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityAttributesAPI.GetIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IdentityAttributesAPI.GetIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() @@ -12644,7 +12666,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12659,7 +12681,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityAttributesAPI.ListIdentityAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IdentityAttributesAPI.ListIdentityAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).IncludeSystem(includeSystem).IncludeSilent(includeSilent).SearchableOnly(searchableOnly).Count(count).Execute() @@ -12682,7 +12704,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12722,7 +12744,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityAttributesAPI.PutIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).IdentityAttribute(identityAttribute).Execute() //resp, r, err := apiClient.V2025.IdentityAttributesAPI.PutIdentityAttribute(context.Background(), name).XSailPointExperimental(xSailPointExperimental).IdentityAttribute(identityAttribute).Execute() @@ -12745,7 +12767,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12763,7 +12785,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityHistoryAPI.CompareIdentitySnapshots(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IdentityHistoryAPI.CompareIdentitySnapshots(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Snapshot1(snapshot1).Snapshot2(snapshot2).AccessItemTypes(accessItemTypes).Limit(limit).Offset(offset).Count(count).Execute() @@ -12786,7 +12808,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12805,7 +12827,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityHistoryAPI.CompareIdentitySnapshotsAccessType(context.Background(), id, accessType).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IdentityHistoryAPI.CompareIdentitySnapshotsAccessType(context.Background(), id, accessType).XSailPointExperimental(xSailPointExperimental).AccessAssociated(accessAssociated).Snapshot1(snapshot1).Snapshot2(snapshot2).Limit(limit).Offset(offset).Count(count).Execute() @@ -12828,7 +12850,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12840,7 +12862,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityHistoryAPI.GetHistoricalIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IdentityHistoryAPI.GetHistoricalIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -12863,7 +12885,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12881,7 +12903,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityHistoryAPI.GetHistoricalIdentityEvents(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IdentityHistoryAPI.GetHistoricalIdentityEvents(context.Background(), id).XSailPointExperimental(xSailPointExperimental).From(from).EventTypes(eventTypes).AccessItemTypes(accessItemTypes).Limit(limit).Offset(offset).Count(count).Execute() @@ -12904,7 +12926,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12917,7 +12939,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityHistoryAPI.GetIdentitySnapshot(context.Background(), id, date).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IdentityHistoryAPI.GetIdentitySnapshot(context.Background(), id, date).XSailPointExperimental(xSailPointExperimental).Execute() @@ -12940,7 +12962,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12958,7 +12980,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityHistoryAPI.GetIdentitySnapshotSummary(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IdentityHistoryAPI.GetIdentitySnapshotSummary(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Before(before).Interval(interval).TimeZone(timeZone).Limit(limit).Offset(offset).Count(count).Execute() @@ -12981,7 +13003,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12993,7 +13015,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityHistoryAPI.GetIdentityStartDate(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IdentityHistoryAPI.GetIdentityStartDate(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -13016,7 +13038,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13032,7 +13054,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityHistoryAPI.ListHistoricalIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IdentityHistoryAPI.ListHistoricalIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).StartsWithQuery(startsWithQuery).IsDeleted(isDeleted).IsActive(isActive).Limit(limit).Offset(offset).Execute() @@ -13055,7 +13077,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13071,7 +13093,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityHistoryAPI.ListIdentityAccessItems(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IdentityHistoryAPI.ListIdentityAccessItems(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Type_(type_).Limit(limit).Count(count).Offset(offset).Execute() @@ -13094,7 +13116,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13108,7 +13130,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityHistoryAPI.ListIdentitySnapshotAccessItems(context.Background(), id, date).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IdentityHistoryAPI.ListIdentitySnapshotAccessItems(context.Background(), id, date).XSailPointExperimental(xSailPointExperimental).Type_(type_).Execute() @@ -13131,7 +13153,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13148,7 +13170,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityHistoryAPI.ListIdentitySnapshots(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.IdentityHistoryAPI.ListIdentitySnapshots(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Start(start).Interval(interval).Limit(limit).Offset(offset).Count(count).Execute() @@ -13171,7 +13193,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13236,7 +13258,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityProfilesAPI.CreateIdentityProfile(context.Background()).IdentityProfile(identityProfile).Execute() //resp, r, err := apiClient.V2025.IdentityProfilesAPI.CreateIdentityProfile(context.Background()).IdentityProfile(identityProfile).Execute() @@ -13259,7 +13281,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13270,7 +13292,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityProfilesAPI.DeleteIdentityProfile(context.Background(), identityProfileId).Execute() //resp, r, err := apiClient.V2025.IdentityProfilesAPI.DeleteIdentityProfile(context.Background(), identityProfileId).Execute() @@ -13293,7 +13315,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13302,7 +13324,7 @@ requestbody := []byte(``) // []string | Identity Profile bulk delete request body. - var requestBody v2025.[]RequestBody + var requestBody []v2025.RequestBody if err := json.Unmarshal(requestbody, &requestBody); err != nil { fmt.Println("Error:", err) return @@ -13310,7 +13332,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityProfilesAPI.DeleteIdentityProfiles(context.Background()).RequestBody(requestBody).Execute() //resp, r, err := apiClient.V2025.IdentityProfilesAPI.DeleteIdentityProfiles(context.Background()).RequestBody(requestBody).Execute() @@ -13333,7 +13355,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13348,7 +13370,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityProfilesAPI.ExportIdentityProfiles(context.Background()).Execute() //resp, r, err := apiClient.V2025.IdentityProfilesAPI.ExportIdentityProfiles(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -13371,7 +13393,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13415,7 +13437,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityProfilesAPI.GenerateIdentityPreview(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityPreviewRequest(identityPreviewRequest).Execute() //resp, r, err := apiClient.V2025.IdentityProfilesAPI.GenerateIdentityPreview(context.Background()).XSailPointExperimental(xSailPointExperimental).IdentityPreviewRequest(identityPreviewRequest).Execute() @@ -13438,7 +13460,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13449,7 +13471,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityProfilesAPI.GetDefaultIdentityAttributeConfig(context.Background(), identityProfileId).Execute() //resp, r, err := apiClient.V2025.IdentityProfilesAPI.GetDefaultIdentityAttributeConfig(context.Background(), identityProfileId).Execute() @@ -13472,7 +13494,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13483,7 +13505,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityProfilesAPI.GetIdentityProfile(context.Background(), identityProfileId).Execute() //resp, r, err := apiClient.V2025.IdentityProfilesAPI.GetIdentityProfile(context.Background(), identityProfileId).Execute() @@ -13506,7 +13528,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13515,7 +13537,7 @@ identityprofileexportedobject := []byte(``) // []IdentityProfileExportedObject | Previously exported Identity Profiles. - var identityProfileExportedObject v2025.[]IdentityProfileExportedObject + var identityProfileExportedObject []v2025.IdentityProfileExportedObject if err := json.Unmarshal(identityprofileexportedobject, &identityProfileExportedObject); err != nil { fmt.Println("Error:", err) return @@ -13523,7 +13545,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityProfilesAPI.ImportIdentityProfiles(context.Background()).IdentityProfileExportedObject(identityProfileExportedObject).Execute() //resp, r, err := apiClient.V2025.IdentityProfilesAPI.ImportIdentityProfiles(context.Background()).IdentityProfileExportedObject(identityProfileExportedObject).Execute() @@ -13546,7 +13568,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13561,7 +13583,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityProfilesAPI.ListIdentityProfiles(context.Background()).Execute() //resp, r, err := apiClient.V2025.IdentityProfilesAPI.ListIdentityProfiles(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -13584,7 +13606,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13595,7 +13617,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityProfilesAPI.SyncIdentityProfile(context.Background(), identityProfileId).Execute() //resp, r, err := apiClient.V2025.IdentityProfilesAPI.SyncIdentityProfile(context.Background(), identityProfileId).Execute() @@ -13618,7 +13640,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13628,7 +13650,7 @@ jsonpatchoperation := []byte(`[{op=add, path=/identityAttributeConfig/attributeTransforms/0, value={identityAttributeName=location, transformDefinition={type=accountAttribute, attributes={sourceName=Employees, attributeName=location, sourceId=2c91808878b7d63b0178c66ffcdc4ce4}}}}]`) // []JsonPatchOperation | List of identity profile update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - var jsonPatchOperation v2025.[]JsonPatchOperation + var jsonPatchOperation []v2025.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -13636,7 +13658,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.IdentityProfilesAPI.UpdateIdentityProfile(context.Background(), identityProfileId).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2025.IdentityProfilesAPI.UpdateIdentityProfile(context.Background(), identityProfileId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -13659,7 +13681,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13701,7 +13723,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.LifecycleStatesAPI.CreateLifecycleState(context.Background(), identityProfileId).LifecycleState(lifecycleState).Execute() //resp, r, err := apiClient.V2025.LifecycleStatesAPI.CreateLifecycleState(context.Background(), identityProfileId).LifecycleState(lifecycleState).Execute() @@ -13724,7 +13746,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13736,7 +13758,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.LifecycleStatesAPI.DeleteLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() //resp, r, err := apiClient.V2025.LifecycleStatesAPI.DeleteLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() @@ -13759,7 +13781,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13771,7 +13793,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.LifecycleStatesAPI.GetLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() //resp, r, err := apiClient.V2025.LifecycleStatesAPI.GetLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() @@ -13794,7 +13816,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13809,7 +13831,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.LifecycleStatesAPI.GetLifecycleStates(context.Background(), identityProfileId).Execute() //resp, r, err := apiClient.V2025.LifecycleStatesAPI.GetLifecycleStates(context.Background(), identityProfileId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() @@ -13832,7 +13854,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13850,7 +13872,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.LifecycleStatesAPI.SetLifecycleState(context.Background(), identityId).SetLifecycleStateRequest(setLifecycleStateRequest).Execute() //resp, r, err := apiClient.V2025.LifecycleStatesAPI.SetLifecycleState(context.Background(), identityId).SetLifecycleStateRequest(setLifecycleStateRequest).Execute() @@ -13873,7 +13895,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13884,7 +13906,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/description, value=Updated description!}, {op=replace, path=/accessProfileIds, value=[2c918087742bab150174407a80f3125e, 2c918087742bab150174407a80f3124f]}, {op=replace, path=/accountActions, value=[{action=ENABLE, sourceIds=[2c9180846a2f82fb016a481c1b1560c5, 2c9180846a2f82fb016a481c1b1560cc]}, {action=DISABLE, sourceIds=[2c91808869a0c9980169a207258513fb]}]}, {op=replace, path=/emailNotificationOption, value={notifyManagers=true, notifyAllAdmins=false, notifySpecificUsers=false, emailAddressList=[]}}]`) // []JsonPatchOperation | A list of lifecycle state update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields can be updated: * enabled * description * accountActions * accessProfileIds * emailNotificationOption - var jsonPatchOperation v2025.[]JsonPatchOperation + var jsonPatchOperation []v2025.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -13892,7 +13914,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.LifecycleStatesAPI.UpdateLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2025.LifecycleStatesAPI.UpdateLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -13915,7 +13937,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13927,7 +13949,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MachineAccountsAPI.GetMachineAccount(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.MachineAccountsAPI.GetMachineAccount(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -13950,7 +13972,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13966,7 +13988,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MachineAccountsAPI.ListMachineAccounts(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.MachineAccountsAPI.ListMachineAccounts(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -13989,7 +14011,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14000,7 +14022,7 @@ requestbody := []byte(`[{op=add, path=/environment, value=test}]`) // []map[string]interface{} | A JSON of updated values [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * description * ownerIdentity * subType * accessType * environment * attributes * classificationMethod * manuallyEdited * nativeIdentity * uuid * source * manuallyCorrelated * enabled * locked * hasEntitlements * connectorAttributes - var requestBody v2025.[]RequestBody + var requestBody []v2025.RequestBody if err := json.Unmarshal(requestbody, &requestBody); err != nil { fmt.Println("Error:", err) return @@ -14008,7 +14030,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MachineAccountsAPI.UpdateMachineAccount(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() //resp, r, err := apiClient.V2025.MachineAccountsAPI.UpdateMachineAccount(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() @@ -14031,7 +14053,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14058,7 +14080,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MachineIdentitiesAPI.CreateMachineIdentity(context.Background()).XSailPointExperimental(xSailPointExperimental).MachineIdentity(machineIdentity).Execute() //resp, r, err := apiClient.V2025.MachineIdentitiesAPI.CreateMachineIdentity(context.Background()).XSailPointExperimental(xSailPointExperimental).MachineIdentity(machineIdentity).Execute() @@ -14081,7 +14103,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14093,7 +14115,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.MachineIdentitiesAPI.DeleteMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //r, err := apiClient.V2025.MachineIdentitiesAPI.DeleteMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -14114,7 +14136,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14126,7 +14148,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MachineIdentitiesAPI.GetMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.MachineIdentitiesAPI.GetMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -14149,7 +14171,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14165,7 +14187,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MachineIdentitiesAPI.ListMachineIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.MachineIdentitiesAPI.ListMachineIdentities(context.Background()).XSailPointExperimental(xSailPointExperimental).Filters(filters).Sorters(sorters).Count(count).Limit(limit).Offset(offset).Execute() @@ -14188,7 +14210,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14199,7 +14221,7 @@ requestbody := []byte(`[{op=add, path=/attributes/securityRisk, value=medium}]`) // []map[string]interface{} | A JSON of updated values [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - var requestBody v2025.[]RequestBody + var requestBody []v2025.RequestBody if err := json.Unmarshal(requestbody, &requestBody); err != nil { fmt.Println("Error:", err) return @@ -14207,7 +14229,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MachineIdentitiesAPI.UpdateMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() //resp, r, err := apiClient.V2025.MachineIdentitiesAPI.UpdateMachineIdentity(context.Background(), id).XSailPointExperimental(xSailPointExperimental).RequestBody(requestBody).Execute() @@ -14230,7 +14252,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14252,7 +14274,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ManagedClientsAPI.CreateManagedClient(context.Background()).ManagedClientRequest(managedClientRequest).Execute() //resp, r, err := apiClient.V2025.ManagedClientsAPI.CreateManagedClient(context.Background()).ManagedClientRequest(managedClientRequest).Execute() @@ -14275,7 +14297,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14286,7 +14308,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.ManagedClientsAPI.DeleteManagedClient(context.Background(), id).Execute() //r, err := apiClient.V2025.ManagedClientsAPI.DeleteManagedClient(context.Background(), id).Execute() @@ -14307,7 +14329,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14318,7 +14340,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ManagedClientsAPI.GetManagedClient(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.ManagedClientsAPI.GetManagedClient(context.Background(), id).Execute() @@ -14341,7 +14363,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14353,7 +14375,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ManagedClientsAPI.GetManagedClientStatus(context.Background(), id).Type_(type_).Execute() //resp, r, err := apiClient.V2025.ManagedClientsAPI.GetManagedClientStatus(context.Background(), id).Type_(type_).Execute() @@ -14376,7 +14398,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14390,7 +14412,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ManagedClientsAPI.GetManagedClients(context.Background()).Execute() //resp, r, err := apiClient.V2025.ManagedClientsAPI.GetManagedClients(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() @@ -14413,7 +14435,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14423,7 +14445,7 @@ jsonpatchoperation := []byte(``) // []JsonPatchOperation | JSONPatch payload used to update the object. - var jsonPatchOperation v2025.[]JsonPatchOperation + var jsonPatchOperation []v2025.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -14431,7 +14453,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ManagedClientsAPI.UpdateManagedClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2025.ManagedClientsAPI.UpdateManagedClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -14454,7 +14476,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14479,7 +14501,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ManagedClustersAPI.CreateManagedCluster(context.Background()).ManagedClusterRequest(managedClusterRequest).Execute() //resp, r, err := apiClient.V2025.ManagedClustersAPI.CreateManagedCluster(context.Background()).ManagedClusterRequest(managedClusterRequest).Execute() @@ -14502,7 +14524,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14514,7 +14536,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.ManagedClustersAPI.DeleteManagedCluster(context.Background(), id).Execute() //r, err := apiClient.V2025.ManagedClustersAPI.DeleteManagedCluster(context.Background(), id).RemoveClients(removeClients).Execute() @@ -14535,7 +14557,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14546,7 +14568,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ManagedClustersAPI.GetClientLogConfiguration(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.ManagedClustersAPI.GetClientLogConfiguration(context.Background(), id).Execute() @@ -14569,7 +14591,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14580,7 +14602,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ManagedClustersAPI.GetManagedCluster(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.ManagedClustersAPI.GetManagedCluster(context.Background(), id).Execute() @@ -14603,7 +14625,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14617,7 +14639,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ManagedClustersAPI.GetManagedClusters(context.Background()).Execute() //resp, r, err := apiClient.V2025.ManagedClustersAPI.GetManagedClusters(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() @@ -14640,7 +14662,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14658,7 +14680,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ManagedClustersAPI.PutClientLogConfiguration(context.Background(), id).PutClientLogConfigurationRequest(putClientLogConfigurationRequest).Execute() //resp, r, err := apiClient.V2025.ManagedClustersAPI.PutClientLogConfiguration(context.Background(), id).PutClientLogConfigurationRequest(putClientLogConfigurationRequest).Execute() @@ -14681,7 +14703,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14692,7 +14714,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ManagedClustersAPI.Update(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.ManagedClustersAPI.Update(context.Background(), id).Execute() @@ -14715,7 +14737,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14725,7 +14747,7 @@ jsonpatchoperation := []byte(``) // []JsonPatchOperation | JSONPatch payload used to update the object. - var jsonPatchOperation v2025.[]JsonPatchOperation + var jsonPatchOperation []v2025.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -14733,7 +14755,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ManagedClustersAPI.UpdateManagedCluster(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2025.ManagedClustersAPI.UpdateManagedCluster(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -14756,7 +14778,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14779,7 +14801,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ManagedClusterTypesAPI.CreateManagedClusterType(context.Background()).ManagedClusterType(managedClusterType).Execute() //resp, r, err := apiClient.V2025.ManagedClusterTypesAPI.CreateManagedClusterType(context.Background()).ManagedClusterType(managedClusterType).Execute() @@ -14802,7 +14824,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14813,7 +14835,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.ManagedClusterTypesAPI.DeleteManagedClusterType(context.Background(), id).Execute() //r, err := apiClient.V2025.ManagedClusterTypesAPI.DeleteManagedClusterType(context.Background(), id).Execute() @@ -14834,7 +14856,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14845,7 +14867,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ManagedClusterTypesAPI.GetManagedClusterType(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.ManagedClusterTypesAPI.GetManagedClusterType(context.Background(), id).Execute() @@ -14868,7 +14890,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14883,7 +14905,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ManagedClusterTypesAPI.GetManagedClusterTypes(context.Background()).Execute() //resp, r, err := apiClient.V2025.ManagedClusterTypesAPI.GetManagedClusterTypes(context.Background()).Type_(type_).Pod(pod).Org(org).Offset(offset).Limit(limit).Execute() @@ -14906,7 +14928,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14934,7 +14956,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ManagedClusterTypesAPI.UpdateManagedClusterType(context.Background(), id).JsonPatch(jsonPatch).Execute() //resp, r, err := apiClient.V2025.ManagedClusterTypesAPI.UpdateManagedClusterType(context.Background(), id).JsonPatch(jsonPatch).Execute() @@ -14957,7 +14979,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14967,7 +14989,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MFAConfigurationAPI.GetMFADuoConfig(context.Background()).Execute() //resp, r, err := apiClient.V2025.MFAConfigurationAPI.GetMFADuoConfig(context.Background()).Execute() @@ -14990,7 +15012,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15001,7 +15023,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MFAConfigurationAPI.GetMFAKbaConfig(context.Background()).Execute() //resp, r, err := apiClient.V2025.MFAConfigurationAPI.GetMFAKbaConfig(context.Background()).AllLanguages(allLanguages).Execute() @@ -15024,7 +15046,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15034,7 +15056,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MFAConfigurationAPI.GetMFAOktaConfig(context.Background()).Execute() //resp, r, err := apiClient.V2025.MFAConfigurationAPI.GetMFAOktaConfig(context.Background()).Execute() @@ -15057,7 +15079,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15084,7 +15106,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MFAConfigurationAPI.SetMFADuoConfig(context.Background()).MfaDuoConfig(mfaDuoConfig).Execute() //resp, r, err := apiClient.V2025.MFAConfigurationAPI.SetMFADuoConfig(context.Background()).MfaDuoConfig(mfaDuoConfig).Execute() @@ -15107,7 +15129,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15116,7 +15138,7 @@ kbaanswerrequestitem := []byte(`[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]`) // []KbaAnswerRequestItem | - var kbaAnswerRequestItem v2025.[]KbaAnswerRequestItem + var kbaAnswerRequestItem []v2025.KbaAnswerRequestItem if err := json.Unmarshal(kbaanswerrequestitem, &kbaAnswerRequestItem); err != nil { fmt.Println("Error:", err) return @@ -15124,7 +15146,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MFAConfigurationAPI.SetMFAKBAConfig(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() //resp, r, err := apiClient.V2025.MFAConfigurationAPI.SetMFAKBAConfig(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() @@ -15147,7 +15169,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15170,7 +15192,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MFAConfigurationAPI.SetMFAOktaConfig(context.Background()).MfaOktaConfig(mfaOktaConfig).Execute() //resp, r, err := apiClient.V2025.MFAConfigurationAPI.SetMFAOktaConfig(context.Background()).MfaOktaConfig(mfaOktaConfig).Execute() @@ -15193,7 +15215,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15204,7 +15226,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MFAConfigurationAPI.TestMFAConfig(context.Background(), method).Execute() //resp, r, err := apiClient.V2025.MFAConfigurationAPI.TestMFAConfig(context.Background(), method).Execute() @@ -15227,7 +15249,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15269,7 +15291,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.CreateMultiHostIntegration(context.Background()).MultiHostIntegrationsCreate(multiHostIntegrationsCreate).Execute() //resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.CreateMultiHostIntegration(context.Background()).MultiHostIntegrationsCreate(multiHostIntegrationsCreate).Execute() @@ -15292,7 +15314,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15302,7 +15324,7 @@ multihostintegrationscreatesources := []byte(``) // []MultiHostIntegrationsCreateSources | The specifics of the sources to create within Multi-Host Integration. - var multiHostIntegrationsCreateSources v2025.[]MultiHostIntegrationsCreateSources + var multiHostIntegrationsCreateSources []v2025.MultiHostIntegrationsCreateSources if err := json.Unmarshal(multihostintegrationscreatesources, &multiHostIntegrationsCreateSources); err != nil { fmt.Println("Error:", err) return @@ -15310,7 +15332,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.MultiHostIntegrationAPI.CreateSourcesWithinMultiHost(context.Background(), multihostId).MultiHostIntegrationsCreateSources(multiHostIntegrationsCreateSources).Execute() //r, err := apiClient.V2025.MultiHostIntegrationAPI.CreateSourcesWithinMultiHost(context.Background(), multihostId).MultiHostIntegrationsCreateSources(multiHostIntegrationsCreateSources).Execute() @@ -15331,7 +15353,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15342,7 +15364,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.MultiHostIntegrationAPI.DeleteMultiHost(context.Background(), multihostId).Execute() //r, err := apiClient.V2025.MultiHostIntegrationAPI.DeleteMultiHost(context.Background(), multihostId).Execute() @@ -15363,7 +15385,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15376,7 +15398,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetAcctAggregationGroups(context.Background(), multihostId).Execute() //resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetAcctAggregationGroups(context.Background(), multihostId).Offset(offset).Limit(limit).Execute() @@ -15399,7 +15421,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15412,7 +15434,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetEntitlementAggregationGroups(context.Background(), multiHostId).Execute() //resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetEntitlementAggregationGroups(context.Background(), multiHostId).Offset(offset).Limit(limit).Execute() @@ -15435,7 +15457,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15446,7 +15468,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetMultiHostIntegrations(context.Background(), multihostId).Execute() //resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetMultiHostIntegrations(context.Background(), multihostId).Execute() @@ -15469,7 +15491,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15485,7 +15507,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetMultiHostIntegrationsList(context.Background()).Execute() //resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetMultiHostIntegrationsList(context.Background()).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).ForSubadmin(forSubadmin).Execute() @@ -15508,7 +15530,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15519,7 +15541,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetMultiHostSourceCreationErrors(context.Background(), multiHostId).Execute() //resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetMultiHostSourceCreationErrors(context.Background(), multiHostId).Execute() @@ -15542,7 +15564,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15552,7 +15574,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetMultihostIntegrationTypes(context.Background()).Execute() //resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetMultihostIntegrationTypes(context.Background()).Execute() @@ -15575,7 +15597,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15591,7 +15613,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetSourcesWithinMultiHost(context.Background(), multihostId).Execute() //resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.GetSourcesWithinMultiHost(context.Background(), multihostId).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).Execute() @@ -15614,7 +15636,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15625,7 +15647,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.MultiHostIntegrationAPI.TestConnectionMultiHostSources(context.Background(), multihostId).Execute() //r, err := apiClient.V2025.MultiHostIntegrationAPI.TestConnectionMultiHostSources(context.Background(), multihostId).Execute() @@ -15646,7 +15668,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15658,7 +15680,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.TestSourceConnectionMultihost(context.Background(), multihostId, sourceId).Execute() //resp, r, err := apiClient.V2025.MultiHostIntegrationAPI.TestSourceConnectionMultihost(context.Background(), multihostId, sourceId).Execute() @@ -15681,7 +15703,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15691,7 +15713,7 @@ updatemultihostsourcesrequestinner := []byte(`[{op=add, path=/description, value=MDK Multi-Host Integration 222 description}]`) // []UpdateMultiHostSourcesRequestInner | This endpoint allows you to update a Multi-Host Integration. - var updateMultiHostSourcesRequestInner v2025.[]UpdateMultiHostSourcesRequestInner + var updateMultiHostSourcesRequestInner []v2025.UpdateMultiHostSourcesRequestInner if err := json.Unmarshal(updatemultihostsourcesrequestinner, &updateMultiHostSourcesRequestInner); err != nil { fmt.Println("Error:", err) return @@ -15699,7 +15721,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.MultiHostIntegrationAPI.UpdateMultiHostSources(context.Background(), multihostId).UpdateMultiHostSourcesRequestInner(updateMultiHostSourcesRequestInner).Execute() //r, err := apiClient.V2025.MultiHostIntegrationAPI.UpdateMultiHostSources(context.Background(), multihostId).UpdateMultiHostSourcesRequestInner(updateMultiHostSourcesRequestInner).Execute() @@ -15720,7 +15742,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15740,7 +15762,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest(context.Background(), id).NonEmployeeApprovalDecision(nonEmployeeApprovalDecision).Execute() //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest(context.Background(), id).NonEmployeeApprovalDecision(nonEmployeeApprovalDecision).Execute() @@ -15763,7 +15785,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" "time" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -15794,7 +15816,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() @@ -15817,7 +15839,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" "time" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -15848,7 +15870,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() @@ -15871,7 +15893,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15913,7 +15935,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource(context.Background()).NonEmployeeSourceRequestBody(nonEmployeeSourceRequestBody).Execute() //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource(context.Background()).NonEmployeeSourceRequestBody(nonEmployeeSourceRequestBody).Execute() @@ -15936,7 +15958,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15961,7 +15983,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).NonEmployeeSchemaAttributeBody(nonEmployeeSchemaAttributeBody).Execute() //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).NonEmployeeSchemaAttributeBody(nonEmployeeSchemaAttributeBody).Execute() @@ -15984,7 +16006,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15995,7 +16017,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord(context.Background(), id).Execute() //r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord(context.Background(), id).Execute() @@ -16016,7 +16038,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16033,7 +16055,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordsInBulk(context.Background()).DeleteNonEmployeeRecordsInBulkRequest(deleteNonEmployeeRecordsInBulkRequest).Execute() //r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordsInBulk(context.Background()).DeleteNonEmployeeRecordsInBulkRequest(deleteNonEmployeeRecordsInBulkRequest).Execute() @@ -16054,7 +16076,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16065,7 +16087,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest(context.Background(), id).Execute() //r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest(context.Background(), id).Execute() @@ -16086,7 +16108,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16098,7 +16120,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() //r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() @@ -16119,7 +16141,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16130,7 +16152,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource(context.Background(), sourceId).Execute() //r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource(context.Background(), sourceId).Execute() @@ -16151,7 +16173,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16162,7 +16184,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() //r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() @@ -16183,7 +16205,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16194,7 +16216,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords(context.Background(), id).Execute() //r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords(context.Background(), id).Execute() @@ -16215,7 +16237,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16226,7 +16248,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate(context.Background(), id).Execute() //r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate(context.Background(), id).Execute() @@ -16247,7 +16269,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16259,7 +16281,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval(context.Background(), id).IncludeDetail(includeDetail).Execute() @@ -16282,7 +16304,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16293,7 +16315,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary(context.Background(), requestedFor).Execute() //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary(context.Background(), requestedFor).Execute() @@ -16316,7 +16338,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16327,7 +16349,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus(context.Background(), id).Execute() @@ -16350,7 +16372,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16361,7 +16383,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord(context.Background(), id).Execute() @@ -16384,7 +16406,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16395,7 +16417,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest(context.Background(), id).Execute() @@ -16418,7 +16440,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16429,7 +16451,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary(context.Background(), requestedFor).Execute() //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary(context.Background(), requestedFor).Execute() @@ -16452,7 +16474,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16464,7 +16486,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() @@ -16487,7 +16509,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16498,7 +16520,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource(context.Background(), sourceId).Execute() //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource(context.Background(), sourceId).Execute() @@ -16521,7 +16543,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16532,7 +16554,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() @@ -16555,7 +16577,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16567,7 +16589,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk(context.Background(), id).Data(data).Execute() //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk(context.Background(), id).Data(data).Execute() @@ -16590,7 +16612,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16606,7 +16628,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals(context.Background()).Execute() //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals(context.Background()).RequestedFor(requestedFor).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -16629,7 +16651,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16644,7 +16666,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords(context.Background()).Execute() //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords(context.Background()).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() @@ -16667,7 +16689,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16683,7 +16705,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests(context.Background()).RequestedFor(requestedFor).Execute() //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests(context.Background()).RequestedFor(requestedFor).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() @@ -16706,7 +16728,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16722,7 +16744,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources(context.Background()).Execute() //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources(context.Background()).Limit(limit).Offset(offset).Count(count).RequestedFor(requestedFor).NonEmployeeCount(nonEmployeeCount).Sorters(sorters).Execute() @@ -16745,7 +16767,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16755,7 +16777,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/endDate, value=2019-08-23T18:40:35.772Z}]`) // []JsonPatchOperation | A list of non-employee update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Attributes are restricted by user type. Owner of source can update end date. Organization admins can update all available fields. - var jsonPatchOperation v2025.[]JsonPatchOperation + var jsonPatchOperation []v2025.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -16763,7 +16785,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -16786,7 +16808,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16797,7 +16819,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/label, value={new attribute label=null}}]`) // []JsonPatchOperation | A list of schema attribute update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following properties are allowed for update ':' 'label', 'helpText', 'placeholder', 'required'. - var jsonPatchOperation v2025.[]JsonPatchOperation + var jsonPatchOperation []v2025.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -16805,7 +16827,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -16828,7 +16850,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16838,7 +16860,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/name, value={new name=null}}, {op=replace, path=/approvers, value=[2c91809f703bb37a017040a2fe8748c7, 48b1f463c9e8427db5a5071bd81914b8]}]`) // []JsonPatchOperation | A list of non-employee source update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - var jsonPatchOperation v2025.[]JsonPatchOperation + var jsonPatchOperation []v2025.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -16846,7 +16868,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource(context.Background(), sourceId).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource(context.Background(), sourceId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -16869,7 +16891,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16889,7 +16911,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest(context.Background(), id).NonEmployeeRejectApprovalDecision(nonEmployeeRejectApprovalDecision).Execute() //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest(context.Background(), id).NonEmployeeRejectApprovalDecision(nonEmployeeRejectApprovalDecision).Execute() @@ -16912,7 +16934,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" "time" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -16944,7 +16966,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord(context.Background(), id).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() //resp, r, err := apiClient.V2025.NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord(context.Background(), id).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() @@ -16967,7 +16989,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -16987,7 +17009,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NotificationsAPI.CreateDomainDkim(context.Background()).XSailPointExperimental(xSailPointExperimental).DomainAddress(domainAddress).Execute() //resp, r, err := apiClient.V2025.NotificationsAPI.CreateDomainDkim(context.Background()).XSailPointExperimental(xSailPointExperimental).DomainAddress(domainAddress).Execute() @@ -17010,7 +17032,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17045,7 +17067,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NotificationsAPI.CreateNotificationTemplate(context.Background()).XSailPointExperimental(xSailPointExperimental).TemplateDto(templateDto).Execute() //resp, r, err := apiClient.V2025.NotificationsAPI.CreateNotificationTemplate(context.Background()).XSailPointExperimental(xSailPointExperimental).TemplateDto(templateDto).Execute() @@ -17068,7 +17090,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17091,7 +17113,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NotificationsAPI.CreateVerifiedFromAddress(context.Background()).XSailPointExperimental(xSailPointExperimental).EmailStatusDto(emailStatusDto).Execute() //resp, r, err := apiClient.V2025.NotificationsAPI.CreateVerifiedFromAddress(context.Background()).XSailPointExperimental(xSailPointExperimental).EmailStatusDto(emailStatusDto).Execute() @@ -17114,7 +17136,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17124,7 +17146,7 @@ templatebulkdeletedto := []byte(``) // []TemplateBulkDeleteDto | - var templateBulkDeleteDto v2025.[]TemplateBulkDeleteDto + var templateBulkDeleteDto []v2025.TemplateBulkDeleteDto if err := json.Unmarshal(templatebulkdeletedto, &templateBulkDeleteDto); err != nil { fmt.Println("Error:", err) return @@ -17132,7 +17154,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.NotificationsAPI.DeleteNotificationTemplatesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).TemplateBulkDeleteDto(templateBulkDeleteDto).Execute() //r, err := apiClient.V2025.NotificationsAPI.DeleteNotificationTemplatesInBulk(context.Background()).XSailPointExperimental(xSailPointExperimental).TemplateBulkDeleteDto(templateBulkDeleteDto).Execute() @@ -17153,7 +17175,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17165,7 +17187,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.NotificationsAPI.DeleteVerifiedFromAddress(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //r, err := apiClient.V2025.NotificationsAPI.DeleteVerifiedFromAddress(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -17186,7 +17208,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17197,7 +17219,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NotificationsAPI.GetDkimAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.NotificationsAPI.GetDkimAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -17220,7 +17242,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17232,7 +17254,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NotificationsAPI.GetMailFromAttributes(context.Background()).Id(id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.NotificationsAPI.GetMailFromAttributes(context.Background()).Id(id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -17255,7 +17277,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17267,7 +17289,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NotificationsAPI.GetNotificationTemplate(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.NotificationsAPI.GetNotificationTemplate(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -17290,7 +17312,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17301,7 +17323,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NotificationsAPI.GetNotificationsTemplateContext(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.NotificationsAPI.GetNotificationsTemplateContext(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -17324,7 +17346,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17340,7 +17362,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NotificationsAPI.ListFromAddresses(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.NotificationsAPI.ListFromAddresses(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -17363,7 +17385,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17374,7 +17396,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NotificationsAPI.ListNotificationPreferences(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.NotificationsAPI.ListNotificationPreferences(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -17397,7 +17419,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17411,7 +17433,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NotificationsAPI.ListNotificationTemplateDefaults(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.NotificationsAPI.ListNotificationTemplateDefaults(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Filters(filters).Execute() @@ -17434,7 +17456,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17448,7 +17470,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NotificationsAPI.ListNotificationTemplates(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.NotificationsAPI.ListNotificationTemplates(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Filters(filters).Execute() @@ -17471,7 +17493,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17492,7 +17514,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.NotificationsAPI.PutMailFromAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).MailFromAttributesDto(mailFromAttributesDto).Execute() //resp, r, err := apiClient.V2025.NotificationsAPI.PutMailFromAttributes(context.Background()).XSailPointExperimental(xSailPointExperimental).MailFromAttributesDto(mailFromAttributesDto).Execute() @@ -17515,7 +17537,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17537,7 +17559,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.NotificationsAPI.SendTestNotification(context.Background()).XSailPointExperimental(xSailPointExperimental).SendTestNotificationRequestDto(sendTestNotificationRequestDto).Execute() //r, err := apiClient.V2025.NotificationsAPI.SendTestNotification(context.Background()).XSailPointExperimental(xSailPointExperimental).SendTestNotificationRequestDto(sendTestNotificationRequestDto).Execute() @@ -17558,7 +17580,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17591,7 +17613,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.OAuthClientsAPI.CreateOauthClient(context.Background()).CreateOAuthClientRequest(createOAuthClientRequest).Execute() //resp, r, err := apiClient.V2025.OAuthClientsAPI.CreateOauthClient(context.Background()).CreateOAuthClientRequest(createOAuthClientRequest).Execute() @@ -17614,7 +17636,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17625,7 +17647,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.OAuthClientsAPI.DeleteOauthClient(context.Background(), id).Execute() //r, err := apiClient.V2025.OAuthClientsAPI.DeleteOauthClient(context.Background(), id).Execute() @@ -17646,7 +17668,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17657,7 +17679,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.OAuthClientsAPI.GetOauthClient(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.OAuthClientsAPI.GetOauthClient(context.Background(), id).Execute() @@ -17680,7 +17702,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17691,7 +17713,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.OAuthClientsAPI.ListOauthClients(context.Background()).Execute() //resp, r, err := apiClient.V2025.OAuthClientsAPI.ListOauthClients(context.Background()).Filters(filters).Execute() @@ -17714,7 +17736,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17724,7 +17746,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/strongAuthSupported, value=true}, {op=replace, path=/businessName, value=acme-solar}]`) // []JsonPatchOperation | A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * tenant * businessName * homepageUrl * name * description * accessTokenValiditySeconds * refreshTokenValiditySeconds * redirectUris * grantTypes * accessType * enabled * strongAuthSupported * claimsSupported - var jsonPatchOperation v2025.[]JsonPatchOperation + var jsonPatchOperation []v2025.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -17732,7 +17754,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.OAuthClientsAPI.PatchOauthClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2025.OAuthClientsAPI.PatchOauthClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -17755,7 +17777,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17766,7 +17788,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.OrgConfigAPI.GetOrgConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.OrgConfigAPI.GetOrgConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -17789,7 +17811,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17803,7 +17825,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.OrgConfigAPI.GetValidTimeZones(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.OrgConfigAPI.GetValidTimeZones(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Execute() @@ -17826,7 +17848,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17836,7 +17858,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/timeZone, value=America/Toronto}]`) // []JsonPatchOperation | A list of schema attribute update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - var jsonPatchOperation v2025.[]JsonPatchOperation + var jsonPatchOperation []v2025.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -17844,7 +17866,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.OrgConfigAPI.PatchOrgConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2025.OrgConfigAPI.PatchOrgConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() @@ -17867,7 +17889,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17889,7 +17911,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PasswordConfigurationAPI.CreatePasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() //resp, r, err := apiClient.V2025.PasswordConfigurationAPI.CreatePasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() @@ -17912,7 +17934,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17922,7 +17944,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PasswordConfigurationAPI.GetPasswordOrgConfig(context.Background()).Execute() //resp, r, err := apiClient.V2025.PasswordConfigurationAPI.GetPasswordOrgConfig(context.Background()).Execute() @@ -17945,7 +17967,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -17967,7 +17989,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PasswordConfigurationAPI.PutPasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() //resp, r, err := apiClient.V2025.PasswordConfigurationAPI.PutPasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() @@ -17990,7 +18012,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18000,7 +18022,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PasswordDictionaryAPI.GetPasswordDictionary(context.Background()).Execute() //resp, r, err := apiClient.V2025.PasswordDictionaryAPI.GetPasswordDictionary(context.Background()).Execute() @@ -18023,7 +18045,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18034,7 +18056,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.PasswordDictionaryAPI.PutPasswordDictionary(context.Background()).Execute() //r, err := apiClient.V2025.PasswordDictionaryAPI.PutPasswordDictionary(context.Background()).File(file).Execute() @@ -18055,7 +18077,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18077,7 +18099,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PasswordManagementAPI.CreateDigitToken(context.Background()).XSailPointExperimental(xSailPointExperimental).PasswordDigitTokenReset(passwordDigitTokenReset).Execute() //resp, r, err := apiClient.V2025.PasswordManagementAPI.CreateDigitToken(context.Background()).XSailPointExperimental(xSailPointExperimental).PasswordDigitTokenReset(passwordDigitTokenReset).Execute() @@ -18100,7 +18122,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18111,7 +18133,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PasswordManagementAPI.GetPasswordChangeStatus(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.PasswordManagementAPI.GetPasswordChangeStatus(context.Background(), id).Execute() @@ -18134,7 +18156,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18154,7 +18176,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PasswordManagementAPI.QueryPasswordInfo(context.Background()).PasswordInfoQueryDTO(passwordInfoQueryDTO).Execute() //resp, r, err := apiClient.V2025.PasswordManagementAPI.QueryPasswordInfo(context.Background()).PasswordInfoQueryDTO(passwordInfoQueryDTO).Execute() @@ -18177,7 +18199,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18200,7 +18222,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PasswordManagementAPI.SetPassword(context.Background()).PasswordChangeRequest(passwordChangeRequest).Execute() //resp, r, err := apiClient.V2025.PasswordManagementAPI.SetPassword(context.Background()).PasswordChangeRequest(passwordChangeRequest).Execute() @@ -18223,7 +18245,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18272,7 +18294,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PasswordPoliciesAPI.CreatePasswordPolicy(context.Background()).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() //resp, r, err := apiClient.V2025.PasswordPoliciesAPI.CreatePasswordPolicy(context.Background()).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() @@ -18295,7 +18317,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18306,7 +18328,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.PasswordPoliciesAPI.DeletePasswordPolicy(context.Background(), id).Execute() //r, err := apiClient.V2025.PasswordPoliciesAPI.DeletePasswordPolicy(context.Background(), id).Execute() @@ -18327,7 +18349,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18338,7 +18360,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PasswordPoliciesAPI.GetPasswordPolicyById(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.PasswordPoliciesAPI.GetPasswordPolicyById(context.Background(), id).Execute() @@ -18361,7 +18383,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18374,7 +18396,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PasswordPoliciesAPI.ListPasswordPolicies(context.Background()).Execute() //resp, r, err := apiClient.V2025.PasswordPoliciesAPI.ListPasswordPolicies(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() @@ -18397,7 +18419,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18447,7 +18469,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PasswordPoliciesAPI.SetPasswordPolicy(context.Background(), id).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() //resp, r, err := apiClient.V2025.PasswordPoliciesAPI.SetPasswordPolicy(context.Background(), id).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() @@ -18470,7 +18492,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18494,7 +18516,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PasswordSyncGroupsAPI.CreatePasswordSyncGroup(context.Background()).PasswordSyncGroup(passwordSyncGroup).Execute() //resp, r, err := apiClient.V2025.PasswordSyncGroupsAPI.CreatePasswordSyncGroup(context.Background()).PasswordSyncGroup(passwordSyncGroup).Execute() @@ -18517,7 +18539,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18528,7 +18550,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.PasswordSyncGroupsAPI.DeletePasswordSyncGroup(context.Background(), id).Execute() //r, err := apiClient.V2025.PasswordSyncGroupsAPI.DeletePasswordSyncGroup(context.Background(), id).Execute() @@ -18549,7 +18571,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18560,7 +18582,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PasswordSyncGroupsAPI.GetPasswordSyncGroup(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.PasswordSyncGroupsAPI.GetPasswordSyncGroup(context.Background(), id).Execute() @@ -18583,7 +18605,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18596,7 +18618,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PasswordSyncGroupsAPI.GetPasswordSyncGroups(context.Background()).Execute() //resp, r, err := apiClient.V2025.PasswordSyncGroupsAPI.GetPasswordSyncGroups(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() @@ -18619,7 +18641,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18644,7 +18666,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PasswordSyncGroupsAPI.UpdatePasswordSyncGroup(context.Background(), id).PasswordSyncGroup(passwordSyncGroup).Execute() //resp, r, err := apiClient.V2025.PasswordSyncGroupsAPI.UpdatePasswordSyncGroup(context.Background(), id).PasswordSyncGroup(passwordSyncGroup).Execute() @@ -18667,7 +18689,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18688,7 +18710,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PersonalAccessTokensAPI.CreatePersonalAccessToken(context.Background()).CreatePersonalAccessTokenRequest(createPersonalAccessTokenRequest).Execute() //resp, r, err := apiClient.V2025.PersonalAccessTokensAPI.CreatePersonalAccessToken(context.Background()).CreatePersonalAccessTokenRequest(createPersonalAccessTokenRequest).Execute() @@ -18711,7 +18733,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18722,7 +18744,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.PersonalAccessTokensAPI.DeletePersonalAccessToken(context.Background(), id).Execute() //r, err := apiClient.V2025.PersonalAccessTokensAPI.DeletePersonalAccessToken(context.Background(), id).Execute() @@ -18743,7 +18765,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18755,7 +18777,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PersonalAccessTokensAPI.ListPersonalAccessTokens(context.Background()).Execute() //resp, r, err := apiClient.V2025.PersonalAccessTokensAPI.ListPersonalAccessTokens(context.Background()).OwnerId(ownerId).Filters(filters).Execute() @@ -18778,7 +18800,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18788,7 +18810,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/name, value=New name}, {op=replace, path=/scope, value=[sp:scopes:all]}]`) // []JsonPatchOperation | A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * scope - var jsonPatchOperation v2025.[]JsonPatchOperation + var jsonPatchOperation []v2025.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -18796,7 +18818,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PersonalAccessTokensAPI.PatchPersonalAccessToken(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2025.PersonalAccessTokensAPI.PatchPersonalAccessToken(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -18819,7 +18841,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18835,7 +18857,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PublicIdentitiesAPI.GetPublicIdentities(context.Background()).Execute() //resp, r, err := apiClient.V2025.PublicIdentitiesAPI.GetPublicIdentities(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).AddCoreFilters(addCoreFilters).Sorters(sorters).Execute() @@ -18858,7 +18880,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18868,7 +18890,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PublicIdentitiesConfigAPI.GetPublicIdentityConfig(context.Background()).Execute() //resp, r, err := apiClient.V2025.PublicIdentitiesConfigAPI.GetPublicIdentityConfig(context.Background()).Execute() @@ -18891,7 +18913,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18922,7 +18944,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig(context.Background()).PublicIdentityConfig(publicIdentityConfig).Execute() //resp, r, err := apiClient.V2025.PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig(context.Background()).PublicIdentityConfig(publicIdentityConfig).Execute() @@ -18945,7 +18967,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18956,7 +18978,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.ReportsDataExtractionAPI.CancelReport(context.Background(), id).Execute() //r, err := apiClient.V2025.ReportsDataExtractionAPI.CancelReport(context.Background(), id).Execute() @@ -18977,7 +18999,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -18991,7 +19013,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ReportsDataExtractionAPI.GetReport(context.Background(), taskResultId).FileFormat(fileFormat).Execute() //resp, r, err := apiClient.V2025.ReportsDataExtractionAPI.GetReport(context.Background(), taskResultId).FileFormat(fileFormat).Name(name).Auditable(auditable).Execute() @@ -19014,7 +19036,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19026,7 +19048,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ReportsDataExtractionAPI.GetReportResult(context.Background(), taskResultId).Execute() //resp, r, err := apiClient.V2025.ReportsDataExtractionAPI.GetReportResult(context.Background(), taskResultId).Completed(completed).Execute() @@ -19049,7 +19071,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19072,7 +19094,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ReportsDataExtractionAPI.StartReport(context.Background()).ReportDetails(reportDetails).Execute() //resp, r, err := apiClient.V2025.ReportsDataExtractionAPI.StartReport(context.Background()).ReportDetails(reportDetails).Execute() @@ -19095,7 +19117,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19114,7 +19136,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RequestableObjectsAPI.ListRequestableObjects(context.Background()).Execute() //resp, r, err := apiClient.V2025.RequestableObjectsAPI.ListRequestableObjects(context.Background()).IdentityId(identityId).Types(types).Term(term).Statuses(statuses).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -19137,7 +19159,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19148,7 +19170,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RoleInsightsAPI.CreateRoleInsightRequests(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.RoleInsightsAPI.CreateRoleInsightRequests(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -19171,7 +19193,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19185,7 +19207,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RoleInsightsAPI.DownloadRoleInsightsEntitlementsChanges(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.RoleInsightsAPI.DownloadRoleInsightsEntitlementsChanges(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Execute() @@ -19208,7 +19230,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19227,7 +19249,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RoleInsightsAPI.GetEntitlementChangesIdentities(context.Background(), insightId, entitlementId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.RoleInsightsAPI.GetEntitlementChangesIdentities(context.Background(), insightId, entitlementId).XSailPointExperimental(xSailPointExperimental).HasEntitlement(hasEntitlement).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Filters(filters).Execute() @@ -19250,7 +19272,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19262,7 +19284,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsight(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsight(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -19285,7 +19307,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19301,7 +19323,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsights(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsights(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Sorters(sorters).Filters(filters).Execute() @@ -19324,7 +19346,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19337,7 +19359,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsightsCurrentEntitlements(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsightsCurrentEntitlements(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Filters(filters).Execute() @@ -19360,7 +19382,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19374,7 +19396,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsightsEntitlementsChanges(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsightsEntitlementsChanges(context.Background(), insightId).XSailPointExperimental(xSailPointExperimental).Sorters(sorters).Filters(filters).Execute() @@ -19397,7 +19419,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19409,7 +19431,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsightsRequests(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsightsRequests(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -19432,7 +19454,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19443,7 +19465,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsightsSummary(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.RoleInsightsAPI.GetRoleInsightsSummary(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -19466,7 +19488,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19641,7 +19663,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RolesAPI.CreateRole(context.Background()).Role(role).Execute() //resp, r, err := apiClient.V2025.RolesAPI.CreateRole(context.Background()).Role(role).Execute() @@ -19664,7 +19686,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19683,7 +19705,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RolesAPI.DeleteBulkRoles(context.Background()).RoleBulkDeleteRequest(roleBulkDeleteRequest).Execute() //resp, r, err := apiClient.V2025.RolesAPI.DeleteBulkRoles(context.Background()).RoleBulkDeleteRequest(roleBulkDeleteRequest).Execute() @@ -19706,7 +19728,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19719,7 +19741,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.RolesAPI.DeleteMetadataFromRoleByKeyAndValue(context.Background(), id, attributeKey, attributeValue).Execute() //r, err := apiClient.V2025.RolesAPI.DeleteMetadataFromRoleByKeyAndValue(context.Background(), id, attributeKey, attributeValue).Execute() @@ -19740,7 +19762,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19751,7 +19773,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.RolesAPI.DeleteRole(context.Background(), id).Execute() //r, err := apiClient.V2025.RolesAPI.DeleteRole(context.Background(), id).Execute() @@ -19772,7 +19794,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19782,7 +19804,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RolesAPI.GetBulkUpdateStatus(context.Background()).Execute() //resp, r, err := apiClient.V2025.RolesAPI.GetBulkUpdateStatus(context.Background()).Execute() @@ -19805,7 +19827,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19816,7 +19838,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RolesAPI.GetBulkUpdateStatusById(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.RolesAPI.GetBulkUpdateStatusById(context.Background(), id).Execute() @@ -19839,7 +19861,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19850,7 +19872,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RolesAPI.GetRole(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.RolesAPI.GetRole(context.Background(), id).Execute() @@ -19873,7 +19895,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19889,7 +19911,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RolesAPI.GetRoleAssignedIdentities(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.RolesAPI.GetRoleAssignedIdentities(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -19912,7 +19934,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19929,7 +19951,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RolesAPI.GetRoleEntitlements(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.RolesAPI.GetRoleEntitlements(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -19952,7 +19974,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -19970,7 +19992,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RolesAPI.ListRoles(context.Background()).Execute() //resp, r, err := apiClient.V2025.RolesAPI.ListRoles(context.Background()).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).Execute() @@ -19993,7 +20015,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20003,7 +20025,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/requestable, value=true}, {op=replace, path=/enabled, value=true}]`) // []JsonPatchOperation | - var jsonPatchOperation v2025.[]JsonPatchOperation + var jsonPatchOperation []v2025.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -20011,7 +20033,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RolesAPI.PatchRole(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2025.RolesAPI.PatchRole(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -20034,7 +20056,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20058,7 +20080,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RolesAPI.SearchRolesByFilter(context.Background()).Execute() //resp, r, err := apiClient.V2025.RolesAPI.SearchRolesByFilter(context.Background()).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Sorters(sorters).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).RoleListFilterDTO(roleListFilterDTO).Execute() @@ -20081,7 +20103,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20094,7 +20116,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RolesAPI.UpdateAttributeKeyAndValueToRole(context.Background(), id, attributeKey, attributeValue).Execute() //resp, r, err := apiClient.V2025.RolesAPI.UpdateAttributeKeyAndValueToRole(context.Background(), id, attributeKey, attributeValue).Execute() @@ -20117,7 +20139,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20142,7 +20164,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RolesAPI.UpdateRolesMetadataByFilter(context.Background()).RoleMetadataBulkUpdateByFilterRequest(roleMetadataBulkUpdateByFilterRequest).Execute() //resp, r, err := apiClient.V2025.RolesAPI.UpdateRolesMetadataByFilter(context.Background()).RoleMetadataBulkUpdateByFilterRequest(roleMetadataBulkUpdateByFilterRequest).Execute() @@ -20165,7 +20187,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20190,7 +20212,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RolesAPI.UpdateRolesMetadataByIds(context.Background()).RoleMetadataBulkUpdateByIdRequest(roleMetadataBulkUpdateByIdRequest).Execute() //resp, r, err := apiClient.V2025.RolesAPI.UpdateRolesMetadataByIds(context.Background()).RoleMetadataBulkUpdateByIdRequest(roleMetadataBulkUpdateByIdRequest).Execute() @@ -20213,7 +20235,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20253,7 +20275,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.RolesAPI.UpdateRolesMetadataByQuery(context.Background()).RoleMetadataBulkUpdateByQueryRequest(roleMetadataBulkUpdateByQueryRequest).Execute() //resp, r, err := apiClient.V2025.RolesAPI.UpdateRolesMetadataByQuery(context.Background()).RoleMetadataBulkUpdateByQueryRequest(roleMetadataBulkUpdateByQueryRequest).Execute() @@ -20276,7 +20298,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20293,7 +20315,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SavedSearchAPI.CreateSavedSearch(context.Background()).CreateSavedSearchRequest(createSavedSearchRequest).Execute() //resp, r, err := apiClient.V2025.SavedSearchAPI.CreateSavedSearch(context.Background()).CreateSavedSearchRequest(createSavedSearchRequest).Execute() @@ -20316,7 +20338,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20327,7 +20349,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.SavedSearchAPI.DeleteSavedSearch(context.Background(), id).Execute() //r, err := apiClient.V2025.SavedSearchAPI.DeleteSavedSearch(context.Background(), id).Execute() @@ -20348,7 +20370,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20376,7 +20398,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.SavedSearchAPI.ExecuteSavedSearch(context.Background(), id).SearchArguments(searchArguments).Execute() //r, err := apiClient.V2025.SavedSearchAPI.ExecuteSavedSearch(context.Background(), id).SearchArguments(searchArguments).Execute() @@ -20397,7 +20419,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20408,7 +20430,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SavedSearchAPI.GetSavedSearch(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.SavedSearchAPI.GetSavedSearch(context.Background(), id).Execute() @@ -20431,7 +20453,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20445,7 +20467,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SavedSearchAPI.ListSavedSearches(context.Background()).Execute() //resp, r, err := apiClient.V2025.SavedSearchAPI.ListSavedSearches(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() @@ -20468,7 +20490,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20530,7 +20552,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SavedSearchAPI.PutSavedSearch(context.Background(), id).SavedSearch(savedSearch).Execute() //resp, r, err := apiClient.V2025.SavedSearchAPI.PutSavedSearch(context.Background(), id).SavedSearch(savedSearch).Execute() @@ -20553,7 +20575,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20570,7 +20592,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ScheduledSearchAPI.CreateScheduledSearch(context.Background()).CreateScheduledSearchRequest(createScheduledSearchRequest).Execute() //resp, r, err := apiClient.V2025.ScheduledSearchAPI.CreateScheduledSearch(context.Background()).CreateScheduledSearchRequest(createScheduledSearchRequest).Execute() @@ -20593,7 +20615,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20604,7 +20626,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.ScheduledSearchAPI.DeleteScheduledSearch(context.Background(), id).Execute() //r, err := apiClient.V2025.ScheduledSearchAPI.DeleteScheduledSearch(context.Background(), id).Execute() @@ -20625,7 +20647,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20636,7 +20658,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ScheduledSearchAPI.GetScheduledSearch(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.ScheduledSearchAPI.GetScheduledSearch(context.Background(), id).Execute() @@ -20659,7 +20681,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20673,7 +20695,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ScheduledSearchAPI.ListScheduledSearch(context.Background()).Execute() //resp, r, err := apiClient.V2025.ScheduledSearchAPI.ListScheduledSearch(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() @@ -20696,7 +20718,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20717,7 +20739,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.ScheduledSearchAPI.UnsubscribeScheduledSearch(context.Background(), id).TypedReference(typedReference).Execute() //r, err := apiClient.V2025.ScheduledSearchAPI.UnsubscribeScheduledSearch(context.Background(), id).TypedReference(typedReference).Execute() @@ -20738,7 +20760,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -20846,7 +20868,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ScheduledSearchAPI.UpdateScheduledSearch(context.Background(), id).ScheduledSearch(scheduledSearch).Execute() //resp, r, err := apiClient.V2025.ScheduledSearchAPI.UpdateScheduledSearch(context.Background(), id).ScheduledSearch(scheduledSearch).Execute() @@ -20869,7 +20891,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21005,7 +21027,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SearchAPI.SearchAggregate(context.Background()).Search(search).Execute() //resp, r, err := apiClient.V2025.SearchAPI.SearchAggregate(context.Background()).Search(search).Offset(offset).Limit(limit).Count(count).Execute() @@ -21028,7 +21050,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21161,7 +21183,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.SearchAPI.SearchCount(context.Background()).Search(search).Execute() //r, err := apiClient.V2025.SearchAPI.SearchCount(context.Background()).Search(search).Execute() @@ -21182,7 +21204,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21194,7 +21216,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SearchAPI.SearchGet(context.Background(), index, id).Execute() //resp, r, err := apiClient.V2025.SearchAPI.SearchGet(context.Background(), index, id).Execute() @@ -21217,7 +21239,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21353,7 +21375,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SearchAPI.SearchPost(context.Background()).Search(search).Execute() //resp, r, err := apiClient.V2025.SearchAPI.SearchPost(context.Background()).Search(search).Offset(offset).Limit(limit).Count(count).Execute() @@ -21376,7 +21398,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21401,7 +21423,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SearchAttributeConfigurationAPI.CreateSearchAttributeConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).SearchAttributeConfig(searchAttributeConfig).Execute() //resp, r, err := apiClient.V2025.SearchAttributeConfigurationAPI.CreateSearchAttributeConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).SearchAttributeConfig(searchAttributeConfig).Execute() @@ -21424,7 +21446,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21436,7 +21458,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() //r, err := apiClient.V2025.SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() @@ -21457,7 +21479,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21470,7 +21492,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SearchAttributeConfigurationAPI.GetSearchAttributeConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.SearchAttributeConfigurationAPI.GetSearchAttributeConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Execute() @@ -21493,7 +21515,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21505,7 +21527,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).Execute() @@ -21528,7 +21550,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21539,7 +21561,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/name, value=newAttributeName}, {op=replace, path=/displayName, value=new attribute display name}, {op=add, path=/applicationAttributes, value={2c91808b79fd2422017a0b35d30f3968=employeeNumber}}]`) // []JsonPatchOperation | - var jsonPatchOperation v2025.[]JsonPatchOperation + var jsonPatchOperation []v2025.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -21547,7 +21569,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SearchAttributeConfigurationAPI.PatchSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2025.SearchAttributeConfigurationAPI.PatchSearchAttributeConfig(context.Background(), name).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() @@ -21570,7 +21592,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21610,7 +21632,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SegmentsAPI.CreateSegment(context.Background()).Segment(segment).Execute() //resp, r, err := apiClient.V2025.SegmentsAPI.CreateSegment(context.Background()).Segment(segment).Execute() @@ -21633,7 +21655,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21644,7 +21666,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.SegmentsAPI.DeleteSegment(context.Background(), id).Execute() //r, err := apiClient.V2025.SegmentsAPI.DeleteSegment(context.Background(), id).Execute() @@ -21665,7 +21687,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21676,7 +21698,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SegmentsAPI.GetSegment(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.SegmentsAPI.GetSegment(context.Background(), id).Execute() @@ -21699,7 +21721,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21712,7 +21734,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SegmentsAPI.ListSegments(context.Background()).Execute() //resp, r, err := apiClient.V2025.SegmentsAPI.ListSegments(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() @@ -21735,7 +21757,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21745,7 +21767,7 @@ requestbody := []byte(`[{op=replace, path=/visibilityCriteria, value={expression={operator=AND, children=[{operator=EQUALS, attribute=location, value={type=STRING, value=Philadelphia}}, {operator=EQUALS, attribute=department, value={type=STRING, value=HR}}]}}}]`) // []map[string]interface{} | A list of segment update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * owner * visibilityCriteria * active - var requestBody v2025.[]RequestBody + var requestBody []v2025.RequestBody if err := json.Unmarshal(requestbody, &requestBody); err != nil { fmt.Println("Error:", err) return @@ -21753,7 +21775,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SegmentsAPI.PatchSegment(context.Background(), id).RequestBody(requestBody).Execute() //resp, r, err := apiClient.V2025.SegmentsAPI.PatchSegment(context.Background(), id).RequestBody(requestBody).Execute() @@ -21776,7 +21798,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21826,7 +21848,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.CreateServiceDeskIntegration(context.Background()).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() //resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.CreateServiceDeskIntegration(context.Background()).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() @@ -21849,7 +21871,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21860,7 +21882,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration(context.Background(), id).Execute() //r, err := apiClient.V2025.ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration(context.Background(), id).Execute() @@ -21881,7 +21903,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21892,7 +21914,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.GetServiceDeskIntegration(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.GetServiceDeskIntegration(context.Background(), id).Execute() @@ -21915,7 +21937,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21926,7 +21948,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate(context.Background(), scriptName).Execute() //resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate(context.Background(), scriptName).Execute() @@ -21949,7 +21971,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21959,7 +21981,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes(context.Background()).Execute() //resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes(context.Background()).Execute() @@ -21982,7 +22004,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -21997,7 +22019,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.GetServiceDeskIntegrations(context.Background()).Execute() //resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.GetServiceDeskIntegrations(context.Background()).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).Execute() @@ -22020,7 +22042,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22030,7 +22052,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.GetStatusCheckDetails(context.Background()).Execute() //resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.GetStatusCheckDetails(context.Background()).Execute() @@ -22053,7 +22075,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22063,7 +22085,7 @@ jsonpatchoperation := []byte(``) // []JsonPatchOperation | A list of SDIM update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Only `replace` operations are accepted by this endpoint. A 403 Forbidden Error indicates that a PATCH operation was attempted that is not allowed. - var jsonPatchOperation v2025.[]JsonPatchOperation + var jsonPatchOperation []v2025.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -22071,7 +22093,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.PatchServiceDeskIntegration(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.PatchServiceDeskIntegration(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -22094,7 +22116,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22145,7 +22167,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.PutServiceDeskIntegration(context.Background(), id).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() //resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.PutServiceDeskIntegration(context.Background(), id).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() @@ -22168,7 +22190,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22188,7 +22210,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.UpdateStatusCheckDetails(context.Background()).QueuedCheckConfigDetails(queuedCheckConfigDetails).Execute() //resp, r, err := apiClient.V2025.ServiceDeskIntegrationAPI.UpdateStatusCheckDetails(context.Background()).QueuedCheckConfigDetails(queuedCheckConfigDetails).Execute() @@ -22211,7 +22233,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22246,7 +22268,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SIMIntegrationsAPI.CreateSIMIntegration(context.Background()).XSailPointExperimental(xSailPointExperimental).SimIntegrationDetails(simIntegrationDetails).Execute() //resp, r, err := apiClient.V2025.SIMIntegrationsAPI.CreateSIMIntegration(context.Background()).XSailPointExperimental(xSailPointExperimental).SimIntegrationDetails(simIntegrationDetails).Execute() @@ -22269,7 +22291,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22281,7 +22303,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.SIMIntegrationsAPI.DeleteSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //r, err := apiClient.V2025.SIMIntegrationsAPI.DeleteSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -22302,7 +22324,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22314,7 +22336,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SIMIntegrationsAPI.GetSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.SIMIntegrationsAPI.GetSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -22337,7 +22359,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22348,7 +22370,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SIMIntegrationsAPI.GetSIMIntegrations(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.SIMIntegrationsAPI.GetSIMIntegrations(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -22371,7 +22393,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22400,7 +22422,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SIMIntegrationsAPI.PatchBeforeProvisioningRule(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatch(jsonPatch).Execute() //resp, r, err := apiClient.V2025.SIMIntegrationsAPI.PatchBeforeProvisioningRule(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatch(jsonPatch).Execute() @@ -22423,7 +22445,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22452,7 +22474,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SIMIntegrationsAPI.PatchSIMAttributes(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatch(jsonPatch).Execute() //resp, r, err := apiClient.V2025.SIMIntegrationsAPI.PatchSIMAttributes(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatch(jsonPatch).Execute() @@ -22475,7 +22497,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22511,7 +22533,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SIMIntegrationsAPI.PutSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SimIntegrationDetails(simIntegrationDetails).Execute() //resp, r, err := apiClient.V2025.SIMIntegrationsAPI.PutSIMIntegration(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SimIntegrationDetails(simIntegrationDetails).Execute() @@ -22534,7 +22556,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22606,7 +22628,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SODPoliciesAPI.CreateSodPolicy(context.Background()).SodPolicy(sodPolicy).Execute() //resp, r, err := apiClient.V2025.SODPoliciesAPI.CreateSodPolicy(context.Background()).SodPolicy(sodPolicy).Execute() @@ -22629,7 +22651,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22641,7 +22663,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.SODPoliciesAPI.DeleteSodPolicy(context.Background(), id).Execute() //r, err := apiClient.V2025.SODPoliciesAPI.DeleteSodPolicy(context.Background(), id).Logical(logical).Execute() @@ -22662,7 +22684,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22673,7 +22695,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.SODPoliciesAPI.DeleteSodPolicySchedule(context.Background(), id).Execute() //r, err := apiClient.V2025.SODPoliciesAPI.DeleteSodPolicySchedule(context.Background(), id).Execute() @@ -22694,7 +22716,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22706,7 +22728,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SODPoliciesAPI.GetCustomViolationReport(context.Background(), reportResultId, fileName).Execute() //resp, r, err := apiClient.V2025.SODPoliciesAPI.GetCustomViolationReport(context.Background(), reportResultId, fileName).Execute() @@ -22729,7 +22751,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22740,7 +22762,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SODPoliciesAPI.GetDefaultViolationReport(context.Background(), reportResultId).Execute() //resp, r, err := apiClient.V2025.SODPoliciesAPI.GetDefaultViolationReport(context.Background(), reportResultId).Execute() @@ -22763,7 +22785,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22773,7 +22795,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SODPoliciesAPI.GetSodAllReportRunStatus(context.Background()).Execute() //resp, r, err := apiClient.V2025.SODPoliciesAPI.GetSodAllReportRunStatus(context.Background()).Execute() @@ -22796,7 +22818,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22807,7 +22829,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SODPoliciesAPI.GetSodPolicy(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.SODPoliciesAPI.GetSodPolicy(context.Background(), id).Execute() @@ -22830,7 +22852,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22841,7 +22863,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SODPoliciesAPI.GetSodPolicySchedule(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.SODPoliciesAPI.GetSodPolicySchedule(context.Background(), id).Execute() @@ -22864,7 +22886,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22875,7 +22897,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SODPoliciesAPI.GetSodViolationReportRunStatus(context.Background(), reportResultId).Execute() //resp, r, err := apiClient.V2025.SODPoliciesAPI.GetSodViolationReportRunStatus(context.Background(), reportResultId).Execute() @@ -22898,7 +22920,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22909,7 +22931,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SODPoliciesAPI.GetSodViolationReportStatus(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.SODPoliciesAPI.GetSodViolationReportStatus(context.Background(), id).Execute() @@ -22932,7 +22954,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22947,7 +22969,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SODPoliciesAPI.ListSodPolicies(context.Background()).Execute() //resp, r, err := apiClient.V2025.SODPoliciesAPI.ListSodPolicies(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -22970,7 +22992,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -22980,7 +23002,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/description, value=Modified description}, {op=replace, path=/conflictingAccessCriteria/leftCriteria/name, value=money-in-modified}, {op=replace, path=/conflictingAccessCriteria/rightCriteria, value={name=money-out-modified, criteriaList=[{type=ENTITLEMENT, id=2c918087682f9a86016839c0509c1ab2}]}}]`) // []JsonPatchOperation | A list of SOD Policy update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * ownerRef * externalPolicyReference * compensatingControls * correctionAdvice * state * tags * violationOwnerAssignmentConfig * scheduled * conflictingAccessCriteria - var jsonPatchOperation v2025.[]JsonPatchOperation + var jsonPatchOperation []v2025.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -22988,7 +23010,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SODPoliciesAPI.PatchSodPolicy(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2025.SODPoliciesAPI.PatchSodPolicy(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -23011,7 +23033,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23114,7 +23136,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SODPoliciesAPI.PutPolicySchedule(context.Background(), id).SodPolicySchedule(sodPolicySchedule).Execute() //resp, r, err := apiClient.V2025.SODPoliciesAPI.PutPolicySchedule(context.Background(), id).SodPolicySchedule(sodPolicySchedule).Execute() @@ -23137,7 +23159,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23210,7 +23232,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SODPoliciesAPI.PutSodPolicy(context.Background(), id).SodPolicy(sodPolicy).Execute() //resp, r, err := apiClient.V2025.SODPoliciesAPI.PutSodPolicy(context.Background(), id).SodPolicy(sodPolicy).Execute() @@ -23233,7 +23255,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23244,7 +23266,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SODPoliciesAPI.StartEvaluateSodPolicy(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.SODPoliciesAPI.StartEvaluateSodPolicy(context.Background(), id).Execute() @@ -23267,7 +23289,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23280,7 +23302,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SODPoliciesAPI.StartSodAllPoliciesForOrg(context.Background()).Execute() //resp, r, err := apiClient.V2025.SODPoliciesAPI.StartSodAllPoliciesForOrg(context.Background()).MultiPolicyRequest(multiPolicyRequest).Execute() @@ -23303,7 +23325,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23314,7 +23336,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SODPoliciesAPI.StartSodPolicy(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.SODPoliciesAPI.StartSodPolicy(context.Background(), id).Execute() @@ -23337,7 +23359,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23365,7 +23387,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SODViolationsAPI.StartPredictSodViolations(context.Background()).IdentityWithNewAccess(identityWithNewAccess).Execute() //resp, r, err := apiClient.V2025.SODViolationsAPI.StartPredictSodViolations(context.Background()).IdentityWithNewAccess(identityWithNewAccess).Execute() @@ -23388,7 +23410,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23405,7 +23427,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SODViolationsAPI.StartViolationCheck(context.Background()).IdentityWithNewAccess1(identityWithNewAccess1).Execute() //resp, r, err := apiClient.V2025.SODViolationsAPI.StartViolationCheck(context.Background()).IdentityWithNewAccess1(identityWithNewAccess1).Execute() @@ -23428,7 +23450,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23485,7 +23507,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.CreateProvisioningPolicy(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.CreateProvisioningPolicy(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() @@ -23508,7 +23530,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23608,7 +23630,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.CreateSource(context.Background()).Source(source).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.CreateSource(context.Background()).Source(source).ProvisionAsCsv(provisionAsCsv).Execute() @@ -23631,7 +23653,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23649,7 +23671,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.CreateSourceSchedule(context.Background(), sourceId).Schedule1(schedule1).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.CreateSourceSchedule(context.Background(), sourceId).Schedule1(schedule1).Execute() @@ -23672,7 +23694,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23723,7 +23745,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.CreateSourceSchema(context.Background(), sourceId).Schema(schema).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.CreateSourceSchema(context.Background(), sourceId).Schema(schema).Execute() @@ -23746,7 +23768,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23758,7 +23780,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.DeleteAccountsAsync(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.DeleteAccountsAsync(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -23781,7 +23803,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23793,7 +23815,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.SourcesAPI.DeleteNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //r, err := apiClient.V2025.SourcesAPI.DeleteNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -23814,7 +23836,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23826,7 +23848,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.SourcesAPI.DeleteProvisioningPolicy(context.Background(), sourceId, usageType).Execute() //r, err := apiClient.V2025.SourcesAPI.DeleteProvisioningPolicy(context.Background(), sourceId, usageType).Execute() @@ -23847,7 +23869,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23858,7 +23880,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.DeleteSource(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.DeleteSource(context.Background(), id).Execute() @@ -23881,7 +23903,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23893,7 +23915,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.SourcesAPI.DeleteSourceSchedule(context.Background(), sourceId, scheduleType).Execute() //r, err := apiClient.V2025.SourcesAPI.DeleteSourceSchedule(context.Background(), sourceId, scheduleType).Execute() @@ -23914,7 +23936,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23926,7 +23948,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.SourcesAPI.DeleteSourceSchema(context.Background(), sourceId, schemaId).Execute() //r, err := apiClient.V2025.SourcesAPI.DeleteSourceSchema(context.Background(), sourceId, schemaId).Execute() @@ -23947,7 +23969,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23958,7 +23980,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.SourcesAPI.GetAccountsSchema(context.Background(), id).Execute() //r, err := apiClient.V2025.SourcesAPI.GetAccountsSchema(context.Background(), id).Execute() @@ -23979,7 +24001,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -23990,7 +24012,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.GetCorrelationConfig(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.GetCorrelationConfig(context.Background(), id).Execute() @@ -24013,7 +24035,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24025,7 +24047,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.SourcesAPI.GetEntitlementsSchema(context.Background(), id).Execute() //r, err := apiClient.V2025.SourcesAPI.GetEntitlementsSchema(context.Background(), id).SchemaName(schemaName).Execute() @@ -24046,7 +24068,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24058,7 +24080,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.GetNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.GetNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -24081,7 +24103,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24093,7 +24115,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.GetProvisioningPolicy(context.Background(), sourceId, usageType).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.GetProvisioningPolicy(context.Background(), sourceId, usageType).Execute() @@ -24116,7 +24138,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24127,7 +24149,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.GetSource(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.GetSource(context.Background(), id).Execute() @@ -24150,7 +24172,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24162,7 +24184,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.GetSourceAttrSyncConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.GetSourceAttrSyncConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -24185,7 +24207,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24197,7 +24219,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.GetSourceConfig(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.GetSourceConfig(context.Background(), id).Locale(locale).Execute() @@ -24220,7 +24242,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24231,7 +24253,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.GetSourceConnections(context.Background(), sourceId).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.GetSourceConnections(context.Background(), sourceId).Execute() @@ -24254,7 +24276,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24265,7 +24287,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.GetSourceEntitlementRequestConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.GetSourceEntitlementRequestConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -24288,7 +24310,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24299,7 +24321,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.GetSourceHealth(context.Background(), sourceId).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.GetSourceHealth(context.Background(), sourceId).Execute() @@ -24322,7 +24344,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24334,7 +24356,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.GetSourceSchedule(context.Background(), sourceId, scheduleType).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.GetSourceSchedule(context.Background(), sourceId, scheduleType).Execute() @@ -24357,7 +24379,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24368,7 +24390,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.GetSourceSchedules(context.Background(), sourceId).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.GetSourceSchedules(context.Background(), sourceId).Execute() @@ -24391,7 +24413,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24403,7 +24425,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.GetSourceSchema(context.Background(), sourceId, schemaId).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.GetSourceSchema(context.Background(), sourceId, schemaId).Execute() @@ -24426,7 +24448,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24439,7 +24461,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.GetSourceSchemas(context.Background(), sourceId).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.GetSourceSchemas(context.Background(), sourceId).IncludeTypes(includeTypes).IncludeNames(includeNames).Execute() @@ -24462,7 +24484,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24475,7 +24497,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.ImportAccounts(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.ImportAccounts(context.Background(), id).File(file).DisableOptimization(disableOptimization).Execute() @@ -24498,7 +24520,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24510,7 +24532,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.ImportAccountsSchema(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.ImportAccountsSchema(context.Background(), id).File(file).Execute() @@ -24533,7 +24555,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24545,7 +24567,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.ImportConnectorFile(context.Background(), sourceId).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.ImportConnectorFile(context.Background(), sourceId).File(file).Execute() @@ -24568,7 +24590,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24581,7 +24603,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.ImportEntitlementsSchema(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.ImportEntitlementsSchema(context.Background(), id).SchemaName(schemaName).File(file).Execute() @@ -24604,7 +24626,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24617,7 +24639,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.ImportUncorrelatedAccounts(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.ImportUncorrelatedAccounts(context.Background(), id).XSailPointExperimental(xSailPointExperimental).File(file).Execute() @@ -24640,7 +24662,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24651,7 +24673,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.ListProvisioningPolicies(context.Background(), sourceId).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.ListProvisioningPolicies(context.Background(), sourceId).Execute() @@ -24674,7 +24696,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24691,7 +24713,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.ListSources(context.Background()).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.ListSources(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSubadmin(forSubadmin).IncludeIDNSource(includeIDNSource).Execute() @@ -24714,7 +24736,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24725,7 +24747,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.PingCluster(context.Background(), sourceId).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.PingCluster(context.Background(), sourceId).Execute() @@ -24748,7 +24770,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24786,7 +24808,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.PutCorrelationConfig(context.Background(), id).CorrelationConfig(correlationConfig).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.PutCorrelationConfig(context.Background(), id).CorrelationConfig(correlationConfig).Execute() @@ -24809,7 +24831,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24835,7 +24857,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.PutNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).NativeChangeDetectionConfig(nativeChangeDetectionConfig).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.PutNativeChangeDetectionConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).NativeChangeDetectionConfig(nativeChangeDetectionConfig).Execute() @@ -24858,7 +24880,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -24916,7 +24938,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.PutProvisioningPolicy(context.Background(), sourceId, usageType).ProvisioningPolicyDto(provisioningPolicyDto).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.PutProvisioningPolicy(context.Background(), sourceId, usageType).ProvisioningPolicyDto(provisioningPolicyDto).Execute() @@ -24939,7 +24961,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25039,7 +25061,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.PutSource(context.Background(), id).Source(source).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.PutSource(context.Background(), id).Source(source).Execute() @@ -25062,7 +25084,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25098,7 +25120,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.PutSourceAttrSyncConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).AttrSyncSourceConfig(attrSyncSourceConfig).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.PutSourceAttrSyncConfig(context.Background(), id).XSailPointExperimental(xSailPointExperimental).AttrSyncSourceConfig(attrSyncSourceConfig).Execute() @@ -25121,7 +25143,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25173,7 +25195,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.PutSourceSchema(context.Background(), sourceId, schemaId).Schema(schema).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.PutSourceSchema(context.Background(), sourceId, schemaId).Schema(schema).Execute() @@ -25196,7 +25218,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25217,7 +25239,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.SearchResourceObjects(context.Background(), sourceId).ResourceObjectsRequest(resourceObjectsRequest).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.SearchResourceObjects(context.Background(), sourceId).ResourceObjectsRequest(resourceObjectsRequest).Execute() @@ -25240,7 +25262,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25252,7 +25274,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.SyncAttributesForSource(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.SyncAttributesForSource(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -25275,7 +25297,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25286,7 +25308,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.TestSourceConfiguration(context.Background(), sourceId).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.TestSourceConfiguration(context.Background(), sourceId).Execute() @@ -25309,7 +25331,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25320,7 +25342,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.TestSourceConnection(context.Background(), sourceId).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.TestSourceConnection(context.Background(), sourceId).Execute() @@ -25343,7 +25365,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25353,7 +25375,7 @@ passwordpolicyholdersdtoinner := []byte(``) // []PasswordPolicyHoldersDtoInner | - var passwordPolicyHoldersDtoInner v2025.[]PasswordPolicyHoldersDtoInner + var passwordPolicyHoldersDtoInner []v2025.PasswordPolicyHoldersDtoInner if err := json.Unmarshal(passwordpolicyholdersdtoinner, &passwordPolicyHoldersDtoInner); err != nil { fmt.Println("Error:", err) return @@ -25361,7 +25383,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.UpdatePasswordPolicyHolders(context.Background(), sourceId).PasswordPolicyHoldersDtoInner(passwordPolicyHoldersDtoInner).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.UpdatePasswordPolicyHolders(context.Background(), sourceId).PasswordPolicyHoldersDtoInner(passwordPolicyHoldersDtoInner).Execute() @@ -25384,7 +25406,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25394,7 +25416,7 @@ provisioningpolicydto := []byte(``) // []ProvisioningPolicyDto | - var provisioningPolicyDto v2025.[]ProvisioningPolicyDto + var provisioningPolicyDto []v2025.ProvisioningPolicyDto if err := json.Unmarshal(provisioningpolicydto, &provisioningPolicyDto); err != nil { fmt.Println("Error:", err) return @@ -25402,7 +25424,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.UpdateProvisioningPoliciesInBulk(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.UpdateProvisioningPoliciesInBulk(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() @@ -25425,7 +25447,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25436,7 +25458,7 @@ jsonpatchoperation := []byte(`[{op=add, path=/fields/0, value={name=email, transform={type=identityAttribute, attributes={name=email}}, attributes={}, isRequired=false, type=string, isMultiValued=false}}]`) // []JsonPatchOperation | The JSONPatch payload used to update the schema. - var jsonPatchOperation v2025.[]JsonPatchOperation + var jsonPatchOperation []v2025.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -25444,7 +25466,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.UpdateProvisioningPolicy(context.Background(), sourceId, usageType).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.UpdateProvisioningPolicy(context.Background(), sourceId, usageType).JsonPatchOperation(jsonPatchOperation).Execute() @@ -25467,7 +25489,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25477,7 +25499,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/description, value=new description}]`) // []JsonPatchOperation | A list of account update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Any password changes are submitted as plain-text and encrypted upon receipt in Identity Security Cloud (ISC). - var jsonPatchOperation v2025.[]JsonPatchOperation + var jsonPatchOperation []v2025.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -25485,7 +25507,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.UpdateSource(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.UpdateSource(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -25508,7 +25530,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25525,7 +25547,17 @@ "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", "approverType" : "GOVERNANCE_GROUP" } ], + "reauthorizationRequired" : false, "requestCommentRequired" : true + }, + "revocationRequestConfig" : { + "approvalSchemes" : [ { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + }, { + "approverId" : "e3eab852-8315-467f-9de7-70eda97f63c8", + "approverType" : "GOVERNANCE_GROUP" + } ] } }`) // SourceEntitlementRequestConfig | @@ -25538,7 +25570,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.UpdateSourceEntitlementRequestConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).SourceEntitlementRequestConfig(sourceEntitlementRequestConfig).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.UpdateSourceEntitlementRequestConfig(context.Background()).XSailPointExperimental(xSailPointExperimental).SourceEntitlementRequestConfig(sourceEntitlementRequestConfig).Execute() @@ -25561,7 +25593,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25572,7 +25604,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/cronExpression, value=0 0 6 * * ?}]`) // []JsonPatchOperation | The JSONPatch payload used to update the schedule. - var jsonPatchOperation v2025.[]JsonPatchOperation + var jsonPatchOperation []v2025.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -25580,7 +25612,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.UpdateSourceSchedule(context.Background(), sourceId, scheduleType).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.UpdateSourceSchedule(context.Background(), sourceId, scheduleType).JsonPatchOperation(jsonPatchOperation).Execute() @@ -25603,7 +25635,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25614,7 +25646,7 @@ jsonpatchoperation := []byte(`[{op=add, path=/attributes/-, value={name=location, type=STRING, schema=null, description=Employee location, isMulti=false, isEntitlement=false, isGroup=false}}]`) // []JsonPatchOperation | The JSONPatch payload used to update the schema. - var jsonPatchOperation v2025.[]JsonPatchOperation + var jsonPatchOperation []v2025.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -25622,7 +25654,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourcesAPI.UpdateSourceSchema(context.Background(), sourceId, schemaId).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2025.SourcesAPI.UpdateSourceSchema(context.Background(), sourceId, schemaId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -25645,7 +25677,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25656,7 +25688,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourceUsagesAPI.GetStatusBySourceId(context.Background(), sourceId).Execute() //resp, r, err := apiClient.V2025.SourceUsagesAPI.GetStatusBySourceId(context.Background(), sourceId).Execute() @@ -25679,7 +25711,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25694,7 +25726,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SourceUsagesAPI.GetUsagesBySourceId(context.Background(), sourceId).Execute() //resp, r, err := apiClient.V2025.SourceUsagesAPI.GetUsagesBySourceId(context.Background(), sourceId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() @@ -25717,7 +25749,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25736,7 +25768,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SPConfigAPI.ExportSpConfig(context.Background()).ExportPayload(exportPayload).Execute() //resp, r, err := apiClient.V2025.SPConfigAPI.ExportSpConfig(context.Background()).ExportPayload(exportPayload).Execute() @@ -25759,7 +25791,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25770,7 +25802,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SPConfigAPI.GetSpConfigExport(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.SPConfigAPI.GetSpConfigExport(context.Background(), id).Execute() @@ -25793,7 +25825,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25804,7 +25836,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SPConfigAPI.GetSpConfigExportStatus(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.SPConfigAPI.GetSpConfigExportStatus(context.Background(), id).Execute() @@ -25827,7 +25859,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25838,7 +25870,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SPConfigAPI.GetSpConfigImport(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.SPConfigAPI.GetSpConfigImport(context.Background(), id).Execute() @@ -25861,7 +25893,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25872,7 +25904,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SPConfigAPI.GetSpConfigImportStatus(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.SPConfigAPI.GetSpConfigImportStatus(context.Background(), id).Execute() @@ -25895,7 +25927,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25908,7 +25940,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SPConfigAPI.ImportSpConfig(context.Background()).Data(data).Execute() //resp, r, err := apiClient.V2025.SPConfigAPI.ImportSpConfig(context.Background()).Data(data).Preview(preview).Options(options).Execute() @@ -25931,7 +25963,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25941,7 +25973,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SPConfigAPI.ListSpConfigObjects(context.Background()).Execute() //resp, r, err := apiClient.V2025.SPConfigAPI.ListSpConfigObjects(context.Background()).Execute() @@ -25964,7 +25996,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -25975,7 +26007,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.GetSedBatchStats(context.Background(), batchId).Execute() //resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.GetSedBatchStats(context.Background(), batchId).Execute() @@ -25998,7 +26030,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26008,7 +26040,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.GetSedBatches(context.Background()).Execute() //resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.GetSedBatches(context.Background()).Execute() @@ -26031,7 +26063,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26049,7 +26081,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.ListSeds(context.Background()).Execute() //resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.ListSeds(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).CountOnly(countOnly).RequestedByAnyone(requestedByAnyone).ShowPendingStatusOnly(showPendingStatusOnly).Execute() @@ -26072,7 +26104,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26082,7 +26114,7 @@ sedpatch := []byte(``) // []SedPatch | Sed Patch Request - var sedPatch v2025.[]SedPatch + var sedPatch []v2025.SedPatch if err := json.Unmarshal(sedpatch, &sedPatch); err != nil { fmt.Println("Error:", err) return @@ -26090,7 +26122,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.PatchSed(context.Background(), id).SedPatch(sedPatch).Execute() //resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.PatchSed(context.Background(), id).SedPatch(sedPatch).Execute() @@ -26113,7 +26145,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26122,7 +26154,7 @@ sedapproval := []byte(``) // []SedApproval | Sed Approval - var sedApproval v2025.[]SedApproval + var sedApproval []v2025.SedApproval if err := json.Unmarshal(sedapproval, &sedApproval); err != nil { fmt.Println("Error:", err) return @@ -26130,7 +26162,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.SubmitSedApproval(context.Background()).SedApproval(sedApproval).Execute() //resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.SubmitSedApproval(context.Background()).SedApproval(sedApproval).Execute() @@ -26153,7 +26185,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26176,7 +26208,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.SubmitSedAssignment(context.Background()).SedAssignment(sedAssignment).Execute() //resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.SubmitSedAssignment(context.Background()).SedAssignment(sedAssignment).Execute() @@ -26199,7 +26231,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26213,7 +26245,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.SubmitSedBatchRequest(context.Background()).Execute() //resp, r, err := apiClient.V2025.SuggestedEntitlementDescriptionAPI.SubmitSedBatchRequest(context.Background()).SedBatchRequest(sedBatchRequest).Execute() @@ -26236,7 +26268,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26248,7 +26280,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.TaggedObjectsAPI.DeleteTaggedObject(context.Background(), type_, id).Execute() //r, err := apiClient.V2025.TaggedObjectsAPI.DeleteTaggedObject(context.Background(), type_, id).Execute() @@ -26269,7 +26301,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26297,7 +26329,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.TaggedObjectsAPI.DeleteTagsToManyObject(context.Background()).BulkRemoveTaggedObject(bulkRemoveTaggedObject).Execute() //r, err := apiClient.V2025.TaggedObjectsAPI.DeleteTagsToManyObject(context.Background()).BulkRemoveTaggedObject(bulkRemoveTaggedObject).Execute() @@ -26318,7 +26350,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26330,7 +26362,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TaggedObjectsAPI.GetTaggedObject(context.Background(), type_, id).Execute() //resp, r, err := apiClient.V2025.TaggedObjectsAPI.GetTaggedObject(context.Background(), type_, id).Execute() @@ -26353,7 +26385,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26367,7 +26399,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TaggedObjectsAPI.ListTaggedObjects(context.Background()).Execute() //resp, r, err := apiClient.V2025.TaggedObjectsAPI.ListTaggedObjects(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() @@ -26390,7 +26422,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26405,7 +26437,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TaggedObjectsAPI.ListTaggedObjectsByType(context.Background(), type_).Execute() //resp, r, err := apiClient.V2025.TaggedObjectsAPI.ListTaggedObjectsByType(context.Background(), type_).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() @@ -26428,7 +26460,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26454,7 +26486,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TaggedObjectsAPI.PutTaggedObject(context.Background(), type_, id).TaggedObject(taggedObject).Execute() //resp, r, err := apiClient.V2025.TaggedObjectsAPI.PutTaggedObject(context.Background(), type_, id).TaggedObject(taggedObject).Execute() @@ -26477,7 +26509,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26501,7 +26533,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.TaggedObjectsAPI.SetTagToObject(context.Background()).TaggedObject(taggedObject).Execute() //r, err := apiClient.V2025.TaggedObjectsAPI.SetTagToObject(context.Background()).TaggedObject(taggedObject).Execute() @@ -26522,7 +26554,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26551,7 +26583,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TaggedObjectsAPI.SetTagsToManyObjects(context.Background()).BulkAddTaggedObject(bulkAddTaggedObject).Execute() //resp, r, err := apiClient.V2025.TaggedObjectsAPI.SetTagsToManyObjects(context.Background()).BulkAddTaggedObject(bulkAddTaggedObject).Execute() @@ -26574,7 +26606,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26588,7 +26620,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.TaskManagementAPI.GetPendingTaskHeaders(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //r, err := apiClient.V2025.TaskManagementAPI.GetPendingTaskHeaders(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Execute() @@ -26609,7 +26641,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26623,7 +26655,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TaskManagementAPI.GetPendingTasks(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.TaskManagementAPI.GetPendingTasks(context.Background()).XSailPointExperimental(xSailPointExperimental).Offset(offset).Limit(limit).Count(count).Execute() @@ -26646,7 +26678,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26658,7 +26690,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TaskManagementAPI.GetTaskStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.TaskManagementAPI.GetTaskStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -26681,7 +26713,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26697,7 +26729,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TaskManagementAPI.GetTaskStatusList(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.TaskManagementAPI.GetTaskStatusList(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -26720,7 +26752,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26731,7 +26763,7 @@ jsonpatchoperation := []byte(``) // []JsonPatchOperation | The JSONPatch payload used to update the object. - var jsonPatchOperation v2025.[]JsonPatchOperation + var jsonPatchOperation []v2025.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -26739,7 +26771,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TaskManagementAPI.UpdateTaskStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2025.TaskManagementAPI.UpdateTaskStatus(context.Background(), id).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() @@ -26762,7 +26794,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26772,7 +26804,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TenantAPI.GetTenant(context.Background()).Execute() //resp, r, err := apiClient.V2025.TenantAPI.GetTenant(context.Background()).Execute() @@ -26795,7 +26827,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26806,7 +26838,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TenantContextAPI.GetTenantContext(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.TenantContextAPI.GetTenantContext(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -26829,7 +26861,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26851,7 +26883,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.TenantContextAPI.PatchTenantContext(context.Background()).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() //r, err := apiClient.V2025.TenantContextAPI.PatchTenantContext(context.Background()).XSailPointExperimental(xSailPointExperimental).JsonPatchOperation(jsonPatchOperation).Execute() @@ -26872,7 +26904,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26893,7 +26925,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TransformsAPI.CreateTransform(context.Background()).Transform(transform).Execute() //resp, r, err := apiClient.V2025.TransformsAPI.CreateTransform(context.Background()).Transform(transform).Execute() @@ -26916,7 +26948,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26927,7 +26959,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.TransformsAPI.DeleteTransform(context.Background(), id).Execute() //r, err := apiClient.V2025.TransformsAPI.DeleteTransform(context.Background(), id).Execute() @@ -26948,7 +26980,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26959,7 +26991,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TransformsAPI.GetTransform(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.TransformsAPI.GetTransform(context.Background(), id).Execute() @@ -26982,7 +27014,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -26997,7 +27029,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TransformsAPI.ListTransforms(context.Background()).Execute() //resp, r, err := apiClient.V2025.TransformsAPI.ListTransforms(context.Background()).Offset(offset).Limit(limit).Count(count).Name(name).Filters(filters).Execute() @@ -27020,7 +27052,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27036,7 +27068,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TransformsAPI.UpdateTransform(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.TransformsAPI.UpdateTransform(context.Background(), id).Transform(transform).Execute() @@ -27059,7 +27091,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27084,7 +27116,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.TriggersAPI.CompleteTriggerInvocation(context.Background(), id).XSailPointExperimental(xSailPointExperimental).CompleteInvocation(completeInvocation).Execute() //r, err := apiClient.V2025.TriggersAPI.CompleteTriggerInvocation(context.Background(), id).XSailPointExperimental(xSailPointExperimental).CompleteInvocation(completeInvocation).Execute() @@ -27105,7 +27137,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27147,7 +27179,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TriggersAPI.CreateSubscription(context.Background()).XSailPointExperimental(xSailPointExperimental).SubscriptionPostRequest(subscriptionPostRequest).Execute() //resp, r, err := apiClient.V2025.TriggersAPI.CreateSubscription(context.Background()).XSailPointExperimental(xSailPointExperimental).SubscriptionPostRequest(subscriptionPostRequest).Execute() @@ -27170,7 +27202,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27182,7 +27214,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.TriggersAPI.DeleteSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() //r, err := apiClient.V2025.TriggersAPI.DeleteSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).Execute() @@ -27203,7 +27235,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27219,7 +27251,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TriggersAPI.ListSubscriptions(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.TriggersAPI.ListSubscriptions(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -27242,7 +27274,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27258,7 +27290,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TriggersAPI.ListTriggerInvocationStatus(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.TriggersAPI.ListTriggerInvocationStatus(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -27281,7 +27313,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27297,7 +27329,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TriggersAPI.ListTriggers(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.TriggersAPI.ListTriggers(context.Background()).XSailPointExperimental(xSailPointExperimental).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -27320,7 +27352,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27331,7 +27363,7 @@ subscriptionpatchrequestinner := []byte(``) // []SubscriptionPatchRequestInner | - var subscriptionPatchRequestInner v2025.[]SubscriptionPatchRequestInner + var subscriptionPatchRequestInner []v2025.SubscriptionPatchRequestInner if err := json.Unmarshal(subscriptionpatchrequestinner, &subscriptionPatchRequestInner); err != nil { fmt.Println("Error:", err) return @@ -27339,7 +27371,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TriggersAPI.PatchSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SubscriptionPatchRequestInner(subscriptionPatchRequestInner).Execute() //resp, r, err := apiClient.V2025.TriggersAPI.PatchSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SubscriptionPatchRequestInner(subscriptionPatchRequestInner).Execute() @@ -27362,7 +27394,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27389,7 +27421,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TriggersAPI.StartTestTriggerInvocation(context.Background()).XSailPointExperimental(xSailPointExperimental).TestInvocation(testInvocation).Execute() //resp, r, err := apiClient.V2025.TriggersAPI.StartTestTriggerInvocation(context.Background()).XSailPointExperimental(xSailPointExperimental).TestInvocation(testInvocation).Execute() @@ -27412,7 +27444,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27435,7 +27467,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TriggersAPI.TestSubscriptionFilter(context.Background()).XSailPointExperimental(xSailPointExperimental).ValidateFilterInputDto(validateFilterInputDto).Execute() //resp, r, err := apiClient.V2025.TriggersAPI.TestSubscriptionFilter(context.Background()).XSailPointExperimental(xSailPointExperimental).ValidateFilterInputDto(validateFilterInputDto).Execute() @@ -27458,7 +27490,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27500,7 +27532,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.TriggersAPI.UpdateSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SubscriptionPutRequest(subscriptionPutRequest).Execute() //resp, r, err := apiClient.V2025.TriggersAPI.UpdateSubscription(context.Background(), id).XSailPointExperimental(xSailPointExperimental).SubscriptionPutRequest(subscriptionPutRequest).Execute() @@ -27523,7 +27555,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27534,7 +27566,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.UIMetadataAPI.GetTenantUiMetadata(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.UIMetadataAPI.GetTenantUiMetadata(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -27557,7 +27589,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27579,7 +27611,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.UIMetadataAPI.SetTenantUiMetadata(context.Background()).XSailPointExperimental(xSailPointExperimental).TenantUiMetadataItemUpdateRequest(tenantUiMetadataItemUpdateRequest).Execute() //resp, r, err := apiClient.V2025.UIMetadataAPI.SetTenantUiMetadata(context.Background()).XSailPointExperimental(xSailPointExperimental).TenantUiMetadataItemUpdateRequest(tenantUiMetadataItemUpdateRequest).Execute() @@ -27602,7 +27634,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27641,7 +27673,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.VendorConnectorMappingsAPI.CreateVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() //resp, r, err := apiClient.V2025.VendorConnectorMappingsAPI.CreateVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() @@ -27664,7 +27696,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27703,7 +27735,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.VendorConnectorMappingsAPI.DeleteVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() //resp, r, err := apiClient.V2025.VendorConnectorMappingsAPI.DeleteVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() @@ -27726,7 +27758,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27736,7 +27768,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.VendorConnectorMappingsAPI.GetVendorConnectorMappings(context.Background()).Execute() //resp, r, err := apiClient.V2025.VendorConnectorMappingsAPI.GetVendorConnectorMappings(context.Background()).Execute() @@ -27759,7 +27791,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27770,7 +27802,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.WorkflowsAPI.CancelWorkflowExecution(context.Background(), id).Execute() //r, err := apiClient.V2025.WorkflowsAPI.CancelWorkflowExecution(context.Background(), id).Execute() @@ -27791,7 +27823,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27803,7 +27835,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkflowsAPI.CreateExternalExecuteWorkflow(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.WorkflowsAPI.CreateExternalExecuteWorkflow(context.Background(), id).CreateExternalExecuteWorkflowRequest(createExternalExecuteWorkflowRequest).Execute() @@ -27826,7 +27858,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27843,7 +27875,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkflowsAPI.CreateWorkflow(context.Background()).CreateWorkflowRequest(createWorkflowRequest).Execute() //resp, r, err := apiClient.V2025.WorkflowsAPI.CreateWorkflow(context.Background()).CreateWorkflowRequest(createWorkflowRequest).Execute() @@ -27866,7 +27898,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27877,7 +27909,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkflowsAPI.CreateWorkflowExternalTrigger(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.WorkflowsAPI.CreateWorkflowExternalTrigger(context.Background(), id).Execute() @@ -27900,7 +27932,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27911,7 +27943,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.WorkflowsAPI.DeleteWorkflow(context.Background(), id).Execute() //r, err := apiClient.V2025.WorkflowsAPI.DeleteWorkflow(context.Background(), id).Execute() @@ -27932,7 +27964,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27943,7 +27975,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkflowsAPI.GetWorkflow(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.WorkflowsAPI.GetWorkflow(context.Background(), id).Execute() @@ -27966,7 +27998,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -27977,7 +28009,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkflowsAPI.GetWorkflowExecution(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.WorkflowsAPI.GetWorkflowExecution(context.Background(), id).Execute() @@ -28000,7 +28032,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28011,7 +28043,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkflowsAPI.GetWorkflowExecutionHistory(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.WorkflowsAPI.GetWorkflowExecutionHistory(context.Background(), id).Execute() @@ -28034,7 +28066,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28049,7 +28081,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkflowsAPI.GetWorkflowExecutions(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.WorkflowsAPI.GetWorkflowExecutions(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() @@ -28072,7 +28104,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28084,7 +28116,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkflowsAPI.ListCompleteWorkflowLibrary(context.Background()).Execute() //resp, r, err := apiClient.V2025.WorkflowsAPI.ListCompleteWorkflowLibrary(context.Background()).Limit(limit).Offset(offset).Execute() @@ -28107,7 +28139,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28120,7 +28152,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkflowsAPI.ListWorkflowLibraryActions(context.Background()).Execute() //resp, r, err := apiClient.V2025.WorkflowsAPI.ListWorkflowLibraryActions(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() @@ -28143,7 +28175,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28153,7 +28185,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkflowsAPI.ListWorkflowLibraryOperators(context.Background()).Execute() //resp, r, err := apiClient.V2025.WorkflowsAPI.ListWorkflowLibraryOperators(context.Background()).Execute() @@ -28176,7 +28208,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28189,7 +28221,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkflowsAPI.ListWorkflowLibraryTriggers(context.Background()).Execute() //resp, r, err := apiClient.V2025.WorkflowsAPI.ListWorkflowLibraryTriggers(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() @@ -28212,7 +28244,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28222,7 +28254,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkflowsAPI.ListWorkflows(context.Background()).Execute() //resp, r, err := apiClient.V2025.WorkflowsAPI.ListWorkflows(context.Background()).Execute() @@ -28245,7 +28277,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28255,7 +28287,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/name, value=Send Email}, {op=replace, path=/owner, value={type=IDENTITY, id=2c91808568c529c60168cca6f90c1313, name=William Wilson}}, {op=replace, path=/description, value=Send an email to the identity who's attributes changed.}, {op=replace, path=/enabled, value=false}, {op=replace, path=/definition, value={start=Send Email Test, steps={Send Email={actionId=sp:send-email, attributes={body=This is a test, from=sailpoint@sailpoint.com, recipientId.$=$.identity.id, subject=test}, nextStep=success, selectResult=null, type=action}, success={type=success}}}}, {op=replace, path=/trigger, value={type=EVENT, attributes={id=idn:identity-attributes-changed}}}]`) // []JsonPatchOperation | - var jsonPatchOperation v2025.[]JsonPatchOperation + var jsonPatchOperation []v2025.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -28263,7 +28295,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkflowsAPI.PatchWorkflow(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V2025.WorkflowsAPI.PatchWorkflow(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -28286,7 +28318,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28337,7 +28369,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkflowsAPI.PutWorkflow(context.Background(), id).WorkflowBody(workflowBody).Execute() //resp, r, err := apiClient.V2025.WorkflowsAPI.PutWorkflow(context.Background(), id).WorkflowBody(workflowBody).Execute() @@ -28360,7 +28392,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28372,7 +28404,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkflowsAPI.TestExternalExecuteWorkflow(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.WorkflowsAPI.TestExternalExecuteWorkflow(context.Background(), id).TestExternalExecuteWorkflowRequest(testExternalExecuteWorkflowRequest).Execute() @@ -28395,7 +28427,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28413,7 +28445,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkflowsAPI.TestWorkflow(context.Background(), id).TestWorkflowRequest(testWorkflowRequest).Execute() //resp, r, err := apiClient.V2025.WorkflowsAPI.TestWorkflow(context.Background(), id).TestWorkflowRequest(testWorkflowRequest).Execute() @@ -28436,7 +28468,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28448,7 +28480,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkItemsAPI.ApproveApprovalItem(context.Background(), id, approvalItemId).Execute() //resp, r, err := apiClient.V2025.WorkItemsAPI.ApproveApprovalItem(context.Background(), id, approvalItemId).Execute() @@ -28471,7 +28503,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28482,7 +28514,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkItemsAPI.ApproveApprovalItemsInBulk(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.WorkItemsAPI.ApproveApprovalItemsInBulk(context.Background(), id).Execute() @@ -28505,7 +28537,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28517,7 +28549,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkItemsAPI.CompleteWorkItem(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.WorkItemsAPI.CompleteWorkItem(context.Background(), id).Body(body).Execute() @@ -28540,7 +28572,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28563,7 +28595,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.WorkItemsAPI.ForwardWorkItem(context.Background(), id).XSailPointExperimental(xSailPointExperimental).WorkItemForward(workItemForward).Execute() //r, err := apiClient.V2025.WorkItemsAPI.ForwardWorkItem(context.Background(), id).XSailPointExperimental(xSailPointExperimental).WorkItemForward(workItemForward).Execute() @@ -28584,7 +28616,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28598,7 +28630,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkItemsAPI.GetCompletedWorkItems(context.Background()).Execute() //resp, r, err := apiClient.V2025.WorkItemsAPI.GetCompletedWorkItems(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Execute() @@ -28621,7 +28653,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28633,7 +28665,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkItemsAPI.GetCountCompletedWorkItems(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.WorkItemsAPI.GetCountCompletedWorkItems(context.Background()).XSailPointExperimental(xSailPointExperimental).OwnerId(ownerId).Execute() @@ -28656,7 +28688,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28667,7 +28699,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkItemsAPI.GetCountWorkItems(context.Background()).Execute() //resp, r, err := apiClient.V2025.WorkItemsAPI.GetCountWorkItems(context.Background()).OwnerId(ownerId).Execute() @@ -28690,7 +28722,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28701,7 +28733,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkItemsAPI.GetWorkItem(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.WorkItemsAPI.GetWorkItem(context.Background(), id).Execute() @@ -28724,7 +28756,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28735,7 +28767,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkItemsAPI.GetWorkItemsSummary(context.Background()).Execute() //resp, r, err := apiClient.V2025.WorkItemsAPI.GetWorkItemsSummary(context.Background()).OwnerId(ownerId).Execute() @@ -28758,7 +28790,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28772,7 +28804,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkItemsAPI.ListWorkItems(context.Background()).Execute() //resp, r, err := apiClient.V2025.WorkItemsAPI.ListWorkItems(context.Background()).Limit(limit).Offset(offset).Count(count).OwnerId(ownerId).Execute() @@ -28795,7 +28827,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28807,7 +28839,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkItemsAPI.RejectApprovalItem(context.Background(), id, approvalItemId).Execute() //resp, r, err := apiClient.V2025.WorkItemsAPI.RejectApprovalItem(context.Background(), id, approvalItemId).Execute() @@ -28830,7 +28862,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28841,7 +28873,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkItemsAPI.RejectApprovalItemsInBulk(context.Background(), id).Execute() //resp, r, err := apiClient.V2025.WorkItemsAPI.RejectApprovalItemsInBulk(context.Background(), id).Execute() @@ -28864,7 +28896,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28882,7 +28914,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkItemsAPI.SubmitAccountSelection(context.Background(), id).RequestBody(requestBody).Execute() //resp, r, err := apiClient.V2025.WorkItemsAPI.SubmitAccountSelection(context.Background(), id).RequestBody(requestBody).Execute() @@ -28905,7 +28937,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28929,7 +28961,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkReassignmentAPI.CreateReassignmentConfiguration(context.Background()).XSailPointExperimental(xSailPointExperimental).ConfigurationItemRequest(configurationItemRequest).Execute() //resp, r, err := apiClient.V2025.WorkReassignmentAPI.CreateReassignmentConfiguration(context.Background()).XSailPointExperimental(xSailPointExperimental).ConfigurationItemRequest(configurationItemRequest).Execute() @@ -28952,7 +28984,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -28965,7 +28997,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V2025.WorkReassignmentAPI.DeleteReassignmentConfiguration(context.Background(), identityId, configType).XSailPointExperimental(xSailPointExperimental).Execute() //r, err := apiClient.V2025.WorkReassignmentAPI.DeleteReassignmentConfiguration(context.Background(), identityId, configType).XSailPointExperimental(xSailPointExperimental).Execute() @@ -28986,7 +29018,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -29000,7 +29032,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkReassignmentAPI.GetEvaluateReassignmentConfiguration(context.Background(), identityId, configType).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.WorkReassignmentAPI.GetEvaluateReassignmentConfiguration(context.Background(), identityId, configType).XSailPointExperimental(xSailPointExperimental).ExclusionFilters(exclusionFilters).Execute() @@ -29023,7 +29055,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -29034,7 +29066,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkReassignmentAPI.GetReassignmentConfigTypes(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.WorkReassignmentAPI.GetReassignmentConfigTypes(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -29057,7 +29089,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -29069,7 +29101,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkReassignmentAPI.GetReassignmentConfiguration(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.WorkReassignmentAPI.GetReassignmentConfiguration(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).Execute() @@ -29092,7 +29124,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -29103,7 +29135,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkReassignmentAPI.GetTenantConfigConfiguration(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.WorkReassignmentAPI.GetTenantConfigConfiguration(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -29126,7 +29158,7 @@ "context" "fmt" "os" - "encoding/json" + v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -29137,7 +29169,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkReassignmentAPI.ListReassignmentConfigurations(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() //resp, r, err := apiClient.V2025.WorkReassignmentAPI.ListReassignmentConfigurations(context.Background()).XSailPointExperimental(xSailPointExperimental).Execute() @@ -29160,7 +29192,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -29185,7 +29217,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkReassignmentAPI.PutReassignmentConfig(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).ConfigurationItemRequest(configurationItemRequest).Execute() //resp, r, err := apiClient.V2025.WorkReassignmentAPI.PutReassignmentConfig(context.Background(), identityId).XSailPointExperimental(xSailPointExperimental).ConfigurationItemRequest(configurationItemRequest).Execute() @@ -29208,7 +29240,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v2025 "github.com/sailpoint-oss/golang-sdk/v2/api_v2025" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -29230,7 +29262,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V2025.WorkReassignmentAPI.PutTenantConfiguration(context.Background()).XSailPointExperimental(xSailPointExperimental).TenantConfigurationRequest(tenantConfigurationRequest).Execute() //resp, r, err := apiClient.V2025.WorkReassignmentAPI.PutTenantConfiguration(context.Background()).XSailPointExperimental(xSailPointExperimental).TenantConfigurationRequest(tenantConfigurationRequest).Execute() diff --git a/static/code-examples/v3/go_code_examples_overlay.yaml b/static/code-examples/v3/go_code_examples_overlay.yaml index cbc18c5a1..49d4e4c41 100644 --- a/static/code-examples/v3/go_code_examples_overlay.yaml +++ b/static/code-examples/v3/go_code_examples_overlay.yaml @@ -10,7 +10,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -112,7 +112,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccessProfilesAPI.CreateAccessProfile(context.Background()).AccessProfile(accessProfile).Execute() //resp, r, err := apiClient.V3.AccessProfilesAPI.CreateAccessProfile(context.Background()).AccessProfile(accessProfile).Execute() @@ -135,7 +135,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -146,7 +146,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.AccessProfilesAPI.DeleteAccessProfile(context.Background(), id).Execute() //r, err := apiClient.V3.AccessProfilesAPI.DeleteAccessProfile(context.Background(), id).Execute() @@ -167,7 +167,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -187,7 +187,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccessProfilesAPI.DeleteAccessProfilesInBulk(context.Background()).AccessProfileBulkDeleteRequest(accessProfileBulkDeleteRequest).Execute() //resp, r, err := apiClient.V3.AccessProfilesAPI.DeleteAccessProfilesInBulk(context.Background()).AccessProfileBulkDeleteRequest(accessProfileBulkDeleteRequest).Execute() @@ -210,7 +210,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -221,7 +221,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccessProfilesAPI.GetAccessProfile(context.Background(), id).Execute() //resp, r, err := apiClient.V3.AccessProfilesAPI.GetAccessProfile(context.Background(), id).Execute() @@ -244,7 +244,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -260,7 +260,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccessProfilesAPI.GetAccessProfileEntitlements(context.Background(), id).Execute() //resp, r, err := apiClient.V3.AccessProfilesAPI.GetAccessProfileEntitlements(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -283,7 +283,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -301,7 +301,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccessProfilesAPI.ListAccessProfiles(context.Background()).Execute() //resp, r, err := apiClient.V3.AccessProfilesAPI.ListAccessProfiles(context.Background()).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).Execute() @@ -324,7 +324,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -334,7 +334,7 @@ jsonpatchoperation := []byte(`[{op=add, path=/entitlements, value=[{id=2c9180857725c14301772a93bb77242d, type=ENTITLEMENT, name=AD User Group}]}]`) // []JsonPatchOperation | - var jsonPatchOperation v3.[]JsonPatchOperation + var jsonPatchOperation []v3.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -342,7 +342,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccessProfilesAPI.PatchAccessProfile(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V3.AccessProfilesAPI.PatchAccessProfile(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -365,7 +365,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -385,7 +385,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.ApproveAccessRequest(context.Background(), approvalId).Execute() //resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.ApproveAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() @@ -408,7 +408,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -429,7 +429,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.ForwardAccessRequest(context.Background(), approvalId).ForwardApprovalDto(forwardApprovalDto).Execute() //resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.ForwardAccessRequest(context.Background(), approvalId).ForwardApprovalDto(forwardApprovalDto).Execute() @@ -452,7 +452,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -464,7 +464,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary(context.Background()).Execute() //resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.GetAccessRequestApprovalSummary(context.Background()).OwnerId(ownerId).FromDate(fromDate).Execute() @@ -487,7 +487,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -503,7 +503,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.ListCompletedApprovals(context.Background()).Execute() //resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.ListCompletedApprovals(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -526,7 +526,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -542,7 +542,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.ListPendingApprovals(context.Background()).Execute() //resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.ListPendingApprovals(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -565,7 +565,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -591,7 +591,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.RejectAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() //resp, r, err := apiClient.V3.AccessRequestApprovalsAPI.RejectAccessRequest(context.Background(), approvalId).CommentDto(commentDto).Execute() @@ -614,7 +614,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -634,7 +634,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccessRequestsAPI.CancelAccessRequest(context.Background()).CancelAccessRequest(cancelAccessRequest).Execute() //resp, r, err := apiClient.V3.AccessRequestsAPI.CancelAccessRequest(context.Background()).CancelAccessRequest(cancelAccessRequest).Execute() @@ -657,7 +657,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -755,9 +755,7 @@ } ], "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE", - "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", - "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + "type" : "ACCESS_PROFILE" }, { "clientMetadata" : { "requestedAppName" : "test-app", @@ -785,9 +783,7 @@ } ], "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE", - "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", - "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + "type" : "ACCESS_PROFILE" } ] }, { "identityId" : "cb89bc2f1ee6445fbea12224c526ba3a", @@ -818,9 +814,7 @@ } ], "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE", - "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", - "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + "type" : "ACCESS_PROFILE" }, { "clientMetadata" : { "requestedAppName" : "test-app", @@ -848,9 +842,7 @@ } ], "comment" : "Requesting access profile for John Doe", "id" : "2c9180835d2e5168015d32f890ca1581", - "type" : "ACCESS_PROFILE", - "assignmentId" : "ee48a191c00d49bf9264eb0a4fc3a9fc", - "nativeIdentity" : "CN=User db3377de14bf,OU=YOURCONTAINER, DC=YOURDOMAIN" + "type" : "ACCESS_PROFILE" } ] } ] }`) // AccessRequest | @@ -864,7 +856,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccessRequestsAPI.CreateAccessRequest(context.Background()).AccessRequest(accessRequest).Execute() //resp, r, err := apiClient.V3.AccessRequestsAPI.CreateAccessRequest(context.Background()).AccessRequest(accessRequest).Execute() @@ -887,7 +879,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -897,7 +889,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccessRequestsAPI.GetAccessRequestConfig(context.Background()).Execute() //resp, r, err := apiClient.V3.AccessRequestsAPI.GetAccessRequestConfig(context.Background()).Execute() @@ -920,7 +912,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -940,7 +932,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccessRequestsAPI.ListAccessRequestStatus(context.Background()).Execute() //resp, r, err := apiClient.V3.AccessRequestsAPI.ListAccessRequestStatus(context.Background()).RequestedFor(requestedFor).RequestedBy(requestedBy).RegardingIdentity(regardingIdentity).AssignedTo(assignedTo).Count(count).Limit(limit).Offset(offset).Filters(filters).Sorters(sorters).RequestState(requestState).Execute() @@ -963,7 +955,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1005,7 +997,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccessRequestsAPI.SetAccessRequestConfig(context.Background()).AccessRequestConfig(accessRequestConfig).Execute() //resp, r, err := apiClient.V3.AccessRequestsAPI.SetAccessRequestConfig(context.Background()).AccessRequestConfig(accessRequestConfig).Execute() @@ -1028,7 +1020,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1039,7 +1031,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccountActivitiesAPI.GetAccountActivity(context.Background(), id).Execute() //resp, r, err := apiClient.V3.AccountActivitiesAPI.GetAccountActivity(context.Background(), id).Execute() @@ -1062,7 +1054,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1080,7 +1072,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccountActivitiesAPI.ListAccountActivities(context.Background()).Execute() //resp, r, err := apiClient.V3.AccountActivitiesAPI.ListAccountActivities(context.Background()).RequestedFor(requestedFor).RequestedBy(requestedBy).RegardingIdentity(regardingIdentity).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -1103,7 +1095,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1129,7 +1121,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccountsAPI.CreateAccount(context.Background()).AccountAttributesCreate(accountAttributesCreate).Execute() //resp, r, err := apiClient.V3.AccountsAPI.CreateAccount(context.Background()).AccountAttributesCreate(accountAttributesCreate).Execute() @@ -1152,7 +1144,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1163,7 +1155,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccountsAPI.DeleteAccount(context.Background(), id).Execute() //resp, r, err := apiClient.V3.AccountsAPI.DeleteAccount(context.Background(), id).Execute() @@ -1186,7 +1178,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1207,7 +1199,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccountsAPI.DisableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() //resp, r, err := apiClient.V3.AccountsAPI.DisableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() @@ -1230,7 +1222,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1251,7 +1243,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccountsAPI.EnableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() //resp, r, err := apiClient.V3.AccountsAPI.EnableAccount(context.Background(), id).AccountToggleRequest(accountToggleRequest).Execute() @@ -1274,7 +1266,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1285,7 +1277,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccountsAPI.GetAccount(context.Background(), id).Execute() //resp, r, err := apiClient.V3.AccountsAPI.GetAccount(context.Background(), id).Execute() @@ -1308,7 +1300,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1322,7 +1314,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccountsAPI.GetAccountEntitlements(context.Background(), id).Execute() //resp, r, err := apiClient.V3.AccountsAPI.GetAccountEntitlements(context.Background(), id).Limit(limit).Offset(offset).Count(count).Execute() @@ -1345,7 +1337,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1361,7 +1353,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccountsAPI.ListAccounts(context.Background()).Execute() //resp, r, err := apiClient.V3.AccountsAPI.ListAccounts(context.Background()).Limit(limit).Offset(offset).Count(count).DetailLevel(detailLevel).Filters(filters).Sorters(sorters).Execute() @@ -1384,7 +1376,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1410,7 +1402,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccountsAPI.PutAccount(context.Background(), id).AccountAttributes(accountAttributes).Execute() //resp, r, err := apiClient.V3.AccountsAPI.PutAccount(context.Background(), id).AccountAttributes(accountAttributes).Execute() @@ -1433,7 +1425,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1444,7 +1436,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccountsAPI.SubmitReloadAccount(context.Background(), id).Execute() //resp, r, err := apiClient.V3.AccountsAPI.SubmitReloadAccount(context.Background(), id).Execute() @@ -1467,7 +1459,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1489,7 +1481,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccountsAPI.UnlockAccount(context.Background(), id).AccountUnlockRequest(accountUnlockRequest).Execute() //resp, r, err := apiClient.V3.AccountsAPI.UnlockAccount(context.Background(), id).AccountUnlockRequest(accountUnlockRequest).Execute() @@ -1512,7 +1504,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1522,7 +1514,7 @@ requestbody := []byte(`[{op=remove, path=/identityId}]`) // []map[string]interface{} | A list of account update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - var requestBody v3.[]RequestBody + var requestBody []v3.RequestBody if err := json.Unmarshal(requestbody, &requestBody); err != nil { fmt.Println("Error:", err) return @@ -1530,7 +1522,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccountsAPI.UpdateAccount(context.Background(), id).RequestBody(requestBody).Execute() //resp, r, err := apiClient.V3.AccountsAPI.UpdateAccount(context.Background(), id).RequestBody(requestBody).Execute() @@ -1553,7 +1545,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1568,7 +1560,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AccountUsagesAPI.GetUsagesByAccountId(context.Background(), accountId).Execute() //resp, r, err := apiClient.V3.AccountUsagesAPI.GetUsagesByAccountId(context.Background(), accountId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() @@ -1591,7 +1583,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1606,7 +1598,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ApplicationDiscoveryAPI.GetDiscoveredApplications(context.Background()).Execute() //resp, r, err := apiClient.V3.ApplicationDiscoveryAPI.GetDiscoveredApplications(context.Background()).Limit(limit).Offset(offset).Detail(detail).Filter(filter).Sorters(sorters).Execute() @@ -1629,7 +1621,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1639,7 +1631,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() //resp, r, err := apiClient.V3.ApplicationDiscoveryAPI.GetManualDiscoverApplicationsCsvTemplate(context.Background()).Execute() @@ -1662,7 +1654,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1673,7 +1665,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate(context.Background()).File(file).Execute() //r, err := apiClient.V3.ApplicationDiscoveryAPI.SendManualDiscoverApplicationsCsvTemplate(context.Background()).File(file).Execute() @@ -1694,7 +1686,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1705,7 +1697,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AuthUsersAPI.GetAuthUser(context.Background(), id).Execute() //resp, r, err := apiClient.V3.AuthUsersAPI.GetAuthUser(context.Background(), id).Execute() @@ -1728,7 +1720,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1738,7 +1730,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/capabilities, value=[ORG_ADMIN]}]`) // []JsonPatchOperation | A list of auth user update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - var jsonPatchOperation v3.[]JsonPatchOperation + var jsonPatchOperation []v3.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -1746,7 +1738,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.AuthUsersAPI.PatchAuthUser(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V3.AuthUsersAPI.PatchAuthUser(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -1769,7 +1761,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1787,7 +1779,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.BrandingAPI.CreateBrandingItem(context.Background()).Name(name).ProductName(productName).Execute() //resp, r, err := apiClient.V3.BrandingAPI.CreateBrandingItem(context.Background()).Name(name).ProductName(productName).ActionButtonColor(actionButtonColor).ActiveLinkColor(activeLinkColor).NavigationColor(navigationColor).EmailFromAddress(emailFromAddress).LoginInformationalMessage(loginInformationalMessage).FileStandard(fileStandard).Execute() @@ -1810,7 +1802,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1821,7 +1813,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.BrandingAPI.DeleteBranding(context.Background(), name).Execute() //r, err := apiClient.V3.BrandingAPI.DeleteBranding(context.Background(), name).Execute() @@ -1842,7 +1834,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1853,7 +1845,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.BrandingAPI.GetBranding(context.Background(), name).Execute() //resp, r, err := apiClient.V3.BrandingAPI.GetBranding(context.Background(), name).Execute() @@ -1876,7 +1868,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1886,7 +1878,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.BrandingAPI.GetBrandingList(context.Background()).Execute() //resp, r, err := apiClient.V3.BrandingAPI.GetBrandingList(context.Background()).Execute() @@ -1909,7 +1901,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1928,7 +1920,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.BrandingAPI.SetBrandingItem(context.Background(), name).Name2(name2).ProductName(productName).Execute() //resp, r, err := apiClient.V3.BrandingAPI.SetBrandingItem(context.Background(), name).Name2(name2).ProductName(productName).ActionButtonColor(actionButtonColor).ActiveLinkColor(activeLinkColor).NavigationColor(navigationColor).EmailFromAddress(emailFromAddress).LoginInformationalMessage(loginInformationalMessage).FileStandard(fileStandard).Execute() @@ -1951,7 +1943,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -1985,7 +1977,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignFiltersAPI.CreateCampaignFilter(context.Background()).CampaignFilterDetails(campaignFilterDetails).Execute() //resp, r, err := apiClient.V3.CertificationCampaignFiltersAPI.CreateCampaignFilter(context.Background()).CampaignFilterDetails(campaignFilterDetails).Execute() @@ -2008,7 +2000,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2017,7 +2009,7 @@ requestbody := []byte(``) // []string | A json list of IDs of campaign filters to delete. - var requestBody v3.[]RequestBody + var requestBody []v3.RequestBody if err := json.Unmarshal(requestbody, &requestBody); err != nil { fmt.Println("Error:", err) return @@ -2025,7 +2017,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.CertificationCampaignFiltersAPI.DeleteCampaignFilters(context.Background()).RequestBody(requestBody).Execute() //r, err := apiClient.V3.CertificationCampaignFiltersAPI.DeleteCampaignFilters(context.Background()).RequestBody(requestBody).Execute() @@ -2046,7 +2038,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2057,7 +2049,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignFiltersAPI.GetCampaignFilterById(context.Background(), id).Execute() //resp, r, err := apiClient.V3.CertificationCampaignFiltersAPI.GetCampaignFilterById(context.Background(), id).Execute() @@ -2080,7 +2072,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2093,7 +2085,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignFiltersAPI.ListCampaignFilters(context.Background()).Execute() //resp, r, err := apiClient.V3.CertificationCampaignFiltersAPI.ListCampaignFilters(context.Background()).Limit(limit).Start(start).IncludeSystemFilters(includeSystemFilters).Execute() @@ -2116,7 +2108,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2151,7 +2143,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignFiltersAPI.UpdateCampaignFilter(context.Background(), filterId).CampaignFilterDetails(campaignFilterDetails).Execute() //resp, r, err := apiClient.V3.CertificationCampaignFiltersAPI.UpdateCampaignFilter(context.Background(), filterId).CampaignFilterDetails(campaignFilterDetails).Execute() @@ -2174,7 +2166,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2188,7 +2180,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.CompleteCampaign(context.Background(), id).Execute() //resp, r, err := apiClient.V3.CertificationCampaignsAPI.CompleteCampaign(context.Background(), id).CampaignCompleteOptions(campaignCompleteOptions).Execute() @@ -2211,7 +2203,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2336,7 +2328,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.CreateCampaign(context.Background()).Campaign(campaign).Execute() //resp, r, err := apiClient.V3.CertificationCampaignsAPI.CreateCampaign(context.Background()).Campaign(campaign).Execute() @@ -2359,7 +2351,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" "time" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -2500,7 +2492,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.CreateCampaignTemplate(context.Background()).CampaignTemplate(campaignTemplate).Execute() //resp, r, err := apiClient.V3.CertificationCampaignsAPI.CreateCampaignTemplate(context.Background()).CampaignTemplate(campaignTemplate).Execute() @@ -2523,7 +2515,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2534,7 +2526,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.CertificationCampaignsAPI.DeleteCampaignTemplate(context.Background(), id).Execute() //r, err := apiClient.V3.CertificationCampaignsAPI.DeleteCampaignTemplate(context.Background(), id).Execute() @@ -2555,7 +2547,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2566,7 +2558,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.CertificationCampaignsAPI.DeleteCampaignTemplateSchedule(context.Background(), id).Execute() //r, err := apiClient.V3.CertificationCampaignsAPI.DeleteCampaignTemplateSchedule(context.Background(), id).Execute() @@ -2587,7 +2579,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2606,7 +2598,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.DeleteCampaigns(context.Background()).CampaignsDeleteRequest(campaignsDeleteRequest).Execute() //resp, r, err := apiClient.V3.CertificationCampaignsAPI.DeleteCampaigns(context.Background()).CampaignsDeleteRequest(campaignsDeleteRequest).Execute() @@ -2629,7 +2621,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2645,7 +2637,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetActiveCampaigns(context.Background()).Execute() //resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetActiveCampaigns(context.Background()).Detail(detail).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -2668,7 +2660,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2680,7 +2672,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaign(context.Background(), id).Execute() //resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaign(context.Background(), id).Detail(detail).Execute() @@ -2703,7 +2695,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2714,7 +2706,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaignReports(context.Background(), id).Execute() //resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaignReports(context.Background(), id).Execute() @@ -2737,7 +2729,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2747,7 +2739,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaignReportsConfig(context.Background()).Execute() //resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaignReportsConfig(context.Background()).Execute() @@ -2770,7 +2762,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2781,7 +2773,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaignTemplate(context.Background(), id).Execute() //resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaignTemplate(context.Background(), id).Execute() @@ -2804,7 +2796,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2815,7 +2807,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaignTemplateSchedule(context.Background(), id).Execute() //resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaignTemplateSchedule(context.Background(), id).Execute() @@ -2838,7 +2830,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2853,7 +2845,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaignTemplates(context.Background()).Execute() //resp, r, err := apiClient.V3.CertificationCampaignsAPI.GetCampaignTemplates(context.Background()).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() @@ -2876,7 +2868,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2901,7 +2893,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.Move(context.Background(), id).AdminReviewReassign(adminReviewReassign).Execute() //resp, r, err := apiClient.V3.CertificationCampaignsAPI.Move(context.Background(), id).AdminReviewReassign(adminReviewReassign).Execute() @@ -2924,7 +2916,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2934,7 +2926,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/description, value=Updated description!}, {op=replace, path=/campaign/filter/id, value=ff80818155fe8c080155fe8d925b0316}]`) // []JsonPatchOperation | A list of campaign update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * deadlineDuration * campaign (all fields that are allowed during create) - var jsonPatchOperation v3.[]JsonPatchOperation + var jsonPatchOperation []v3.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -2942,7 +2934,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.PatchCampaignTemplate(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V3.CertificationCampaignsAPI.PatchCampaignTemplate(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -2965,7 +2957,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -2984,7 +2976,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.SetCampaignReportsConfig(context.Background()).CampaignReportsConfig(campaignReportsConfig).Execute() //resp, r, err := apiClient.V3.CertificationCampaignsAPI.SetCampaignReportsConfig(context.Background()).CampaignReportsConfig(campaignReportsConfig).Execute() @@ -3007,7 +2999,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3038,7 +3030,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.CertificationCampaignsAPI.SetCampaignTemplateSchedule(context.Background(), id).Execute() //r, err := apiClient.V3.CertificationCampaignsAPI.SetCampaignTemplateSchedule(context.Background(), id).Schedule(schedule).Execute() @@ -3059,7 +3051,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3073,7 +3065,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.StartCampaign(context.Background(), id).Execute() //resp, r, err := apiClient.V3.CertificationCampaignsAPI.StartCampaign(context.Background(), id).ActivateCampaignOptions(activateCampaignOptions).Execute() @@ -3096,7 +3088,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3107,7 +3099,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.StartCampaignRemediationScan(context.Background(), id).Execute() //resp, r, err := apiClient.V3.CertificationCampaignsAPI.StartCampaignRemediationScan(context.Background(), id).Execute() @@ -3130,7 +3122,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3142,7 +3134,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.StartCampaignReport(context.Background(), id, type_).Execute() //resp, r, err := apiClient.V3.CertificationCampaignsAPI.StartCampaignReport(context.Background(), id, type_).Execute() @@ -3165,7 +3157,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3176,7 +3168,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.StartGenerateCampaignTemplate(context.Background(), id).Execute() //resp, r, err := apiClient.V3.CertificationCampaignsAPI.StartGenerateCampaignTemplate(context.Background(), id).Execute() @@ -3199,7 +3191,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3209,7 +3201,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/name, value=This field has been updated!}, {op=copy, from=/name, path=/description}]`) // []JsonPatchOperation | A list of campaign update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The fields that can be patched differ based on the status of the campaign. When the campaign is in the *STAGED* status, you can patch these fields: * name * description * recommendationsEnabled * deadline * emailNotificationEnabled * autoRevokeAllowed When the campaign is in the *ACTIVE* status, you can patch these fields: * deadline - var jsonPatchOperation v3.[]JsonPatchOperation + var jsonPatchOperation []v3.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -3217,7 +3209,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationCampaignsAPI.UpdateCampaign(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V3.CertificationCampaignsAPI.UpdateCampaign(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -3240,7 +3232,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3251,7 +3243,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationsAPI.GetCertificationTask(context.Background(), id).Execute() //resp, r, err := apiClient.V3.CertificationsAPI.GetCertificationTask(context.Background(), id).Execute() @@ -3274,7 +3266,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3285,7 +3277,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationsAPI.GetIdentityCertification(context.Background(), id).Execute() //resp, r, err := apiClient.V3.CertificationsAPI.GetIdentityCertification(context.Background(), id).Execute() @@ -3308,7 +3300,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3324,7 +3316,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationsAPI.GetIdentityCertificationItemPermissions(context.Background(), certificationId, itemId).Execute() //resp, r, err := apiClient.V3.CertificationsAPI.GetIdentityCertificationItemPermissions(context.Background(), certificationId, itemId).Filters(filters).Limit(limit).Offset(offset).Count(count).Execute() @@ -3347,7 +3339,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3362,7 +3354,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationsAPI.GetPendingCertificationTasks(context.Background()).Execute() //resp, r, err := apiClient.V3.CertificationsAPI.GetPendingCertificationTasks(context.Background()).ReviewerIdentity(reviewerIdentity).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() @@ -3385,7 +3377,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3401,7 +3393,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationsAPI.ListCertificationReviewers(context.Background(), id).Execute() //resp, r, err := apiClient.V3.CertificationsAPI.ListCertificationReviewers(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -3424,7 +3416,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3443,7 +3435,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationsAPI.ListIdentityAccessReviewItems(context.Background(), id).Execute() //resp, r, err := apiClient.V3.CertificationsAPI.ListIdentityAccessReviewItems(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Entitlements(entitlements).AccessProfiles(accessProfiles).Roles(roles).Execute() @@ -3466,7 +3458,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3482,7 +3474,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationsAPI.ListIdentityCertifications(context.Background()).Execute() //resp, r, err := apiClient.V3.CertificationsAPI.ListIdentityCertifications(context.Background()).ReviewerIdentity(reviewerIdentity).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -3505,7 +3497,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3515,7 +3507,7 @@ reviewdecision := []byte(`[{id=ef38f94347e94562b5bb8424a56396b5, decision=APPROVE, bulk=true, comments=This user still needs access to this source.}, {id=ef38f94347e94562b5bb8424a56397d8, decision=APPROVE, bulk=true, comments=This user still needs access to this source too.}]`) // []ReviewDecision | A non-empty array of decisions to be made. - var reviewDecision v3.[]ReviewDecision + var reviewDecision []v3.ReviewDecision if err := json.Unmarshal(reviewdecision, &reviewDecision); err != nil { fmt.Println("Error:", err) return @@ -3523,7 +3515,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationsAPI.MakeIdentityDecision(context.Background(), id).ReviewDecision(reviewDecision).Execute() //resp, r, err := apiClient.V3.CertificationsAPI.MakeIdentityDecision(context.Background(), id).ReviewDecision(reviewDecision).Execute() @@ -3546,7 +3538,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3574,7 +3566,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationsAPI.ReassignIdentityCertifications(context.Background(), id).ReviewReassign(reviewReassign).Execute() //resp, r, err := apiClient.V3.CertificationsAPI.ReassignIdentityCertifications(context.Background(), id).ReviewReassign(reviewReassign).Execute() @@ -3597,7 +3589,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3608,7 +3600,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationsAPI.SignOffIdentityCertification(context.Background(), id).Execute() //resp, r, err := apiClient.V3.CertificationsAPI.SignOffIdentityCertification(context.Background(), id).Execute() @@ -3631,7 +3623,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3659,7 +3651,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationsAPI.SubmitReassignCertsAsync(context.Background(), id).ReviewReassign(reviewReassign).Execute() //resp, r, err := apiClient.V3.CertificationsAPI.SubmitReassignCertsAsync(context.Background(), id).ReviewReassign(reviewReassign).Execute() @@ -3682,7 +3674,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3699,7 +3691,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationSummariesAPI.GetIdentityAccessSummaries(context.Background(), id, type_).Execute() //resp, r, err := apiClient.V3.CertificationSummariesAPI.GetIdentityAccessSummaries(context.Background(), id, type_).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -3722,7 +3714,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3734,7 +3726,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationSummariesAPI.GetIdentityDecisionSummary(context.Background(), id).Execute() //resp, r, err := apiClient.V3.CertificationSummariesAPI.GetIdentityDecisionSummary(context.Background(), id).Filters(filters).Execute() @@ -3757,7 +3749,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3773,7 +3765,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationSummariesAPI.GetIdentitySummaries(context.Background(), id).Execute() //resp, r, err := apiClient.V3.CertificationSummariesAPI.GetIdentitySummaries(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -3796,7 +3788,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3808,7 +3800,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.CertificationSummariesAPI.GetIdentitySummary(context.Background(), id, identitySummaryId).Execute() //resp, r, err := apiClient.V3.CertificationSummariesAPI.GetIdentitySummary(context.Background(), id, identitySummaryId).Execute() @@ -3831,7 +3823,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3855,7 +3847,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ConfigurationHubAPI.CreateObjectMapping(context.Background(), sourceOrg).ObjectMappingRequest(objectMappingRequest).Execute() //resp, r, err := apiClient.V3.ConfigurationHubAPI.CreateObjectMapping(context.Background(), sourceOrg).ObjectMappingRequest(objectMappingRequest).Execute() @@ -3878,7 +3870,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3910,7 +3902,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ConfigurationHubAPI.CreateObjectMappings(context.Background(), sourceOrg).ObjectMappingBulkCreateRequest(objectMappingBulkCreateRequest).Execute() //resp, r, err := apiClient.V3.ConfigurationHubAPI.CreateObjectMappings(context.Background(), sourceOrg).ObjectMappingBulkCreateRequest(objectMappingBulkCreateRequest).Execute() @@ -3933,7 +3925,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3945,7 +3937,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ConfigurationHubAPI.CreateUploadedConfiguration(context.Background()).Data(data).Name(name).Execute() //resp, r, err := apiClient.V3.ConfigurationHubAPI.CreateUploadedConfiguration(context.Background()).Data(data).Name(name).Execute() @@ -3968,7 +3960,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -3980,7 +3972,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.ConfigurationHubAPI.DeleteObjectMapping(context.Background(), sourceOrg, objectMappingId).Execute() //r, err := apiClient.V3.ConfigurationHubAPI.DeleteObjectMapping(context.Background(), sourceOrg, objectMappingId).Execute() @@ -4001,7 +3993,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4012,7 +4004,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.ConfigurationHubAPI.DeleteUploadedConfiguration(context.Background(), id).Execute() //r, err := apiClient.V3.ConfigurationHubAPI.DeleteUploadedConfiguration(context.Background(), id).Execute() @@ -4033,7 +4025,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4044,7 +4036,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ConfigurationHubAPI.GetObjectMappings(context.Background(), sourceOrg).Execute() //resp, r, err := apiClient.V3.ConfigurationHubAPI.GetObjectMappings(context.Background(), sourceOrg).Execute() @@ -4067,7 +4059,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4078,7 +4070,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ConfigurationHubAPI.GetUploadedConfiguration(context.Background(), id).Execute() //resp, r, err := apiClient.V3.ConfigurationHubAPI.GetUploadedConfiguration(context.Background(), id).Execute() @@ -4101,7 +4093,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4112,7 +4104,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ConfigurationHubAPI.ListUploadedConfigurations(context.Background()).Execute() //resp, r, err := apiClient.V3.ConfigurationHubAPI.ListUploadedConfigurations(context.Background()).Filters(filters).Execute() @@ -4135,7 +4127,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4166,7 +4158,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ConfigurationHubAPI.UpdateObjectMappings(context.Background(), sourceOrg).ObjectMappingBulkPatchRequest(objectMappingBulkPatchRequest).Execute() //resp, r, err := apiClient.V3.ConfigurationHubAPI.UpdateObjectMappings(context.Background(), sourceOrg).ObjectMappingBulkPatchRequest(objectMappingBulkPatchRequest).Execute() @@ -4189,7 +4181,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4212,7 +4204,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ConnectorsAPI.CreateCustomConnector(context.Background()).V3CreateConnectorDto(v3CreateConnectorDto).Execute() //resp, r, err := apiClient.V3.ConnectorsAPI.CreateCustomConnector(context.Background()).V3CreateConnectorDto(v3CreateConnectorDto).Execute() @@ -4235,7 +4227,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4246,7 +4238,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.ConnectorsAPI.DeleteCustomConnector(context.Background(), scriptName).Execute() //r, err := apiClient.V3.ConnectorsAPI.DeleteCustomConnector(context.Background(), scriptName).Execute() @@ -4267,7 +4259,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4279,7 +4271,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ConnectorsAPI.GetConnector(context.Background(), scriptName).Execute() //resp, r, err := apiClient.V3.ConnectorsAPI.GetConnector(context.Background(), scriptName).Locale(locale).Execute() @@ -4302,7 +4294,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4317,7 +4309,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ConnectorsAPI.GetConnectorList(context.Background()).Execute() //resp, r, err := apiClient.V3.ConnectorsAPI.GetConnectorList(context.Background()).Filters(filters).Limit(limit).Offset(offset).Count(count).Locale(locale).Execute() @@ -4340,7 +4332,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4351,7 +4343,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ConnectorsAPI.GetConnectorSourceConfig(context.Background(), scriptName).Execute() //resp, r, err := apiClient.V3.ConnectorsAPI.GetConnectorSourceConfig(context.Background(), scriptName).Execute() @@ -4374,7 +4366,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4385,7 +4377,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ConnectorsAPI.GetConnectorSourceTemplate(context.Background(), scriptName).Execute() //resp, r, err := apiClient.V3.ConnectorsAPI.GetConnectorSourceTemplate(context.Background(), scriptName).Execute() @@ -4408,7 +4400,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4420,7 +4412,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ConnectorsAPI.GetConnectorTranslations(context.Background(), scriptName, locale).Execute() //resp, r, err := apiClient.V3.ConnectorsAPI.GetConnectorTranslations(context.Background(), scriptName, locale).Execute() @@ -4443,7 +4435,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4455,7 +4447,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ConnectorsAPI.PutConnectorSourceConfig(context.Background(), scriptName).File(file).Execute() //resp, r, err := apiClient.V3.ConnectorsAPI.PutConnectorSourceConfig(context.Background(), scriptName).File(file).Execute() @@ -4478,7 +4470,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4490,7 +4482,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ConnectorsAPI.PutConnectorSourceTemplate(context.Background(), scriptName).File(file).Execute() //resp, r, err := apiClient.V3.ConnectorsAPI.PutConnectorSourceTemplate(context.Background(), scriptName).File(file).Execute() @@ -4513,7 +4505,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4525,7 +4517,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ConnectorsAPI.PutConnectorTranslations(context.Background(), scriptName, locale).Execute() //resp, r, err := apiClient.V3.ConnectorsAPI.PutConnectorTranslations(context.Background(), scriptName, locale).Execute() @@ -4548,7 +4540,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4558,7 +4550,7 @@ jsonpatchoperation := []byte(``) // []JsonPatchOperation | A list of connector detail update operations - var jsonPatchOperation v3.[]JsonPatchOperation + var jsonPatchOperation []v3.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -4566,7 +4558,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ConnectorsAPI.UpdateConnector(context.Background(), scriptName).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V3.ConnectorsAPI.UpdateConnector(context.Background(), scriptName).JsonPatchOperation(jsonPatchOperation).Execute() @@ -4589,7 +4581,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4610,7 +4602,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.CreateAuthOrgNetworkConfig(context.Background()).NetworkConfiguration(networkConfiguration).Execute() //resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.CreateAuthOrgNetworkConfig(context.Background()).NetworkConfiguration(networkConfiguration).Execute() @@ -4633,7 +4625,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4643,7 +4635,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.GetAuthOrgLockoutConfig(context.Background()).Execute() //resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.GetAuthOrgLockoutConfig(context.Background()).Execute() @@ -4666,7 +4658,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4676,7 +4668,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.GetAuthOrgNetworkConfig(context.Background()).Execute() //resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.GetAuthOrgNetworkConfig(context.Background()).Execute() @@ -4699,7 +4691,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4709,7 +4701,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.GetAuthOrgServiceProviderConfig(context.Background()).Execute() //resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.GetAuthOrgServiceProviderConfig(context.Background()).Execute() @@ -4732,7 +4724,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4742,7 +4734,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.GetAuthOrgSessionConfig(context.Background()).Execute() //resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.GetAuthOrgSessionConfig(context.Background()).Execute() @@ -4765,7 +4757,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4774,7 +4766,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/maximumAttempts, value=7,}, {op=add, path=/lockoutDuration, value=35}]`) // []JsonPatchOperation | A list of auth org lockout configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Ensures that the patched Lockout Config conforms to certain logical guidelines, which are: `1. maximumAttempts >= 1 && maximumAttempts <= 15 2. lockoutDuration >= 5 && lockoutDuration <= 60 3. lockoutWindow >= 5 && lockoutDuration <= 60` - var jsonPatchOperation v3.[]JsonPatchOperation + var jsonPatchOperation []v3.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -4782,7 +4774,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.PatchAuthOrgLockoutConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() @@ -4805,7 +4797,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4814,7 +4806,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/whitelisted, value=false,}, {op=add, path=/geolocation, value=[AF, HN, ES]}]`) // []JsonPatchOperation | A list of auth org network configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Ensures that the patched Network Config conforms to certain logical guidelines, which are: 1. Each string element in the range array must be a valid ip address or ip subnet mask. 2. Each string element in the geolocation array must be 2 characters, and they can only be uppercase letters. - var jsonPatchOperation v3.[]JsonPatchOperation + var jsonPatchOperation []v3.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -4822,7 +4814,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.PatchAuthOrgNetworkConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() @@ -4845,7 +4837,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4854,7 +4846,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/enabled, value=true,}, {op=add, path=/federationProtocolDetails/0/jitConfiguration, value={enabled=true, sourceId=2c9180857377ed2901739c12a2da5ac8, sourceAttributeMappings={firstName=okta.firstName, lastName=okta.lastName, email=okta.email, employeeNumber=okta.employeeNumber}}}]`) // []JsonPatchOperation | A list of auth org service provider configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Note: /federationProtocolDetails/0 is IdpDetails /federationProtocolDetails/1 is SpDetails Ensures that the patched ServiceProviderConfig conforms to certain logical guidelines, which are: 1. Do not add or remove any elements in the federation protocol details in the service provider configuration. 2. Do not modify, add, or delete the service provider details element in the federation protocol details. 3. If this is the first time the patched ServiceProviderConfig enables Remote IDP sign-in, it must also include IDPDetails. 4. If the patch enables Remote IDP sign in, the entityID in the IDPDetails cannot be null. IDPDetails must include an entityID. 5. Any JIT configuration update must be valid. Just in time configuration update must be valid when enabled. This includes: - A Source ID - Source attribute mappings - Source attribute maps have all the required key values (firstName, lastName, email) - var jsonPatchOperation v3.[]JsonPatchOperation + var jsonPatchOperation []v3.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -4862,7 +4854,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.PatchAuthOrgServiceProviderConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() @@ -4885,7 +4877,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4894,7 +4886,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/rememberMe, value=true,}, {op=add, path=/maxSessionTime, value=480}]`) // []JsonPatchOperation | A list of auth org session configuration update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Ensures that the patched Session Config conforms to certain logical guidelines, which are: `1. maxSessionTime >= 1 && maxSessionTime <= 10080 (1 week) 2. maxIdleTime >= 1 && maxIdleTime <= 1440 (1 day) 3. maxSessionTime must have a greater duration than maxIdleTime.` - var jsonPatchOperation v3.[]JsonPatchOperation + var jsonPatchOperation []v3.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -4902,7 +4894,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V3.GlobalTenantSecuritySettingsAPI.PatchAuthOrgSessionConfig(context.Background()).JsonPatchOperation(jsonPatchOperation).Execute() @@ -4925,7 +4917,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -4990,7 +4982,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.IdentityProfilesAPI.CreateIdentityProfile(context.Background()).IdentityProfile(identityProfile).Execute() //resp, r, err := apiClient.V3.IdentityProfilesAPI.CreateIdentityProfile(context.Background()).IdentityProfile(identityProfile).Execute() @@ -5013,7 +5005,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5024,7 +5016,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.IdentityProfilesAPI.DeleteIdentityProfile(context.Background(), identityProfileId).Execute() //resp, r, err := apiClient.V3.IdentityProfilesAPI.DeleteIdentityProfile(context.Background(), identityProfileId).Execute() @@ -5047,7 +5039,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5056,7 +5048,7 @@ requestbody := []byte(``) // []string | Identity Profile bulk delete request body. - var requestBody v3.[]RequestBody + var requestBody []v3.RequestBody if err := json.Unmarshal(requestbody, &requestBody); err != nil { fmt.Println("Error:", err) return @@ -5064,7 +5056,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.IdentityProfilesAPI.DeleteIdentityProfiles(context.Background()).RequestBody(requestBody).Execute() //resp, r, err := apiClient.V3.IdentityProfilesAPI.DeleteIdentityProfiles(context.Background()).RequestBody(requestBody).Execute() @@ -5087,7 +5079,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5102,7 +5094,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.IdentityProfilesAPI.ExportIdentityProfiles(context.Background()).Execute() //resp, r, err := apiClient.V3.IdentityProfilesAPI.ExportIdentityProfiles(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -5125,7 +5117,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5136,7 +5128,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.IdentityProfilesAPI.GetDefaultIdentityAttributeConfig(context.Background(), identityProfileId).Execute() //resp, r, err := apiClient.V3.IdentityProfilesAPI.GetDefaultIdentityAttributeConfig(context.Background(), identityProfileId).Execute() @@ -5159,7 +5151,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5170,7 +5162,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.IdentityProfilesAPI.GetIdentityProfile(context.Background(), identityProfileId).Execute() //resp, r, err := apiClient.V3.IdentityProfilesAPI.GetIdentityProfile(context.Background(), identityProfileId).Execute() @@ -5193,7 +5185,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5202,7 +5194,7 @@ identityprofileexportedobject := []byte(``) // []IdentityProfileExportedObject | Previously exported Identity Profiles. - var identityProfileExportedObject v3.[]IdentityProfileExportedObject + var identityProfileExportedObject []v3.IdentityProfileExportedObject if err := json.Unmarshal(identityprofileexportedobject, &identityProfileExportedObject); err != nil { fmt.Println("Error:", err) return @@ -5210,7 +5202,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.IdentityProfilesAPI.ImportIdentityProfiles(context.Background()).IdentityProfileExportedObject(identityProfileExportedObject).Execute() //resp, r, err := apiClient.V3.IdentityProfilesAPI.ImportIdentityProfiles(context.Background()).IdentityProfileExportedObject(identityProfileExportedObject).Execute() @@ -5233,7 +5225,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5248,7 +5240,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.IdentityProfilesAPI.ListIdentityProfiles(context.Background()).Execute() //resp, r, err := apiClient.V3.IdentityProfilesAPI.ListIdentityProfiles(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -5271,7 +5263,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5314,7 +5306,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.IdentityProfilesAPI.ShowIdentityPreview(context.Background()).IdentityPreviewRequest(identityPreviewRequest).Execute() //resp, r, err := apiClient.V3.IdentityProfilesAPI.ShowIdentityPreview(context.Background()).IdentityPreviewRequest(identityPreviewRequest).Execute() @@ -5337,7 +5329,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5348,7 +5340,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.IdentityProfilesAPI.SyncIdentityProfile(context.Background(), identityProfileId).Execute() //resp, r, err := apiClient.V3.IdentityProfilesAPI.SyncIdentityProfile(context.Background(), identityProfileId).Execute() @@ -5371,7 +5363,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5381,7 +5373,7 @@ jsonpatchoperation := []byte(`[{op=add, path=/identityAttributeConfig/attributeTransforms/0, value={identityAttributeName=location, transformDefinition={type=accountAttribute, attributes={sourceName=Employees, attributeName=location, sourceId=2c91808878b7d63b0178c66ffcdc4ce4}}}}]`) // []JsonPatchOperation | List of identity profile update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - var jsonPatchOperation v3.[]JsonPatchOperation + var jsonPatchOperation []v3.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -5389,7 +5381,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.IdentityProfilesAPI.UpdateIdentityProfile(context.Background(), identityProfileId).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V3.IdentityProfilesAPI.UpdateIdentityProfile(context.Background(), identityProfileId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -5412,7 +5404,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5454,7 +5446,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.LifecycleStatesAPI.CreateLifecycleState(context.Background(), identityProfileId).LifecycleState(lifecycleState).Execute() //resp, r, err := apiClient.V3.LifecycleStatesAPI.CreateLifecycleState(context.Background(), identityProfileId).LifecycleState(lifecycleState).Execute() @@ -5477,7 +5469,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5489,7 +5481,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.LifecycleStatesAPI.DeleteLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() //resp, r, err := apiClient.V3.LifecycleStatesAPI.DeleteLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() @@ -5512,7 +5504,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5524,7 +5516,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.LifecycleStatesAPI.GetLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() //resp, r, err := apiClient.V3.LifecycleStatesAPI.GetLifecycleState(context.Background(), identityProfileId, lifecycleStateId).Execute() @@ -5547,7 +5539,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5562,7 +5554,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.LifecycleStatesAPI.GetLifecycleStates(context.Background(), identityProfileId).Execute() //resp, r, err := apiClient.V3.LifecycleStatesAPI.GetLifecycleStates(context.Background(), identityProfileId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() @@ -5585,7 +5577,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5603,7 +5595,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.LifecycleStatesAPI.SetLifecycleState(context.Background(), identityId).SetLifecycleStateRequest(setLifecycleStateRequest).Execute() //resp, r, err := apiClient.V3.LifecycleStatesAPI.SetLifecycleState(context.Background(), identityId).SetLifecycleStateRequest(setLifecycleStateRequest).Execute() @@ -5626,7 +5618,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5637,7 +5629,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/description, value=Updated description!}, {op=replace, path=/accessProfileIds, value=[2c918087742bab150174407a80f3125e, 2c918087742bab150174407a80f3124f]}, {op=replace, path=/accountActions, value=[{action=ENABLE, sourceIds=[2c9180846a2f82fb016a481c1b1560c5, 2c9180846a2f82fb016a481c1b1560cc]}, {action=DISABLE, sourceIds=[2c91808869a0c9980169a207258513fb]}]}, {op=replace, path=/emailNotificationOption, value={notifyManagers=true, notifyAllAdmins=false, notifySpecificUsers=false, emailAddressList=[]}}]`) // []JsonPatchOperation | A list of lifecycle state update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields can be updated: * enabled * description * accountActions * accessProfileIds * emailNotificationOption - var jsonPatchOperation v3.[]JsonPatchOperation + var jsonPatchOperation []v3.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -5645,7 +5637,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.LifecycleStatesAPI.UpdateLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V3.LifecycleStatesAPI.UpdateLifecycleStates(context.Background(), identityProfileId, lifecycleStateId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -5668,7 +5660,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5690,7 +5682,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ManagedClientsAPI.CreateManagedClient(context.Background()).ManagedClientRequest(managedClientRequest).Execute() //resp, r, err := apiClient.V3.ManagedClientsAPI.CreateManagedClient(context.Background()).ManagedClientRequest(managedClientRequest).Execute() @@ -5713,7 +5705,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5724,7 +5716,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.ManagedClientsAPI.DeleteManagedClient(context.Background(), id).Execute() //r, err := apiClient.V3.ManagedClientsAPI.DeleteManagedClient(context.Background(), id).Execute() @@ -5745,7 +5737,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5756,7 +5748,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ManagedClientsAPI.GetManagedClient(context.Background(), id).Execute() //resp, r, err := apiClient.V3.ManagedClientsAPI.GetManagedClient(context.Background(), id).Execute() @@ -5779,7 +5771,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5791,7 +5783,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ManagedClientsAPI.GetManagedClientStatus(context.Background(), id).Type_(type_).Execute() //resp, r, err := apiClient.V3.ManagedClientsAPI.GetManagedClientStatus(context.Background(), id).Type_(type_).Execute() @@ -5814,7 +5806,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5828,7 +5820,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ManagedClientsAPI.GetManagedClients(context.Background()).Execute() //resp, r, err := apiClient.V3.ManagedClientsAPI.GetManagedClients(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() @@ -5851,7 +5843,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5861,7 +5853,7 @@ jsonpatchoperation := []byte(``) // []JsonPatchOperation | JSONPatch payload used to update the object. - var jsonPatchOperation v3.[]JsonPatchOperation + var jsonPatchOperation []v3.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -5869,7 +5861,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ManagedClientsAPI.UpdateManagedClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V3.ManagedClientsAPI.UpdateManagedClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -5892,7 +5884,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5917,7 +5909,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ManagedClustersAPI.CreateManagedCluster(context.Background()).ManagedClusterRequest(managedClusterRequest).Execute() //resp, r, err := apiClient.V3.ManagedClustersAPI.CreateManagedCluster(context.Background()).ManagedClusterRequest(managedClusterRequest).Execute() @@ -5940,7 +5932,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5952,7 +5944,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.ManagedClustersAPI.DeleteManagedCluster(context.Background(), id).Execute() //r, err := apiClient.V3.ManagedClustersAPI.DeleteManagedCluster(context.Background(), id).RemoveClients(removeClients).Execute() @@ -5973,7 +5965,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -5984,7 +5976,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ManagedClustersAPI.GetClientLogConfiguration(context.Background(), id).Execute() //resp, r, err := apiClient.V3.ManagedClustersAPI.GetClientLogConfiguration(context.Background(), id).Execute() @@ -6007,7 +5999,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6018,7 +6010,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ManagedClustersAPI.GetManagedCluster(context.Background(), id).Execute() //resp, r, err := apiClient.V3.ManagedClustersAPI.GetManagedCluster(context.Background(), id).Execute() @@ -6041,7 +6033,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6055,7 +6047,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ManagedClustersAPI.GetManagedClusters(context.Background()).Execute() //resp, r, err := apiClient.V3.ManagedClustersAPI.GetManagedClusters(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() @@ -6078,7 +6070,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6096,7 +6088,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ManagedClustersAPI.PutClientLogConfiguration(context.Background(), id).PutClientLogConfigurationRequest(putClientLogConfigurationRequest).Execute() //resp, r, err := apiClient.V3.ManagedClustersAPI.PutClientLogConfiguration(context.Background(), id).PutClientLogConfigurationRequest(putClientLogConfigurationRequest).Execute() @@ -6119,7 +6111,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6129,7 +6121,7 @@ jsonpatchoperation := []byte(``) // []JsonPatchOperation | JSONPatch payload used to update the object. - var jsonPatchOperation v3.[]JsonPatchOperation + var jsonPatchOperation []v3.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -6137,7 +6129,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ManagedClustersAPI.UpdateManagedCluster(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V3.ManagedClustersAPI.UpdateManagedCluster(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -6160,7 +6152,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6171,7 +6163,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.MFAConfigurationAPI.DeleteMFAConfig(context.Background(), method).Execute() //resp, r, err := apiClient.V3.MFAConfigurationAPI.DeleteMFAConfig(context.Background(), method).Execute() @@ -6194,7 +6186,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6204,7 +6196,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.MFAConfigurationAPI.GetMFADuoConfig(context.Background()).Execute() //resp, r, err := apiClient.V3.MFAConfigurationAPI.GetMFADuoConfig(context.Background()).Execute() @@ -6227,7 +6219,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6238,7 +6230,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.MFAConfigurationAPI.GetMFAKbaConfig(context.Background()).Execute() //resp, r, err := apiClient.V3.MFAConfigurationAPI.GetMFAKbaConfig(context.Background()).AllLanguages(allLanguages).Execute() @@ -6261,7 +6253,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6271,7 +6263,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.MFAConfigurationAPI.GetMFAOktaConfig(context.Background()).Execute() //resp, r, err := apiClient.V3.MFAConfigurationAPI.GetMFAOktaConfig(context.Background()).Execute() @@ -6294,7 +6286,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6321,7 +6313,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.MFAConfigurationAPI.SetMFADuoConfig(context.Background()).MfaDuoConfig(mfaDuoConfig).Execute() //resp, r, err := apiClient.V3.MFAConfigurationAPI.SetMFADuoConfig(context.Background()).MfaDuoConfig(mfaDuoConfig).Execute() @@ -6344,7 +6336,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6353,7 +6345,7 @@ kbaanswerrequestitem := []byte(`[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]`) // []KbaAnswerRequestItem | - var kbaAnswerRequestItem v3.[]KbaAnswerRequestItem + var kbaAnswerRequestItem []v3.KbaAnswerRequestItem if err := json.Unmarshal(kbaanswerrequestitem, &kbaAnswerRequestItem); err != nil { fmt.Println("Error:", err) return @@ -6361,7 +6353,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.MFAConfigurationAPI.SetMFAKBAConfig(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() //resp, r, err := apiClient.V3.MFAConfigurationAPI.SetMFAKBAConfig(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() @@ -6384,7 +6376,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6407,7 +6399,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.MFAConfigurationAPI.SetMFAOktaConfig(context.Background()).MfaOktaConfig(mfaOktaConfig).Execute() //resp, r, err := apiClient.V3.MFAConfigurationAPI.SetMFAOktaConfig(context.Background()).MfaOktaConfig(mfaOktaConfig).Execute() @@ -6430,7 +6422,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6441,7 +6433,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.MFAConfigurationAPI.TestMFAConfig(context.Background(), method).Execute() //resp, r, err := apiClient.V3.MFAConfigurationAPI.TestMFAConfig(context.Background(), method).Execute() @@ -6464,7 +6456,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6484,7 +6476,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.MFAControllerAPI.CreateSendToken(context.Background()).SendTokenRequest(sendTokenRequest).Execute() //resp, r, err := apiClient.V3.MFAControllerAPI.CreateSendToken(context.Background()).SendTokenRequest(sendTokenRequest).Execute() @@ -6507,7 +6499,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6527,7 +6519,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.MFAControllerAPI.PingVerificationStatus(context.Background(), method).VerificationPollRequest(verificationPollRequest).Execute() //resp, r, err := apiClient.V3.MFAControllerAPI.PingVerificationStatus(context.Background(), method).VerificationPollRequest(verificationPollRequest).Execute() @@ -6550,7 +6542,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6570,7 +6562,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.MFAControllerAPI.SendDuoVerifyRequest(context.Background()).DuoVerificationRequest(duoVerificationRequest).Execute() //resp, r, err := apiClient.V3.MFAControllerAPI.SendDuoVerifyRequest(context.Background()).DuoVerificationRequest(duoVerificationRequest).Execute() @@ -6593,7 +6585,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6602,7 +6594,7 @@ kbaanswerrequestitem := []byte(`[{id=173423, answer=822cd15d6c15aa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a0859a2fea34}, {id=c54fee53-2d63-4fc5-9259-3e93b9994135, answer=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08}]`) // []KbaAnswerRequestItem | - var kbaAnswerRequestItem v3.[]KbaAnswerRequestItem + var kbaAnswerRequestItem []v3.KbaAnswerRequestItem if err := json.Unmarshal(kbaanswerrequestitem, &kbaAnswerRequestItem); err != nil { fmt.Println("Error:", err) return @@ -6610,7 +6602,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.MFAControllerAPI.SendKbaAnswers(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() //resp, r, err := apiClient.V3.MFAControllerAPI.SendKbaAnswers(context.Background()).KbaAnswerRequestItem(kbaAnswerRequestItem).Execute() @@ -6633,7 +6625,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6652,7 +6644,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.MFAControllerAPI.SendOktaVerifyRequest(context.Background()).OktaVerificationRequest(oktaVerificationRequest).Execute() //resp, r, err := apiClient.V3.MFAControllerAPI.SendOktaVerifyRequest(context.Background()).OktaVerificationRequest(oktaVerificationRequest).Execute() @@ -6675,7 +6667,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6696,7 +6688,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.MFAControllerAPI.SendTokenAuthRequest(context.Background()).TokenAuthRequest(tokenAuthRequest).Execute() //resp, r, err := apiClient.V3.MFAControllerAPI.SendTokenAuthRequest(context.Background()).TokenAuthRequest(tokenAuthRequest).Execute() @@ -6719,7 +6711,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6739,7 +6731,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest(context.Background(), id).NonEmployeeApprovalDecision(nonEmployeeApprovalDecision).Execute() //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ApproveNonEmployeeRequest(context.Background(), id).NonEmployeeApprovalDecision(nonEmployeeApprovalDecision).Execute() @@ -6762,7 +6754,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" "time" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -6793,7 +6785,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRecord(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() @@ -6816,7 +6808,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" "time" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -6847,7 +6839,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeRequest(context.Background()).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() @@ -6870,7 +6862,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6912,7 +6904,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource(context.Background()).NonEmployeeSourceRequestBody(nonEmployeeSourceRequestBody).Execute() //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSource(context.Background()).NonEmployeeSourceRequestBody(nonEmployeeSourceRequestBody).Execute() @@ -6935,7 +6927,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6960,7 +6952,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).NonEmployeeSchemaAttributeBody(nonEmployeeSchemaAttributeBody).Execute() //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.CreateNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).NonEmployeeSchemaAttributeBody(nonEmployeeSchemaAttributeBody).Execute() @@ -6983,7 +6975,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -6994,7 +6986,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord(context.Background(), id).Execute() //r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecord(context.Background(), id).Execute() @@ -7015,7 +7007,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7032,7 +7024,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordsInBulk(context.Background()).DeleteNonEmployeeRecordsInBulkRequest(deleteNonEmployeeRecordsInBulkRequest).Execute() //r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRecordsInBulk(context.Background()).DeleteNonEmployeeRecordsInBulkRequest(deleteNonEmployeeRecordsInBulkRequest).Execute() @@ -7053,7 +7045,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7064,7 +7056,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest(context.Background(), id).Execute() //r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeRequest(context.Background(), id).Execute() @@ -7085,7 +7077,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7097,7 +7089,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() //r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() @@ -7118,7 +7110,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7129,7 +7121,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource(context.Background(), sourceId).Execute() //r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSource(context.Background(), sourceId).Execute() @@ -7150,7 +7142,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7161,7 +7153,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() //r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.DeleteNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() @@ -7182,7 +7174,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7193,7 +7185,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords(context.Background(), id).Execute() //r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeRecords(context.Background(), id).Execute() @@ -7214,7 +7206,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7225,7 +7217,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate(context.Background(), id).Execute() //r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ExportNonEmployeeSourceSchemaTemplate(context.Background(), id).Execute() @@ -7246,7 +7238,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7258,7 +7250,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval(context.Background(), id).Execute() //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApproval(context.Background(), id).IncludeDetail(includeDetail).Execute() @@ -7281,7 +7273,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7292,7 +7284,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary(context.Background(), requestedFor).Execute() //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeApprovalSummary(context.Background(), requestedFor).Execute() @@ -7315,7 +7307,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7326,7 +7318,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus(context.Background(), id).Execute() //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeBulkUploadStatus(context.Background(), id).Execute() @@ -7349,7 +7341,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7360,7 +7352,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord(context.Background(), id).Execute() //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRecord(context.Background(), id).Execute() @@ -7383,7 +7375,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7394,7 +7386,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest(context.Background(), id).Execute() //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequest(context.Background(), id).Execute() @@ -7417,7 +7409,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7428,7 +7420,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary(context.Background(), requestedFor).Execute() //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeRequestSummary(context.Background(), requestedFor).Execute() @@ -7451,7 +7443,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7463,7 +7455,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).Execute() @@ -7486,7 +7478,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7497,7 +7489,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource(context.Background(), sourceId).Execute() //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSource(context.Background(), sourceId).Execute() @@ -7520,7 +7512,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7531,7 +7523,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.GetNonEmployeeSourceSchemaAttributes(context.Background(), sourceId).Execute() @@ -7554,7 +7546,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7566,7 +7558,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk(context.Background(), id).Data(data).Execute() //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ImportNonEmployeeRecordsInBulk(context.Background(), id).Data(data).Execute() @@ -7589,7 +7581,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7605,7 +7597,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals(context.Background()).Execute() //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ListNonEmployeeApprovals(context.Background()).RequestedFor(requestedFor).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -7628,7 +7620,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7643,7 +7635,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords(context.Background()).Execute() //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRecords(context.Background()).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() @@ -7666,7 +7658,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7682,7 +7674,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests(context.Background()).RequestedFor(requestedFor).Execute() //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ListNonEmployeeRequests(context.Background()).RequestedFor(requestedFor).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Filters(filters).Execute() @@ -7705,7 +7697,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7721,7 +7713,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources(context.Background()).Execute() //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.ListNonEmployeeSources(context.Background()).Limit(limit).Offset(offset).Count(count).RequestedFor(requestedFor).NonEmployeeCount(nonEmployeeCount).Sorters(sorters).Execute() @@ -7744,7 +7736,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7754,7 +7746,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/endDate, value=2019-08-23T18:40:35.772Z}]`) // []JsonPatchOperation | A list of non-employee update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Attributes are restricted by user type. Owner of source can update end date. Organization admins can update all available fields. - var jsonPatchOperation v3.[]JsonPatchOperation + var jsonPatchOperation []v3.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -7762,7 +7754,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeRecord(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -7785,7 +7777,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7796,7 +7788,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/label, value={new attribute label=null}}]`) // []JsonPatchOperation | A list of schema attribute update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following properties are allowed for update ':' 'label', 'helpText', 'placeholder', 'required'. - var jsonPatchOperation v3.[]JsonPatchOperation + var jsonPatchOperation []v3.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -7804,7 +7796,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSchemaAttribute(context.Background(), attributeId, sourceId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -7827,7 +7819,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7837,7 +7829,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/name, value={new name=null}}, {op=replace, path=/approvers, value=[2c91809f703bb37a017040a2fe8748c7, 48b1f463c9e8427db5a5071bd81914b8]}]`) // []JsonPatchOperation | A list of non-employee source update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. - var jsonPatchOperation v3.[]JsonPatchOperation + var jsonPatchOperation []v3.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -7845,7 +7837,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource(context.Background(), sourceId).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.PatchNonEmployeeSource(context.Background(), sourceId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -7868,7 +7860,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7888,7 +7880,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest(context.Background(), id).NonEmployeeRejectApprovalDecision(nonEmployeeRejectApprovalDecision).Execute() //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.RejectNonEmployeeRequest(context.Background(), id).NonEmployeeRejectApprovalDecision(nonEmployeeRejectApprovalDecision).Execute() @@ -7911,7 +7903,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" "time" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" @@ -7943,7 +7935,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord(context.Background(), id).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() //resp, r, err := apiClient.V3.NonEmployeeLifecycleManagementAPI.UpdateNonEmployeeRecord(context.Background(), id).NonEmployeeRequestBody(nonEmployeeRequestBody).Execute() @@ -7966,7 +7958,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -7999,7 +7991,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.OAuthClientsAPI.CreateOauthClient(context.Background()).CreateOAuthClientRequest(createOAuthClientRequest).Execute() //resp, r, err := apiClient.V3.OAuthClientsAPI.CreateOauthClient(context.Background()).CreateOAuthClientRequest(createOAuthClientRequest).Execute() @@ -8022,7 +8014,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8033,7 +8025,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.OAuthClientsAPI.DeleteOauthClient(context.Background(), id).Execute() //r, err := apiClient.V3.OAuthClientsAPI.DeleteOauthClient(context.Background(), id).Execute() @@ -8054,7 +8046,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8065,7 +8057,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.OAuthClientsAPI.GetOauthClient(context.Background(), id).Execute() //resp, r, err := apiClient.V3.OAuthClientsAPI.GetOauthClient(context.Background(), id).Execute() @@ -8088,7 +8080,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8099,7 +8091,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.OAuthClientsAPI.ListOauthClients(context.Background()).Execute() //resp, r, err := apiClient.V3.OAuthClientsAPI.ListOauthClients(context.Background()).Filters(filters).Execute() @@ -8122,7 +8114,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8132,7 +8124,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/strongAuthSupported, value=true}, {op=replace, path=/businessName, value=acme-solar}]`) // []JsonPatchOperation | A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * tenant * businessName * homepageUrl * name * description * accessTokenValiditySeconds * refreshTokenValiditySeconds * redirectUris * grantTypes * accessType * enabled * strongAuthSupported * claimsSupported - var jsonPatchOperation v3.[]JsonPatchOperation + var jsonPatchOperation []v3.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -8140,7 +8132,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.OAuthClientsAPI.PatchOauthClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V3.OAuthClientsAPI.PatchOauthClient(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -8163,7 +8155,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8185,7 +8177,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PasswordConfigurationAPI.CreatePasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() //resp, r, err := apiClient.V3.PasswordConfigurationAPI.CreatePasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() @@ -8208,7 +8200,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8218,7 +8210,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PasswordConfigurationAPI.GetPasswordOrgConfig(context.Background()).Execute() //resp, r, err := apiClient.V3.PasswordConfigurationAPI.GetPasswordOrgConfig(context.Background()).Execute() @@ -8241,7 +8233,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8263,7 +8255,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PasswordConfigurationAPI.PutPasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() //resp, r, err := apiClient.V3.PasswordConfigurationAPI.PutPasswordOrgConfig(context.Background()).PasswordOrgConfig(passwordOrgConfig).Execute() @@ -8286,7 +8278,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8296,7 +8288,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PasswordDictionaryAPI.GetPasswordDictionary(context.Background()).Execute() //resp, r, err := apiClient.V3.PasswordDictionaryAPI.GetPasswordDictionary(context.Background()).Execute() @@ -8319,7 +8311,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8330,7 +8322,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.PasswordDictionaryAPI.PutPasswordDictionary(context.Background()).Execute() //r, err := apiClient.V3.PasswordDictionaryAPI.PutPasswordDictionary(context.Background()).File(file).Execute() @@ -8351,7 +8343,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8362,7 +8354,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PasswordManagementAPI.GetPasswordChangeStatus(context.Background(), id).Execute() //resp, r, err := apiClient.V3.PasswordManagementAPI.GetPasswordChangeStatus(context.Background(), id).Execute() @@ -8385,7 +8377,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8405,7 +8397,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PasswordManagementAPI.QueryPasswordInfo(context.Background()).PasswordInfoQueryDTO(passwordInfoQueryDTO).Execute() //resp, r, err := apiClient.V3.PasswordManagementAPI.QueryPasswordInfo(context.Background()).PasswordInfoQueryDTO(passwordInfoQueryDTO).Execute() @@ -8428,7 +8420,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8451,7 +8443,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PasswordManagementAPI.SetPassword(context.Background()).PasswordChangeRequest(passwordChangeRequest).Execute() //resp, r, err := apiClient.V3.PasswordManagementAPI.SetPassword(context.Background()).PasswordChangeRequest(passwordChangeRequest).Execute() @@ -8474,7 +8466,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8523,7 +8515,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PasswordPoliciesAPI.CreatePasswordPolicy(context.Background()).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() //resp, r, err := apiClient.V3.PasswordPoliciesAPI.CreatePasswordPolicy(context.Background()).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() @@ -8546,7 +8538,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8557,7 +8549,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.PasswordPoliciesAPI.DeletePasswordPolicy(context.Background(), id).Execute() //r, err := apiClient.V3.PasswordPoliciesAPI.DeletePasswordPolicy(context.Background(), id).Execute() @@ -8578,7 +8570,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8589,7 +8581,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PasswordPoliciesAPI.GetPasswordPolicyById(context.Background(), id).Execute() //resp, r, err := apiClient.V3.PasswordPoliciesAPI.GetPasswordPolicyById(context.Background(), id).Execute() @@ -8612,7 +8604,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8625,7 +8617,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PasswordPoliciesAPI.ListPasswordPolicies(context.Background()).Execute() //resp, r, err := apiClient.V3.PasswordPoliciesAPI.ListPasswordPolicies(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() @@ -8648,7 +8640,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8698,7 +8690,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PasswordPoliciesAPI.SetPasswordPolicy(context.Background(), id).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() //resp, r, err := apiClient.V3.PasswordPoliciesAPI.SetPasswordPolicy(context.Background(), id).PasswordPolicyV3Dto(passwordPolicyV3Dto).Execute() @@ -8721,7 +8713,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8745,7 +8737,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PasswordSyncGroupsAPI.CreatePasswordSyncGroup(context.Background()).PasswordSyncGroup(passwordSyncGroup).Execute() //resp, r, err := apiClient.V3.PasswordSyncGroupsAPI.CreatePasswordSyncGroup(context.Background()).PasswordSyncGroup(passwordSyncGroup).Execute() @@ -8768,7 +8760,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8779,7 +8771,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.PasswordSyncGroupsAPI.DeletePasswordSyncGroup(context.Background(), id).Execute() //r, err := apiClient.V3.PasswordSyncGroupsAPI.DeletePasswordSyncGroup(context.Background(), id).Execute() @@ -8800,7 +8792,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8811,7 +8803,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PasswordSyncGroupsAPI.GetPasswordSyncGroup(context.Background(), id).Execute() //resp, r, err := apiClient.V3.PasswordSyncGroupsAPI.GetPasswordSyncGroup(context.Background(), id).Execute() @@ -8834,7 +8826,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8847,7 +8839,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PasswordSyncGroupsAPI.GetPasswordSyncGroups(context.Background()).Execute() //resp, r, err := apiClient.V3.PasswordSyncGroupsAPI.GetPasswordSyncGroups(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() @@ -8870,7 +8862,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8895,7 +8887,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PasswordSyncGroupsAPI.UpdatePasswordSyncGroup(context.Background(), id).PasswordSyncGroup(passwordSyncGroup).Execute() //resp, r, err := apiClient.V3.PasswordSyncGroupsAPI.UpdatePasswordSyncGroup(context.Background(), id).PasswordSyncGroup(passwordSyncGroup).Execute() @@ -8918,7 +8910,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8939,7 +8931,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PersonalAccessTokensAPI.CreatePersonalAccessToken(context.Background()).CreatePersonalAccessTokenRequest(createPersonalAccessTokenRequest).Execute() //resp, r, err := apiClient.V3.PersonalAccessTokensAPI.CreatePersonalAccessToken(context.Background()).CreatePersonalAccessTokenRequest(createPersonalAccessTokenRequest).Execute() @@ -8962,7 +8954,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -8973,7 +8965,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.PersonalAccessTokensAPI.DeletePersonalAccessToken(context.Background(), id).Execute() //r, err := apiClient.V3.PersonalAccessTokensAPI.DeletePersonalAccessToken(context.Background(), id).Execute() @@ -8994,7 +8986,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9006,7 +8998,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PersonalAccessTokensAPI.ListPersonalAccessTokens(context.Background()).Execute() //resp, r, err := apiClient.V3.PersonalAccessTokensAPI.ListPersonalAccessTokens(context.Background()).OwnerId(ownerId).Filters(filters).Execute() @@ -9029,7 +9021,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9039,7 +9031,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/name, value=New name}, {op=replace, path=/scope, value=[sp:scopes:all]}]`) // []JsonPatchOperation | A list of OAuth client update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * scope - var jsonPatchOperation v3.[]JsonPatchOperation + var jsonPatchOperation []v3.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -9047,7 +9039,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PersonalAccessTokensAPI.PatchPersonalAccessToken(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V3.PersonalAccessTokensAPI.PatchPersonalAccessToken(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -9070,7 +9062,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9086,7 +9078,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PublicIdentitiesAPI.GetPublicIdentities(context.Background()).Execute() //resp, r, err := apiClient.V3.PublicIdentitiesAPI.GetPublicIdentities(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).AddCoreFilters(addCoreFilters).Sorters(sorters).Execute() @@ -9109,7 +9101,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9119,7 +9111,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PublicIdentitiesConfigAPI.GetPublicIdentityConfig(context.Background()).Execute() //resp, r, err := apiClient.V3.PublicIdentitiesConfigAPI.GetPublicIdentityConfig(context.Background()).Execute() @@ -9142,7 +9134,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9173,7 +9165,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig(context.Background()).PublicIdentityConfig(publicIdentityConfig).Execute() //resp, r, err := apiClient.V3.PublicIdentitiesConfigAPI.UpdatePublicIdentityConfig(context.Background()).PublicIdentityConfig(publicIdentityConfig).Execute() @@ -9196,7 +9188,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9207,7 +9199,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.ReportsDataExtractionAPI.CancelReport(context.Background(), id).Execute() //r, err := apiClient.V3.ReportsDataExtractionAPI.CancelReport(context.Background(), id).Execute() @@ -9228,7 +9220,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9242,7 +9234,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ReportsDataExtractionAPI.GetReport(context.Background(), taskResultId).FileFormat(fileFormat).Execute() //resp, r, err := apiClient.V3.ReportsDataExtractionAPI.GetReport(context.Background(), taskResultId).FileFormat(fileFormat).Name(name).Auditable(auditable).Execute() @@ -9265,7 +9257,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9277,7 +9269,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ReportsDataExtractionAPI.GetReportResult(context.Background(), taskResultId).Execute() //resp, r, err := apiClient.V3.ReportsDataExtractionAPI.GetReportResult(context.Background(), taskResultId).Completed(completed).Execute() @@ -9300,7 +9292,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9323,7 +9315,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ReportsDataExtractionAPI.StartReport(context.Background()).ReportDetails(reportDetails).Execute() //resp, r, err := apiClient.V3.ReportsDataExtractionAPI.StartReport(context.Background()).ReportDetails(reportDetails).Execute() @@ -9346,7 +9338,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9365,7 +9357,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.RequestableObjectsAPI.ListRequestableObjects(context.Background()).Execute() //resp, r, err := apiClient.V3.RequestableObjectsAPI.ListRequestableObjects(context.Background()).IdentityId(identityId).Types(types).Term(term).Statuses(statuses).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -9388,7 +9380,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9563,7 +9555,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.RolesAPI.CreateRole(context.Background()).Role(role).Execute() //resp, r, err := apiClient.V3.RolesAPI.CreateRole(context.Background()).Role(role).Execute() @@ -9586,7 +9578,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9605,7 +9597,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.RolesAPI.DeleteBulkRoles(context.Background()).RoleBulkDeleteRequest(roleBulkDeleteRequest).Execute() //resp, r, err := apiClient.V3.RolesAPI.DeleteBulkRoles(context.Background()).RoleBulkDeleteRequest(roleBulkDeleteRequest).Execute() @@ -9628,7 +9620,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9639,7 +9631,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.RolesAPI.DeleteRole(context.Background(), id).Execute() //r, err := apiClient.V3.RolesAPI.DeleteRole(context.Background(), id).Execute() @@ -9660,7 +9652,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9671,7 +9663,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.RolesAPI.GetRole(context.Background(), id).Execute() //resp, r, err := apiClient.V3.RolesAPI.GetRole(context.Background(), id).Execute() @@ -9694,7 +9686,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9710,7 +9702,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.RolesAPI.GetRoleAssignedIdentities(context.Background(), id).Execute() //resp, r, err := apiClient.V3.RolesAPI.GetRoleAssignedIdentities(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -9733,7 +9725,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9751,7 +9743,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.RolesAPI.ListRoles(context.Background()).Execute() //resp, r, err := apiClient.V3.RolesAPI.ListRoles(context.Background()).ForSubadmin(forSubadmin).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSegmentIds(forSegmentIds).IncludeUnsegmented(includeUnsegmented).Execute() @@ -9774,7 +9766,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9784,7 +9776,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/requestable, value=true}, {op=replace, path=/enabled, value=true}]`) // []JsonPatchOperation | - var jsonPatchOperation v3.[]JsonPatchOperation + var jsonPatchOperation []v3.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -9792,7 +9784,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.RolesAPI.PatchRole(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V3.RolesAPI.PatchRole(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -9815,7 +9807,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9832,7 +9824,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SavedSearchAPI.CreateSavedSearch(context.Background()).CreateSavedSearchRequest(createSavedSearchRequest).Execute() //resp, r, err := apiClient.V3.SavedSearchAPI.CreateSavedSearch(context.Background()).CreateSavedSearchRequest(createSavedSearchRequest).Execute() @@ -9855,7 +9847,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9866,7 +9858,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.SavedSearchAPI.DeleteSavedSearch(context.Background(), id).Execute() //r, err := apiClient.V3.SavedSearchAPI.DeleteSavedSearch(context.Background(), id).Execute() @@ -9887,7 +9879,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9915,7 +9907,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.SavedSearchAPI.ExecuteSavedSearch(context.Background(), id).SearchArguments(searchArguments).Execute() //r, err := apiClient.V3.SavedSearchAPI.ExecuteSavedSearch(context.Background(), id).SearchArguments(searchArguments).Execute() @@ -9936,7 +9928,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9947,7 +9939,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SavedSearchAPI.GetSavedSearch(context.Background(), id).Execute() //resp, r, err := apiClient.V3.SavedSearchAPI.GetSavedSearch(context.Background(), id).Execute() @@ -9970,7 +9962,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -9984,7 +9976,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SavedSearchAPI.ListSavedSearches(context.Background()).Execute() //resp, r, err := apiClient.V3.SavedSearchAPI.ListSavedSearches(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() @@ -10007,7 +9999,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10069,7 +10061,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SavedSearchAPI.PutSavedSearch(context.Background(), id).SavedSearch(savedSearch).Execute() //resp, r, err := apiClient.V3.SavedSearchAPI.PutSavedSearch(context.Background(), id).SavedSearch(savedSearch).Execute() @@ -10092,7 +10084,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10109,7 +10101,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ScheduledSearchAPI.CreateScheduledSearch(context.Background()).CreateScheduledSearchRequest(createScheduledSearchRequest).Execute() //resp, r, err := apiClient.V3.ScheduledSearchAPI.CreateScheduledSearch(context.Background()).CreateScheduledSearchRequest(createScheduledSearchRequest).Execute() @@ -10132,7 +10124,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10143,7 +10135,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.ScheduledSearchAPI.DeleteScheduledSearch(context.Background(), id).Execute() //r, err := apiClient.V3.ScheduledSearchAPI.DeleteScheduledSearch(context.Background(), id).Execute() @@ -10164,7 +10156,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10175,7 +10167,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ScheduledSearchAPI.GetScheduledSearch(context.Background(), id).Execute() //resp, r, err := apiClient.V3.ScheduledSearchAPI.GetScheduledSearch(context.Background(), id).Execute() @@ -10198,7 +10190,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10212,7 +10204,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ScheduledSearchAPI.ListScheduledSearch(context.Background()).Execute() //resp, r, err := apiClient.V3.ScheduledSearchAPI.ListScheduledSearch(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute() @@ -10235,7 +10227,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10256,7 +10248,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.ScheduledSearchAPI.UnsubscribeScheduledSearch(context.Background(), id).TypedReference(typedReference).Execute() //r, err := apiClient.V3.ScheduledSearchAPI.UnsubscribeScheduledSearch(context.Background(), id).TypedReference(typedReference).Execute() @@ -10277,7 +10269,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10337,7 +10329,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ScheduledSearchAPI.UpdateScheduledSearch(context.Background(), id).ScheduledSearch(scheduledSearch).Execute() //resp, r, err := apiClient.V3.ScheduledSearchAPI.UpdateScheduledSearch(context.Background(), id).ScheduledSearch(scheduledSearch).Execute() @@ -10360,7 +10352,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10496,7 +10488,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SearchAPI.SearchAggregate(context.Background()).Search(search).Execute() //resp, r, err := apiClient.V3.SearchAPI.SearchAggregate(context.Background()).Search(search).Offset(offset).Limit(limit).Count(count).Execute() @@ -10519,7 +10511,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10652,7 +10644,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.SearchAPI.SearchCount(context.Background()).Search(search).Execute() //r, err := apiClient.V3.SearchAPI.SearchCount(context.Background()).Search(search).Execute() @@ -10673,7 +10665,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10685,7 +10677,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SearchAPI.SearchGet(context.Background(), index, id).Execute() //resp, r, err := apiClient.V3.SearchAPI.SearchGet(context.Background(), index, id).Execute() @@ -10708,7 +10700,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10844,7 +10836,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SearchAPI.SearchPost(context.Background()).Search(search).Execute() //resp, r, err := apiClient.V3.SearchAPI.SearchPost(context.Background()).Search(search).Offset(offset).Limit(limit).Count(count).Execute() @@ -10867,7 +10859,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10891,7 +10883,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SearchAttributeConfigurationAPI.CreateSearchAttributeConfig(context.Background()).SearchAttributeConfig(searchAttributeConfig).Execute() //resp, r, err := apiClient.V3.SearchAttributeConfigurationAPI.CreateSearchAttributeConfig(context.Background()).SearchAttributeConfig(searchAttributeConfig).Execute() @@ -10914,7 +10906,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10925,7 +10917,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig(context.Background(), name).Execute() //r, err := apiClient.V3.SearchAttributeConfigurationAPI.DeleteSearchAttributeConfig(context.Background(), name).Execute() @@ -10946,7 +10938,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10958,7 +10950,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SearchAttributeConfigurationAPI.GetSearchAttributeConfig(context.Background()).Execute() //resp, r, err := apiClient.V3.SearchAttributeConfigurationAPI.GetSearchAttributeConfig(context.Background()).Limit(limit).Offset(offset).Execute() @@ -10981,7 +10973,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -10992,7 +10984,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig(context.Background(), name).Execute() //resp, r, err := apiClient.V3.SearchAttributeConfigurationAPI.GetSingleSearchAttributeConfig(context.Background(), name).Execute() @@ -11015,7 +11007,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11025,7 +11017,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/name, value=newAttributeName}, {op=replace, path=/displayName, value=new attribute display name}, {op=add, path=/applicationAttributes, value={2c91808b79fd2422017a0b35d30f3968=employeeNumber}}]`) // []JsonPatchOperation | - var jsonPatchOperation v3.[]JsonPatchOperation + var jsonPatchOperation []v3.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -11033,7 +11025,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SearchAttributeConfigurationAPI.PatchSearchAttributeConfig(context.Background(), name).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V3.SearchAttributeConfigurationAPI.PatchSearchAttributeConfig(context.Background(), name).JsonPatchOperation(jsonPatchOperation).Execute() @@ -11056,7 +11048,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11096,7 +11088,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SegmentsAPI.CreateSegment(context.Background()).Segment(segment).Execute() //resp, r, err := apiClient.V3.SegmentsAPI.CreateSegment(context.Background()).Segment(segment).Execute() @@ -11119,7 +11111,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11130,7 +11122,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.SegmentsAPI.DeleteSegment(context.Background(), id).Execute() //r, err := apiClient.V3.SegmentsAPI.DeleteSegment(context.Background(), id).Execute() @@ -11151,7 +11143,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11162,7 +11154,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SegmentsAPI.GetSegment(context.Background(), id).Execute() //resp, r, err := apiClient.V3.SegmentsAPI.GetSegment(context.Background(), id).Execute() @@ -11185,7 +11177,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11198,7 +11190,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SegmentsAPI.ListSegments(context.Background()).Execute() //resp, r, err := apiClient.V3.SegmentsAPI.ListSegments(context.Background()).Limit(limit).Offset(offset).Count(count).Execute() @@ -11221,7 +11213,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11231,7 +11223,7 @@ requestbody := []byte(`[{op=replace, path=/visibilityCriteria, value={expression={operator=AND, children=[{operator=EQUALS, attribute=location, value={type=STRING, value=Philadelphia}}, {operator=EQUALS, attribute=department, value={type=STRING, value=HR}}]}}}]`) // []map[string]interface{} | A list of segment update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * owner * visibilityCriteria * active - var requestBody v3.[]RequestBody + var requestBody []v3.RequestBody if err := json.Unmarshal(requestbody, &requestBody); err != nil { fmt.Println("Error:", err) return @@ -11239,7 +11231,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SegmentsAPI.PatchSegment(context.Background(), id).RequestBody(requestBody).Execute() //resp, r, err := apiClient.V3.SegmentsAPI.PatchSegment(context.Background(), id).RequestBody(requestBody).Execute() @@ -11262,7 +11254,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11312,7 +11304,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.CreateServiceDeskIntegration(context.Background()).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() //resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.CreateServiceDeskIntegration(context.Background()).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() @@ -11335,7 +11327,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11346,7 +11338,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration(context.Background(), id).Execute() //r, err := apiClient.V3.ServiceDeskIntegrationAPI.DeleteServiceDeskIntegration(context.Background(), id).Execute() @@ -11367,7 +11359,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11378,7 +11370,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.GetServiceDeskIntegration(context.Background(), id).Execute() //resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.GetServiceDeskIntegration(context.Background(), id).Execute() @@ -11401,7 +11393,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11412,7 +11404,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate(context.Background(), scriptName).Execute() //resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTemplate(context.Background(), scriptName).Execute() @@ -11435,7 +11427,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11445,7 +11437,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes(context.Background()).Execute() //resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.GetServiceDeskIntegrationTypes(context.Background()).Execute() @@ -11468,7 +11460,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11483,7 +11475,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.GetServiceDeskIntegrations(context.Background()).Execute() //resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.GetServiceDeskIntegrations(context.Background()).Offset(offset).Limit(limit).Sorters(sorters).Filters(filters).Count(count).Execute() @@ -11506,7 +11498,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11516,7 +11508,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.GetStatusCheckDetails(context.Background()).Execute() //resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.GetStatusCheckDetails(context.Background()).Execute() @@ -11539,7 +11531,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11549,7 +11541,7 @@ jsonpatchoperation := []byte(``) // []JsonPatchOperation | A list of SDIM update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Only `replace` operations are accepted by this endpoint. A 403 Forbidden Error indicates that a PATCH operation was attempted that is not allowed. - var jsonPatchOperation v3.[]JsonPatchOperation + var jsonPatchOperation []v3.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -11557,7 +11549,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.PatchServiceDeskIntegration(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.PatchServiceDeskIntegration(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -11580,7 +11572,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11631,7 +11623,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.PutServiceDeskIntegration(context.Background(), id).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() //resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.PutServiceDeskIntegration(context.Background(), id).ServiceDeskIntegrationDto(serviceDeskIntegrationDto).Execute() @@ -11654,7 +11646,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11674,7 +11666,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.UpdateStatusCheckDetails(context.Background()).QueuedCheckConfigDetails(queuedCheckConfigDetails).Execute() //resp, r, err := apiClient.V3.ServiceDeskIntegrationAPI.UpdateStatusCheckDetails(context.Background()).QueuedCheckConfigDetails(queuedCheckConfigDetails).Execute() @@ -11697,7 +11689,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11769,7 +11761,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SODPoliciesAPI.CreateSodPolicy(context.Background()).SodPolicy(sodPolicy).Execute() //resp, r, err := apiClient.V3.SODPoliciesAPI.CreateSodPolicy(context.Background()).SodPolicy(sodPolicy).Execute() @@ -11792,7 +11784,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11804,7 +11796,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.SODPoliciesAPI.DeleteSodPolicy(context.Background(), id).Execute() //r, err := apiClient.V3.SODPoliciesAPI.DeleteSodPolicy(context.Background(), id).Logical(logical).Execute() @@ -11825,7 +11817,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11836,7 +11828,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.SODPoliciesAPI.DeleteSodPolicySchedule(context.Background(), id).Execute() //r, err := apiClient.V3.SODPoliciesAPI.DeleteSodPolicySchedule(context.Background(), id).Execute() @@ -11857,7 +11849,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11869,7 +11861,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SODPoliciesAPI.GetCustomViolationReport(context.Background(), reportResultId, fileName).Execute() //resp, r, err := apiClient.V3.SODPoliciesAPI.GetCustomViolationReport(context.Background(), reportResultId, fileName).Execute() @@ -11892,7 +11884,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11903,7 +11895,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SODPoliciesAPI.GetDefaultViolationReport(context.Background(), reportResultId).Execute() //resp, r, err := apiClient.V3.SODPoliciesAPI.GetDefaultViolationReport(context.Background(), reportResultId).Execute() @@ -11926,7 +11918,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11936,7 +11928,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SODPoliciesAPI.GetSodAllReportRunStatus(context.Background()).Execute() //resp, r, err := apiClient.V3.SODPoliciesAPI.GetSodAllReportRunStatus(context.Background()).Execute() @@ -11959,7 +11951,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -11970,7 +11962,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SODPoliciesAPI.GetSodPolicy(context.Background(), id).Execute() //resp, r, err := apiClient.V3.SODPoliciesAPI.GetSodPolicy(context.Background(), id).Execute() @@ -11993,7 +11985,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12004,7 +11996,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SODPoliciesAPI.GetSodPolicySchedule(context.Background(), id).Execute() //resp, r, err := apiClient.V3.SODPoliciesAPI.GetSodPolicySchedule(context.Background(), id).Execute() @@ -12027,7 +12019,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12038,7 +12030,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SODPoliciesAPI.GetSodViolationReportRunStatus(context.Background(), reportResultId).Execute() //resp, r, err := apiClient.V3.SODPoliciesAPI.GetSodViolationReportRunStatus(context.Background(), reportResultId).Execute() @@ -12061,7 +12053,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12072,7 +12064,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SODPoliciesAPI.GetSodViolationReportStatus(context.Background(), id).Execute() //resp, r, err := apiClient.V3.SODPoliciesAPI.GetSodViolationReportStatus(context.Background(), id).Execute() @@ -12095,7 +12087,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12110,7 +12102,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SODPoliciesAPI.ListSodPolicies(context.Background()).Execute() //resp, r, err := apiClient.V3.SODPoliciesAPI.ListSodPolicies(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).Execute() @@ -12133,7 +12125,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12143,7 +12135,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/description, value=Modified description}, {op=replace, path=/conflictingAccessCriteria/leftCriteria/name, value=money-in-modified}, {op=replace, path=/conflictingAccessCriteria/rightCriteria, value={name=money-out-modified, criteriaList=[{type=ENTITLEMENT, id=2c918087682f9a86016839c0509c1ab2}]}}]`) // []JsonPatchOperation | A list of SOD Policy update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * ownerRef * externalPolicyReference * compensatingControls * correctionAdvice * state * tags * violationOwnerAssignmentConfig * scheduled * conflictingAccessCriteria - var jsonPatchOperation v3.[]JsonPatchOperation + var jsonPatchOperation []v3.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -12151,7 +12143,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SODPoliciesAPI.PatchSodPolicy(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V3.SODPoliciesAPI.PatchSodPolicy(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -12174,7 +12166,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12229,7 +12221,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SODPoliciesAPI.PutPolicySchedule(context.Background(), id).SodPolicySchedule(sodPolicySchedule).Execute() //resp, r, err := apiClient.V3.SODPoliciesAPI.PutPolicySchedule(context.Background(), id).SodPolicySchedule(sodPolicySchedule).Execute() @@ -12252,7 +12244,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12325,7 +12317,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SODPoliciesAPI.PutSodPolicy(context.Background(), id).SodPolicy(sodPolicy).Execute() //resp, r, err := apiClient.V3.SODPoliciesAPI.PutSodPolicy(context.Background(), id).SodPolicy(sodPolicy).Execute() @@ -12348,7 +12340,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12359,7 +12351,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SODPoliciesAPI.StartEvaluateSodPolicy(context.Background(), id).Execute() //resp, r, err := apiClient.V3.SODPoliciesAPI.StartEvaluateSodPolicy(context.Background(), id).Execute() @@ -12382,7 +12374,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12395,7 +12387,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SODPoliciesAPI.StartSodAllPoliciesForOrg(context.Background()).Execute() //resp, r, err := apiClient.V3.SODPoliciesAPI.StartSodAllPoliciesForOrg(context.Background()).MultiPolicyRequest(multiPolicyRequest).Execute() @@ -12418,7 +12410,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12429,7 +12421,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SODPoliciesAPI.StartSodPolicy(context.Background(), id).Execute() //resp, r, err := apiClient.V3.SODPoliciesAPI.StartSodPolicy(context.Background(), id).Execute() @@ -12452,7 +12444,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12480,7 +12472,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SODViolationsAPI.StartPredictSodViolations(context.Background()).IdentityWithNewAccess(identityWithNewAccess).Execute() //resp, r, err := apiClient.V3.SODViolationsAPI.StartPredictSodViolations(context.Background()).IdentityWithNewAccess(identityWithNewAccess).Execute() @@ -12503,7 +12495,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12520,7 +12512,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SODViolationsAPI.StartViolationCheck(context.Background()).IdentityWithNewAccess1(identityWithNewAccess1).Execute() //resp, r, err := apiClient.V3.SODViolationsAPI.StartViolationCheck(context.Background()).IdentityWithNewAccess1(identityWithNewAccess1).Execute() @@ -12543,7 +12535,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12600,7 +12592,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.CreateProvisioningPolicy(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() //resp, r, err := apiClient.V3.SourcesAPI.CreateProvisioningPolicy(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() @@ -12623,7 +12615,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12723,7 +12715,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.CreateSource(context.Background()).Source(source).Execute() //resp, r, err := apiClient.V3.SourcesAPI.CreateSource(context.Background()).Source(source).ProvisionAsCsv(provisionAsCsv).Execute() @@ -12746,7 +12738,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12797,7 +12789,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.CreateSourceSchema(context.Background(), sourceId).Schema(schema).Execute() //resp, r, err := apiClient.V3.SourcesAPI.CreateSourceSchema(context.Background(), sourceId).Schema(schema).Execute() @@ -12820,7 +12812,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12832,7 +12824,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.SourcesAPI.DeleteProvisioningPolicy(context.Background(), sourceId, usageType).Execute() //r, err := apiClient.V3.SourcesAPI.DeleteProvisioningPolicy(context.Background(), sourceId, usageType).Execute() @@ -12853,7 +12845,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12864,7 +12856,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.DeleteSource(context.Background(), id).Execute() //resp, r, err := apiClient.V3.SourcesAPI.DeleteSource(context.Background(), id).Execute() @@ -12887,7 +12879,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12899,7 +12891,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.SourcesAPI.DeleteSourceSchema(context.Background(), sourceId, schemaId).Execute() //r, err := apiClient.V3.SourcesAPI.DeleteSourceSchema(context.Background(), sourceId, schemaId).Execute() @@ -12920,7 +12912,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12931,7 +12923,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.SourcesAPI.GetAccountsSchema(context.Background(), id).Execute() //r, err := apiClient.V3.SourcesAPI.GetAccountsSchema(context.Background(), id).Execute() @@ -12952,7 +12944,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12964,7 +12956,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.SourcesAPI.GetEntitlementsSchema(context.Background(), id).Execute() //r, err := apiClient.V3.SourcesAPI.GetEntitlementsSchema(context.Background(), id).SchemaName(schemaName).Execute() @@ -12985,7 +12977,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -12997,7 +12989,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.GetProvisioningPolicy(context.Background(), sourceId, usageType).Execute() //resp, r, err := apiClient.V3.SourcesAPI.GetProvisioningPolicy(context.Background(), sourceId, usageType).Execute() @@ -13020,7 +13012,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13031,7 +13023,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.GetSource(context.Background(), id).Execute() //resp, r, err := apiClient.V3.SourcesAPI.GetSource(context.Background(), id).Execute() @@ -13054,7 +13046,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13065,7 +13057,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.GetSourceConnections(context.Background(), sourceId).Execute() //resp, r, err := apiClient.V3.SourcesAPI.GetSourceConnections(context.Background(), sourceId).Execute() @@ -13088,7 +13080,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13099,7 +13091,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.GetSourceHealth(context.Background(), sourceId).Execute() //resp, r, err := apiClient.V3.SourcesAPI.GetSourceHealth(context.Background(), sourceId).Execute() @@ -13122,7 +13114,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13134,7 +13126,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.GetSourceSchema(context.Background(), sourceId, schemaId).Execute() //resp, r, err := apiClient.V3.SourcesAPI.GetSourceSchema(context.Background(), sourceId, schemaId).Execute() @@ -13157,7 +13149,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13170,7 +13162,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.GetSourceSchemas(context.Background(), sourceId).Execute() //resp, r, err := apiClient.V3.SourcesAPI.GetSourceSchemas(context.Background(), sourceId).IncludeTypes(includeTypes).IncludeNames(includeNames).Execute() @@ -13193,7 +13185,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13205,7 +13197,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.ImportAccountsSchema(context.Background(), id).Execute() //resp, r, err := apiClient.V3.SourcesAPI.ImportAccountsSchema(context.Background(), id).File(file).Execute() @@ -13228,7 +13220,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13240,7 +13232,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.ImportConnectorFile(context.Background(), sourceId).Execute() //resp, r, err := apiClient.V3.SourcesAPI.ImportConnectorFile(context.Background(), sourceId).File(file).Execute() @@ -13263,7 +13255,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13276,7 +13268,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.ImportEntitlementsSchema(context.Background(), id).Execute() //resp, r, err := apiClient.V3.SourcesAPI.ImportEntitlementsSchema(context.Background(), id).SchemaName(schemaName).File(file).Execute() @@ -13299,7 +13291,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13310,7 +13302,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.ListProvisioningPolicies(context.Background(), sourceId).Execute() //resp, r, err := apiClient.V3.SourcesAPI.ListProvisioningPolicies(context.Background(), sourceId).Execute() @@ -13333,7 +13325,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13350,7 +13342,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.ListSources(context.Background()).Execute() //resp, r, err := apiClient.V3.SourcesAPI.ListSources(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Sorters(sorters).ForSubadmin(forSubadmin).IncludeIDNSource(includeIDNSource).Execute() @@ -13373,7 +13365,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13431,7 +13423,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.PutProvisioningPolicy(context.Background(), sourceId, usageType).ProvisioningPolicyDto(provisioningPolicyDto).Execute() //resp, r, err := apiClient.V3.SourcesAPI.PutProvisioningPolicy(context.Background(), sourceId, usageType).ProvisioningPolicyDto(provisioningPolicyDto).Execute() @@ -13454,7 +13446,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13554,7 +13546,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.PutSource(context.Background(), id).Source(source).Execute() //resp, r, err := apiClient.V3.SourcesAPI.PutSource(context.Background(), id).Source(source).Execute() @@ -13577,7 +13569,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13629,7 +13621,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.PutSourceSchema(context.Background(), sourceId, schemaId).Schema(schema).Execute() //resp, r, err := apiClient.V3.SourcesAPI.PutSourceSchema(context.Background(), sourceId, schemaId).Schema(schema).Execute() @@ -13652,7 +13644,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13662,7 +13654,7 @@ provisioningpolicydto := []byte(``) // []ProvisioningPolicyDto | - var provisioningPolicyDto v3.[]ProvisioningPolicyDto + var provisioningPolicyDto []v3.ProvisioningPolicyDto if err := json.Unmarshal(provisioningpolicydto, &provisioningPolicyDto); err != nil { fmt.Println("Error:", err) return @@ -13670,7 +13662,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.UpdateProvisioningPoliciesInBulk(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() //resp, r, err := apiClient.V3.SourcesAPI.UpdateProvisioningPoliciesInBulk(context.Background(), sourceId).ProvisioningPolicyDto(provisioningPolicyDto).Execute() @@ -13693,7 +13685,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13704,7 +13696,7 @@ jsonpatchoperation := []byte(`[{op=add, path=/fields/0, value={name=email, transform={type=identityAttribute, attributes={name=email}}, attributes={}, isRequired=false, type=string, isMultiValued=false}}]`) // []JsonPatchOperation | The JSONPatch payload used to update the schema. - var jsonPatchOperation v3.[]JsonPatchOperation + var jsonPatchOperation []v3.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -13712,7 +13704,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.UpdateProvisioningPolicy(context.Background(), sourceId, usageType).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V3.SourcesAPI.UpdateProvisioningPolicy(context.Background(), sourceId, usageType).JsonPatchOperation(jsonPatchOperation).Execute() @@ -13735,7 +13727,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13745,7 +13737,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/description, value=new description}]`) // []JsonPatchOperation | A list of account update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. Any password changes are submitted as plain-text and encrypted upon receipt in Identity Security Cloud (ISC). - var jsonPatchOperation v3.[]JsonPatchOperation + var jsonPatchOperation []v3.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -13753,7 +13745,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.UpdateSource(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V3.SourcesAPI.UpdateSource(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -13776,7 +13768,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13787,7 +13779,7 @@ jsonpatchoperation := []byte(`[{op=add, path=/attributes/-, value={name=location, type=STRING, schema=null, description=Employee location, isMulti=false, isEntitlement=false, isGroup=false}}]`) // []JsonPatchOperation | The JSONPatch payload used to update the schema. - var jsonPatchOperation v3.[]JsonPatchOperation + var jsonPatchOperation []v3.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -13795,7 +13787,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourcesAPI.UpdateSourceSchema(context.Background(), sourceId, schemaId).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V3.SourcesAPI.UpdateSourceSchema(context.Background(), sourceId, schemaId).JsonPatchOperation(jsonPatchOperation).Execute() @@ -13818,7 +13810,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13829,7 +13821,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourceUsagesAPI.GetStatusBySourceId(context.Background(), sourceId).Execute() //resp, r, err := apiClient.V3.SourceUsagesAPI.GetStatusBySourceId(context.Background(), sourceId).Execute() @@ -13852,7 +13844,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13867,7 +13859,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.SourceUsagesAPI.GetUsagesBySourceId(context.Background(), sourceId).Execute() //resp, r, err := apiClient.V3.SourceUsagesAPI.GetUsagesBySourceId(context.Background(), sourceId).Limit(limit).Offset(offset).Count(count).Sorters(sorters).Execute() @@ -13890,7 +13882,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13902,7 +13894,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.TaggedObjectsAPI.DeleteTaggedObject(context.Background(), type_, id).Execute() //r, err := apiClient.V3.TaggedObjectsAPI.DeleteTaggedObject(context.Background(), type_, id).Execute() @@ -13923,7 +13915,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13951,7 +13943,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.TaggedObjectsAPI.DeleteTagsToManyObject(context.Background()).BulkRemoveTaggedObject(bulkRemoveTaggedObject).Execute() //r, err := apiClient.V3.TaggedObjectsAPI.DeleteTagsToManyObject(context.Background()).BulkRemoveTaggedObject(bulkRemoveTaggedObject).Execute() @@ -13972,7 +13964,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -13984,7 +13976,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.TaggedObjectsAPI.GetTaggedObject(context.Background(), type_, id).Execute() //resp, r, err := apiClient.V3.TaggedObjectsAPI.GetTaggedObject(context.Background(), type_, id).Execute() @@ -14007,7 +13999,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14021,7 +14013,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.TaggedObjectsAPI.ListTaggedObjects(context.Background()).Execute() //resp, r, err := apiClient.V3.TaggedObjectsAPI.ListTaggedObjects(context.Background()).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() @@ -14044,7 +14036,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14059,7 +14051,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.TaggedObjectsAPI.ListTaggedObjectsByType(context.Background(), type_).Execute() //resp, r, err := apiClient.V3.TaggedObjectsAPI.ListTaggedObjectsByType(context.Background(), type_).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() @@ -14082,7 +14074,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14108,7 +14100,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.TaggedObjectsAPI.PutTaggedObject(context.Background(), type_, id).TaggedObject(taggedObject).Execute() //resp, r, err := apiClient.V3.TaggedObjectsAPI.PutTaggedObject(context.Background(), type_, id).TaggedObject(taggedObject).Execute() @@ -14131,7 +14123,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14155,7 +14147,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.TaggedObjectsAPI.SetTagToObject(context.Background()).TaggedObject(taggedObject).Execute() //r, err := apiClient.V3.TaggedObjectsAPI.SetTagToObject(context.Background()).TaggedObject(taggedObject).Execute() @@ -14176,7 +14168,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14205,7 +14197,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.TaggedObjectsAPI.SetTagsToManyObjects(context.Background()).BulkAddTaggedObject(bulkAddTaggedObject).Execute() //resp, r, err := apiClient.V3.TaggedObjectsAPI.SetTagsToManyObjects(context.Background()).BulkAddTaggedObject(bulkAddTaggedObject).Execute() @@ -14228,7 +14220,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14249,7 +14241,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.TransformsAPI.CreateTransform(context.Background()).Transform(transform).Execute() //resp, r, err := apiClient.V3.TransformsAPI.CreateTransform(context.Background()).Transform(transform).Execute() @@ -14272,7 +14264,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14283,7 +14275,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.TransformsAPI.DeleteTransform(context.Background(), id).Execute() //r, err := apiClient.V3.TransformsAPI.DeleteTransform(context.Background(), id).Execute() @@ -14304,7 +14296,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14315,7 +14307,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.TransformsAPI.GetTransform(context.Background(), id).Execute() //resp, r, err := apiClient.V3.TransformsAPI.GetTransform(context.Background(), id).Execute() @@ -14338,7 +14330,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14353,7 +14345,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.TransformsAPI.ListTransforms(context.Background()).Execute() //resp, r, err := apiClient.V3.TransformsAPI.ListTransforms(context.Background()).Offset(offset).Limit(limit).Count(count).Name(name).Filters(filters).Execute() @@ -14376,7 +14368,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14392,7 +14384,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.TransformsAPI.UpdateTransform(context.Background(), id).Execute() //resp, r, err := apiClient.V3.TransformsAPI.UpdateTransform(context.Background(), id).Transform(transform).Execute() @@ -14415,7 +14407,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14454,7 +14446,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.VendorConnectorMappingsAPI.CreateVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() //resp, r, err := apiClient.V3.VendorConnectorMappingsAPI.CreateVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() @@ -14477,7 +14469,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14516,7 +14508,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.VendorConnectorMappingsAPI.DeleteVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() //resp, r, err := apiClient.V3.VendorConnectorMappingsAPI.DeleteVendorConnectorMapping(context.Background()).VendorConnectorMapping(vendorConnectorMapping).Execute() @@ -14539,7 +14531,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14549,7 +14541,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.VendorConnectorMappingsAPI.GetVendorConnectorMappings(context.Background()).Execute() //resp, r, err := apiClient.V3.VendorConnectorMappingsAPI.GetVendorConnectorMappings(context.Background()).Execute() @@ -14572,7 +14564,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14583,7 +14575,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.WorkflowsAPI.CancelWorkflowExecution(context.Background(), id).Execute() //r, err := apiClient.V3.WorkflowsAPI.CancelWorkflowExecution(context.Background(), id).Execute() @@ -14604,7 +14596,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14616,7 +14608,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkflowsAPI.CreateExternalExecuteWorkflow(context.Background(), id).Execute() //resp, r, err := apiClient.V3.WorkflowsAPI.CreateExternalExecuteWorkflow(context.Background(), id).CreateExternalExecuteWorkflowRequest(createExternalExecuteWorkflowRequest).Execute() @@ -14639,7 +14631,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14656,7 +14648,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkflowsAPI.CreateWorkflow(context.Background()).CreateWorkflowRequest(createWorkflowRequest).Execute() //resp, r, err := apiClient.V3.WorkflowsAPI.CreateWorkflow(context.Background()).CreateWorkflowRequest(createWorkflowRequest).Execute() @@ -14679,7 +14671,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14690,7 +14682,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkflowsAPI.CreateWorkflowExternalTrigger(context.Background(), id).Execute() //resp, r, err := apiClient.V3.WorkflowsAPI.CreateWorkflowExternalTrigger(context.Background(), id).Execute() @@ -14713,7 +14705,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14724,7 +14716,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.WorkflowsAPI.DeleteWorkflow(context.Background(), id).Execute() //r, err := apiClient.V3.WorkflowsAPI.DeleteWorkflow(context.Background(), id).Execute() @@ -14745,7 +14737,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14757,7 +14749,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkflowsAPI.GetWorkflow(context.Background(), id).Execute() //resp, r, err := apiClient.V3.WorkflowsAPI.GetWorkflow(context.Background(), id).WorkflowMetrics(workflowMetrics).Execute() @@ -14780,7 +14772,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14791,7 +14783,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkflowsAPI.GetWorkflowExecution(context.Background(), id).Execute() //resp, r, err := apiClient.V3.WorkflowsAPI.GetWorkflowExecution(context.Background(), id).Execute() @@ -14814,7 +14806,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14825,7 +14817,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkflowsAPI.GetWorkflowExecutionHistory(context.Background(), id).Execute() //resp, r, err := apiClient.V3.WorkflowsAPI.GetWorkflowExecutionHistory(context.Background(), id).Execute() @@ -14848,7 +14840,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14863,7 +14855,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkflowsAPI.GetWorkflowExecutions(context.Background(), id).Execute() //resp, r, err := apiClient.V3.WorkflowsAPI.GetWorkflowExecutions(context.Background(), id).Limit(limit).Offset(offset).Count(count).Filters(filters).Execute() @@ -14886,7 +14878,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14898,7 +14890,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkflowsAPI.ListCompleteWorkflowLibrary(context.Background()).Execute() //resp, r, err := apiClient.V3.WorkflowsAPI.ListCompleteWorkflowLibrary(context.Background()).Limit(limit).Offset(offset).Execute() @@ -14921,7 +14913,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14934,7 +14926,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkflowsAPI.ListWorkflowLibraryActions(context.Background()).Execute() //resp, r, err := apiClient.V3.WorkflowsAPI.ListWorkflowLibraryActions(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() @@ -14957,7 +14949,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -14967,7 +14959,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkflowsAPI.ListWorkflowLibraryOperators(context.Background()).Execute() //resp, r, err := apiClient.V3.WorkflowsAPI.ListWorkflowLibraryOperators(context.Background()).Execute() @@ -14990,7 +14982,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15003,7 +14995,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkflowsAPI.ListWorkflowLibraryTriggers(context.Background()).Execute() //resp, r, err := apiClient.V3.WorkflowsAPI.ListWorkflowLibraryTriggers(context.Background()).Limit(limit).Offset(offset).Filters(filters).Execute() @@ -15026,7 +15018,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15040,7 +15032,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkflowsAPI.ListWorkflows(context.Background()).Execute() //resp, r, err := apiClient.V3.WorkflowsAPI.ListWorkflows(context.Background()).TriggerId(triggerId).ConnectorInstanceId(connectorInstanceId).Limit(limit).Offset(offset).Execute() @@ -15063,7 +15055,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15073,7 +15065,7 @@ jsonpatchoperation := []byte(`[{op=replace, path=/name, value=Send Email}, {op=replace, path=/owner, value={type=IDENTITY, id=2c91808568c529c60168cca6f90c1313, name=William Wilson}}, {op=replace, path=/description, value=Send an email to the identity who's attributes changed.}, {op=replace, path=/enabled, value=false}, {op=replace, path=/definition, value={start=Send Email Test, steps={Send Email={actionId=sp:send-email, attributes={body=This is a test, from=sailpoint@sailpoint.com, recipientId.$=$.identity.id, subject=test}, nextStep=success, selectResult=null, type=action}, success={type=success}}}}, {op=replace, path=/trigger, value={type=EVENT, attributes={id=idn:identity-attributes-changed}}}]`) // []JsonPatchOperation | - var jsonPatchOperation v3.[]JsonPatchOperation + var jsonPatchOperation []v3.JsonPatchOperation if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil { fmt.Println("Error:", err) return @@ -15081,7 +15073,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkflowsAPI.PatchWorkflow(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() //resp, r, err := apiClient.V3.WorkflowsAPI.PatchWorkflow(context.Background(), id).JsonPatchOperation(jsonPatchOperation).Execute() @@ -15104,7 +15096,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15155,7 +15147,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkflowsAPI.PutWorkflow(context.Background(), id).WorkflowBody(workflowBody).Execute() //resp, r, err := apiClient.V3.WorkflowsAPI.PutWorkflow(context.Background(), id).WorkflowBody(workflowBody).Execute() @@ -15178,7 +15170,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15190,7 +15182,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkflowsAPI.TestExternalExecuteWorkflow(context.Background(), id).Execute() //resp, r, err := apiClient.V3.WorkflowsAPI.TestExternalExecuteWorkflow(context.Background(), id).TestExternalExecuteWorkflowRequest(testExternalExecuteWorkflowRequest).Execute() @@ -15213,7 +15205,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15231,7 +15223,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkflowsAPI.TestWorkflow(context.Background(), id).TestWorkflowRequest(testWorkflowRequest).Execute() //resp, r, err := apiClient.V3.WorkflowsAPI.TestWorkflow(context.Background(), id).TestWorkflowRequest(testWorkflowRequest).Execute() @@ -15254,7 +15246,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15266,7 +15258,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkItemsAPI.ApproveApprovalItem(context.Background(), id, approvalItemId).Execute() //resp, r, err := apiClient.V3.WorkItemsAPI.ApproveApprovalItem(context.Background(), id, approvalItemId).Execute() @@ -15289,7 +15281,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15300,7 +15292,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkItemsAPI.ApproveApprovalItemsInBulk(context.Background(), id).Execute() //resp, r, err := apiClient.V3.WorkItemsAPI.ApproveApprovalItemsInBulk(context.Background(), id).Execute() @@ -15323,7 +15315,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15335,7 +15327,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkItemsAPI.CompleteWorkItem(context.Background(), id).Execute() //resp, r, err := apiClient.V3.WorkItemsAPI.CompleteWorkItem(context.Background(), id).Body(body).Execute() @@ -15358,7 +15350,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15372,7 +15364,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkItemsAPI.GetCompletedWorkItems(context.Background()).Execute() //resp, r, err := apiClient.V3.WorkItemsAPI.GetCompletedWorkItems(context.Background()).OwnerId(ownerId).Limit(limit).Offset(offset).Count(count).Execute() @@ -15395,7 +15387,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15406,7 +15398,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkItemsAPI.GetCountCompletedWorkItems(context.Background()).Execute() //resp, r, err := apiClient.V3.WorkItemsAPI.GetCountCompletedWorkItems(context.Background()).OwnerId(ownerId).Execute() @@ -15429,7 +15421,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15440,7 +15432,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkItemsAPI.GetCountWorkItems(context.Background()).Execute() //resp, r, err := apiClient.V3.WorkItemsAPI.GetCountWorkItems(context.Background()).OwnerId(ownerId).Execute() @@ -15463,7 +15455,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15474,7 +15466,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkItemsAPI.GetWorkItem(context.Background(), id).Execute() //resp, r, err := apiClient.V3.WorkItemsAPI.GetWorkItem(context.Background(), id).Execute() @@ -15497,7 +15489,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15508,7 +15500,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkItemsAPI.GetWorkItemsSummary(context.Background()).Execute() //resp, r, err := apiClient.V3.WorkItemsAPI.GetWorkItemsSummary(context.Background()).OwnerId(ownerId).Execute() @@ -15531,7 +15523,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15545,7 +15537,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkItemsAPI.ListWorkItems(context.Background()).Execute() //resp, r, err := apiClient.V3.WorkItemsAPI.ListWorkItems(context.Background()).Limit(limit).Offset(offset).Count(count).OwnerId(ownerId).Execute() @@ -15568,7 +15560,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15580,7 +15572,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkItemsAPI.RejectApprovalItem(context.Background(), id, approvalItemId).Execute() //resp, r, err := apiClient.V3.WorkItemsAPI.RejectApprovalItem(context.Background(), id, approvalItemId).Execute() @@ -15603,7 +15595,7 @@ "context" "fmt" "os" - "encoding/json" + v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15614,7 +15606,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkItemsAPI.RejectApprovalItemsInBulk(context.Background(), id).Execute() //resp, r, err := apiClient.V3.WorkItemsAPI.RejectApprovalItemsInBulk(context.Background(), id).Execute() @@ -15637,7 +15629,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15659,7 +15651,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) r, err := apiClient.V3.WorkItemsAPI.SendWorkItemForward(context.Background(), id).WorkItemForward(workItemForward).Execute() //r, err := apiClient.V3.WorkItemsAPI.SendWorkItemForward(context.Background(), id).WorkItemForward(workItemForward).Execute() @@ -15680,7 +15672,7 @@ "context" "fmt" "os" - "encoding/json" + "encoding/json" v3 "github.com/sailpoint-oss/golang-sdk/v2/api_v3" sailpoint "github.com/sailpoint-oss/golang-sdk/v2" ) @@ -15698,7 +15690,7 @@ - configuration := sailpoint.NewDefaultConfiguration() + configuration := sailpoint.NewDefaultConfiguration() apiClient := sailpoint.NewAPIClient(configuration) resp, r, err := apiClient.V3.WorkItemsAPI.SubmitAccountSelection(context.Background(), id).RequestBody(requestBody).Execute() //resp, r, err := apiClient.V3.WorkItemsAPI.SubmitAccountSelection(context.Background(), id).RequestBody(requestBody).Execute()